7 missions. Guess, learn, then check. Your place is saved.
Mission 1A gym survey finds 90% of people exercise daily. What went wrong?
Mission 2Give everyone a £100 pay rise. What happens to the standard deviation?
Mission 3Ice-cream sales and drownings rise together. Does one cause the other?
Mission 4In a class of 30, how likely is it that two share a birthday?
Mission 5A £1 dice game pays out £5 if you roll a six. Is the game fair?
Mission 6Heights average 170 cm. How rare is someone over 2 metres tall?
Mission 7Are left-handers more likely to play tennis? How could you test it?
The specification points and sources are listed under the lesson: see Sources.
Mission 1
A gym survey finds 90% of people exercise daily. What went wrong?
Make a guess: A gym survey finds 90% of people exercise daily. What went wrong?
Statistics and probability · collecting and presenting data
Population, sample and types of data
The population is the whole group you want to know about. A sample is the part you collect data from.
In a random sample every member of the population has an equal chance of being chosen.
A sample that over- or under-represents part of the population is biased.
Discrete data are counted (goals, siblings). Continuous data are measured and can take any value in a range (time, mass).
Check reliability: deal with missing values and recording errors first.
Statistics and probability · collecting and presenting data
Sampling techniques
Technique
How it works
Random?
Simple random
Every member has an equal chance (number everyone, use random numbers)
Yes
Systematic
Pick a random start, then every kkth member from a list
Yes, if the list has no pattern
Stratified
Split into groups (strata); sample each group in proportion to its size, at random
Yes
Quota
Fill a fixed number from each group, choosing whoever is available
No
Convenience
Ask whoever is easiest to reach
No
Non-random methods are quicker but more likely to be biased.
Quick check
?A researcher stands in a shopping centre and interviews shoppers until she has spoken to 20 men and 20 women. Which sampling technique is this?
Worked exampleStatistics and probability · collecting and presenting data
Choosing a stratified sample
Question
A company employs 180 office staff, 120 warehouse staff and 60 drivers. A stratified sample of 30 employees is chosen. How many should be drivers?
1
Find the population size: 180+120+60=360180 + 120 + 60 = 360
2
Write the drivers' share of the population: 36060=6160/360 = 1/6
3
Take the same share of the sample: 61×30=51/6 × 30 = 5
4
Check the other strata add up: office 360180×30=15180/360 × 30 = 15, warehouse 360120×30=10120/360 × 30 = 10, and 15+10+5=3015 + 10 + 5 = 30
Answer
5 drivers
⚠️ Watch out
splitting the sample equally (10 from each group) ignores the group sizes. Stratified samples are proportional.
Calculate
?A tennis club has 84 junior, 126 senior and 70 veteran members. The coach chooses a stratified sample of 40 members to survey about new court times. How many senior members should be in the sample?
Statistics and probability · collecting and presenting data
Cumulative frequency, box plots and outliers
Classes are inequalities with no gaps (10≤t<2010 ≤ t < 20). A histogram uses equal class widths, frequency upwards.
Cumulative frequency: plot running totals at upper class ends. Read the median at 2nn/2, Q1Q₁ at 4nn/4, Q3Q₃ at 43n3n/4, the ppth percentile at p%p% of nn. IQR=Q3−Q1IQR = Q₃ − Q₁.
An outlier is over 1.5×IQR1.5 × IQR from the nearest quartile: mark it with a cross. A symmetric box plot suggests possible normality.
Compare box plots by median (average) and IQR or range (spread).
Worked exampleStatistics and probability · collecting and presenting data
Checking for outliers
Question
Test scores have Q1=52Q₁ = 52 and Q3=68Q₃ = 68. The lowest score is 25 and the highest is 90. Is either an outlier?
1
Find the IQR: 68−52=1668 − 52 = 16
2
Find 1.5×IQR1.5 × IQR: 1.5×16=241.5 × 16 = 24
3
Lower boundary: 52−24=2852 − 24 = 28. Since 25<2825 < 28, the score 25 is an outlier
4
Upper boundary: 68+24=9268 + 24 = 92. Since 90<9290 < 92, the score 90 is not
Answer
25 is an outlier (marked with a cross); 90 is not.
⚠️ Watch out
measure from the nearest quartile, not from the median. Then decide in context: 25 may be a genuine low score, or a recording error.
Calculate
?The cumulative frequency graph shows the weekly revision times of 80 students. Use it to find the interquartile range.
hours
Quick check
?The box plots show the test scores of two classes, Ash and Birch. Which comparison is correct?
Mission check
?A survey at a gym finds 90% of the people asked exercise daily. Why can't you conclude that 90% of all adults do?
The population is all adults, but the sample came only from people at a gym. That convenience sample is biased: it over-represents people who exercise, and asking more people at the same gym would not remove the bias. A random or stratified sample of all adults would.
Mission 2
Give everyone a £100 pay rise. What happens to the standard deviation?
Make a guess: Give everyone a £100 pay rise. What happens to the standard deviation?
Statistics and probability · averages and spread
Mean, median and mode
Mean: add the values and divide by how many there are.
xˉ=n∑xor, from a frequency table,xˉ=∑f∑fxx̄ = (Σ x)/n or, from a frequency table, x̄ = (Σ fx)/(Σ f)
Median: the middle value when the data are in order, at position 2n+1(n+1)/2.
Mode: the most frequent value.
In IB SL questions the data set is treated as the whole population unless the question says otherwise.
Calculate
?The table shows the number of goals a team scored in each of 20 matches. Find the mean number of goals per match. Give your answer as a decimal.
Goals, xx
0
1
2
3
4
Frequency, ff
4
7
5
3
1
Statistics and probability · averages and spread
Grouped data
When data are grouped you don't know the exact values, so use each class's mid-interval value as xx.
Estimated mean =∑f∑fx= (Σ fx)/(Σ f) with xx the mid-interval values. It is an estimate, not exact.
The modal class is the class with the highest frequency (equal class widths only).
Worked exampleStatistics and probability · averages and spread
Estimating a mean from grouped data
Question
The times, tt minutes, that 40 people waited at a clinic are grouped below. Estimate the mean waiting time and state the modal class. 0≤t<100 ≤ t < 10: 5 people; 10≤t<2010 ≤ t < 20: 12; 20≤t<3020 ≤ t < 30: 15; 30≤t<4030 ≤ t < 40: 8.
Divide by the total frequency: 40860=21.5860/40 = 21.5
4
Pick the class with the highest frequency (15): 20≤t<3020 ≤ t < 30
Answer
estimated mean 21.5 minutes; modal class 20≤t<3020 ≤ t < 30
⚠️ Watch out
using the lower class boundaries (0, 10, 20, 30) gives 16.5, an underestimate. Use the midpoints.
Statistics and probability · averages and spread
Measuring spread
Range = largest − smallest. IQR=Q3−Q1= Q₃ − Q₁, the spread of the middle half; outliers do not affect it.
Standard deviationσσ measures the typical distance of the values from the mean. Variance=σ2= σ².
Find σσ with your GDC's one-variable statistics. Treat the data as the population and use σxσ_x, not the sample value sxs_x.
Find quartiles of discrete data on your GDC too. Methods differ, so a hand answer may not match exactly.
Calculate
?Use your GDC to find the standard deviation of the data 4, 7, 7, 9, 13. Give your answer to 3 significant figures.
Statistics and probability · averages and spread
Changing every value
Add or subtract a constant cc: the mean, median and quartiles move by cc. The standard deviation, IQR and range do not change, because every gap stays the same.
Multiply by a positive constant kk: the mean and the standard deviation are both multiplied by kk. The variance is multiplied by k2k².
Do multiplication and addition in the order the question gives them.
Quick check
?A data set has mean 40 and standard deviation 6. Every value is multiplied by 3 and then 5 is subtracted. What are the new mean and standard deviation?
Calculate
?The mean mass of 12 parcels is 15 kg. When one more parcel is added, the mean mass of the 13 parcels is 16 kg. Find the mass of the extra parcel.
kg
Mission check
?Salaries at a firm have mean £2,400 and standard deviation £300. Everyone gets a £100 rise. What are the new mean and standard deviation?
Adding a constant shifts every value by the same amount. The mean rises by £100 to £2,500, but every distance from the mean stays the same, so the standard deviation stays £300. Only multiplying (for example a 5% rise for everyone) would change the standard deviation.
Mission 3
Ice-cream sales and drownings rise together. Does one cause the other?
Make a guess: Ice-cream sales and drownings rise together. Does one cause the other?
Statistics and probability · correlation and regression
Scatter diagrams and correlation
A scatter diagram shows bivariate data. Describe the pattern as positive, negative or no correlation, and as strong or weak.
Pearson's product-moment correlation coefficientrr measures linear correlation: −1≤r≤1−1 ≤ r ≤ 1. Find it with your GDC.
rr near 1 or −1−1: strong linear correlation. rr near 0: no linear correlation (there may still be a curved relationship).
Correlation does not imply causation. A third variable may drive both.
Sort it
?True or false?
Tap a statement, then tap the group it belongs in. Then press Check.
Statistics and probability · correlation and regression
The regression line of yy on xx
Your GDC gives the regression line of yy on xx, y=ax+by = ax + b. It always passes through (xˉ,yˉ)(x̄, ȳ).
aa is the gradient: the change in yy for each increase of 1 in xx. bb is the value of yy when x=0x = 0, which may have no meaning in context.
Use it to predict yy from a given xxinside the data range. Predicting outside it is extrapolation and may be unreliable.
Don't rearrange a yy on xx line to predict xx from yy.
Worked exampleStatistics and probability · correlation and regression
Making a prediction
Question
Six students recorded weekly revision time, xx hours, and test score, yy. The data are (1,42)(1, 42), (3,50)(3, 50), (4,57)(4, 57), (6,61)(6, 61), (8,70)(8, 70), (10,78)(10, 78). Use your GDC to find rr and the regression line of yy on xx. Hence predict the score for 7 hours.
1
Enter xx and yy in two lists and run linear regression: r=0.995r = 0.995 (3 sf)
2
Read off the line: y=3.92x+38.8y = 3.92x + 38.8 (3 sf)
3
Interpret: rr is close to 1, so strong positive linear correlation; prediction is reasonable
4
Check 7 is inside the data range (1 to 10), then substitute: y=3.92×7+38.8≈66.2y = 3.92 × 7 + 38.8 ≈ 66.2
use the unrounded values stored in your GDC for the prediction. Here both give 66.2, but rounding early can change the third significant figure.
Calculate
?The age of a car, xx years, and its value, yy thousand pounds, are (2,9)(2, 9), (4,8)(4, 8), (6,6)(6, 6), (8,5)(8, 5), (10,2)(10, 2). Use your GDC to find Pearson's correlation coefficient rr. Give your answer to 3 significant figures.
Quick check
?For puppies aged 2 to 16 weeks, the regression line of mass mm kg on age ww weeks is m=0.42w+1.3m = 0.42w + 1.3. Which statement is valid?
Calculate
?On 14 summer days a kiosk recorded the maximum temperature, xx °C, and the number of cold drinks sold, yy. The regression line of yy on xx is y=1.85x+12.4y = 1.85x + 12.4. The mean temperature was 20 °C. Find the mean number of drinks sold per day.
Statistics and probability · correlation and regression
Spearman's rank correlation
Spearman's rank correlation coefficientrsr_s: rank each variable separately, then find Pearson's rr for the ranks. Use your GDC.
Tied values share the average of the ranks they occupy: two values in 2nd and 3rd place both get 2.5.
rs=1r_s = 1 or −1−1 for any monotonic relationship (always increasing or always decreasing), even a curved one. Pearson's rr only measures linearity.
rsr_s is less sensitive to outliers than rr.
Calculate
?On six days a beach kiosk recorded hours of sunshine, xx, and ice lollies sold, yy: (3,20)(3, 20), (5,18)(5, 18), (5,25)(5, 25), (8,30)(8, 30), (9,28)(9, 28), (12,35)(12, 35). Find Spearman's rank correlation coefficient rsr_s. Give your answer to 3 significant figures.
Mission check
?In a seaside town, monthly ice-cream sales and drownings have r=0.87r = 0.87. Does buying ice cream cause drownings?
Correlation does not imply causation. Both variables rise in hot weather: more people buy ice cream and more people swim. The weather is a third (confounding) variable, so the strong correlation tells you nothing about one causing the other.
Mission 4
In a class of 30, how likely is it that two share a birthday?
Make a guess: In a class of 30, how likely is it that two share a birthday?
Statistics and probability · probability
Sample spaces and events
A trial has outcomes; the set of all outcomes is the sample spaceUU; an event is a set of outcomes.
For equally likely outcomes:
P(A)=n(U)n(A)P(A) = (n(A))/(n(U))
The complementA′A' means "not AA": P(A′)=1−P(A)P(A') = 1 − P(A).
Relative frequency (successes ÷ trials) estimates a probability from an experiment.
Expected number of occurrences in nn trials =n×P(A)= n × P(A).
Calculate
?Two fair six-sided dice are rolled together 180 times. Find the expected number of times the total is 8.
Statistics and probability · probability
Combined and conditional probability
"AA or BB" includes both, so subtract the overlap once:
P(A∪B)=P(A)+P(B)−P(A∩B)P(A ∪ B) = P(A) + P(B) − P(A ∩ B)
Conditional probability ("AA given BB") restricts you to BB: P(A∣B)=P(B)P(A∩B)P(A | B) = (P(A ∩ B))/(P(B)).
Independent events don't affect each other: P(A∩B)=P(A)P(B)P(A ∩ B) = P(A) P(B).
Worked exampleStatistics and probability · probability
Using a Venn diagram
Question
In a group of 40 students, 22 study Biology (BB), 15 study Chemistry (CC) and 8 study both. A student is chosen at random. Find P(B∪C)P(B ∪ C) and P(C∣B)P(C | B).
Given Biology, only the 22 Biology students count: P(C∣B)=228=114≈0.364P(C | B) = 8/22 = 4/11 ≈ 0.364
Answer
P(B∪C)=0.725P(B ∪ C) = 0.725; P(C∣B)=114≈0.364P(C | B) = 4/11 ≈ 0.364
⚠️ Watch out
22+15=3722 + 15 = 37 counts the 8 students who study both twice.
Quick check
?P(A)=0.5P(A) = 0.5, P(B)=0.4P(B) = 0.4 and P(A∩B)=0.2P(A ∩ B) = 0.2. Find P(A∣B)P(A | B).
Statistics and probability · probability
Tree diagrams and "without replacement"
On a tree diagram, multiply along the branches for "this and then that", and add the end results for "either path".
Each set of branches from one point adds to 1.
Without replacement, the second-stage probabilities change: there is one fewer item, and one fewer of the kind you took.
For "at least one", it is often quicker to use 1−P(none)1 − P(none).
Worked exampleStatistics and probability · probability
Two picks without replacement
Question
A bag holds 5 red and 3 blue counters. Two counters are taken at random without replacement. Find the probability that they are different colours.
1
Red then blue: 85×73=56155/8 × 3/7 = 15/56
2
Blue then red: 83×75=56153/8 × 5/7 = 15/56
3
Add the two paths: 5615+5615=5630=281515/56 + 15/56 = 30/56 = 15/28
Answer
2815≈0.53615/28 ≈ 0.536
⚠️ Watch out
with replacement the answer would be 2×85×83=0.4692 × 5/8 × 3/8 = 0.469. Read the question to see which applies.
Calculate
?A box contains 10 batteries, 3 of which are flat. A torch needs 2 batteries, chosen at random without replacement. Find the probability that at least one of them is flat. Give your answer to 3 significant figures.
Mission check
?Assume 365 equally likely birthdays. Find the probability that at least two of 30 people share a birthday.
Use the complement. The probability that all 30 birthdays differ is 365365×365364×⋯×365336≈0.294365/365 × 364/365 × ⋯ × 336/365 ≈ 0.294, because each new person has one fewer free day, just like picking without replacement. So P(at least one shared)=1−0.294=0.706P(at least one shared) = 1 − 0.294 = 0.706: better than a 70% chance. There are 435 possible pairs in a class of 30, which is why a match is so likely.
Mission 5
A £1 dice game pays out £5 if you roll a six. Is the game fair?
Make a guess: A £1 dice game pays out £5 if you roll a six. Is the game fair?
Statistics and probability · discrete random variables
Discrete random variables
A discrete random variableXX takes separate values, each with a probability. Write a value as xx and its probability as P(X=x)P(X=x).
The probability distribution lists every value with its probability, in a table or by a formula, e.g. P(X=x)=181(4+x)P(X=x) = 1/18(4+x) for x∈{1,2,3}x ∈ {1, 2, 3}.
The probabilities are all between 0 and 1 and sum to 1: 185+186+187=15/18 + 6/18 + 7/18 = 1. Use this to find an unknown probability.
Calculate
?The random variable XX has this probability distribution.
xx
0
1
2
3
P(X=x)P(X=x)
0.2
kk
0.3
0.1
Find E(X)E(X). Give your answer as a decimal.
Statistics and probability · discrete random variables
Expected value and fair games
The expected value (mean) is the long-run average value of XX:
E(X)=∑xP(X=x)E(X) = Σ x P(X=x)
E(X)E(X) need not be a value XX can take. The expected number of occurrences in nn trials is npnp: 128 students each absent with probability 0.1 gives 12.8 absent on average.
In a game, let XX be the player's gain (winnings minus the cost to play). The game is fair when E(X)=0E(X) = 0.
Worked exampleStatistics and probability · discrete random variables
Is the counter game fair?
Question
A bag holds 10 counters: 1 gold, 3 silver and 6 red. It costs £2 to draw one counter at random. Gold wins £10, silver wins £3 and red wins nothing. The £2 is not returned. Is the game fair?
1
Define the gain XX in pounds as prize minus £2: gold 88, silver 11, red −2−2
E(X)=−0.1=0E(X) = −0.1 ≠ 0, so the game is not fair. A player loses 10p per game on average.
⚠️ Watch out
using the prizes £10 and £3 as the gains while still counting −2−2 for red gives 0.70.7. Take the cost off every outcome, wins included.
Calculate
?The organiser of the counter game in the example wants it to be fair. The silver prize stays at £3 and red still wins nothing. Find the prize, in pounds, that gold should win.
£
Statistics and probability · discrete random variables
The binomial distribution
Use X∼B(n,p)X ~ B(n, p) when there is a fixed numbernn of trials, each with two outcomes (success or failure), the trials are independent, and the probability of success pp is constant. XX counts the successes.
P(X=r)=(rn)pr(1−p)n−rP(X = r) = C(n, r)p^r(1−p)^(n−r). Find probabilities with your GDC: binomial pdf gives P(X=r)P(X = r), binomial cdf gives P(X≤r)P(X ≤ r).
MeanE(X)=npE(X) = np and varianceVar(X)=np(1−p)Var(X) = np(1−p).
Worked exampleStatistics and probability · discrete random variables
Sixes in ten rolls
Question
A fair six-sided die is rolled 10 times. XX is the number of sixes. Find E(X)E(X), Var(X)Var(X), P(X=2)P(X = 2) and P(X≥3)P(X ≥ 3).
1
Check the conditions: 10 independent rolls, six or not, p=61p = 1/6 each time, so X∼B(10,61)X ~ B(10, 1/6)
2
Mean and variance: E(X)=10×61=1.67E(X) = 10 × 1/6 = 1.67 and Var(X)=10×61×65=1.39Var(X) = 10 × 1/6 × 5/6 = 1.39 (3 sf)
3
Use binomial pdf with n=10n = 10, p=61p = 1/6, r=2r = 2: P(X=2)=0.291P(X = 2) = 0.291
4
Use the complement with binomial cdf: P(X≥3)=1−P(X≤2)=0.225P(X ≥ 3) = 1 − P(X ≤ 2) = 0.225
Tap a statement, then tap the group it belongs in. Then press Check.
Calculate
?A quiz has 20 multiple-choice questions, each with 4 options and one correct answer. Noor guesses every answer at random. The pass mark is 8 correct answers. Use your GDC to find the probability that Noor passes. Give your answer to 3 significant figures.
Mission check
?A game costs £1 a go. Roll a fair die: a six wins £5 and the £1 is not returned. Is the game fair?
Let XX be the player's gain: X=4X = 4 with probability 611/6 and X=−1X = −1 with probability 655/6. Then E(X)=64−65=−61E(X) = 4/6 − 5/6 = −1/6, so the player loses about 17p a game in the long run and the game is not fair. A £6 payout would make E(X)=0E(X) = 0.
Mission 6
Heights average 170 cm. How rare is someone over 2 metres tall?
Make a guess: Heights average 170 cm. How rare is someone over 2 metres tall?
Statistics and probability · the normal distribution
The normal curve
X∼N(μ,σ2)X ~ N(μ, σ²) has a bell-shaped curve, symmetric about the mean μμ, so mean, median and mode are equal. The second parameter is the variance σ2σ².
Probabilities are areas under the curve; the total area is 1. Many measurements (lengths, masses, times) are close to normal.
About 68% of values lie within μ±σμ ± σ, 95% within μ±2σμ ± 2σ and 99.7% within μ±3σμ ± 3σ.
Quick check
?X∼N(50,42)X ~ N(50, 4²). Use the 68–95–99.7 rule to estimate P(X>58)P(X > 58).
Statistics and probability · the normal distribution
Probabilities and inverse normal on your GDC
Sketch first: draw the curve, mark μμ and shade the area you want.
Normal cdf needs a lower bound, an upper bound, μμ and σσ. With no lower limit enter a huge negative number such as −1099−10⁹⁹; with no upper limit, 109910⁹⁹.
Inverse normal takes an area and returns the value xx with that area to its left (unless you set the tail). For the top 5%, enter 0.95.
P(X=a)=0P(X = a) = 0 for a continuous variable, so P(X<a)=P(X≤a)P(X < a) = P(X ≤ a).
Worked exampleStatistics and probability · the normal distribution
Cereal boxes
Question
The mass of cereal in a box is XX grams, where X∼N(505,42)X ~ N(505, 4²). Find P(X<500)P(X < 500) and P(500<X<510)P(500 < X < 510). The heaviest 5% of boxes are checked by hand. Find the lightest mass that is checked.
1
Use normal cdf from −1099−10⁹⁹ to 500 with μ=505μ = 505, σ=4σ = 4: P(X<500)=0.106P(X < 500) = 0.106
2
Use normal cdf from 500 to 510: P(500<X<510)=0.789P(500 < X < 510) = 0.789
3
The heaviest 5% have 0.95 of the area to their left. Use inverse normal with area 0.95: m=511.58…m = 511.58…
Answer
P(X<500)=0.106P(X < 500) = 0.106, P(500<X<510)=0.789P(500 < X < 510) = 0.789, and the lightest mass checked is 512 g (3 sf).
⚠️ Watch out
entering 0.05 in inverse normal gives 498 g, the cut-off for the lightest 5%.
Calculate
?The journey time of a bus, TT minutes, is modelled by T∼N(42,52)T ~ N(42, 5²). Use your GDC to find the probability that a journey takes more than 50 minutes. Give your answer to 3 significant figures.
Calculate
?For the same bus, T∼N(42,52)T ~ N(42, 5²). The company says that 90% of journeys take less than aa minutes. Find aa. Give your answer to 3 significant figures.
minutes
Mission check
?Adult heights in a town are modelled by N(170,7.52)N(170, 7.5²) in cm. How rare is someone over 2 m (200 cm) tall?
200 cm is 7.5200−170=4(200 − 170)/7.5 = 4 standard deviations above the mean. Normal cdf from 200 to 109910⁹⁹ gives P(H>200)≈3.17×10−5P(H > 200) ≈ 3.17 × 10⁻⁵, about 1 person in 32,000. The tails of the normal curve thin out very fast: each extra standard deviation makes a value far rarer.
Mission 7
Are left-handers more likely to play tennis? How could you test it?
Make a guess: Are left-handers more likely to play tennis? How could you test it?
Statistics and probability · hypothesis tests
Hypotheses, significance and pp-values
The null hypothesisH0H₀ is the "no effect" claim: no association, or equal means. The alternative hypothesisH1H₁ is what you are looking for evidence of.
Fix the significance level (1%, 5% or 10%) before testing.
The pp-value is the probability of a result at least as extreme as yours, assuming H0H₀ is true.
If pp-value << significance level, reject H0H₀. Otherwise there is insufficient evidence to reject H0H₀. Conclude in context; a test never proves H0H₀.
Statistics and probability · hypothesis tests
The χ2chi² test for independence
Data in a contingency table. H0H₀: the two variables are independent. H1H₁: they are not independent.
Expected frequency=grand totalrow total×column total= (row total × column total)/(grand total). Each should be greater than 5.
Degrees of freedom=(r−1)(c−1)= (r − 1)(c − 1) for rr rows and cc columns of data. Your GDC gives χcalc2chi²_calc and the pp-value.
Reject H0H₀ if pp-value << significance level, or χcalc2>chi²_calc > the critical value.
Worked exampleStatistics and probability · hypothesis tests
Lunch choice and year group
Question
120 students chose a lunch option, as shown in the table. Year 12: hot meal 30, salad 10, sandwich 20. Year 13: hot meal 18, salad 22, sandwich 20. Test, at the 5% significance level, whether lunch choice is independent of year group. The critical value is 5.991.
1
State the hypotheses: H0H₀: lunch choice is independent of year group; H1H₁: it is not independent
2
Find the expected frequencies, e.g. Year 12 hot meal =12060×48=24= (60 × 48)/120 = 24; each row is 24, 16, 20
3
Count the degrees of freedom: (2−1)(3−1)=2(2 − 1)(3 − 1) = 2
4
Use the χ2chi² test on your GDC: χcalc2=7.5chi²_calc = 7.5, pp-value =0.0235= 0.0235
At the 5% level there is evidence that lunch choice is not independent of year group.
⚠️ Watch out
degrees of freedom count the rows and columns of data, not the totals: (2−1)(3−1)=2(2−1)(3−1) = 2, not 2×3=62 × 3 = 6.
Calculate
?A survey records age group and usual way of travelling to work.
Bus
Car
Bike
Total
Under 30
40
35
35
110
30 and over
45
55
40
140
Total
85
90
75
250
For a χ2chi² test for independence, find the expected frequency for "Under 30" and "Bike". Give the exact value.
Statistics and probability · hypothesis tests
The χ2chi² goodness of fit test
Tests whether data fit a claimed distribution (equal chances, or given proportions). H0H₀: the data fit the distribution. H1H₁: they do not.
Expected frequency == total ×× claimed probability. Use the same χcalc2chi²_calc formula.
Degrees of freedom =n−1= n − 1 for nn categories. Only upper-tail tests are used: a large χcalc2chi²_calc means a poor fit.
If you estimate a parameter of the distribution from the data (such as a mean), subtract one more degree of freedom for each parameter estimated.
Calculate
?A die is rolled 120 times to test whether it is fair.
Score
1
2
3
4
5
6
Frequency
15
22
18
25
16
24
Find χcalc2chi²_calc for a goodness of fit test with H0H₀: the die is fair. Give your answer as a decimal.
Statistics and probability · hypothesis tests
The tt-test for two means
Compares the means of two populations using two independent samples. The variables must be normally distributed; assume equal variances and use the pooled two-sample tt-test.
H0H₀: μ1=μ2μ₁ = μ₂. Two-tailed: H1H₁: μ1=μ2μ₁ ≠ μ₂. One-tailed: H1H₁: μ1>μ2μ₁ > μ₂ (or <<), when the claim has a direction.
Choose the tail from the claim before looking at the data. Your GDC gives tt and the pp-value; compare pp with the significance level.
Worked exampleStatistics and probability · hypothesis tests
Does fertiliser A grow taller plants?
Question
Plant heights (cm) after four weeks are given. Fertiliser A: 24, 27, 25, 30, 28, 26. Fertiliser B: 22, 25, 23, 26, 21, 24. Heights are normally distributed with equal variances. Test, at the 5% level, the claim that fertiliser A gives a greater mean height.
1
State the hypotheses: H0H₀: μA=μBμ_A = μ_B; H1H₁: μA>μBμ_A > μ_B (one-tailed, as the claim says "greater")
2
Enter the samples and run a pooled two-sample tt-test with H1H₁: μA>μBμ_A > μ_B: t=2.71t = 2.71, pp-value =0.0109= 0.0109
3
Compare: 0.0109<0.050.0109 < 0.05, so reject H0H₀
Answer
At the 5% level there is evidence that the mean height with fertiliser A is greater than with fertiliser B.
⚠️ Watch out
a two-tailed test (μA=μBμ_A ≠ μ_B) gives p=0.0218p = 0.0218, double the one-tailed value. Set the tail and "pooled" on your GDC before running the test.
Sort it
?Which test fits each question?
Tap a statement, then tap the group it belongs in. Then press Check.
Mission check
?Are left-handers more likely to play tennis? How could you test it?
Survey a random sample and record each person's handedness and main sport in a contingency table. Test H0H₀: handedness and sport are independent, using χcalc2=∑fe(fo−fe)2chi²_calc = Σ ((f_o − f_e)²)/f_e and its pp-value. If pp is below the significance level, reject H0H₀; then see whether left-handed tennis players are above their expected count. Even then you have evidence of an association, not proof of a cause.
Recap
Big ideas
A sample should represent its population: random and stratified samples reduce bias; convenience and quota samples risk it.
On a cumulative frequency graph read the median at 2nn/2 and the quartiles at 4nn/4 and 43n3n/4; IQR=Q3−Q1IQR = Q₃ − Q₁.
An outlier is more than 1.5×IQR1.5 × IQR from the nearest quartile; mark it with a cross on a box plot and decide in context whether it is genuine.
Mean xˉ=∑f∑fxx̄ = (Σ fx)/(Σ f); for grouped data use mid-interval values to estimate it.
Standard deviation measures typical distance from the mean; find it on your GDC using the population value σxσ_x; variance =σ2= σ².
Adding a constant shifts the mean but leaves the standard deviation alone; multiplying by kk multiplies both by kk.
Pearson's rr measures linear correlation, −1≤r≤1−1 ≤ r ≤ 1; correlation does not imply causation.
The regression line of yy on xx passes through (xˉ,yˉ)(x̄, ȳ); use it to predict yy from xx within the data range, and interpret aa as the change in yy per unit of xx.
Spearman's rsr_s ranks the data (averaging ties), measures any monotonic relationship and is less affected by outliers.
P(A∪B)=P(A)+P(B)−P(A∩B)P(A ∪ B) = P(A) + P(B) − P(A ∩ B) and P(A∣B)=P(B)P(A∩B)P(A | B) = (P(A ∩ B))/(P(B)); Venn diagrams and trees do the bookkeeping.
For "at least one", find 1−P(none)1 − P(none). Without replacement, later probabilities change: multiply along branches, add between paths.
A discrete random variable has a distribution whose probabilities sum to 1; E(X)=∑xP(X=x)E(X) = Σ x P(X=x) is its long-run mean.
With XX as the player's gain (prize minus cost), a game is fair when E(X)=0E(X) = 0.
X∼B(n,p)X ~ B(n, p) needs a fixed number of independent success-or-failure trials with constant pp; E(X)=npE(X) = np, Var(X)=np(1−p)Var(X) = np(1−p), and probabilities come from your GDC.
X∼N(μ,σ2)X ~ N(μ, σ²) is symmetric about μμ; about 68%, 95% and 99.7% of values lie within 1, 2 and 3 standard deviations of the mean.
Sketch and shade, then use normal cdf for a probability and inverse normal (area to the left) for a value.
State H0H₀ (no effect) and H1H₁, fix the significance level, and reject H0H₀ only if the pp-value is smaller (or the statistic beats the critical value).
χ2chi² tests compare observed with expected frequencies: independence uses (r−1)(c−1)(r−1)(c−1) degrees of freedom, goodness of fit uses n−1n − 1.
The pooled two-sample tt-test compares two means of normal data; pick one- or two-tailed from the claim.
🏆
Mini-lesson complete!
⭐⭐⭐
You've worked through Statistics & Probability (AI HL) for IB Diploma Mathematics: Applications & Interpretation HL. 🎉
Mission 1A gym survey finds 90% of people exercise daily. What went wrong?
Mission 2Give everyone a £100 pay rise. What happens to the standard deviation?
Mission 3Ice-cream sales and drownings rise together. Does one cause the other?
Mission 4In a class of 30, how likely is it that two share a birthday?
Mission 5A £1 dice game pays out £5 if you roll a six. Is the game fair?
Mission 6Heights average 170 cm. How rare is someone over 2 metres tall?
Mission 7Are left-handers more likely to play tennis? How could you test it?