Skip to main content
Advanced Statistical Methods

Inferences on the Population Variance

Published: 2026-08-11
Level: postgraduate
Audience: Postgraduate students in Advanced Statistical Methods

Prerequisite Knowledge

This lecture builds on the following concepts from earlier lectures. If any feel unfamiliar, review the linked notes before proceeding.

Previously Covered in This Subject

  • Confidence intervals for the population mean — covered in Lecture 3
  • Point and interval estimates — covered in Lecture 3
  • Null and alternative hypotheses, one-tailed and two-tailed tests — covered in Lectures 3 and 4
  • The Z test for a population mean and the p-value approach — covered in Lecture 4
  • Choosing between Z and T by sample size — covered in Lectures 3 and 4
  • The chi-square distribution preview — covered in Lecture 4

This lecture moves the inference machinery from averages to spread. Where Z and T handled claims about the population mean, the chi-square distribution takes over when the claim is about the population variance . The session builds the chi-square statistic, uses it to place a confidence interval on , tests hypotheses about , and closes with the chi-square test for the equality of three or more population proportions — plus a look at the two applications (independence, goodness of fit) and the F distribution that come next.

5.1 Where Variance Sits in Decision-Making and Estimation

5.1.1 The Opening Example: Old Drug versus New Drug

Two treatments produce the same average result. Which one should you pick? The average cannot answer that question — the variance can.

The very first example of this course compared an old drug with a new drug given to patients, using their heart rates per minute as the measurement. Two density tables were drawn, one for each group of patients. The comparison put us in a dilemma: the average heartbeats per minute were the same for both drugs, so with the help of averages alone we could say nothing about the efficacy of the drugs. Both drugs seemed to deliver the same information.

That is where the variance — the measure of how spread out the observations are around the average — entered the picture. Variance captures information the average cannot: which group of observations is extremely scattered and which one is less scattered. When we calculated the variance for the two groups, the decision became clear: the old drug gives better results than the new drug.

Think of it like darts at a bullseye. Two players can post the same average score: one throws a tight cluster, the other scatters hits all over the board. The average hides this difference; the spread does not. The heart-rate data behaves the same way. A smaller variance means the observations cluster tightly around the average — a consistent, dependable response. A larger variance means they scatter widely — an erratic performance. The mapping is: drug → player, each patient's heart rate → one dart, variance → how tight the cluster is. The analogy breaks in one place: consistency alone is not goodness. A drug with low variance could be consistently bad; in this example the averages are tied, so the decision is handed to consistency.

The reasoning is the lesson to keep: the lesser the variance, the more efficient the performer. When two performers tie on average, the one with the smaller spread is the dependable choice. This single example shows why variance is an important measure in decision-making scenarios — it is the measure that separates otherwise identical averages.

The same logic operates in healthcare when treatments are compared: when two treatments produce the same average outcome, the consistency of the response — measured by variance — decides which treatment performs better. It is also the core reasoning of quality control in manufacturing: a filling machine whose weights vary little around a 16-ounce target is preferable to one that overfills and underfills, because even with a correct average fill, a large process variance signals that the mechanism needs readjustment. In finance the same idea is called volatility — investors read a larger variance in returns as more risk.

5.1.2 Z and T for Means, and What We Use for Variance

So far the course has covered the Z distribution and the T distribution. Whenever the problem revolves around the population mean and validating claims about it, Z and T are the distributions to use. When the entire problem is about the population mean — the average of the population — and about validating it, the Z test and T test dominate the discussion.

The common rule we administered: Z is used blindly when , and T is used when . For large samples the Z distribution works; for small samples we fall back on T.

The test statistic is the familiar one, built from (the sample average minus the population average) divided by a measure of the average's spread:

described in class as "X bar minus mu by sigma by root n, or X bar minus mu by S by root n". Here is the sample average, is the population average (the target value in the hypotheses), is the population standard deviation, is the sample standard deviation, and is the number of observations. After computing the statistic, we decided the question with the critical value approach or the p-value approach.

Z test T test
When it is used large samples, small samples,
What it plugs in population standard deviation sample standard deviation
Table look-up sample size is immaterial read at degrees of freedom
Distribution shape symmetric bell curve symmetric, slightly wider tails

When the population standard deviation is known, Z is the natural tool; when must be estimated from the data, T takes over. That is the reasoning packed into " gives Z, gives T".

The takeaway to carry forward: whenever the inference involves averages, the Z distribution and T distribution work well. But when the inference is about the variance instead of the average, Z and T are of no use — the very point of this session. That is the boundary the whole session builds on.

5.1.3 Replacing Unknown Population Values with Sample Values

Under the theory of estimations, the course rests on three population parameters: the population mean , the population variance , and the population proportion . These are the three things the text refers to, and if you understand these thoroughly, the remaining machinery — computing p-values, taking decisions depending on probability values — is very similar across all three.

One replacement principle runs through all of it. When the population mean is unknown, we replace it with the sample mean . On a similar note, when the population variance or the population standard deviation is unknown, we replace it with the sample variance (or the sample standard deviation ). If you do not know anything about the population, you collect sample data and let the sample stand in for it — that is the whole idea of estimation.

The sample variance is

described in class as "XI minus X bar whole square by N minus one": each observation minus the sample average , squared, summed over all observations from to , and divided by . Dividing by instead of corrects for the fact that one piece of freedom is already used up: the deviations are measured from , which is itself computed from the same data. This is the degrees-of-freedom idea, which returns in full in the next section.

Under the theory of estimations, whenever is unknown, the sample variance is the best estimate for the population variance. In the same way stands in for , stands in for .

