Lesson 7 built the machinery of a test. Here it is put to use. Every test in this lesson has the same shape: a statistic that measures how far the data sit from the null, divided by its standard error, compared with a distribution you already know. What changes from test to test is which statistic, and which distribution. The skill the exams reward is choosing correctly, so the lesson starts with a map and ends with a drill.
Two questions pick the test. How many groups and what kind of data? And what is known about the spread? Almost every test is a statistic of the form (estimate − null value) ÷ standard error, compared with the normal, t, chi-square or F distribution (the four of Lesson 6).
| Situation | Statistic | Distribution under H₀ |
|---|---|---|
| One mean, σ known | Standard normal | |
| One mean, σ unknown | t, n − 1 df | |
| One proportion | Standard normal | |
| Two independent means | t, n₁ + n₂ − 2 df (z with σ known) | |
| Paired data | t, n − 1 df | |
| Two proportions | Standard normal | |
| Two variances | F, (n₁ − 1, n₂ − 1) df | |
| Association, goodness of fit | Chi-square, (r − 1)(c − 1) df | |
| Several means | Between ÷ within mean squares | F, (k − 1, N − k) df |
For a normal sample, the standardised mean follows a t distribution with n − 1 degrees of freedom when σ is estimated by s (CUET 2018), so for a test of a mean against an unknown-variance alternative the test statistic is Student’s t (GATE 2026). Be careful with the standard error: it is s/√n, not s/√(n − 1) and not s/n (UGC NET 2024). For a one-sided alternative such as “the average salary is greater than 64” you use a one-sided hypothesis, and reject when the calculated t exceeds the tabulated value (JNU 2020).
In a test of a proportion the null value supplies the standard error, since you are asking what would happen if H₀ were true. Of 100 people, 64 are vaccinated and H₀ is π = 0.58. The standard error under H₀ is √(0.58 × 0.42 ÷ 100) = 0.0494, so z = (0.64 − 0.58) ÷ 0.0494 = 1.22 (IIT JAM 2023). That is below 1.96, so a two-sided 5% test does not reject H₀.
To compare two independent means, divide the difference by the standard error of the difference, √(σ₁²/n₁ + σ₂²/n₂). With a common variance estimated from both samples, the statistic is a t with n₁ + n₂ − 2 degrees of freedom (JNU 2021), one degree lost for each sample mean. Lesson 9 takes this branch apart: why the variances add, pooled and Welch tests, and why pairing matters.
If the two measurements are on the same unit, the same eight households before and after a scheme, they are not independent, and the right move is to take the difference for each unit and run a one-sample t test that the mean difference is zero. In the invented example the spending rises are 4, 3, 0, 5, 6, 1, 6 and 3 thousand rupees. The mean difference is 3.5, the standard deviation of the differences is 2.20, and t = 3.5 ÷ (2.20 ÷ √8) = 4.49 on 7 degrees of freedom. The two-sided 5% critical value is 2.365, so the rise is significant. Treating the same data as two independent samples would ignore that each household is compared with itself, and would throw away most of the power.
Under H₀: p₁ = p₂ the two samples share one proportion, so the standard error uses the pooled proportion. Pooled: (0.56 × 300 + 0.48 × 200) ÷ 500 = 264 ÷ 500 = 0.528, and the standard error is √(0.528 × 0.472 × (1/300 + 1/200)) = 0.0456.
To test whether two normal populations have the same variance, take the ratio of the sample variances. Under H₀: σ₁² = σ₂² it follows an F distribution with (n₁ − 1, n₂ − 1) degrees of freedom (Hyderabad 2019). Samples of 20 and 15 with variances 35.53 and 34.92 give F = 35.53 ÷ 34.92 = 1.02 (UGC NET 2025). The 5% critical value for (19, 14) degrees of freedom is 2.40, far above 1.02, so there is no evidence the variances differ. Put the larger variance on top, and an F near 1 is always consistent with equality.
To test whether a correlation is different from zero, use the t statistic r√(n − 2) ÷ √(1 − r²) with n − 2 degrees of freedom (Hyderabad 2016). With r = 0.6 and n = 27 it is 0.6 × 5 ÷ 0.8 = 3.75, well past the critical value 2.06 for 25 degrees of freedom. The same t test, applied to a regression slope, is Module 3’s business. Note what is not a t test: the t statistic does not test the overall significance of a regression as a whole, that is the F statistic’s job (Hyderabad 2019).
The chi-square test is used for association between attributes (Hyderabad 2015): two categorical variables, summarised in a table of counts. If they were unrelated, each cell would hold (row total × column total) ÷ grand total. The statistic adds up how far each observed count O is from that expected count E, scaled by E. Its shape is fixed by its degrees of freedom (CUET 2019), here (rows − 1) × (columns − 1).
Households by head’s schooling and whether the household holds a bank account (invented). Type any counts.
| Has an account | No account | Total | |
|---|---|---|---|
| No schooling | expected 21contributes 3.86 | expected 29contributes 2.79 | 50 |
| Primary | expected 21contributes 0.05 | expected 29contributes 0.03 | 50 |
| Secondary or more | expected 21contributes 4.76 | expected 29contributes 3.45 | 50 |
| Total | 63 | 87 | 150 |
χ² = 14.94 exceeds 5.99, so at the 5% level we reject independence: schooling and account-holding are associated. The shaded cells, with the longest bars, are where the table departs most from what independence predicts. Account-holding rises with schooling, far more than chance would explain.
In the first table, 150 households by schooling and account-holding, the expected count in every cell of the first column is 21. The observed counts, 12, 20 and 31, are far from 21 in both directions, and the statistic is 14.94 on 2 degrees of freedom against a 5% critical value of 5.99. Independence is rejected. Edit a few cells to see how little it takes to pull the statistic below the line. The same statistic, with expected counts from a hypothesised distribution instead of from margins, gives the goodness-of-fit test, with degrees of freedom (categories − 1). Lesson 10 derives both tests and adds Cramér’s V.
To compare more than two means at once, do not run every pairwise t test: the false-alarm rate climbs with the number of tests (Lesson 7). One-way analysis of variance tests all the means together. Its idea is a split of the total variation in the data, SST, into the part explained by group membership, SSB (between groups), and the part left over, SSW (within groups).
| Source | Sum of squares | df | Mean square | F | p-value |
|---|---|---|---|---|---|
| Between groups | 51,458 | 2 | 25,729 | 25.17 | < 0.0001 |
| Within groups | 21,466 | 21 | 1,022 | ||
| Total | 72,924 | 23 |
The group means differ by more than the scatter inside the groups would lead us to expect: F = 25.2 on (2, 21) degrees of freedom, so we reject the hypothesis that all three mean wages are equal. ANOVA does not say which group differs. It says at least one does. Widen the spread inside the groups to watch F fall without moving a single group mean.
Read F as a signal-to-noise ratio. The numerator is how far apart the group means are, per degree of freedom. The denominator is the ordinary scatter of workers around their own group’s mean. If the groups really have the same mean, both estimate the same variance and F is near 1. The lab’s first slider pulls the Factory group down towards the others and F collapses. The second slider widens the scatter, and F also falls though no mean has moved. A significant F says at least one mean differs. It does not say which, and a follow-up comparison is needed for that. In a simple regression the F test is the square of the t test on the slope.
Let ȳ be the grand mean and ȳg the mean of the worker’s own group. Then
Between plus within: how far the worker’s group sits from the grand mean, then how far the worker sits from the group.
In SSB the same value (ȳg − ȳ)² is added once for every member of the group, which is why it appears as ng(ȳg − ȳ)².
Inside group g the factor (ȳg − ȳ) is the same for every member, so it comes outside the inner sum, which is Σ(ygi − ȳg). Deviations from a group’s own mean add to zero. Every group contributes 0, so the whole cross term is 0 and SST = SSB + SSW.
Pick a worker: the total gap, the between gap and the within gap add as plain numbers. Then drag the group means together or apart with the slider. SSB changes, SSW stays where it is, and SST always equals their sum. If the pieces were allowed a cross term, the bars would not match.
For the wages of the three sectors: SST = 72,924 splits into SSB = 51,458 and SSW = 21,466. SSB ÷ SST = 0.71, so about 71% of the variation in wages goes with the sector. The F ratio compares the two parts per degree of freedom, (51,458 ÷ 2) ÷ (21,466 ÷ 21) = 25.17: when group means differ a lot compared with the scatter inside groups, the ratio is large.
The t, z and F tests are parametric: they assume a distribution, usually normal, for the data (Hyderabad 2019). The chi-square test is generally treated as non-parametric (IIT JAM 2024), since it does not assume a distribution for the observations. Small-sample tests can be used on large samples, but not the reverse. When the data are clearly not normal and the sample is small, rank-based tests replace the t test:
One question asks which statement is not true among several about tests, and the false one is that the t-statistic is for testing overall significance of a model as a whole (Hyderabad 2019): that is the F test.
The hardest step in the exam is the first: naming the test. Seven situations, seven tests. Look for the number of groups, whether the units are paired and what the data are.
Every test here is an estimate minus its null value, over a standard error, compared with a table. A proportion supplies its own spread, a mean needs s, a pair is one sample of differences, a table of counts needs χ², and several means need F.
Both parts were worked in the two-proportions section above: (a) z = 1.76 against 1.96, no significant difference between the districts; (b) z = 2.08 against 1.645, the candidate is preferred in District A. That is option B of DSE 2007. The two answers look paradoxical until you see that the first test spends its α on both tails and uses a larger standard error from two noisy samples, while the second has a one-sided alternative and a single sample against a fixed 50%.
Definitions and one-step calculations. Most CUET and Hyderabad questions sit here.
Joint tables, standard errors and statement questions, up to JNU and IIT JAM level.
This topic’s hardest questions, from the DSE entrance, are worked through in Lesson 13: Tests on means and proportions.
These are questions from the TestStop bank. A free account answers 10 a day, each with its worked solution; All-Access opens every set with no daily limit.