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 7A 95% accurate test says you have a rare disease. Are you likely ill?
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
The regression line of xx on yy
To predict xx from a known yy, use the regression line of xx on yy, x=cy+dx = cy + d. Your GDC finds it if you swap the lists (put yy as the independent variable).
Both lines pass through (xˉ,yˉ)(x̄, ȳ). They are different lines unless r=±1r = ± 1.
An xx on yy line cannot reliably predict yy from xx: use yy on xx for that.
Calculate
?Six students' marks on paper 1, xx, and paper 2, yy, are (35,40)(35, 40), (42,38)(42, 38), (48,52)(48, 52), (55,47)(55, 47), (60,63)(60, 63), (68,58)(68, 58). Another student missed paper 1 but scored 45 on paper 2. Use the regression line of xx on yy to estimate their paper 1 mark. 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.
Worked exampleStatistics and probability · probability
Testing for independence
Question
P(A)=0.6P(A) = 0.6, P(B)=0.35P(B) = 0.35 and P(A∩B)=0.21P(A ∩ B) = 0.21. Determine whether AA and BB are independent.
1
State the formal test: AA and BB are independent if P(A∣B)=P(A)=P(A∣B′)P(A | B) = P(A) = P(A | B')
2
Find P(A∣B)=0.350.21=0.6P(A | B) = 0.21/0.35 = 0.6, which equals P(A)P(A)
AA and BB are independent: knowing BB happened does not change the probability of AA.
⚠️ Watch out
independent is not the same as mutually exclusive. Here P(A∩B)=0.21=0P(A ∩ B) = 0.21 ≠ 0, so they can happen together.
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
Statistics and probability · the normal distribution
Standardizing: zz-values
The standardized valuez=σx−μz = (x − μ)/σ is the number of standard deviations xx lies from the mean. A 512 g box has z=4512−505=1.75z = (512 − 505)/4 = 1.75.
If X∼N(μ,σ2)X ~ N(μ, σ²) then Z=σX−μ∼N(0,1)Z = (X − μ)/σ ~ N(0, 1), so P(X<x)=P(Z<z)P(X < x) = P(Z < z).
Unknown μμ or σσ: find zz with inverse normal on N(0,1)N(0, 1), then solve σx−μ=z(x − μ)/σ = z.
Worked exampleStatistics and probability · the normal distribution
using area 0.1 gives z=−1.2816z = −1.2816 and a negative σσ. A standard deviation can never be negative, so check which tail you used.
Calculate
?The heights of seedlings, XX cm, are modelled by X∼N(μ,62)X ~ N(μ, 6²). 20% of seedlings are shorter than 40 cm. Find μμ. Give your answer to 3 significant figures.
cm
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
A 95% accurate test says you have a rare disease. Are you likely ill?
Make a guess: A 95% accurate test says you have a rare disease. Are you likely ill?
Statistics and probability · Bayes' theorem and random variables
Bayes' theorem
Bayes' theorem reverses a conditional probability: from P(A∣B)P(A | B) to P(B∣A)P(B | A).
P(B∣A)=P(B)P(A∣B)+P(B′)P(A∣B′)P(B)P(A∣B)P(B | A) = (P(B)P(A | B))/(P(B)P(A | B) + P(B')P(A | B'))
The denominator is P(A)P(A): add every branch of the tree that ends in AA.
With three exclusive, exhaustive events B1,B2,B3B₁, B₂, B₃:
Worked exampleStatistics and probability · Bayes' theorem and random variables
Which machine made the faulty item?
Question
Machines A, B and C make 50%, 30% and 20% of a factory's items. Of their items, 2%, 3% and 5% are faulty. An item chosen at random is faulty. Find the probability that it was made by machine C.
1
Multiply along each branch ending in "faulty": 0.5×0.02=0.0100.5 × 0.02 = 0.010, 0.3×0.03=0.0090.3 × 0.03 = 0.009, 0.2×0.05=0.0100.2 × 0.05 = 0.010
2
Add to get P(F)P(F): 0.010+0.009+0.010=0.0290.010 + 0.009 + 0.010 = 0.029
3
Divide the C branch by the total: P(C∣F)=0.0290.010=0.345P(C | F) = 0.010/0.029 = 0.345 (3 sf)
Answer
P(C∣F)=2910≈0.345P(C | F) = 10/29 ≈ 0.345
⚠️ Watch out
P(F∣C)=0.05P(F | C) = 0.05 is the given rate for machine C; it is not P(C∣F)P(C | F).
Calculate
?On a school day it rains with probability 0.3. If it rains, the bus is late with probability 0.4; if not, the bus is late with probability 0.1. Given that the bus is late, find the probability that it rained. Give your answer to 3 significant figures.
Statistics and probability · Bayes' theorem and random variables
Variance and linear transformations
For a discrete random variable XX, E(X2)=∑x2P(X=x)E(X²) = Σ x² P(X = x) and
Var(X)=E(X2)−[E(X)]2Var(X) = E(X²) − [E(X)]²
The standard deviation is Var(X)√(Var(X)).
Linear transformations: E(aX+b)=aE(X)+bE(aX + b) = aE(X) + b and Var(aX+b)=a2Var(X)Var(aX + b) = a²Var(X). Adding a constant shifts the mean but not the spread.
Calculate
?XX has this probability distribution.
xx
0
1
2
3
P(X=x)P(X=x)
0.2
0.4
0.3
0.1
Find Var(2X+5)Var(2X + 5). Give your answer as a decimal.
Statistics and probability · Bayes' theorem and random variables
Continuous random variables
A probability density function has f(x)≥0f(x) ≥ 0 and ∫−∞∞f(x)dx=1∫_(−∞)^(∞) f(x) dx = 1; it may be piecewise and is 0 outside its domain. P(a<X<b)=∫abf(x)dxP(a < X < b) = ∫_a^b f(x) dx.
Mode: where f(x)f(x) is greatest. Medianmm: ∫−∞mf(x)dx=21∫_(−∞)^m f(x) dx = 1/2.
E(X)=∫xf(x)dxE(X) = ∫ x f(x) dx, E(X2)=∫x2f(x)dxE(X²) = ∫ x² f(x) dx and Var(X)=E(X2)−[E(X)]2Var(X) = E(X²) − [E(X)]².
Worked exampleStatistics and probability · Bayes' theorem and random variables
A pdf from start to finish
Question
XX has pdf f(x)=kx2f(x) = kx² for 0≤x≤30 ≤ x ≤ 3, and f(x)=0f(x) = 0 otherwise. Find kk, the mode, the median, E(X)E(X) and Var(X)Var(X).
1
Total area is 1: ∫03kx2dx=9k=1∫₀³ kx² dx = 9k = 1, so k=91k = 1/9
2
Mode: ff increases on [0,3][0, 3], so its maximum is at x=3x = 3
the median is not halfway along the domain. Only 811/8 of the probability lies below 1.5.
Calculate
?XX has pdf f(x)=k(4−x)f(x) = k(4 − x) for 0≤x≤40 ≤ x ≤ 4, and f(x)=0f(x) = 0 otherwise. Find the median of XX. Give your answer to 3 significant figures.
Quick check
?Which function is a valid probability density function on 0≤x≤20 ≤ x ≤ 2 (and 0 elsewhere)?
Mission check
?1 in 100 people have a disease. The test is positive for 95% of people with it and negative for 95% of people without it. You test positive. How likely is it that you have the disease?
P(D∣+)=0.01×0.95+0.99×0.050.01×0.95=0.0590.0095≈0.161P(D | +) = (0.01 × 0.95)/(0.01 × 0.95 + 0.99 × 0.05) = 0.0095/0.059 ≈ 0.161. In 10,000 people, 95 of the 100 who are ill test positive, but so do 495 of the 9,900 who are well. Because the disease is rare, false positives outnumber true ones, so a positive result still leaves you more likely to be healthy.
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.
To predict xx from yy, use the regression line of xx on yy.
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.
AA and BB are independent exactly when P(A∣B)=P(A)=P(A∣B′)P(A | B) = P(A) = P(A | B').
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.
z=σx−μz = (x − μ)/σ counts standard deviations from the mean; use it with inverse normal on N(0,1)N(0, 1) to find an unknown μμ or σσ.
Bayes' theorem: P(B∣A)P(B | A) is the branch through BB ending in AA, divided by all branches ending in AA; with a rare condition, false positives can dominate.
A pdf has f(x)≥0f(x) ≥ 0 and total area 1; integrate for probabilities, the median (area 211/2), E(X)E(X) and E(X2)E(X²); the mode is where ff is greatest.
🏆
Mini-lesson complete!
⭐⭐⭐
You've worked through Statistics & Probability for IB Diploma Mathematics: Analysis & Approaches 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 7A 95% accurate test says you have a rare disease. Are you likely ill?