Chi-square and F-tests of variance
To test one variance against a value, use the chi-square statistic (n − 1)s² ÷ σ₀² with n − 1 degrees of freedom. To compare two variances, use F = s₁² ÷ s₂², usually putting the larger variance on top, with n₁ − 1 and n₂ − 1 degrees of freedom. Both distributions are non-negative and skewed right.
Watch the lesson 15 min
The video follows this page: the same examples, then the checkpoint questions.
Before this: t-tests of a mean, a difference in means and paired differences
On the exam
- Explain hypothesis testing and its components, including statistical significance, Type I and Type II errors, and the power of a test; construct appropriate hypothesis tests; and interpret the results
Construct tests of a single variance and of the equality of two variances, and determine their significance. Expect to compute a statistic from standard deviations and compare it with a critical value given in the stem.
How deeply to learn each part
- Know the idea
- Understand it in general. It frames other topics, but you will not calculate with it.
- Use it
- Understand it well enough to solve a question with it. Recognize when it applies.
- Memorize
- Learn it by heart. The exam will not give it to you.
You know this one. The full lesson is folded away. The takeaways, formulas and checkpoint below are your quick refresher, and the checkpoint is a fair test of whether you still do.
You tested strong here. The full lesson is folded away. The takeaways, formulas and checkpoint below are your quick refresher, and the checkpoint is a fair test of whether you still know it.
Why test a variance?
In finance the variance is the risk. A fund may promise to keep volatility below a stated level, or you may suspect that one strategy is riskier than another. Both questions are tests about variances, and both distributions involved are built from squared numbers.
- One variance against a value Memorize
- Chi-square test Memorize χ² = (n − 1)s² ÷ σ₀²; n − 1 degrees of freedom
-
- Two variances against each other Memorize
- F-test Memorize F = larger s² ÷ smaller s²; n₁ − 1 and n₂ − 1 degrees of freedom
-
How do you test one variance?
Memorize
The chi-square distribution is non-negative and skewed right, and its shape depends on the degrees of freedom (df). Its critical values are tabulated, and the lower and upper tails are not mirror images. The test of a single variance compares the sample variance with a hypothesized value. The sample-size rules for choosing t or Z do not apply to chi-square and F tests.
A sample of 20 monthly returns has a standard deviation of 3.50%. For H₀: σ² ≤ 7.84 (σ₀ = 2.80%), the chi-square statistic is closest to:
(20 − 1) × 12.25 ÷ 7.84 = 29.6875
Chi-square statistic, χ²29.6875
- (20−1)×3.5x²÷2.8x²=
x² square
- 20ENTER1−3.5ENTER××2.8ENTER×÷
ENTER enter (on the HP, puts the number on the stack)
How do you compare two variances?
Memorize
The F-distribution is also non-negative and skewed right, with two degrees-of-freedom values: one for the numerator and one for the denominator. The shape of the F-distribution depends on both degrees of freedom. The test of the difference in variances divides one sample variance by the other.
Putting the larger variance on top is the usual convention: F is then at least 1, and a two-tailed test needs only the upper critical value at α ÷ 2. If the question fixes the order instead (for example, after ÷ before), a two-tailed test needs both a lower and an upper critical value, and you reject if F falls outside them.
Two funds have return standard deviations of 5.50% and 4.00%. The F-statistic for equality of variances, with the larger variance on top, is closest to:
30.25 ÷ 16 = 1.8906
F-statistic1.8906
- 5.5x²÷4x²=
x² square
- 5.5ENTER×4ENTER×÷
ENTER enter (on the HP, puts the number on the stack)
Try this 0 of 2
- Keep s = 3.5% and σ₀ = 2.8% (upper tail, 5%). Add months until you reject H₀.
- Switch to the two-tailed alternative and read the critical values.
Chi-square test of one variance: n 20, s 3.5%, σ₀ 2.8%. Statistic 29.69 with 19 degrees of freedom against 30.144: fail to reject H₀. Variance tests use squared numbers, so the curve starts at zero and leans right.
- Reject H₀ (α 5%)
Show working
H₀: σ² ≤ 7.84 against Hₐ: σ² > 7.84 (σ₀ = 2.8%, so σ₀² = 7.84).
χ² = (n − 1)s² ÷ σ₀² = 19 × 12.25 ÷ 7.84 = 29.69, df = n − 1 = 19.
Upper 5% critical value, df 19: 30.144.
29.69 is not in the rejection region → fail to reject H₀ (p = 0.0559).
Square both standard deviations: the test is about variances.
- 19×3.5x²÷2.8x²=29.6875
x² square
- 19ENTER3.5ENTER××2.8ENTER×÷29.6875
ENTER enter (on the HP, puts the number on the stack)
Display: 29.6875
Move the statistic into the tail on each tab. On the F tab, switch between one-tailed and two-tailed and watch the critical value move from 1.783 to 1.994.
Exam tip Standard deviations come in the stem; both tests need variances. Square first, then plug in.
Exam tip In a spreadsheet: CHISQ.INV.RT(0.05, 19) gives the upper 5% chi-square value 30.144; F.INV.RT(0.025, 25, 40) gives 1.994; F.INV(0.025, 25, 40) gives the lower value 0.472.
Go deeper Two-tailed chi-square tests
For : σ² = σ₀² against : σ² ≠ σ₀², there are two rejection regions, and because the chi-square curve is lopsided you need two different critical values: a lower one with α ÷ 2 in the left tail and an upper one with α ÷ 2 in the right tail. For a one-sided you need only one of them: the upper value for “greater than”, the lower value for “less than”.
Go deeper The normality assumption
Both tests assume the underlying populations are normal, and they are far more sensitive to departures from normality than the t-test for a mean. If returns show heavy tails, the result can mislead, and a non-parametric approach or a larger sample is safer.
Go deeper The F-statistic returns in regression
The F-statistic reappears in the analysis of variance for a regression, where it compares the variance explained by the model with the variance left unexplained. The mechanics are the same: a ratio of variances, with its own pair of degrees of freedom.
Memorize this
MemorizeVariance tests
| Chi-square | F | |
|---|---|---|
| Tests | one variance | two variances |
| Statistic | (larger on top) | |
| Degrees of freedom | and | |
| Shape | non-negative, skewed right | non-negative, skewed right |
| Two-tailed critical values | lower and upper | upper only at if the larger variance is on top; lower and upper if the order is fixed |
Memory hook Variances are squares, so both distributions start at zero and have a long right tail. Putting the larger variance on top means the F-statistic is never below 1, so you only need the upper critical value.
Know it cold Square the standard deviations first. Use , not . Both tests assume normal populations.
- One variance against a value Memorize
- Chi-square test Memorize χ² = (n − 1)s² ÷ σ₀²; n − 1 degrees of freedom
-
- Two variances against each other Memorize
- F-test Memorize F = larger s² ÷ smaller s²; n₁ − 1 and n₂ − 1 degrees of freedom
-
Quick example
16 monthly returns with s = 3.0%, tested against σ₀ = 2.0%. χ² = 15 × 9 ÷ 4 = 33.75, with 15 degrees of freedom.
- 15×3x²÷2x²= 33.75
x² square
- 15ENTER3ENTER××2ENTER×÷ 33.75
ENTER enter (on the HP, puts the number on the stack)
Quick example
Standard deviations of 8% and 5%. F = 64 ÷ 25 = 2.56, larger variance on top.
- 8x²÷5x²= 2.56
x² square
- 8ENTER×5ENTER×÷ 2.56
ENTER enter (on the HP, puts the number on the stack)
How it is asked
-
Compute chi-square
28 returns, s = 4.2%. Test H₀: σ = 3.0%. Statistic?
27 × 4.2² ÷ 3.0² = 52.92. Traps: 54.88 (n instead of n − 1), 37.80 (standard deviations not variances).
-
Compute F
Standard deviations 9.0% and 7.0%. F?
9.0² ÷ 7.0² = 1.65. Traps: 1.29 (standard deviations), 0.60 (smaller on top).
-
One-tailed or two-tailed critical value
F = 1.89, df (25, 40). Hₐ: σ₁² greater than σ₂² (5%) or σ₁² not equal to σ₂² (5%)?
One-tailed critical 1.783: reject. Two-tailed (upper 2.5%) 1.994: fail to reject.
-
Pick the distribution
Which distribution tests whether a single variance equals a hypothesized value?
Chi-square. Traps: t (that is for means), F (that is for two variances).
-
Fixed-order two-tailed F
F = after ÷ before = 0.722, two-tailed 5% critical values 0.697 and 1.435.
0.722 lies between them: fail to reject. Rejecting because F is below 1 is the trap.
Exam traps
- Using n instead of n − 1 in the chi-square statistic or the degrees of freedom.
- Plugging in standard deviations instead of variances. Square them first.
- Putting the smaller variance on top by habit. By convention the larger goes on top, so F is at least 1; if a question fixes the order, use both a lower and an upper critical value.
- Using the one-tailed F critical value for a test of 'equal variances'. A two-tailed test at 5% uses the upper 2.5% value.
Checkpoint
5 exam-style questions. About 90 seconds each.
1A sample of 25 returns has a standard deviation of 3.2%. To test H₀: σ = 2.5%, the chi-square statistic is closest to:
2Two samples have standard deviations of 7.2% and 5.4%. The F-statistic for equality of variances is closest to:
3A test of whether a single population variance equals a hypothesized value uses the:
4A value fund (31 months, s = 6%) and a growth fund (41 months, s = 4.5%) give F = 1.78 with 30 and 40 degrees of freedom. The upper 5% critical value is 1.744 and the upper 2.5% critical value is 1.943. For the one-sided alternative that the value fund is more volatile, tested at the 5% level, the analyst should conclude that:
5An analyst compares the variance of weekly returns over 100 weeks after a rule change (12.5) with the 100 weeks before it (18.0), using F = after ÷ before. The two-tailed 5% critical values are 0.673 and 1.486. The analyst should most appropriately:
Key takeaways
- One variance: χ² = (n − 1)s² ÷ σ₀², df n − 1.
- Two variances: F = larger s² ÷ smaller s², df (n₁ − 1, n₂ − 1).
- Both tests use variances, not standard deviations, and assume normal populations.
- The wording of Hₐ decides whether the critical value is one-tailed or two-tailed.
- If the order of the two variances is fixed, a two-tailed F-test needs a lower and an upper critical value.
Quick example
16 monthly returns with s = 3.0%, tested against σ₀ = 2.0%. χ² = 15 × 9 ÷ 4 = 33.75, with 15 degrees of freedom.
- 15×3x²÷2x²= 33.75
x² square
- 15ENTER3ENTER××2ENTER×÷ 33.75
ENTER enter (on the HP, puts the number on the stack)
Quick example
Standard deviations of 8% and 5%. F = 64 ÷ 25 = 2.56, larger variance on top.
- 8x²÷5x²= 2.56
x² square
- 8ENTER×5ENTER×÷ 2.56
ENTER enter (on the HP, puts the number on the stack)
All Quantitative Methods formulas, every lesson
Practice exam-style questions on Estimation and Hypothesis Testing
Questions about this lesson?
Where this comes back
- Is a correlation significant? The t-test of correlation Estimation and Hypothesis Testing
- Simple Linear Regression in Finance Quantitative Methods
Questions candidates ask
When do you use a chi-square test in CFA Level 1?
Use it to test a hypothesis about a single population variance, such as whether a fund's volatility is higher than promised. The statistic is (n − 1)s² ÷ σ₀², with n − 1 degrees of freedom. The chi-square distribution returns later in this module for the test of independence.
How do you calculate an F-statistic for two variances?
Square both sample standard deviations to get variances, then divide the larger by the smaller: F = s₁² ÷ s₂². The degrees of freedom are n₁ − 1 for the numerator and n₂ − 1 for the denominator. For standard deviations of 8% and 5%, F = 64 ÷ 25 = 2.56.
Why is the larger variance in the numerator of the F-test?
It is a convention that keeps F at 1 or above, so a two-tailed test of equal variances at 5% needs only the upper 2.5% critical value. If a question fixes the order instead, F can fall below 1, so use both a lower and an upper critical value.
Spotted an error? Tell us and we will fix it.