Set up null and alternative hypotheses, use p-values and significance levels, and carry out chi-squared tests for independence and goodness of fit and the pooled two-sample t-test, with conclusions in context.
Each is in the Maths AI glossary, with every other term in the subject.
The statement, written , that is accepted if the null hypothesis is rejected; it describes a difference, an association or a departure from a model.
The continuous probability distribution, taking only non-negative values, that the chi-squared statistic follows when the null hypothesis is true; its shape is set by the number of degrees of freedom.
A test of whether observed frequencies in a set of categories are consistent with the frequencies predicted by a stated distribution.
A test of whether two categorical variables are independent in a population, using the observed frequencies in a contingency table.
A table of observed frequencies that classifies each member of a sample by two categorical variables, one for the rows and one for the columns.
The boundary value of a test statistic for a given significance level; a test statistic beyond the critical value leads to rejecting the null hypothesis.
The number of frequencies in a chi-squared calculation that can vary freely once the totals are fixed, written (or df).
The number of observations predicted for a category if the null hypothesis were true, written ; it is the total frequency multiplied by the probability of the category under the null hypothesis.
A procedure that uses sample data to decide whether there is enough evidence to reject a stated claim about a population.
The statement of no difference, no association or no change from a model, written , that is assumed true while a hypothesis test is carried out.
The number of observations actually recorded in a category of a sample, written .
A test whose alternative hypothesis states the direction of the difference from the value in the null hypothesis.
The probability, assuming the null hypothesis is true, of obtaining a test statistic at least as extreme as the one calculated from the sample.
The threshold probability, chosen before a test is carried out, below which the p-value leads to rejecting the null hypothesis; it equals the probability of rejecting the null hypothesis when it is in fact true.
Describes a result whose p-value is less than the chosen significance level, so that the null hypothesis is rejected at that level.
A test of whether the means of two populations are equal, using independent random samples from each; the pooled two-sample t-test assumes both populations are normally distributed with equal variances.
A single value calculated from the sample data that measures how far the data are from what the null hypothesis predicts.
A test whose alternative hypothesis states only that a parameter differs from the value in the null hypothesis, in either direction.
State a null hypothesis and an alternative hypothesis for a test, as an equation, an inequality or in words.
Explain the meaning of a significance level and a p-value, and use them to decide whether to reject the null hypothesis.
Calculate expected frequencies from observed frequencies, for a contingency table and for a given model.
Determine the number of degrees of freedom for a chi-squared test.
Perform a chi-squared test for independence, using a p-value or a given critical value.
Perform a chi-squared goodness of fit test for a given distribution, including a normal model with given mean and standard deviation.
Perform a pooled two-sample t-test to compare the means of two populations, using technology.
Distinguish between one-tailed and two-tailed tests and choose the right one from the claim being tested.
Interpret the result of a test in context, and state the assumptions a test depends on.
A hypothesis test is a way of deciding, from a sample, whether the evidence is strong enough to doubt a claim about a whole population. A drug company wants to know whether a new treatment lowers blood pressure more than the old one; a geneticist wants to know whether offspring appear in the ratio a theory predicts; a school wants to know whether students' choice of transport depends on their year group. In each case the sample results differ from what the claim predicts, and the question is whether the difference is larger than chance variation alone would produce.
Every hypothesis test follows the same logic: assume a cautious claim of "no effect", measure how far the data are from what that claim predicts, and find the probability of a discrepancy at least that large if the claim were true. A small probability counts as evidence against the claim. Three tests are built on it: two chi-squared tests for counts in categories and a t-test for comparing two means.
A claim about a population, such as "the die is fair" or "the two fertilisers give the same mean height", cannot usually be checked by examining the whole population. Instead a random sample is taken, and the sample results are compared with what the claim predicts. Because samples vary by chance, the results never match the prediction exactly, even when the claim is true. A hypothesis test replaces the vague question "is the difference big?" with a precise calculation of the probability of a difference at least this big if the claim is true.
The method resembles a criminal trial. The defendant is presumed innocent, and the verdict "guilty" is reached only if the evidence makes innocence hard to believe. In the same way, a test starts by presuming the cautious claim of "no difference" and rejects it only if the data would be very surprising under that claim. A verdict of "not guilty" means only that the evidence was not strong enough to convict, and a test that does not reject its starting claim has the same limited meaning.
Every test compares two competing statements about the population. The first is the default position, which is assumed true while the test is carried out. It always contains the idea of equality, no difference, no association or "the model fits", because only then can the probabilities in the test be calculated.
The second statement is what the investigator suspects might be true instead, and it is accepted only when the data give enough evidence against .
Hypotheses are statements about populations, not about the samples. The sample means of two groups of plants are known exactly once the plants are measured, so there is nothing to test about them. The test asks about the population means, written and : the mean heights of all plants that could be grown with each fertiliser. For the same reason, a chi-squared hypothesis concerns two variables in the whole population, not the particular people surveyed.
Hypotheses may be written in symbols (an equation or inequality) or in words, whichever is clearer or whichever a question asks for. The table shows the standard forms for the chi-squared tests and the t-test.
Test | ||
|---|---|---|
Chi-squared test for independence | The two variables are independent | The two variables are not independent |
Chi-squared goodness of fit test | The data fit the stated distribution (name it, with any parameters) | The data do not fit the stated distribution |
t-test, two-tailed | ||
t-test, one-tailed | (or ) |
For a chi-squared test for independence, the word "independent" has the meaning of independent events from subtopic 4.6: knowing the category of one variable does not change the probabilities for the other. Words such as "related", "correlated", "linked" or "influences" describe something different (correlation applies to numerical data in subtopic 4.4) and should not be used. "Not associated" is an acceptable alternative to "independent".
Once the hypotheses are stated, the data are summarised by a single number that measures how far they are from what predicts. Large values (or, for some tests, values far from zero in either direction) count against .
The key quantity in a test is the probability of getting data at least as far from as the data actually observed, calculated on the assumption that is true. If this probability is very small, then either a rare event has happened or is wrong, and the test chooses the second explanation.
A p-value is a probability, so it always lies between 0 and 1. A small p-value means that the data would be surprising if were true, and so gives evidence against . A large p-value means that the data are quite consistent with . How small is "small enough" is decided before the data are collected, by choosing a threshold.
The choice of level reflects how costly a wrong rejection would be. A 1% level demands stronger evidence than a 5% level, so it is used when rejecting wrongly would be serious, for example approving a medicine that does not work. Because the significance level is also the probability of rejecting a true , a test at the 5% level will wrongly reject a true null hypothesis in about 1 sample in 20.
The decision compares the p-value with the significance level.
When is rejected, the result is described as significant at that level.
When the p-value is not below the significance level, the correct conclusion is that there is insufficient evidence to reject . This is weaker than saying is true: the sample might simply be too small to detect a real difference. The phrases "do not reject " and "fail to reject " mean the same thing.
YouTubeThe StatQuest video builds the idea of a p-value from a simple comparison of two drugs and explains the common threshold of 0.05.
An equivalent way to decide uses the test statistic directly. For a given significance level there is a boundary value of the statistic: values beyond it are so extreme that their total probability under equals the significance level.
The two decision methods always agree. The p-value is the area under the distribution's curve beyond the calculated statistic; the significance level is the area beyond the critical value. If the statistic lies beyond the critical value, the area beyond it is smaller than the significance level, and so the p-value is smaller than the significance level.