Using as the point estimate of is what we call point estimation — a single best-guess number for an unknown parameter. From there the path is the usual one: point estimation, then interval estimation, then validating claims through hypothesis testing. All of it follows the same procedure once the estimation principle is clear.

Two ideas set up everything that follows. First, when averages tie, the smaller variance marks the more efficient performer — variance is a decision-making measure, not just a descriptive one. Second, unknown population values are replaced by sample values: for , and for . The next step is the distribution built for variance: the chi-square distribution.

5.2 The Chi-Square Distribution

5.2.1 The Chi-Square Statistic and Its Degrees of Freedom

Suppose the logical statements — the null and alternative hypotheses — are written about the variance. For example, the hypotheses claim something about or . In that situation the Z and T distributions are of no use; we will not talk about them. The fundamental distribution that addresses inferences on the population variance is the chi-square distribution, written , with degrees of freedom.

The statistic is

which the class described as "n minus 1 into S square by sigma square". Here is the sample variance, is the population variance claimed in the hypotheses, and is the sample size; the quantity is the test statistic used whenever the inference concerns the population variance. By construction, this is the definition of the chi-square statistic for variance inference.

Why this shape? The sample variance measures how scattered the data are, and is the total squared deviation from the average. Dividing that by the claimed population variance turns an absolute amount of scatter into a scaled, unit-free ratio. If the sample is scattered exactly as much as the population claims, the ratio sits near ; if the sample scatters more than claimed, the ratio grows. The formula is a ratio of squared quantities, so the statistic never comes out with a minus sign — a point that becomes central when we describe the distribution's shape.

Two structural facts about the distribution matter. First, as the degrees of freedom change, the graph of the chi-square distribution transforms its shape. Second, even the chi-square distribution behaves like the normal distribution when goes large and large — a separate issue, but a useful mental anchor: many distributions converge to the normal as the sample size grows.

The Greek letter (pronounced "nu") is commonly used for the degrees of freedom, and generally . The relation works in both directions: if , the sample size is 9; if , the sample size is 13; if , the sample size is 21. Keep this relation in mind when reading tables.

There is also an important contrast with Z. For the Z distribution the sample size is immaterial, because Z is used for large samples — we never use the sample size to look up Z values. But for the T distribution and the chi-square distribution, if the sample size is , you must look up the table values at degrees of freedom. That distinction — Z ignores the sample size, T and use — is one of the recurring mechanics of this session.

5.2.2 What Degrees of Freedom Mean

The degrees of freedom — the number of independently varying pieces of information a statistic has — is best understood through the small example given in class: choose four numbers without any specific restrictions. You freely choose 4, 7, 10 and 15 — any numbers, no constraint. All four are free.

Now impose a restriction: choose four numbers such that their average is 11. If the average of the four numbers must be 11, their total must be . You choose the first three freely — say 4, 7 and 10 — but the fourth number is no longer free: it must be 23 so that . The restriction on the average forces the last number.

So with observations under one imposed restriction, only of them are free. In general, the degrees of freedom count the independent observations that can be chosen freely; the constrained ones depend on the restriction. In the example, three numbers were chosen freely and the fourth depended on the average restriction, which is why we say the degrees of freedom are . The same reasoning explains the in the sample variance : the deviations are measured around , and the average itself is the restriction that consumes one degree of freedom. This shows up whenever the T and chi-square distributions are in play (small-sample situations). For the Z distribution it makes no impact, because Z operates on large samples where the restriction penalty is negligible.

5.2.3 Properties of the Chi-Square Distribution

Two properties distinguish the chi-square distribution from everything seen before, and both came out of a class exchange:

Q: Just by looking at the chi-square formula and its graph, what is completely different about this distribution compared with the Z distribution and the T distribution?

A: A student first guessed "right skewed", which correctly describes the shape, but the key difference is stronger than that: the chi-square distribution never assumes negative values. The formula itself is the proof — , and are all squares (or positive quantities), so the statistic can never come out negative. A second property: the Z distribution is symmetric, while the chi-square distribution is not. For the symmetric Z distribution, equals , that is, is just the negative of ; so is the negative of , and one table look-up covers both tails. For the chi-square distribution that shortcut fails: is not equal to , and since it is not symmetric, both values must be looked up separately from the table.

The first property — no negative values — is the classic example of a classroom correction: the shape guess ("right skewed") is fine, but the defining property is that chi-square never goes negative, and the reason is visible in the formula itself (everything is squared).

The second property — non-symmetry — changes how you handle critical values. For a symmetric distribution you can write and be done with one value. For chi-square, is not equal to . When you compute the two critical limits of the two ends of a chi-square problem, you must be careful and read both values from the table — you cannot derive one from the other by a sign flip.

Q: What did the quiz cover?

A: The quiz had normal distribution problems and the chapters taught in the previous sessions — nothing else, no other topics. As far as the syllabus is concerned there is no linear programming; that is an optimization sort of thing. If the exam is open book, you can use the material. One caution applies generally: the empirical rule — 68 percent, 95 percent, 99 percent — holds only for the normal distribution. For all other distributions you use Chebyshev's inequality, and you cannot answer "68 percent or 95 percent or 99 percent" for them.

That last point is worth underlining: the empirical rule (the 68-95-99.7 pattern) is a normal-distribution property, and when a distribution is not normal, the correct tool for bounding the proportion of observations is Chebyshev's inequality.

