ExamSaathi learning library · Government exams · SSC CGL quantitative foundations; published syllabus labelled 2024 · Quantitative aptitude

Sampling distributions: chi-square, t and F and how they are linked

See how the chi-square, t and F sampling distributions are built from standard normal variables, learn the mean, variance and mode of chi-square, the variance of t and the mean of F, the additive property of chi-square, and use the links that turn one table value into another.

Status: original pilot lesson. Teacher review is pending. It is not a complete course or official exam material.

You will learn to

Before you start

Three families of curves keep appearing when statistics are worked out from normal samples, especially small ones: chi-square, t and F. Each is a whole family, and one or two whole numbers called degrees of freedom (df) pick out the member. This lesson states, without proofs, how the three are built and how they are related; the separate lessons on t tests, chi-square tests and the F test show how to carry out those tests. You need the standard normal variable Z, with mean 0 and variance 1. Below, k, a and b are degrees of freedom, n is a sample size, s^2 is a sample variance with divisor n - 1, sigma^2 is the population variance, and W, T and V name random variables. The letter x appears only as a times sign, and every table value used is quoted where it is needed.

Chi-square: adding up squared standard normals

Take k independent standard normal variables Z1, Z2, ..., Zk and add their squares: W = Z1^2 + Z2^2 + ... + Zk^2. This W follows the chi-square distribution with k degrees of freedom. Each Z^2 has mean 1 and variance 2, so W has mean k and variance 2k, and its SD is sqrt(2k). Being a sum of squares, W is never negative. For k > 2 its curve rises from 0 to a peak (the mode) at k - 2 and then trails off slowly to the right; with 1 or 2 df it falls away from the start. With a single df, W = Z^2, so the upper 5 percent point of chi-square with 1 df is the square of the two-sided 5 percent normal point. The familiar 1.96 is that point rounded (more exactly about 1.95996), and its square is about 3.8415, which is why the chi-square table lists 3.841 rather than 1.96^2 = 3.8416. The additive property: if W1 and W2 are independent chi-squares with k1 and k2 df, then W1 + W2 is chi-square with k1 + k2 df, because it is simply a longer sum of independent squared standard normals.

The sample variance and chi-square

The most used member of the chi-square family comes from a sample. Draw n values from a normal population with variance sigma^2, and let s^2 be their sample variance: the squared deviations from the sample mean, added up and divided by n - 1. Then (n - 1) x s^2 / sigma^2 follows chi-square with n - 1 df. One df is lost because the deviations are measured from the sample mean and always add up to 0, so only n - 1 of them are free to vary. Two facts follow at once. Chi-square with n - 1 df has mean n - 1, so s^2 averages exactly sigma^2 over all possible samples, which is why the divisor n - 1 is used. Its variance 2(n - 1) gives Var(s^2) = 2 x sigma^4 / (n - 1), so s^2 steadies as the sample grows. Any table point turns into a statement about s^2: the value of s^2 exceeded by 5 percent of samples is sigma^2 x (upper 5 percent point of chi-square with n - 1 df) / (n - 1).

Building t and F

Student's t with k df is the ratio T = Z / sqrt(W / k), where Z is standard normal and W is an independent chi-square with k df. T is symmetric about 0, its mean is 0 when k > 1, and its variance is k / (k - 2) when k > 2, always above 1. The extra spread comes from the random denominator sqrt(W / k), and it puts more probability far out, so t has heavier tails than the normal. As k grows, W / k settles close to 1 and T behaves more and more like Z; from about 30 df the two are close enough for most work. The two-tailed 5 percent points tell the story: 2.228 at 10 df, 2.042 at 30 df and 1.980 at 120 df, against 1.96 for the normal. The F distribution with (a, b) df is the ratio V = (W1 / a) / (W2 / b) of two independent chi-squares, each divided by its own df, with the numerator df named first. V cannot be negative, and its mean is b / (b - 2) when b > 2, so it depends only on the denominator df. For two independent normal samples, (s1^2 / sigma1^2) / (s2^2 / sigma2^2) follows F with (n1 - 1, n2 - 1) df.

How the three distributions are linked

Squaring T = Z / sqrt(W / k) gives T^2 = (Z^2 / 1) / (W / k): a chi-square with 1 df over its df, divided by an independent chi-square with k df over its df. So T^2 follows F(1, k). Because T is symmetric, T^2 is larger than c^2 exactly when T falls beyond plus or minus c, so the upper 5 percent point of F(1, k) equals the square of the two-tailed 5 percent point of t with k df. At 12 df, 2.179^2 = 4.748, and the F table gives 4.75 for F(1, 12). The 1 percent level works the same way: 3.055^2 = 9.333, against 9.33 in the table. Turning a ratio upside down gives the second link. If V follows F(a, b), then 1 / V follows F(b, a), so the lower point of F(a, b) equals 1 over the upper point of F(b, a) for the same tail area. The upper 5 percent point of F(10, 5) is 4.74, so the lower 5 percent point of F(5, 10) is 1 / 4.74, about 0.2110, while its upper 5 percent point is 3.33.

Common mistakes

Giving chi-square with k df a variance of k; the mean is k and the variance is 2k. Placing the chi-square peak at k instead of k - 2. Adding the df of two chi-squares that are not independent. Using n instead of n - 1 df for (n - 1) x s^2 / sigma^2, or forgetting to multiply s^2 by n - 1. Writing the t variance as (k - 2) / k, which is below 1, when for k > 2 the heavier tails give k / (k - 2), above 1. Taking the F mean from the numerator df; for b > 2 the mean b / (b - 2) uses the denominator df. Squaring the one-tailed t point instead of the two-tailed one when matching F(1, k). Taking 1 over the upper point of F(a, b) itself as its lower point, without swapping the df. Treating t on 5 or 10 df as if it were normal.