The chi-squared curve with 4 degrees of freedom shows both methods at once: the statistic 5.20 lies outside the rejection region, and the p-value of 0.267 is larger than 0.05, so is not rejected.
Compare | Reject when | Do not reject when |
|---|---|---|
p-value with significance level | p-value < significance level | p-value ≥ significance level |
with critical value | > critical value | ≤ critical value |
Every hypothesis test, whatever its type, is set out in the same five steps. The flowchart summarises them.

State and about the population.
Choose the test and the significance level (often given).
Calculate the test statistic and the p-value with the GDC.
Compare the p-value with the significance level (or the statistic with the critical value).
Write the decision and a conclusion in the context of the question.
The final step matters as much as the calculation. "Reject " on its own says nothing about rabbits, dice or fertilisers; the conclusion must translate the decision back into the situation, for example "there is evidence, at the 5% level, that the mean height of plants grown with fertiliser A differs from the mean height with fertiliser B".
The two chi-squared tests deal with counts: how many people, seeds or rolls fall into each category. The data are categorical, or numerical data grouped into classes. The counts recorded in the sample are compared with the counts that predicts.
The predicted counts come from the probabilities in , using the idea of an expected number of occurrences from subtopic 4.5: if an outcome has probability on each of independent trials, it is expected to occur times.
Expected frequencies do not need to be whole numbers. An expected frequency of 21.8 is an average over many possible samples, in the same way that a family can have an average of 1.6 children. Rounding them to whole numbers before calculating the statistic introduces avoidable error.
To judge whether observed and expected frequencies are far apart, the differences in every category are combined into one number. Three features of the formula each have a reason.
Squaring. The differences always add to zero (the totals of and are equal), so they must be squared to stop positive and negative differences cancelling.
Dividing by . A difference of 10 is large when 20 are expected and trivial when 2,000 are expected. Dividing by the expected frequency measures each squared difference relative to the size of the category.
Adding. Every category contributes, so a large departure anywhere increases the total.
The result is zero only when every observed frequency equals its expected frequency, and grows as the data move away from . Only large values count as evidence against , which is why chi-squared tests are upper-tail tests. The GDC carries out exactly this calculation, so a hand calculation on a small table is a good check on the GDC entries.
If is true and the expected frequencies are not too small, the values of from repeated samples follow a known probability distribution. Its shape depends on how many of the frequencies are free to vary.
The totals in a table act as constraints. In a goodness of fit test with 6 categories and a total of 90, once five frequencies are known, the sixth is fixed: it must make the total 90. Only five frequencies are free to vary.
The graph of the chi-squared distribution for three values of shows how the curve spreads to the right as the number of degrees of freedom increases. The mean of the distribution equals , so a statistic of 6 is unremarkable with 8 degrees of freedom but quite large with 2.
The critical values that cut off an upper tail of 10%, 5% or 1% come from this distribution. They are given in questions when needed, but the table shows typical values and how they grow with .
10% | 5% | 1% | |
|---|---|---|---|
2 | 4.605 | 5.991 | 9.210 |
3 | 6.251 | 7.815 | 11.345 |
4 | 7.779 | 9.488 | 13.277 |
5 | 9.236 | 11.070 | 15.086 |
6 | 10.645 | 12.592 | 16.812 |
8 | 13.362 | 15.507 | 20.090 |
Upper-tail critical values of the chi-squared distribution, calculated with technology.
A goodness of fit test checks whether a set of observed frequencies is consistent with a stated probability distribution: equal probabilities (a fair die or spinner), probabilities in a given ratio (a genetic cross), given percentages (a company's claim), or probabilities from a named distribution such as the normal distribution with given mean and standard deviation.
The method follows the general steps, with the expected frequencies coming from the stated distribution.
: the data fit the stated distribution (naming it). : the data do not fit it.
Find each expected frequency: total frequency × probability of the category under .
Degrees of freedom: , where is the number of categories (the only constraint is that the expected frequencies add up to the same total as the observed ones).
Find and the p-value with the GDC.
Compare and conclude in context.
The test is reliable only when every expected frequency is greater than 5. With very small expected frequencies, dividing by makes single chance observations produce large contributions, and the chi-squared distribution no longer describes the statistic well. When some expected frequencies are 5 or less, neighbouring categories are combined, a method HL students meet in subtopic 4.12.
A die is rolled 90 times and the scores 1 to 6 appear 11, 18, 14, 9, 21 and 17 times. If the die is fair, each score has probability and expected frequency 15. The bar chart of the observed frequencies against the expected value shows the size of the differences that the test must judge.

Score | 1 | 2 | 3 | 4 | 5 | 6 |
|---|---|---|---|---|---|---|
Frequency | 11 | 18 | 14 | 9 | 21 | 17 |
Scores from 90 rolls of a die (hypothetical data).
The GDC needs the observed and expected frequencies in two lists, in the same order.
Enter the observed frequencies in one list (for example L1) and the expected frequencies in another (L2).
Run the goodness of fit test: on a TI-84 Plus CE, STAT → TESTS → χ²GOF-Test; on a Casio fx-CG50, MENU → Statistics → TEST → CHI → GOF.
Enter the observed list, the expected list and the degrees of freedom .
Read off and the p-value.
On paper, write the hypotheses, the expected frequencies, the degrees of freedom, and the p-value, then the comparison and conclusion. Calculator syntax such as "χ²GOF-Test(L1, L2, 5)" is not mathematical notation, so it is no substitute for these values.
When gives probabilities in a ratio, each ratio part is converted to a fraction of the total. A ratio of has 16 parts, so the probabilities are , , and . Given percentages are used directly as probabilities.
The critical-value comparison in that example reaches the same decision as the p-value: .
In his 1866 paper on plant hybridisation, Gregor Mendel crossed pea plants and counted the seeds in the second generation by two features: shape (round or wrinkled) and colour (yellow or green). His theory of inheritance predicts the four types in the ratio . His counts for 556 seeds were 315 round and yellow, 108 round and green, 101 wrinkled and yellow, and 32 wrinkled and green.
Seed type | Round, yellow | Round, green | Wrinkled, yellow | Wrinkled, green |
|---|---|---|---|---|
Observed | 315 | 108 | 101 | 32 |
Probability under | ||||
Expected | 312.75 | 104.25 | 104.25 | 34.75 |
Source: G. Mendel, "Experiments in plant hybridization" (1866), English translation published by MendelWeb.
Mendel's results as a whole have been examined in the same way. In 1936 the statistician R. A. Fisher applied the chi-squared test to Mendel's experiments as a whole and argued that the results were too close to the predicted ratios to be plausible, suggesting that the data had been adjusted, consciously or not. Later researchers have disputed parts of Fisher's analysis. The lesson for hypothesis testing is that a p-value very close to 1 is not "proof" of a model. Across many experiments, p-values from a true model are spread out between 0 and 1, so a long run of near-perfect fits is itself a pattern that needs explaining.
A goodness of fit test can check whether continuous data follow a normal distribution with a given mean and standard deviation. The data are grouped into classes, and the expected frequency of each class is the total multiplied by the normal probability of that class, found with the GDC's normal cumulative distribution function as in subtopic 4.9. The first and last classes are open-ended so that the probabilities add up to 1.
Mass (g) | |||||
|---|---|---|---|---|---|
Frequency | 72 | 125 | 160 | 100 | 43 |
Masses of a random sample of 500 apples (hypothetical data).
YouTubeMany questions ask whether two categorical variables are connected: whether choice of transport depends on year group, whether survival depended on class of ticket, whether preferred holiday depends on age. Data on two categorical variables are displayed in a table with one variable along the rows and the other along the columns, extending the two-way tables of subtopic 4.6.
The test asks whether the pattern in the table could have arisen by chance if the two variables were independent in the population.
The expected frequencies come straight from the definition of independent events, . In a survey of 200 students, suppose 100 are in Grade 11 and 56 walk to school. If year group and transport are independent, the probability that a randomly chosen student is in Grade 11 and walks is
so the expected number of Grade 11 walkers among the 200 is
One factor of 200 cancels, giving the rule used for every cell.
The rule keeps the row and column totals of the expected table equal to those of the observed table, which is why the totals act as constraints.
The degrees of freedom count the cells that can be filled freely once all the row and column totals are fixed. In a table with 2 rows and 3 columns, once the first two cells of the first row are chosen, the third is fixed by the row total; the whole second row is then fixed by the column totals. Only 2 cells are free. In general, the last cell in each row and the last row are determined by the totals.
where is the number of rows and the number of columns, not counting the totals. A table with 3 rows and 4 columns has .
Walk | Bus | Car | Total | |
|---|---|---|---|---|
Grade 11 | 34 | 41 | 25 | 100 |
Grade 12 | 22 | 30 | 48 | 100 |
Total | 56 | 71 | 73 | 200 |
Method of travel to school by year group (hypothetical data).
The GDC takes the observed table as a matrix and produces the statistic, the p-value and the degrees of freedom, and stores the expected frequencies.
Enter the observed frequencies, without the totals, as a matrix with rows and columns: on a TI-84 Plus CE, 2nd x⁻¹ (MATRIX) → EDIT → [A]; on a Casio fx-CG50, the matrix is entered from the test screen's Observed field (Mat A).
Run the test: TI-84 Plus CE STAT → TESTS → χ²-Test with Observed [A] and Expected [B]; Casio fx-CG50 MENU → Statistics → TEST → CHI → 2WAY.
Read off , the p-value and df. The expected frequencies are stored in matrix [B] (TI) or can be viewed from the result screen (Casio), which helps with questions asking for one expected value.
Write down the hypotheses, , , the p-value, the comparison and the conclusion. When an expected frequency is asked for, show the substitution into the formula as well as the value.
A significant result says that the two variables are associated in the population: the proportions in the categories of one variable differ between the categories of the other. Comparing each observed frequency with its expected frequency, or looking at the largest contributions to , shows where the association lies. The test does not show that one variable causes the other, and it does not measure how strong the association is; a very large sample can make a weak association significant.
When the Titanic sank in April 1912, the British Board of Trade inquiry recorded how many people in each class were saved and lost. The 2,201 people on board are classified by two categorical variables: class (first, second, third, crew) and outcome (saved, lost).
Saved | Lost | Total | |
|---|---|---|---|
First class | 202 | 123 | 325 |
Second class | 118 | 167 | 285 |
Third class | 178 | 528 | 706 |
Crew | 212 | 673 | 885 |
Total | 710 | 1,491 | 2,201 |
Source: British Board of Trade inquiry report (Mersey, 1912), as tabulated in the Wikipedia article "Sinking of the Titanic", retrieved 2026.
Of the 2,201 people on board, survived. If survival had been independent of class, about 32.3% of every class would have been saved. The expected frequencies follow from the row-total × column-total rule; for first class saved, .
Saved () | Saved () | Lost () | Lost () | |
|---|---|---|---|---|
First class | 202 | 104.8 | 123 | 220.2 |
Second class | 118 | 91.9 | 167 | 193.1 |
Third class | 178 | 227.7 | 528 | 478.3 |
Crew | 212 | 285.5 | 673 | 599.5 |
With : class and survival are independent, the table has 4 rows and 2 columns, so . The GDC gives and a p-value of about , far below any usual significance level, so is rejected: survival was not independent of class. The first-class "saved" cell alone contributes 90.0 to the statistic, with nearly twice as many first-class survivors as independence predicts. The survival rates were about 62% in first class, 41% in second, 25% in third and 24% among the crew.
The result needs careful interpretation. The 2,201 people are the whole population of the voyage rather than a random sample, so the test is best read as asking whether differences this large could plausibly be the result of chance alone; a p-value this small rules that out. The test also says nothing about the reasons. Class was tied to other factors: the crew were almost all men, at a time when women and children were put into the lifeboats first, and third-class cabins were further from the boat deck. An association between class and survival is not, by itself, evidence that the ticket class caused the difference.
A typical question on a test for independence gives a contingency table with its totals and asks for each part of the test in turn.
Age group | Beach | City | Adventure | Total |
|---|---|---|---|---|
18–30 | 38 | 29 | 13 | 80 |
31–50 | 27 | 35 | 18 | 80 |
Over 50 | 15 | 16 | 29 | 60 |
Total | 80 | 80 | 60 | 220 |
Preferred type of holiday by age group (hypothetical data).
The chi-squared tests compare counts. Many investigations instead compare a numerical variable between two groups: the heights of plants given two fertilisers, the reaction times of drivers with and without a phone, the lifetimes of two brands of battery. The natural question is whether the two population means differ.
The test used for this question was devised by William Sealy Gosset, a chemist at the Guinness brewery in Dublin who needed to judge the quality of ingredients from very small samples. Guinness did not allow its staff to publish under their own names, so he published the method in the journal Biometrika in 1908 under the pen name "Student", and it is still called Student's t-test.
Two sample means will almost always differ, even if the population means are equal. Whether a difference is convincing depends on how large it is compared with the variation inside the samples and on how big the samples are. A difference of 2 cm in mean height is strong evidence if every plant in each group is within a few millimetres of its group's mean, and weak evidence if heights vary by 10 cm within each group.
The graph shows normal curves centred at the two sample means of an example comparing two fertilisers, each with the common spread of the data. The curves overlap a great deal; the t-test judges whether the gap between the centres is still larger than chance would usually give.
The GDC calculates a t-statistic that has exactly this structure: the difference in sample means divided by a measure of how much that difference would vary from sample to sample.
For samples of sizes and with means , and sample standard deviations , (calculated with divisor ), the pooled standard deviation combines the two samples' variation:
The statistic follows a t-distribution with degrees of freedom when is true. For the fertiliser data, and . In practice the GDC does this calculation.
The p-value from a t-test means what it should only when these conditions hold.
The two samples are independent random samples (unpaired: different individuals in each group).
Each population is normally distributed. With small samples this matters; a box-and-whisker diagram or histogram of each sample that looks roughly symmetric with no outliers supports the assumption.
The two populations have equal variances, so the samples' variation can be combined ("pooled") into one estimate. Sample standard deviations of similar size make this assumption reasonable.
The population variances are unknown and estimated from the samples.
If the data are strongly skewed or have outliers, the t-test is not appropriate. Psychology and biology often use the Mann–Whitney U test in that situation, which compares ranks instead of means.
Enter the two samples in two lists (L1 and L2).
Run the two-sample t-test: on a TI-84 Plus CE, STAT → TESTS → 2-SampTTest; on a Casio fx-CG50, MENU → Statistics → TEST → t → 2-S.
Choose data input (lists), select the alternative hypothesis (, or , with for the first list), and set Pooled: Yes (Casio: Pooled On).
Read off and the p-value.
On paper, define and , state the hypotheses, name the test ("pooled two-sample t-test"), and write the p-value, the comparison and the conclusion about the population means.
Fertiliser A | 24.1 | 26.3 | 22.8 | 25.5 | 27.0 | 23.9 | 25.2 | 26.6 |
|---|---|---|---|---|---|---|---|---|
Fertiliser B | 22.4 | 23.8 | 21.9 | 24.6 | 23.1 | 25.0 | 22.2 | 23.5 |
Heights of tomato plants, in cm, after six weeks (hypothetical data).
The conclusion refers to the mean heights of all plants that could be grown with each fertiliser, rather than to the 16 plants measured. It is also limited to the conditions of the experiment: one variety, six weeks, one garden.
The alternative hypothesis of a t-test can take two forms, and the choice depends on the question asked before the data are collected.
A two-tailed test is used for claims such as "the means differ" or "the new method changes the mean". Evidence against comes from a large difference in either direction, so the p-value counts extreme results at both ends of the distribution.
A one-tailed test is used for claims with a direction: "heavier", "faster", "improves", "reduces", "less than". Only differences in the stated direction count as evidence, so the p-value counts only one end of the distribution. When the sample difference is in the stated direction, the one-tailed p-value is half the two-tailed p-value, because the distribution of is symmetric.
Claim in the question | Type | |
|---|---|---|
"The mean weights are different" | two-tailed | |
"Group 1 is heavier on average" | one-tailed | |
"Group 1 has a lower mean" | one-tailed |
The direction is fixed by the claim before the data are examined. Choosing after noticing that halves the p-value unfairly and makes a significant result more likely than the significance level allows.
The chi-squared tests have non-directional hypotheses ("independent" or "not independent"; "fits" or "does not fit"), yet the calculation uses only the upper tail of the chi-squared distribution. Departures from in any direction make larger, because the differences are squared, so all the evidence against lies in the upper tail and the two ideas are consistent.
Choosing the right test depends on the type of data and on the question.
Situation | Data | Test | Degrees of freedom |
|---|---|---|---|
Are two categorical variables connected? | Counts in a contingency table | Chi-squared test for independence | |
Do counts follow a stated distribution? | Counts in categories | Chi-squared goodness of fit test | |
Do two population means differ? | Numerical values in two independent samples | Pooled two-sample t-test | handled by the GDC |
A complete test, set out in full, contains:
hypotheses about the population, in words or in symbols with the symbols defined;
the test used (and degrees of freedom for a chi-squared test);
the test statistic and/or p-value from the GDC (with expected frequencies where relevant);
a numerical comparison with the significance level or critical value;
the decision and a conclusion in context.
Statistical significance is also different from practical importance. A test on 10,000 people might find that one teaching method gives a mean score 0.3 points higher than another with a p-value of 0.001; the difference is statistically significant but too small to matter in practice. Results are best reported with the sample means or proportions, so that a reader can judge the size of the effect as well as its significance.
Hypothesis testing is one of the most frequently examined SL subtopics, on Paper 1 as a 4–8 mark question and on Paper 2 as part of a longer question, often after earlier parts on probabilities from the same table or on the normal distribution. Questions use state (the hypotheses, the conclusion), write down (degrees of freedom, , the p-value from the GDC), find or calculate (an expected frequency, the p-value), show that (an expected frequency rounds to a given value) and perform (the whole test: hypotheses, p-value, comparison and conclusion). Critical values are given when needed. Recurring shapes are: a contingency table with an expected frequency, df, the statistic and a conclusion; a goodness of fit test for a die, equal daily sales or a normal model with expected frequencies from normal probabilities; and a pooled t-test with raw data and a stated claim.
The wording of hypotheses carries marks on its own and is where marks are most often lost.
A conclusion is marked in two parts: a reason mark for the numerical comparison and an accuracy mark for the decision. The decision mark is not awarded without the comparison, so writing "reject " alone scores nothing.
A shop records each customer's method of payment (cash, card or phone) and whether they shop on a weekday or at the weekend. State the null and alternative hypotheses for a chi-squared test for independence. [2]
In a contingency table with grand total 150, a cell is in a row with total 45 and a column with total 60. Calculate the expected frequency for that cell. [2]
Write down the number of degrees of freedom for (a) a test for independence using a table with 4 rows and 3 columns; (b) a goodness of fit test with 7 categories. [2]
A call centre receives 220 calls in one week: 48 on Monday, 39 on Tuesday, 35 on Wednesday, 42 on Thursday and 56 on Friday. Test, at the 5% level, whether calls are equally likely on each weekday. The critical value is 9.488. State the hypotheses, write down and state the conclusion with a reason. [5]
Students at two campuses choose one club.
Sport | Music | Drama | |
|---|---|---|---|
Campus A | 18 | 27 | 15 |
Campus B | 32 | 21 | 7 |
Perform a chi-squared test for independence at the 1% level. State whether the conclusion would change at the 5% level. [6]
Leaf lengths, in cm, at two sites are: Site 1: 12.4, 13.1, 11.8, 12.9, 13.5, 12.2; Site 2: 11.6, 12.0, 12.7, 11.3, 12.1, 11.9. Assuming normal populations with equal variances, perform a t-test at the 5% level of whether the population mean lengths differ. [6]
A genetic model predicts offspring of three types in the ratio . Of 150 offspring, 38, 61 and 51 are of the three types. Find the expected frequencies, the p-value and the conclusion at the 5% level. [6]
A test at the 1% significance level gives a p-value of 0.03. State the conclusion and explain what the p-value of 0.03 means. [3]
A student enters a 3 × 2 contingency table into the GDC together with its row and column totals. Explain the effect on the test. [2]
A coach believes a new training plan reduces mean 100 m times. State the hypotheses for a t-test, defining your symbols, and state whether the test is one-tailed or two-tailed. [3]
: method of payment and day type (weekday or weekend) are independent. : method of payment and day type are not independent.
(a) ; (b) .
: calls are equally likely on each weekday (expected 44 per day); : calls are not equally likely. Expected , . GDC goodness of fit test: (p-value 0.189). , so insufficient evidence to reject : the data are consistent with calls being equally likely on each weekday.
: choice of club and campus are independent; : not independent. Expected frequencies: 25, 24, 11 in each row. . GDC: , p-value . : insufficient evidence to reject at 1%. At 5%, , so would be rejected: the conclusion changes.
: ; : (population mean leaf lengths). Pooled t-test: , p-value . , so insufficient evidence to reject ; the evidence that the mean lengths differ is not significant at the 5% level, though only just.
Expected: , , . . , p-value . : reject ; the offspring do not appear to follow the ratio.
, so do not reject (insufficient evidence at the 1% level). If were true, a result at least as extreme as the one observed would occur with probability 0.03.
The GDC treats the totals as an extra row and column (a 4 × 3 table), so instead of 2 and and the p-value are wrong; the totals must be left out.
Let and be the population mean 100 m times with the new and old plans. : ; : . One-tailed, because the claim has a direction (reduces).
A hypothesis test assumes the null hypothesis (no difference, independence, or the model fits) and asks whether the sample gives enough evidence to reject it in favour of . Hypotheses refer to the population.
The p-value is the probability, if is true, of a result at least as extreme as the one observed. Reject when p-value < significance level, or when > critical value; otherwise there is insufficient evidence to reject .
The chi-squared statistic is ; chi-squared tests use the upper tail only.
Goodness of fit: = total × probability under ; ; all expected frequencies must be greater than 5.
Independence: ; using the table without totals; says the variables are "independent".
The pooled two-sample t-test compares two population means from independent samples, assuming normal populations with equal variances; use Pooled: Yes on the GDC.
A one-tailed test ( or ) is used when the claim has a direction; a two-tailed test () when it does not. The direction is fixed before the data are seen.
A complete test gives hypotheses, the test, the statistic or p-value, a numerical comparison and a conclusion in context; significance is not proof and not the same as practical importance.
I can write and for each of the three tests, in words and in symbols.
I can explain why hypotheses refer to the population and not the sample.
I can explain what a p-value of 0.04 means in words.
I can make a decision by comparing a p-value with a significance level, and a statistic with a critical value.
I can find expected frequencies for a fair die, a given ratio, given percentages and a normal model.
I can find expected frequencies in a contingency table with the row-total × column-total rule, and justify it from independence.
I can find the degrees of freedom for a goodness of fit test and for a test for independence.
I can calculate by hand for a small table and check it with the GDC.
I can enter a contingency table in the GDC without its totals and read off the statistic, p-value and df.
I can run a pooled two-sample t-test on the GDC with the correct alternative hypothesis.
I can choose between a one-tailed and a two-tailed test from the wording of a claim.
I can state the assumptions of the t-test and the expected-frequency condition for chi-squared tests.
I can write a conclusion in context that does not claim to prove .
I can identify which cells of a contingency table contribute most to a significant result.
57 exam-style questions on this subtopic, written in the style of the IB papers. The first has its markscheme open. Counted on
The town of Ashbury plans to build a cycle lane along its main road. Kiran, a researcher, wants to find out whether residents' opinions about the plan depend on their age. Kiran stands in the town square and interviews people until he has 50 adults in each of three age groups.
(i) Name the sampling technique used by Kiran.
(ii) State one disadvantage of this technique.
2 marks
(i) quota A1
(ii) it is not random (Kiran chooses who to ask, and only people in the town square can be chosen) OR the groups are not in proportion to the town's population R1
[2 marks]
The numbers of adults in Ashbury in each age group are 9200 (18–34 years), 13 600 (35–59 years) and 7200 (60 years and over). Find the number of adults that should be chosen from each age group for a stratified sample of 150 adults.
3 marks
total (A1)
(M1)
46, 68, 36 A1
[3 marks]
The results of Kiran's survey are shown in the following table.
Age group | Support | Oppose | Undecided |
|---|---|---|---|
18–34 years | 28 | 14 | 8 |
35–59 years | 19 | 21 | 10 |
60 years and over | 9 | 30 | 11 |
Kiran carries out a test for independence at the 5% significance level.
Write down the null hypothesis.
1 mark
: opinion about the cycle lane is independent of age group A1
[1 mark]
Write down the number of degrees of freedom.
1 mark
4 A1
[1 mark]
Show that the expected frequency of adults aged 60 years and over who support the plan is , correct to three significant figures.
2 marks
M1
A1
AG
[2 marks]
Find the -value for the test.
2 marks
⇒ A2
Note:
[2 marks]
State the conclusion of the test. Give a reason for your answer.
2 marks
R1
reject : there is sufficient evidence that opinion about the cycle lane depends on age group A1
Note: Do not award . FT from their -value.
[2 marks]
Kiran's report states that "most of the residents of Ashbury oppose the cycle lane". Comment on whether his data support this claim.
1 mark
no: the sample was not random (only people in the square), and each age group was given equal weight although the age groups are not equal in size, so the overall proportion who oppose (65 out of 150) cannot be applied to the town R1
Note: Accept any valid comment about the sampling, or noting that of the sample oppose.
[1 mark]
Harbourside Athletics Club has 300 members: 84 juniors, 156 seniors and 60 veterans.
The club secretary takes a stratified sample of 25 members to ask about training times. Find the number of seniors in the sample.
2 marks
The coach, Femi, trains two groups of sprinters with different programmes. Each sprinter chose which group to join. After eight weeks, their 100 m times, in seconds, are recorded.
Group A | 12.8 | 13.1 | 12.6 | 13.4 | 12.9 | 13.2 | 12.7 | 13.0 | |
|---|---|---|---|---|---|---|---|---|---|
Group B | 12.5 | 12.9 | 12.4 | 12.7 | 13.0 | 12.3 | 12.6 | 12.8 | 12.6 |
Find the mean and the standard deviation of the times for
(i) group A;
(ii) group B.
4 marks
Femi wants to test, at the 5% significance level, whether the mean 100 m time of sprinters following programme B is less than that of sprinters following programme A. He assumes that the times are normally distributed with equal population variances.
Write down the null and alternative hypotheses.
2 marks
Find the -value for the test.
2 marks
State the conclusion of the test. Give a reason for your answer.
2 marks
Femi claims that the test proves programme B is the better programme. Comment on this claim, with reference to how the sprinters were placed in the groups.
2 marks
A health authority records the waiting times, in minutes, of 12 randomly chosen patients at each of two clinics, A and B.
Clinic A | 18 | 22 | 25 | 27 | 29 | 31 | 32 | 34 | 36 | 38 | 41 | 47 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
Clinic B | 12 | 15 | 17 | 19 | 20 | 22 | 23 | 24 | 26 | 28 | 31 | 52 |
The waiting times for clinic A are shown in the following box-and-whisker diagram.

For the waiting times at clinic B, write down
(i) the median;
(ii) the lower quartile and the upper quartile.
3 marks
Show that the waiting time of 52 minutes at clinic B is an outlier.
2 marks
On the same scale as the diagram, draw a box-and-whisker diagram for the waiting times at clinic B.
3 marks
Make two comparisons between the waiting times at the two clinics.
2 marks
The health authority wants to test, at the 5% significance level, whether the mean waiting time at clinic B is less than at clinic A. It assumes that the waiting times at each clinic are normally distributed with equal variances.
Write down the null and alternative hypotheses.
2 marks
Find the -value for the test.
2 marks
State the conclusion of the test. Give a reason for your answer.
2 marks
With reference to your diagram for clinic B, comment on the assumption that the waiting times at clinic B are normally distributed.
1 mark
With a free account, Augment remembers where you stopped and what you have practiced.