Scope of the empirical rule. The empirical rule — 68 percent within one standard deviation, 95 percent within two, 99.7 percent within three — applies only to the normal distribution. For any other distribution (including chi-square), quoting those percentages is wrong; use Chebyshev's inequality instead, which bounds the proportion of observations within standard deviations of the mean for any distribution. The chi-square distribution itself is a good reminder: it is not symmetric and it never takes negative values, so the normal-distribution shortcuts do not carry over.

5.2.4 Notation and Reading the Chi-Square Table

The notation mirrors the Z notation you already know. The symbol denotes the chi-square distribution value that provides an area (probability) of to the right of . All the table values are upper-tail (right-tail) probabilities: when you look for the value, you fix the degrees of freedom row, then find the column whose right-tail area equals your .

The worked reading in class used 19 degrees of freedom. To find at 19, freeze the 19-degrees-of-freedom row and take the column with right-tail area 0.025:

meaning the area to the right of 32.852 is 0.025. For the other end, the value with right-tail area 0.975 is

meaning the area to the right of 8.907 is 0.975. These two values are completely different — 32.852 versus 8.907. With the Z distribution you could write the negative of one value and be done, because of symmetry; with the chi-square distribution that does not work. The two critical limits for the two ends must each be read from the table independently.

Common table-reading traps. Do not assume symmetry: and are two different values and must both be read from the table. Do not confuse the degrees of freedom with the sample size: with observations the row is . And remember the table gives right-tail areas: a small chi-square value (like 8.907) has a large area to its right, and a large value (like 32.852) has a small area to its right.

The chi-square statistic is the engine for all variance inference: it never takes negative values, it is not symmetric, and its table is read at degrees of freedom with both ends looked up separately. With the statistic and the table in hand, the next step is the confidence interval for the population variance.

Exam note: know the chi-square statistic, its degrees of freedom, and why the two end values must be read separately.

5.3 Confidence Interval for the Population Variance

5.3.1 The Confidence Interval Formula

A single point estimate like will almost never hit the true population variance exactly. The natural next step is an interval: a range of plausible values for , built so that a chosen percentage of all such intervals (95 percent, say) will capture the true value. To build a confidence interval for the population variance we use the chi-square distribution at degrees of freedom.

The interval follows from the sampling fact from the last section: the statistic follows a chi-square distribution with degrees of freedom. Because 95 percent of the values of a chi-square distribution lie between and , we can write the probability statement

which says: with probability , the ratio falls between the small chi-square value (area to its right) and the large chi-square value (area to its right). For 95 percent, and the two ends are and .

To turn this probability statement about the ratio into a statement about , invert it algebraically. Every quantity in the ratio is positive, so multiplying by and dividing by the chi-square values keeps the inequalities pointing the same way. Working the left inequality first:

and the right inequality gives

Combining the two gives the confidence interval for the population variance:

described in class as: take times , and divide it by the two chi-square values whose right-tail areas are and . The larger chi-square value goes in the denominator of the lower limit, and the smaller one in the denominator of the upper limit — a consequence of the right-tail definition: is the large end (small right-tail area) and is the small end (large right-tail area).

Confidence interval for the population variance (confidence coefficient , chi-square values at degrees of freedom):

Because the standard deviation is the square root of the variance, a confidence interval for the population standard deviation comes from taking the square roots of the lower and upper limits of the variance interval.

Scope — when this interval is valid. The chi-square sampling result assumes a simple random sample from a normal population. If the population is strongly non-normal, the statistic no longer follows a chi-square distribution and this interval is not trustworthy. The interval is also read correctly only through right-tail table values: fix the row and read the columns whose right-tail areas are and .

A picture of the idea: draw the chi-square curve with 8 degrees of freedom — a right-skewed hump that starts at zero, rises to a peak, then falls off slowly to the right. Mark 2.180 on the left slope and 17.535 far out on the right tail. The area between them is 95 percent of the total; the two thin remaining slices at the ends are 2.5 percent each. The interval formula simply re-scales this band by . The takeaway: the band is wide because the chi-square distribution is skewed — the two ends are not symmetric mirror images.

Two cautions from class. First, keep the symbols straight: S means the standard deviation and S square means the variance — if you use where belongs, and where belongs, your entire calculation goes wrong. Second, remember that the chi-square distribution is not symmetric, so the two critical values for the two ends are different and both must come from the table.

5.3.2 Worked Example: 95% Interval from a Sample of Nine

Setup. It is observed that a sample of size 9 has sample standard deviation . Develop a 95% confidence interval for the population variance .

Given values. The sample size is , so the degrees of freedom are . The sample standard deviation is , so . A 95% confidence interval means , so and . We need and , both at 8 degrees of freedom.

Reading those two values from the chi-square table produced a small correction in class:

Q: What are chi-square 0.025 at 8 degrees of freedom and chi-square 0.975 at 8 degrees of freedom?

A: The first is 17.535 — confirmed correct. For the second, an initial guess of 2.7 turned out to be wrong: the correct table value is 2.180. So , meaning the area to the right of 17.535 is 0.025, and , meaning the area to the right of 2.180 is 0.975. The moment you anticipate how to read the table values, the rest of the calculation is very clear.

Substitution. The numerator is the same for both limits:

The lower limit divides by the large chi-square value, :

The upper limit divides by the small chi-square value, :

Conclusion. The 95% confidence interval for the population variance is about (3.60, 28.98). Taking square roots of the two limits gives a 95% confidence interval for the population standard deviation: to , so lies between about 1.90 and 5.38.

Sense-check. The sample variance itself is 7.8961, which sits comfortably inside (3.60, 28.98); the interval is wide because the sample is small ( leaves only 8 degrees of freedom), and small samples cannot pin down a variance tightly.

