CHISQ.INV returns the inverse of the left-tailed chi-squared distribution for a given probability and degrees of freedom. It gives the chi-square value below which the specified probability lies.
=CHISQ.INV(probability, deg_freedom)What does CHISQ.INV do?
CHISQ.INV is a Statistical function in Excel that calculates the inverse of the chi-squared distribution. You supply a probability (between 0 and 1) and the degrees of freedom, and it returns the chi-square value such that the area to its left equals that probability. This is useful for finding critical values in hypothesis tests, such as goodness-of-fit or independence tests.
In practice, CHISQ.INV saves you from looking up chi-square tables or running complex calculations. It is especially handy when you need to determine cutoff points for statistical significance, build confidence intervals, or compare test statistics. Office workers analysing survey data, students working on statistics assignments, and quality control analysts all benefit from this function.
For example, if you are testing whether customer preferences differ across regions, you might compute a chi-square test statistic and compare it to the critical value from CHISQ.INV. With a significance level of 0.05 and 3 degrees of freedom, CHISQ.INV(0.95, 3) gives the critical value. This quick calculation helps you decide whether to reject the null hypothesis.
When to use CHISQ.INV
- Finding the critical value for a chi-square goodness-of-fit test.
- Determining the cutoff for a chi-square test of independence in contingency tables.
- Calculating confidence intervals for the variance of a normal distribution.
- Comparing a test statistic to a critical value in hypothesis testing.
- Setting thresholds for quality control using chi-square distributions.
- Teaching or learning statistics without relying on printed tables.
CHISQ.INV syntax
=CHISQ.INV(probability, deg_freedom)| Argument | Required? | What to enter |
|---|---|---|
probability | Required | The probability associated with the left-tailed chi-squared distribution. Must be between 0 and 1, inclusive. For a 95% confidence level, use 0.95. |
deg_freedom | Required | The number of degrees of freedom, which must be a positive integer. Often calculated as (rows - 1) * (columns - 1) for independence tests. |
What it returns: CHISQ.INV returns a numeric value: the chi-square statistic for the given left-tailed probability and degrees of freedom. This is the value at which the cumulative distribution function equals the specified probability.
CHISQ.INV examples
1 Basic Critical Value for 95% Confidence
This example finds the chi-square critical value for a 95% confidence level with 3 degrees of freedom. The formula uses the probability 0.95 and degrees of freedom from cell B2. It returns approximately 7.8147, meaning 95% of the chi-square distribution lies below this value.
| A | B | C | D | E | |
|---|---|---|---|---|---|
| 1 | Probability | Degrees of Freedom | |||
| 2 | 0.95 | 3 | 7.814727903 | ||
| 3 |
2 Critical Value for 90% Confidence with 5 df
Here we calculate the chi-square value for a 90% confidence level and 5 degrees of freedom. The probability is 0.90 and degrees of freedom is 5. The result is about 9.2364, which is the cutoff for the upper 10% tail of the chi-square distribution.
| A | B | C | D | E | |
|---|---|---|---|---|---|
| 1 | Probability | Degrees of Freedom | |||
| 2 | 0.9 | 5 | 9.2363569 | ||
| 3 |
3 Chi-Square Critical Value for Independence Test
This example computes the critical value for a chi-square test of independence with a 2x3 contingency table. The degrees of freedom are (2-1)*(3-1)=2. Using a 0.05 significance level, the left-tailed probability is 0.95. The formula returns approximately 5.9915, which you would compare to your test statistic.
| A | B | C | D | E | F | |
|---|---|---|---|---|---|---|
| 1 | Significance Level | Rows | Columns | |||
| 2 | 0.05 | 2 | 3 | 5.991464547 | ||
| 3 |
4 Confidence Interval for Variance
Suppose you have a sample variance of 25 from 10 observations and want a 95% confidence interval for the population variance. The degrees of freedom are 9. The lower chi-square value uses probability 0.025, and the upper uses 0.975. This example calculates the lower critical value, about 2.7004, which you would use to compute the interval bounds.
| A | B | C | D | E | F | |
|---|---|---|---|---|---|---|
| 1 | Sample Variance | Sample Size | Confidence Level | |||
| 2 | 25 | 10 | 0.95 | 2.7003895 | ||
| 3 |
5 Quality Control Threshold
A quality control analyst wants to set a threshold for a chi-square test with 4 degrees of freedom at a 1% significance level. The left-tailed probability is 0.99. The formula returns approximately 13.2767, meaning any test statistic above this value would indicate a significant deviation.
| A | B | C | D | E | |
|---|---|---|---|---|---|
| 1 | Significance Level | Degrees of Freedom | |||
| 2 | 0.01 | 4 | 13.27670414 | ||
| 3 |
Common CHISQ.INV errors and how to fix them
| Error | Why it happens | How to fix it |
|---|---|---|
| #NUM! | The probability is less than 0 or greater than 1, or deg_freedom is less than 1. | Ensure probability is between 0 and 1 and deg_freedom is a positive integer. |
| #VALUE! | One or both arguments are non-numeric (e.g., text). | Check that both arguments are numbers or references to numeric cells. |
| #N/A | The function is not available in older Excel versions (pre-2010). | Use CHIINV for right-tailed probability, or upgrade Excel. |
| Wrong result (e.g., negative or unexpect | Confusing left-tailed with right-tailed probability. CHISQ.INV uses left-tailed probability. | For a right-tailed test, use 1 - significance level as the probability. |
Tips for using CHISQ.INV
- Remember CHISQ.INV returns the left-tailed critical value; for right-tailed tests, use 1 - alpha.
- Degrees of freedom must be a positive integer; for independence tests, calculate as (rows-1)*(columns-1).
- Use CHISQ.INV.RT for right-tailed probabilities directly, which is equivalent to CHISQ.INV(1-probability, df).
- Combine with CHISQ.DIST to verify results: CHISQ.DIST(CHISQ.INV(p, df), df, TRUE) should equal p.
- For confidence intervals, use CHISQ.INV(alpha/2, df) and CHISQ.INV(1-alpha/2, df) for lower and upper bounds.
Frequently asked questions
What is the difference between CHISQ.INV and CHISQ.INV.RT?
CHISQ.INV returns the left-tailed inverse (probability to the left), while CHISQ.INV.RT returns the right-tailed inverse (probability to the right). They are related: CHISQ.INV(p, df) = CHISQ.INV.RT(1-p, df).
Can I use CHISQ.INV for a two-tailed test?
Yes, but you need to split the significance level. For a two-tailed test at alpha=0.05, use CHISQ.INV(0.025, df) and CHISQ.INV(0.975, df) for the lower and upper critical values.
Why do I get #NUM! with CHISQ.INV?
#NUM! occurs if probability is outside 0–1 or deg_freedom is less than 1. Double-check your inputs.
Is CHISQ.INV available in Excel 2007?
No, CHISQ.INV was introduced in Excel 2010. In older versions, use CHIINV for right-tailed probability.
Related functions
Every example on this page was recalculated by SheetSkill’s spreadsheet engine. CHISQ.INV reference