A routine for sampling distribution questions

1. Spot the building blocks: squared standard normals, a sample variance, or a ratio of two independent pieces. 2. Count the df: k squared terms give k df, a sample of n gives n - 1, and a ratio keeps the numerator df first. 3. Chi-square with k df: mean k, variance 2k, mode k - 2 when k > 2; independent chi-squares add, and so do their df. 4. t with k df: mean 0 when k > 1, variance k / (k - 2) when k > 2, close to normal from about 30 df. 5. F with (a, b) df: mean b / (b - 2) when b > 2. 6. Links: two-tailed t point squared gives the matching upper F(1, k) point; swap the df and take the reciprocal for a lower F point. 7. Quote every table value used, and check that variances, chi-square values and F values come out positive.

Worked examples

  1. In a physics laboratory in Kanpur, four reading errors are standardised so that Z1, Z2, Z3 and Z4 are independent standard normal variables. Let W1 = Z1^2 + Z2^2 + Z3^2 + Z4^2, and let W2 be an independent chi-square variable with 6 df. Describe W1, then W1 + W2: its df, mean, variance, mode and the value it exceeds with probability 0.05.

    1. W1 adds 4 squared independent standard normals, so it is chi-square with 4 df: mean 4, variance 2 x 4 = 8 and mode 4 - 2 = 2.
    2. The chi-square table gives 9.488 as the upper 5 percent point for 4 df, so W1 exceeds 9.488 with probability 0.05.
    3. W1 and W2 are independent, so by the additive property W1 + W2 is chi-square with 4 + 6 = 10 df.
    4. Its mean is 10, its variance is 2 x 10 = 20 (SD sqrt(20), about 4.47) and its mode is 10 - 2 = 8.
    5. The upper 5 percent point of chi-square with 10 df is 18.307, so P(W1 + W2 > 18.307) = 0.05.

    Answer: W1 is chi-square with 4 df (mean 4, variance 8, mode 2); W1 + W2 is chi-square with 10 df, with mean 10, variance 20 and mode 8, and it exceeds 18.307 with probability 0.05.

  2. Packets of sugar filled by a machine at a Kolhapur factory have weights that are normal with SD 2 g, so sigma^2 = 4. A random sample of 11 packets gives a sample variance s^2 with divisor n - 1. Find the average of s^2 over all such samples, and the values that s^2 falls above, and below, in 5 percent of samples each.

    1. With n = 11, the quantity 10 x s^2 / 4 follows chi-square with 11 - 1 = 10 df.
    2. Average: chi-square with 10 df has mean 10, so 10 x (average of s^2) / 4 = 10 and the average of s^2 is 4, equal to sigma^2.
    3. Upper cut: 18.307 is the upper 5 percent point for 10 df, so 10 x s^2 / 4 > 18.307 in 5 percent of samples, that is, s^2 > 18.307 x 4 / 10 = 7.3228.
    4. Lower cut: 3.940 is the lower 5 percent point for 10 df (95 percent of the area lies above it), so s^2 < 3.940 x 4 / 10 = 1.576 in 5 percent of samples.
    5. So 90 percent of samples give s^2 between about 1.58 and 7.32 square grams, a wide band for 11 packets; the variance of s^2 is 2 x 4^2 / 10 = 3.2 g^4 (grams to the fourth power).

    Answer: The average of s^2 is 4 square grams; s^2 is above about 7.32 square grams in 5 percent of samples and below about 1.58 square grams in another 5 percent.

  3. Find the variance of the t distribution with 12 df. Then use the t table to predict the upper 5 percent and upper 1 percent points of F(1, 12), and compare them with the F tables.

    1. Variance of t with 12 df = 12 / (12 - 2) = 1.2, so its SD is about 1.095, more than the standard normal's 1.
    2. If T follows t with 12 df, then T^2 follows F(1, 12).
    3. The two-tailed 5 percent point of t with 12 df is 2.179: T is above 2.179 with probability 0.025 and below -2.179 with probability 0.025, so T^2 is above 2.179^2 with probability 0.05.
    4. 2.179^2 = 4.748, which rounds to 4.75, the upper 5 percent point of F(1, 12) in the F table.
    5. The two-tailed 1 percent point of t with 12 df is 3.055, and 3.055^2 = 9.333, against 9.33 for the upper 1 percent point of F(1, 12).
    6. The heavier tails show as well: 2.179 is well beyond the normal cut-off 1.96.

    Answer: The variance is 1.2; the predicted F(1, 12) points are 2.179^2 = 4.75 at 5 percent and 3.055^2 = 9.33 at 1 percent, matching the F tables.

Practice checks

  1. W1 follows chi-square with 5 df and W2 is an independent chi-square with 3 df. The variance of W1 + W2 is:
  2. A random variable T follows the t distribution with 6 degrees of freedom. Its variance is:
  3. The two-tailed 5 percent point of t with 15 df is 2.131. Using the link between t and F, the upper 5 percent point of F(1, 15) is about:
  4. The upper 5 percent points of F are 3.00 for F(6, 12) and 4.00 for F(12, 6). The lower 5 percent point of F(6, 12) is:
  5. A random variable V follows the F distribution with (5, 22) degrees of freedom. Its mean is:

Sources checked