Exam note: this is the type of problem to expect in the mid semester — worth five or six marks. Reading the chi-square table correctly is the skill being tested, so practice it. Always read both ends at degrees of freedom, and divide by the larger chi-square value for the lower limit.

5.3.3 The 90% Interval Variant

The same problem was re-run for a 90% confidence interval in response to a question:

Q: What changes if we want a 90 percent confidence interval for the same problem?

A: For 90 percent, alpha is 0.10, so alpha by 2 is 0.05. At 8 degrees of freedom the denominators become chi-square 0.05 at 8, which is 15.507, and chi-square 0.95 at 8, which is 2.773.

So for a 90% interval, , , , and the critical values at 8 degrees of freedom are and . The interval becomes

giving — a narrower interval than the 95% version, exactly as expected: less confidence, narrower band.

A note on the upper denominator: the lecture reads the value as 2.773, and the calculation above uses it. Standard chi-square tables list 2.733 at 8 degrees of freedom for right-tail area 0.95; with 2.733 the upper limit would be instead of 22.78. Both are fine on the exam — what matters is reading the two denominators off the table row you are given and using them consistently.

The lesson of the variant: when the confidence level changes from 95% to 90%, the two denominators change, and the same problem can be solved for any confidence level by swapping the critical values.

5.4 Hypothesis Testing for the Population Variance

5.4.1 The Testing Setup and Decision Rules

Hypothesis testing for the variance follows exactly the logic used for the population mean, with two differences: the hypotheses are about , and the test statistic is different. The test statistic is the chi-square quantity from before:

where in the denominator is the value claimed by the null hypothesis — written to make that explicit. Everything else is the familiar machinery: we reject the null hypothesis when the p-value is less than or equal to , and we fail to reject (accept) when the p-value is greater than .

The three forms of the test (with the claimed value):

Test Null and alternative Reject when (critical value)
Lower tail against
Upper tail against
Two tailed against or

All three use the same test statistic, and all three are read from the chi-square table at degrees of freedom. Which form applies is decided entirely by the alternative hypothesis.

The critical value approach mirrors the p-value logic. For a right-tailed test (alternative of the form ), reject the null hypothesis when the observed chi-square is greater than or equal to at degrees of freedom. For a left-tailed test the condition flips to the left end. The two-tailed case involves both ends.

One recurring clarification concerned the level of the test:

Q: Do we divide alpha by 2 for this test?

A: Only when the alternative makes it a two-sided test. If it is a one-sided test we are not dividing that alpha by 2 — the whole alpha stays on the single tail. Look at the nature of the alternative to decide which case you are in.

The most common mistake in these tests: for the T distribution and the chi-square distribution, the table is always read at degrees of freedom, never at . Forgetting the minus one is one of the most common mistakes in these tests.

5.4.2 Worked Example: One-Sided Test (p-Value and Critical Value Approaches)

Setup. A sample of 16 items gave a sample standard deviation of . Test the hypotheses against , using both the p-value approach and the critical value approach.

Where the claimed value 50 comes from drew a question, and the answer is the same as in the Z test:

Q: Where does sigma square equal 50 come from?

A: It comes from the null hypothesis: sigma square equals 50 against sigma square greater than 50. This is the same thing we did for Z — when the hypotheses are mu equals 30 and mu not equal to 30, we test whether the observed sample difference from 30 is significant. Here the claimed value to test is 50.

Given values. , so degrees of freedom. The sample standard deviation is , so . The claimed variance is . The test is right-tailed because the alternative is , and it proceeds at the 5 percent level of significance ().

A reading of the problem as "sample standard deviation 0.95" is a slip: the worked solution uses , and only that value reproduces the computed statistic 27.07 below. The same problem appears in the text (a sample of 16 items with sample standard deviation 9.5, testing whether the population variance exceeds 50 at the 5 percent level), which confirms the 9.5 reading.

Test statistic.

Critical value approach. For a right-tailed test at the 5 percent level, the critical value is at 15 degrees of freedom, which the table gives as 24.996. The observed value 27.07 is greater than or equal to the critical value, so the decision rule fires:

p-value approach. Because the test is right-tailed, the p-value is the area to the right of the observed 27.07. The table cannot give it exactly, but it brackets it: at 15 degrees of freedom, (0.05 area to the right) and (0.025 area to the right). The observed value 27.07 lies between 24.996 and 27.488, so

Since the p-value is less than the level , we reject the null hypothesis — the same conclusion as the critical value approach.

Conclusion. With both approaches we reject : there is significant evidence that the population variance exceeds 50.

Sense-check. The sample variance 90.25 is almost twice the claimed 50, so a significant result is plausible; the statistic 27.07 clears the critical 24.996, but only by about 2 units — close, but enough to reject at the 5 percent level.

A table check confirmed the critical value:

Q: Is 24.996 the correct table value, and at which degrees of freedom do we read it?

A: Yes — for n equals 16 you read at n minus 1, so 15 degrees of freedom, and the table value is 24.996. Whenever you deal with the T distribution and the chi-square distribution, you should see the table at n minus 1 degrees of freedom, not at n.

How to report such p-values drew a clarifying exchange:

Q: Can we get an exact p-value for the chi-square statistic?

A: For the Z distribution the p-value is exact and easy. For the T and chi-square distributions we approximate from the table — giving the range "between 0.025 and 0.05" is enough — and software such as Excel gives the exact value, which is about 0.0281 here. Stating simply that the p-value is less than alpha is also acceptable.

Exam note: expect both the p-value approach and the critical value approach for variance tests. Give p-values as ranges for the chi-square distribution unless software is available — "between 0.025 and 0.05" is a complete answer.

5.4.3 Worked Example: Two-Sided Test from a Sample of Fifteen

Setup. The textbook problem (Chapter 11, page 496, Problem 10) is a consumer example in which the population standard deviation is claimed to be . A sample of 15 observations is collected. Test whether the claim should be rejected at the 0.95 level of significance, i.e. .

Preliminary statistics from the 15 observations. The sample average is

The sample variance is

Using the relation between standard deviation and variance — the standard deviation is the square root of the variance — the sample standard deviation is

Hypotheses. Because the claim is about the standard deviation , the hypotheses are most naturally written on : since , . The claim might be rejected in either direction, so the test is two-sided:

Test statistic.

p-value approach. At 14 degrees of freedom, the table gives (0.90 area to the right) and (0.10 area to the right). The observed value 11.54 lies between 7.790 and 21.064, so the area to the right of 11.54 — and so the p-value — is certainly greater than 0.10. However the two tails are combined, the p-value exceeds , so we fail to reject the null hypothesis.

Conclusion. Since the p-value is greater than , we accept (fail to reject) the null hypothesis: the sample does not provide evidence that the population standard deviation differs from 12.

Sense-check. The sample standard deviation 10.90 is close to the claimed 12, and the statistic 11.54 sits near the middle of the distribution at 14 degrees of freedom — a middle value is exactly what we expect when the claim is true, so a non-rejection is the sensible outcome.

A student checked the p-value magnitude:

Q: Is the p-value for 11.54 less than alpha or more?

A: More. At 14 degrees of freedom, 11.54 lies between 7.790 and 21.064; 7.790 has area 0.90 to the right and 21.064 has area 0.10 to the right, so the p-value is greater than 0.10 — certainly greater than 0.05. Software gives the exact two-sided p-value, about 0.71, still far above 0.05.

A second student checked the degree-of-freedom reading:

Q: Does reading the table at 14 degrees of freedom change the conclusion?

A: No. With n equals 15 the degrees of freedom are 14, and the observed value still sits between 7.790 and 21.064, so the p-value is still more than 0.10.

A note on exact p-values. For the Z distribution we can compute the exact p-value easily. For the T and chi-square distributions, exact p-values are cumbersome by hand — the tables only bracket them — so we report a range ("p-value greater than 0.10", "p-value between 0.025 and 0.05") or get the exact value from software such as Excel.

The variance test is the mean test with a new statistic and a new table: at degrees of freedom, one-sided tests keeping alpha whole and two-sided tests splitting it. The hypothesis-testing machinery now covers means (Z, T) and variances (chi-square); the next stop is a different use of the same chi-square distribution — comparing three or more population proportions.

5.5 Chi-Square Test for Equality of Population Proportions

5.5.1 The Setting: Comparing Three Population Proportions

Beyond general inference on the variance, the chi-square distribution has several further applications — the equality of proportions (Section 12.1 of the text), the test of independence between two categorical variables, and the goodness of fit of a claimed distribution. The first of these is the subject of this section; the repurchase-intention survey of car owners used as the worked example lives here too.

The situation: until now the analysis was single-population — one population, sample observations, hypotheses of the form against . The same analysis extends to two populations — is population 1 better than population 2? — and for proportions the same pattern holds: with a single sample we test , and with two populations we take two sample sizes and test whether the population proportions and differ. The Z and T distributions serve those comparisons well.

But what happens with three or more populations? The hypotheses generalize to

This is the situation where the chi-square distribution helps rather than Z or T. The observed frequencies — the counts actually recorded from the survey or questionnaire — are written , where indexes the rows and the columns. The observed frequencies may come from anything: a questionnaire collecting feedback from individual customers, tabulated by the categories under study.

The expected frequencies — the counts we would expect if the null hypothesis were true — come from a simple formula:

described in class as "row i total into column j total by the grand total": the total of row , times the total of column , divided by the total sample size .

Where does this formula come from? Suppose the null of equal proportions is true. Then the single best estimate of the repurchase proportion for every group is the pooled proportion from all the data: the total number of "yes" answers divided by the total sample size. Multiplying that pooled proportion by the size of a given group gives the expected count for that group — which, after rearrangement, is exactly the row-total-times-column-total rule: the expected frequency for the cell in row and column equals the fraction of the grand total that the row represents, scaled up by the column's size. This formula generalizes the intuitive approach of applying one pooled proportion to every group.

Expected frequencies under the null hypothesis (also written in many texts):

where is the total of row , the total of column , and the total sample size. The observed and expected tables always share the same row totals, column totals, and grand total.

The test statistic compares each observed count with its expected count under . For every cell, the difference is squared and divided by , and all the cells are summed:

Think of it as a disagreement meter. If the observations match the expectations closely, every term is small and the total stays small — the data behave as if the null were true. If some cells deviate a lot, the squared differences grow and the total grows — evidence that the proportions are not all equal. Squaring removes the sign of the deviation, and dividing by gives big deviations in small cells more weight per unit. That is why the test is always right-tailed: only large values of argue against the null.

Two operating conditions matter. First, the chi-square test works well only when each expected frequency is 5 or more; if a cell's expected frequency falls below 5, we combine that cell with a neighboring one to push the value above 5. Second, the test is right-tailed, and the degrees of freedom are

where is the number of rows and the number of columns. For an equality-of-proportions table with two rows and columns (one column per population), this gives degrees of freedom — the same as "three proportions minus one". And as always, when no level of significance is given, the default is the 5 percent level.

Assumptions and scope. The chi-square approximation is valid when every expected frequency is at least 5; below that the statistic no longer follows a chi-square distribution, and the fix is to combine neighboring cells until every expectation reaches 5. The samples should also be random, and each observation counted in exactly one cell. The test answers "are the proportions equal?" — it does not say which population differs. And do not reach for the symmetry tricks: like every chi-square test, this one is right-tailed.

5.5.2 Worked Example: Car Owners and Repurchase Intention

Setup. A survey of car owners asked whether they are likely to repurchase the same model. Three models were compared — Swift, i10 and Figo — and the owners' answers fell into two categories: "yes" (likely to repurchase the same model) and "no" (want to change the model). The observed frequencies are given in the table.

Observed frequencies and totals.

Observed Swift i10 Figo Row total
Yes 100 81 83 264
No 35 20 41 96
Column total 135 101 124 360

Check the totals before going further: 100 + 35 = 135, 81 + 20 = 101, 83 + 41 = 124, and 264 + 96 = 360; the column totals also add to 135 + 101 + 124 = 360. The row and column totals are the fixed skeleton of the table.

The pooled proportion under . 264 of the 360 owners — about 73 percent — said yes. If the null hypothesis is true, then 0.73 is the best estimate of the repurchase proportion in every group: 73% of 135, of 101, and of 124 owners should repurchase, by common sense. That is precisely what the expected-frequency formula computes. After rounding, the expected frequencies and observed frequencies should match in their totals.

Expected frequencies. Using :

Expected Swift i10 Figo
Yes
No

Every expected frequency is at least 5, so the chi-square test is valid here.

Test statistic. The chi-square statistic for these methods is the double sum of the squared differences between observed and expected frequencies, scaled by the expected frequency:

described in class as "F i j minus E i j whole square by E i j, summed over both indices". The six contributions:

Summing all six terms gives

Degrees of freedom. With two rows and three columns, . Equivalently, three population proportions minus one is again 2.

p-value. At 2 degrees of freedom, (0.10 area to the right) and (0.05 area to the right). The observed 5.06 lies between 4.605 and 5.991, so the p-value is greater than 0.05.

Conclusion. Since the p-value exceeds 0.05, we fail to reject . There is no significant evidence that the three models differ in their repurchase proportions — the pooled rate of about 73 percent is consistent across Swift, i10 and Figo owners.

Sense-check. The largest deviations are in the "no" cells (i10 had 20 repurchases against 26.93 expected; Figo had 41 against 33.07), which pulled the statistic up, but not enough to cross 5.991. A statistic of 5.06 at 2 degrees of freedom is a moderately small value, so non-rejection is the reasonable verdict.

The conclusion follows by inspection of the table — no exact p-value needed:

Q: For chi-square 5.06 at 2 degrees of freedom, is the p-value greater or less than 0.05?

A: Greater. At 2 degrees of freedom, 4.605 has area 0.10 to the right and 5.991 has area 0.05 to the right; 5.06 falls between them, so the p-value is greater than 0.05 and we fail to reject the null hypothesis.

The chi-square test for equality of proportions compares observed counts with expected counts through , always right-tailed at degrees of freedom, valid only when every expected frequency is at least 5.

Exam note: a related question on the three chi-square applications is the usual practice in the mid semester, so spend time on these few applications. The text presents the same method in Section 12.1 with a different example (not the Swift-i10-Figo one used here).

5.6 Two More Chi-Square Applications and What Comes Next

5.6.1 Test of Independence and Goodness of Fit

Two more chi-square methods were previewed for the coming sessions.

The chi-square test of independence checks whether two categorical variables behave independently or whether there is a dependency between them. The data are again tabulated into observed and expected frequencies, and the same machinery applies. The hypotheses ask directly about the relationship: the null claims the two variables are independent (knowing one gives no information about the other), and the alternative claims they are not. The degrees of freedom for this test are — the same count as in the equality-of-proportions test.

The goodness of fit test answers a different question: given some sample observations, do they come from a specific named distribution — a binomial distribution, a Poisson distribution, or, very commonly, the normal distribution? People routinely ask whether observations are from a normal distribution; the chi-square distribution validates whether a given random sample comes from the claimed distribution. The sample categories are compared against the frequencies the claimed distribution predicts, and a large chi-square value says the claim does not fit the data.

Across all these methods the notations are the same, the way of anticipating p-values is the same, and the commenting and conclusions are the same. The only differences are in constructing the logical statements (null and alternative) and in the specific formula — it is no longer , but a simple way of computing that will be developed one by one. The third method, goodness of fit, is the one with a small trick: it is where you need to connect the Z distribution notations. Everything is simple enough that with a little anticipation you can work it out. The details of both methods, plus the assumptions distinguishing parametric and non-parametric procedures, were deferred to the next session.

Quiz reminder: the quiz covers normal distribution problems and the chapters from the previous sessions — nothing else. There is no linear programming in the syllabus (it is an optimization sort of thing). If the exam is open book, you can use the material; and remember the empirical rule applies only to the normal distribution, while Chebyshev's inequality covers all other distributions.

The chi-square family now has three members: equality of proportions (this session), independence, and goodness of fit. All three share the observed-versus-expected machinery; they differ only in the hypotheses and the expected-frequency construction, which will be built one by one next session.

5.6.2 Beyond Two Populations: ANOVA and the Road Ahead

Where does this session sit in the map of the course? So far the analysis was single-population: hypotheses of the form against , validated by the Z or T test. The text's Sections 9 and 10 cover the methods of statistical inference for population means and proportions with one and two populations — hypothesis tests and conclusions in both situations, where the Z and T distributions are used very well.

The comparison of two population variances was deliberately stopped here. When it comes to the design of experiments and the analysis of variance, another distribution appears at that point — the F distribution — and the comparison of two population variances belongs there rather than here.

The generalization pattern is worth stating explicitly. One population means tests like ; two populations compare and ; and when there are three or more, the hypotheses become , , or . This session showed how the chi-square distribution handles the equality of three or more population proportions; the equality of three or more population means is the analysis of variance (ANOVA) problem, which will connect these two questions when it arrives.

The map is now complete in outline: Z and T for means and proportions, chi-square for a single variance and for three or more proportions, and — next — ANOVA and the F distribution for three or more means (and for comparing two variances). The road ahead runs through experimental design, where the F distribution takes over from chi-square.

Exam Guidance Summary

  • Mid semester: expect a chi-square problem of the confidence-interval type for the population variance, worth five or six marks. A related question on the three chi-square applications (equality of proportions, independence, goodness of fit) is the usual practice in the mid — spend time on these applications.
  • Quiz: the quiz covered normal distribution problems and the chapters taught in the previous sessions — nothing else. There is no linear programming in the syllabus (it is an optimization sort of thing). If the exam is open book, you can use the material.
  • Empirical rule: the 68-95-99 percent pattern applies only to the normal distribution. For other distributions use Chebyshev's inequality; you cannot quote 68, 95 or 99 percent for them.
  • p-values: for the Z distribution the p-value is exact. For the T and chi-square distributions, give a range ("p-value between 0.025 and 0.05", "p-value greater than 0.10") or state that the p-value is less than alpha; exact values come from software such as Excel (e.g., 0.0281 in the one-sided example).
  • Decision rule: reject the null hypothesis when p-value ; fail to reject (accept) when p-value .
  • Default level: when alpha is not given, assume the 5 percent level of significance.
  • One-sided vs two-sided: one-sided tests keep alpha whole; only two-sided tests split alpha by 2. The alternative hypothesis decides which case applies.
  • Degrees of freedom: for the T and chi-square distributions, always read the table at , never at .
  • Chi-square symmetry: the chi-square distribution is not symmetric; , so both critical limits must be read from the table separately — you cannot take the negative of one.
  • Notation: is the value with area to the right; the tables give upper-tail areas.
  • Expected frequencies: the chi-square test for proportions requires each expected frequency to be at least 5; otherwise combine cells.
  • Text references: Section 12.1 (equality of proportions, with a different worked example), Sections 9 and 10 (means and proportions, one and two populations), and Chapter 11 (page 496, Problem 10 — the two-sided variance test).
  • Symbol discipline: S is the standard deviation, S square is the variance; mixing them sends the entire calculation wrong.

Key Industry Applications

  • Drug efficacy trials in healthcare. When two treatments produce the same average outcome, the variance (consistency of response) decides which treatment is better. This was the motivating example for variance as a decision-making measure: the treatment whose effect is tightly clustered around the average is the dependable performer. The same logic appears in pharmaceutical quality control, where the variance in drug weights across manufactured units is a regulated quality measure.
  • Automobile owner surveys and market research. The repurchase-intention survey across Swift, i10 and Figo owners is a market research application of the chi-square test for equality of proportions: survey responses tabulated as observed frequencies, expected frequencies computed under equal-proportion null hypotheses, and a chi-square conclusion about whether models genuinely differ. Car makers use exactly such loyalty surveys to decide where marketing effort pays.
  • Quality and process consistency. "The lesser the variance, the more efficient it is" transfers directly to quality control and process consistency: the performer with smaller variance is the more efficient one whenever averages tie. In manufacturing, a filling process whose weight variance exceeds its specification triggers readjustment even when the average weight is correct; control of the variance, not just the mean, is what keeps production within tolerance.
  • Statistical software. Excel (and similar software) is the practical route to exact p-values for the T and chi-square distributions, where hand computation from tables only brackets the p-value — for example, the exact 0.0281 behind the bracket "between 0.025 and 0.05".

ASM Lecture 5 notes · Inferences on the Population Variance

Advanced Statistical Methods· postgraduate· 2026-08-11

Sections Breakdown

1Where Variance Sits in Decision-Making and Estimation

Variance as the decision-making measure when averages tie, the Z and T recap for means, and replacing unknown population values with sample values.

2The Chi-Square Distribution

The chi-square statistic with n - 1 degrees of freedom, its two defining properties, and reading the chi-square table.

3Confidence Interval for the Population Variance

Building the interval formula from the chi-square distribution, with the worked 95% and 90% interval examples.

4Hypothesis Testing for the Population Variance

The three forms of the variance test with one-sided and two-sided worked examples using the p-value and critical value approaches.

5Chi-Square Test for Equality of Population Proportions

Comparing observed and expected frequencies across three or more populations, with the car-owner repurchase survey as the worked example.

6Two More Chi-Square Applications and What Comes Next

The test of independence, goodness of fit, and the road ahead to ANOVA and the F distribution.

7Exam Guidance Summary

Exam strategy from the professor: mid-semester focus, quiz scope, p-values, degrees of freedom, and symbol discipline.

8Key Industry Applications

Variance reasoning and the chi-square test in healthcare, market research, manufacturing quality control, and statistical software.

Postgraduate students in Advanced Statistical Methods

Exam Revision Notes

Below is the distilled, exam-ready core. Every entry comes from the full explanation above. Use this section for rapid review; return to the main notes when a point needs more context.

Where Variance Sits in Decision-Making and Estimation

Must-know: When averages tie, the smaller variance marks the more efficient performer; variance is the decision-making measure that separates otherwise identical averages.

⚠️ Top pitfall: Using Z for small samples when the population standard deviation is unknown, and forgetting the n > 30 / n < 30 rule; mixing S with S^2.

Self-check: Why does the old drug beat the new drug when their average heart rates are identical?

Connects to: The Chi-Square Distribution, Confidence Interval for the Population Variance, Hypothesis Testing for the Population Variance

The Chi-Square Distribution

Must-know: Chi-square never assumes negative values (the statistic is built from squares) and it is not symmetric, so both end values must be read from the table at n - 1 degrees of freedom.

⚠️ Top pitfall: Reading the table at n instead of n - 1, or taking the negative of one chi-square value to get the other end (symmetry is a Z-distribution property only).

Self-check: With 19 degrees of freedom, why are 32.852 and 8.907 both needed for the two ends of a 95 percent interval?

Connects to: Confidence Interval for the Population Variance, Hypothesis Testing for the Population Variance

Confidence Interval for the Population Variance

Must-know: The confidence interval for the population variance divides (n-1)S^2 by chi-square_(alpha/2) for the lower limit and by chi-square_(1-alpha/2) for the upper limit, at n - 1 degrees of freedom; this confidence-interval type is worth five or six marks in the mid exam.

⚠️ Top pitfall: Mixing up S (standard deviation) with S^2 (variance), or using the same chi-square value for both denominators because of a mistaken symmetry assumption.

Self-check: With n = 9 and S = 2.81, which chi-square values build the 95 percent interval and what are its limits?

Connects to: The Chi-Square Distribution, Hypothesis Testing for the Population Variance

Hypothesis Testing for the Population Variance

Must-know: The test statistic is (n-1)S^2/sigma0^2 at n - 1 degrees of freedom; one-sided tests keep alpha whole on a single tail, two-sided tests split alpha by 2, and p-values are reported as ranges unless software (Excel) is available.

⚠️ Top pitfall: Reading the table at n instead of n - 1 degrees of freedom, and splitting alpha by 2 for a one-sided test.

Self-check: Why does the one-sided test with chi-square 27.07 reject at the 5 percent level while the two-sided test with chi-square 11.54 fails to reject?

Connects to: The Chi-Square Distribution, Confidence Interval for the Population Variance, Chi-Square Test for Equality of Population Proportions

Chi-Square Test for Equality of Population Proportions

Must-know: Expected frequencies are Eij = Ri x Cj / N; the statistic is the double sum of (Fij - Eij)^2 / Eij with (r-1)(c-1) degrees of freedom, always right-tailed, valid when every expected frequency is at least 5.

⚠️ Top pitfall: Applying the test when an expected frequency is below 5 instead of combining cells, or using Z instead of chi-square for three or more proportions.

Self-check: Why does chi-square 5.06 at 2 degrees of freedom fail to reject the equal-proportions null at the 5 percent level?

Connects to: Hypothesis Testing for the Population Variance, Two More Chi-Square Applications and What Comes Next

Two More Chi-Square Applications and What Comes Next

Must-know: The chi-square family has three applications — equality of proportions, independence, and goodness of fit — sharing the same observed-versus-expected machinery; equality of three or more means is the ANOVA problem handled by the F distribution.

⚠️ Top pitfall: Assuming the empirical rule (68-95-99) applies outside the normal distribution; the correct tool there is Chebyshev's inequality.

Self-check: Which distribution handles the equality of three or more population means, and where does the comparison of two population variances belong?

Connects to: The Chi-Square Distribution, Chi-Square Test for Equality of Population Proportions

Exam Guidance Summary

Must-know: The mid exam features a chi-square confidence-interval problem for the population variance (five or six marks) and a related question on the three chi-square applications.

⚠️ Top pitfall: Quoting 68-95-99 for non-normal distributions (empirical rule is normal-only), and splitting alpha by 2 for one-sided tests.

Self-check: At which degrees of freedom do you read the chi-square table for a sample of 16?

Connects to: Where Variance Sits in Decision-Making and Estimation, The Chi-Square Distribution, Confidence Interval for the Population Variance, Hypothesis Testing for the Population Variance, Chi-Square Test for Equality of Population Proportions

Key Industry Applications

Must-know: Variance-based reasoning transfers to healthcare (consistency of response), manufacturing (process variance control), finance (volatility), and market research (repurchase surveys).

⚠️ Top pitfall: Judging treatments on averages alone and ignoring variance, which hides erratic performance.

Self-check: Where is the 'lesser the variance, the more efficient the performer' logic applied in manufacturing?

Connects to: Where Variance Sits in Decision-Making and Estimation, Chi-Square Test for Equality of Population Proportions

Was this lecture useful?

Loading comments…
🤖

BitsNotes AI Assistant

Subject Notes Assistant

Configure AI Chat

Choose how to access the chatbot
Have your own API key?

Switch to "Bring Your Own Key" tab above for unlimited access with any OpenAI-compatible provider.

🔑 Enter API key above to fetch live models from provider, or enter model name manually.
OpenAI-Compatible API Support

Choose any provider preset (Gemini, DeepSeek, Kimi, GLM, MiniMax, Qwen, OpenAI, Groq, Ollama, etc.) or enter a custom endpoint URL.

Security & Privacy First

Your API key is sent directly from your browser to your specified provider. BitsNotes servers never store or see your key.