Contents
  1. Unit 1: Exploring One-Variable Data
  2. Unit 1 Practice 1
  3. Unit 1 Practice 2
  4. Unit 1 Practice 3
  5. Unit 2: Exploring Two-Variable Data
  6. Unit 2 Practice 1
  7. Unit 2 Practice 2
  8. Unit 2 Practice 3
  9. Unit 3: Collecting Data
  10. Unit 3 Practice 1
  11. Unit 3 Practice 2
  12. Unit 3 Practice 3
  13. Unit 4: Probability, Random Variables and Probability Distributions
  14. Unit 4 Practice 1: Probability
  15. Unit 4 Practice 2: Random Variables
  16. Unit 4 Practice 3: Mixed Review
  17. Exam Tips
  18. Flashcards

AP Statistics: Lecture Notes

These are the notes of my AP Statistics lectures, organised by the units of the official AP course. The examples are the ones we worked through on the board. Every unit ends with three practice sets, each with a 15-question multiple-choice quiz that checks your answers and AP-style free-response questions with full solutions. Try each question on paper before opening the solution.

Unit Topic Status
1 Exploring One-Variable Data covered
2 Exploring Two-Variable Data covered
3 Collecting Data covered
4 Probability, Random Variables and Probability Distributions covered
5–9 Sampling distributions and inference coming later

Unit 1: Exploring One-Variable Data

The Big Picture

The course has three big parts:

  1. Exploratory data analysis (Units 1–2): looking at data, drawing it and summarising it with numbers.
  2. Probability (Units 4–5): the mathematics of chance, which tells us how much samples vary.
  3. Inference (Units 6–9): using a sample to draw conclusions about a whole population.

In the same way, statistics itself splits into two kinds:

  • Descriptive statistics describes the data we actually have.
  • Inferential statistics uses the data we have (a sample) to say something about data we do not have (the population).

Population, Sample, Parameter, Statistic

  • The population is the whole group we are interested in. A number that describes the population is a parameter.
  • A sample is the part of the population we actually observe. A number calculated from the sample is a statistic.

An easy way to remember: population goes with parameter, sample goes with statistic. We usually do not know the parameter; we estimate it with a statistic.

A large population with a few highlighted members forming a small sample
We study the sample to learn about the population.

Notation follows the same split: statistics get Latin letters, parameters get Greek letters.

Sample (statistic) Population (parameter)
mean x¯ μ
standard deviation sx σ
proportion p^ p

Types of Variables

  • A categorical variable puts each individual into a group: eye colour, favourite subject, city of birth. Even if the categories are written with numbers (a postcode, a jersey number), they are categorical if adding or averaging them makes no sense.
  • A quantitative variable is a number that we can do arithmetic with: height, exam score, number of siblings.

Quantitative variables are of two kinds:

  • Discrete: the possible values can be listed, usually counts. The number of heads in 20 coin flips can only be 0,1,2,…,20.
  • Continuous: any value in an interval is possible, usually measurements. A height can be 172, 172.4, 172.43 cm, …

Describing a Distribution

When you are asked to describe a distribution of quantitative data, always comment on four things, in context (name the variable and the units):

  1. Shape: symmetric or skewed, how many peaks, any gaps or clusters.
  2. Center: a typical value (mean or median).
  3. Spread: how much the values vary.
  4. Unusual features: outliers, gaps, clusters.

The common shapes:

  • Mound-shaped (bell-shaped): one peak in the middle, falling off on both sides.
  • Roughly symmetric: the left half is close to a mirror image of the right half.
  • Skewed left (negatively skewed): the long tail is on the left, most values are high.
  • Skewed right (positively skewed): the long tail is on the right, most values are low.
  • Bimodal: two clear peaks; often a sign that two different groups are mixed together.
  • Uniform: all bars roughly the same height, no peak.
Six small histograms: mound-shaped, skewed left, skewed right, bimodal, uniform, and one with a gap and an outlier
Skewness is named after the side of the tail.

The direction of skew is the direction of the tail, not of the peak.

Dotplots

Draw a number line and put one dot above it for every value; repeated values are stacked on top of each other. Dotplots are quick and show every single value, so they are best for small datasets.

Stemplots (Stem-and-Leaf Plots)

Every value is split into a stem (the leading digits) and a leaf (the last digit). The stems are written once in a column, and the leaves are written next to their stem, in order.

Always give a key. Without it, nobody knows what the numbers mean:

Key Means
3∣5 35
28∣1 28.1
2∣1 0.0021 (if the key says so)
  • Split stems: when there are too few stems, each stem is used twice: once for leaves 0–4 and once for leaves 5–9. This stretches the plot so the shape becomes visible.
  • Back-to-back stemplot: two datasets share one column of stems; one set of leaves goes to the left, the other to the right. It is a quick way to compare two groups. One key works for both sides (for example 1∣5 means 15).

A stemplot is a histogram turned on its side that still keeps the actual values.

A stemplot of class A with key 5 | 2 means 52, and a back-to-back stemplot of classes A and B sharing the stems 4 to 9
A stemplot with its key, and a back-to-back stemplot comparing two classes.

Bar Charts (Categorical Data)

The categories go on the horizontal axis; the height of each bar is the frequency (count) or the relative frequency (proportion).

Example. 25 students choose their favourite subject, and 5 of them choose mathematics. The frequency of "mathematics" is 5 and the relative frequency is

525=0.20=20%.

Bars in a bar chart are drawn with gaps between them, because the categories are separate and their order usually does not matter.

A frequency table lists each category with its count; a relative frequency table lists the proportions, which add up to 1 (up to rounding). A pie chart shows the same proportions as slices of a circle. It only works when the categories are parts of one whole, and it makes small differences hard to see, so bar charts are usually the better choice.

For categorical data, "shape" means little: the categories can be put in any order. Describe which categories are most and least common instead.

Histograms (Quantitative Data)

Split the number line into intervals of equal width (bins or classes) and draw a bar over each one whose height is the number (or proportion) of values that fall in it. A value on the boundary belongs to exactly one bin, so bins are written like 20≤x<30. There are no gaps between the bars, because the number line is continuous.

A bar chart with separated bars next to a histogram with touching bars
Favourite subjects of 25 students (Math: 5/25 = 0.20) next to a histogram: categories get separate bars, a number line gets touching bars.

TI-84 (Drawing a histogram).

  1. STAT → 1:Edit and type the data into L1.
  2. 2nd Y= (STAT PLOT) → 1:Plot1: turn it On, choose the histogram icon (third), Xlist: L1, Freq: 1.
  3. ZOOM → 9:ZoomStat draws it. TRACE and the arrow keys show each bar's interval and count.
  4. To choose the bins yourself, press WINDOW: Xmin is the left edge of the first bin and Xscl the bin width. Then press GRAPH (not ZoomStat, which would reset them).

If the data comes as a frequency table, put the values in L1, the counts in L2 and set Freq: L2.

  • The bin width changes the picture: with width 10 you see the rough shape, with width 5 you see more detail (and more noise).
  • A histogram loses the individual values: you only know how many values fall in each bin.

Example (class boundaries). A histogram has bars centred at 15,20,25,…,50. Consecutive midpoints are 5 apart, so every bar is 5 wide and the bars reach 2.5 on either side of their midpoint. The boundaries are

12.5, 17.5, 22.5, …, 52.5.

If the first three bars hold 2,3 and 5 of the 30 values, the proportion of values below 27.5 is

2+3+530=1030≈0.33.

A histogram with bars centred at 15, 20, …, 50, edges 12.5 to 52.5, and the first three bars (2, 3 and 5 values) shaded to the left of 27.5
Midpoints 5 apart give edges 2.5 either side; 10 of the 30 values lie below 27.5.

Example (normal-looking data). The heights of 100 adult women, drawn with bins such as 59≤x<61, give a roughly symmetric, mound-shaped histogram centred near 66 inches. Data like this is called approximately normal; the normal curve comes later in this unit.

A histogram of 100 women's heights with bins of width 2 from 57 to 75 inches and a bell curve over it
Heights of 100 women: roughly symmetric and mound-shaped around 66 inches.

Measures of Center

The mean (average, ortalama) adds all the values and divides by how many there are:

x¯=∑xin=x1+x2+⋯+xnn.

Example. Quiz scores 6,8,9,10,12: x¯=455=9.

A dotplot of 6, 8, 9, 10 and 12 resting on a pivot at 9, with distances −3, −1, 0, +1, +3
The mean is the balance point: the distances on the two sides cancel.

The median is the middle value of the sorted data: at least half of the values are at or below it and at least half are at or above it.

  1. Sort the data first.
  2. With n values, the median sits at position n+12.
  3. If that position is a whole number, the median is that value; if it ends in .5, the median is the mean of the two values on either side.

Example. For 10,20,30,40 we have n=4, so the position is 4+12=2.5: halfway between the 2nd and 3rd values, and the median is 20+302=25.

Sorted values in boxes with their positions; for n = 5 the third box is the median, for n = 4 the median lies between the second and third boxes
Sort first, then count to position (n + 1)/2.

n+12 is the position (index) of the median, not the median itself.

Resistance

A statistic is resistant if a few extreme values cannot change it much.

Example. For 10,20,30 the median is 20 and the mean is 20. Change the last value to 300:

10, 20, 300⇒median=20,x¯=3303=110.

The median did not move at all; the mean jumped from 20 to 110. The median is resistant, the mean is not.

Two number lines: for 10, 20, 30 the mean and median are both 20; for 10, 20, 300 the median stays at 20 while the mean moves to 110
One extreme value drags the mean, not the median.

This tells us which one to use:

  • Symmetric data: mean and median are close; either works.
  • Skewed data or data with outliers: the median describes the center better.

Mean versus median in a skewed distribution. Look at the tail: the mean is pulled toward the tail.

  • Skewed right: mean > median.
  • Skewed left: mean < median.
Three density curves with mean and median lines: left-skewed, symmetric and right-skewed
The mean follows the tail.

Estimating the Median from Grouped Data

If you only have a frequency table or a histogram, you cannot find the median exactly, but you can find which interval it is in. Add a cumulative frequency column (the running total).

Example. The quiz scores of 60 students:

Score Frequency Cumulative frequency
0≤x<10 4 4
10≤x<20 9 13
20≤x<30 15 28
30≤x<40 18 46
40≤x<50 14 60

The median is at position 60+12=30.5, between the 30th and 31st values. The cumulative frequency is 28 up to 30, and reaches 46 at 40, so the 30th and 31st values are both in 30≤x<40. The median is somewhere in that interval.

A histogram of the 60 quiz scores with the running totals 4, 13, 28, 46, 60; the 30 to 40 bar is highlighted
The running total passes 30 inside the 30–40 bar, so the median is there.

The same idea locates the quartiles. The first quartile is the median of the lower 30 values, at position 15.5; the cumulative frequency passes 15 in the third row, so Q1 is in 20≤x<30.

The mode is the most frequent value (or, in a histogram, the tallest bar). It is the only measure of center that also works for categorical data.

Measures of Spread

Two classes can have the same mean and still be very different: in one everybody scored close to 70, in the other the scores run from 30 to 100. A measure of spread (variability) tells these apart.

  • Range =max−min. Easy, but it depends on only two values, the most extreme ones, so it is not resistant.
  • Interquartile range IQR=Q3−Q1: the range of the middle half of the data. It is resistant.
  • Standard deviation sx: roughly the typical distance of the values from the mean.

The standard deviation. For each value find its deviation from the mean, xi−x¯. The deviations always add up to 0 (positive and negative ones cancel), so we square them, average them (dividing by n−1) and take the square root:

sx2=∑(xi−x¯)2n−1,sx=∑(xi−x¯)2n−1.

sx2 is the variance. For a whole population we divide by N instead and write σ.

Example. Quiz scores 6,8,9,10,12 with x¯=9:

x 6 8 9 10 12 Sum
x−x¯ −3 −1 0 1 3 0
(x−x¯)2 9 1 0 1 9 20

sx2=205−1=5,sx=5≈2.24.

Interpretation sentence (learn it): "The quiz scores typically vary by about 2.24 points from the mean of 9 points."

Facts about sx:

  • sx≥0, and sx=0 only when all values are equal.
  • It has the same units as the data (the variance has squared units).
  • Like the mean, it is not resistant: one extreme value can make it much larger.
  • On the exam use sx (sample) unless the data is a whole population.

TI-84 (One-variable statistics). STAT → CALC → 1:1-Var Stats, then List: L1 (and FreqList: L2 if the counts are in L2), Calculate. For the quiz scores 6, 8, 9, 10, 12:

1-Var Stats
 x̄=9
 Σx=45
 Σx²=425
 Sx=2.236067977
 σx=2
 n=5
 minX=6
 Q1=7
 Med=9
 Q3=11
 maxX=12

Sx is the sample standard deviation sx (divide by n−1); σx divides by n and is only for a whole population. Scroll down for the five-number summary. Write the numbers on the exam, not "1-Var Stats".

Which pair to report? Mean with standard deviation for roughly symmetric data without outliers; median with IQR for skewed data or data with outliers.

Quartiles, the Five-Number Summary and Boxplots

The quartiles split the sorted data into four parts with (about) a quarter of the values each:

  • Q1 is the median of the lower half of the data,
  • the median is Q2,
  • Q3 is the median of the upper half.

When n is odd, the median itself is left out of both halves. The five-number summary is

min,Q1,median,Q3,max.

Outliers: the 1.5⋅IQR rule. A value is an outlier if it lies more than 1.5⋅IQR beyond the quartiles, that is, outside the fences

Q1−1.5⋅IQRandQ3+1.5⋅IQR.

For roughly normal data a second rule is also used: a value more than 2 standard deviations from the mean is unusual. The two rules can disagree; say which one you use.

A boxplot draws the five-number summary: a box from Q1 to Q3 with a line at the median, and whiskers out to the smallest and largest values that are not outliers. Outliers are drawn as separate points. (This is a modified boxplot, the one the AP exam expects.)

Example. The numbers of books read last year by 15 students:

2, 5, 7, 8, 9, 10, 11, 12, 12, 13, 14, 15, 16, 18, 35.

n=15, so the median is the 8th value, 12. The lower half is 2,5,7,8,9,10,11, so Q1=8; the upper half is 12,13,14,15,16,18,35, so Q3=15. Then IQR=7, 1.5⋅7=10.5, and the fences are 8−10.5=−2.5 and 15+10.5=25.5. The value 35 is above 25.5, so it is an outlier; the upper whisker stops at 18.

TI-84 (Modified boxplot). 2nd Y= (STAT PLOT) → Plot1 → On, choose the fourth type (the boxplot with separate dots: modified), Xlist: L1, then ZOOM → 9:ZoomStat. TRACE walks along minX, Q1, Med, Q3 and maxX; outliers appear as separate squares and the whisker stops at the last value inside the fence. To compare two groups, put them in L1 and L2, switch on Plot1 and Plot2, and both boxplots appear over one axis.

A dotplot of the 15 values above a modified boxplot: box from 8 to 15, median 12, whiskers to 2 and 18, and the value 35 drawn separately beyond the upper fence 25.5
The whisker stops at the last value inside the fence; 35 is drawn on its own.

What a boxplot shows and hides:

  • It shows center (median), spread (IQR and range), skewness (a longer whisker or a longer half of the box points to the skew) and outliers.
  • It does not show gaps, clusters or the number of peaks: a bimodal distribution can have a perfectly ordinary-looking boxplot. It also does not show how many values there are.
  • Each of the four parts holds about 25% of the values, however long or short it is drawn. A long part means the values there are spread out, not that there are more of them.

Percentiles and Cumulative Relative Frequency Plots

The pth percentile is the value with p% of the data at or below it. So Q1 is the 25th percentile, the median the 50th and Q3 the 75th. A student "in the 90th percentile" scored as well as or better than 90% of the students, which says nothing about getting 90% of the points.

A cumulative relative frequency plot (ogive) shows, for each value, the proportion of data at or below it. It always rises from 0 to 1. Read it in two directions:

  • from a value up to the curve and across: the percentile of that value;
  • from a proportion across to the curve and down: the value at that percentile (0.5 gives the median, 0.25 and 0.75 the quartiles).
A cumulative relative frequency plot of 60 quiz scores rising from 0 at 0 to 1 at 50; the horizontal line at 0.5 meets the curve above a score of about 31
The 60 quiz scores from above: the curve reaches 0.5 at about 31, so the median is about 31.

Where the curve is steep, many values are packed into a short interval; where it is flat, there are few values.

Adding and Multiplying: How Summary Statistics Change

If we add the same constant a to every value, or multiply every value by a positive constant b (changing units, adding a bonus):

add a multiply by b>0
measures of center and position: mean, median, quartiles, percentiles +a ×b
measures of spread: range, IQR, standard deviation unchanged ×b
shape unchanged unchanged

Adding a constant slides the whole distribution along the number line without stretching it, so the spread stays the same.

Example. Daily temperatures have mean 20∘C and standard deviation 5∘C. In Fahrenheit, F=32+1.8C, so the mean is 32+1.8⋅20=68∘F and the standard deviation is 1.8⋅5=9∘F (the +32 does not affect it).

z-scores do not change when the units change: converting heights from inches to centimetres changes every value, the mean and the standard deviation by the same factor, so every z-score stays the same.

Comparing Distributions

To compare two or more groups, draw them on the same scale (side-by-side boxplots, back-to-back stemplots, dotplots stacked over one axis) and compare shape, center, spread and outliers, using comparative words: "the median of A is greater than the median of B", not just "A's median is 75 and B's is 70".

Two boxplots over one axis: class A from 52 to 94 with box 68 to 81 and median 75; class B from 45 to 98 with box 60 to 86 and median 70
Same axis, same summary, one sentence per feature.

Example (a model answer). "The median score of class A (75) is greater than the median score of class B (70). The scores of class B are more variable: its IQR (86−60=26 points) is twice that of class A (81−68=13 points), and its range (53) is larger than A's (42). Class A is roughly symmetric, while class B is skewed right (the upper half of its box, from 70 to 86, is longer than the lower half). Neither class has outliers."

The Normal Distribution

Many quantitative variables (heights, test scores, measurement errors) have a symmetric, bell-shaped distribution. We model them with a normal curve. A normal distribution is fixed by two numbers, its mean μ and its standard deviation σ, and we write X∼N(μ,σ).

  • The curve is symmetric about μ, so mean = median = mode.
  • The total area under the curve is 1, and the area over an interval is the proportion (probability) of values in that interval.
  • The tails go on forever, but very little area is more than 3 standard deviations from the mean.

The 68–95–99.7 rule. In a normal distribution about 68% of the values are within one standard deviation of the mean, about 95% within two and about 99.7% within three. These are approximations: the exact value for two standard deviations is 0.9545.

A normal curve with the regions within one, two and three standard deviations of the mean shaded, labelled 68%, 95% and 99.7%
The 68–95–99.7 rule. Learn these three numbers by heart.

z-scores. The z-score of a value x says how many standard deviations it lies from the mean:

z=x−μσ.

Standardizing turns any normal distribution into the standard normal distribution N(0,1), so a single table (or one calculator function) is enough for all of them.

Two number lines: heights 59 to 77 inches with mean 68 and standard deviation 3, and the matching z-scores minus 3 to 3; a height of 65 corresponds to z = minus 1
Standardizing relabels the axis: each value becomes its distance from the mean in standard deviations.

Example. In the standard normal distribution, P(z<1.5)=0.9332 (from the table of standard normal probabilities, which gives the area to the left of z). Since z is continuous, P(z≤1.5) is the same number.

Finding an area. On the TI-83/84, normalcdf(lower,upper,μ,σ) gives the area between two values. For "no lower bound" use a very large negative number, such as −1000 or −1099.

TI-84 (Normal areas). 2nd VARS (DISTR) → 2:normalcdf(. Enter lower, upper, μ, σ:

normalcdf(-1E99,65,68,3)
           .1586552596
normalcdf(65,70,68,3)
           .5888522522
normalcdf(70,1E99,68,3)
           .2524925375

1E99 is typed with 2nd , (EE): it means 1099, "no upper bound". Leaving out μ and σ uses the standard normal: normalcdf(-1E99,1.5) =0.9332.

On the exam: write X∼N(68,3), the boundary, and the answer, e.g. "P(X<65)=0.1587", or show the z-score. A bare normalcdf(...) with unlabelled numbers can lose credit.

Example (heights). The heights X of the students of a college are approximately N(68,3), in inches.

  • P(X<65): z=65−683=−1, so P(X<65)=P(z<−1)=0.1587. On the calculator: normalcdf(−1000,65,68,3).
  • P(X>65)=1−0.1587=0.8413.
  • P(65<X<70): the z-scores are −1 and 70−683≈0.67, so the area is 0.7486−0.1587=0.5899. The calculator gives normalcdf(65,70,68,3)=0.5889; the small difference comes from rounding z to 0.67 for the table.
  • P(70<X<75): the area to the left of 75 (z≈2.33) minus the area to the left of 70, 0.9901−0.7486=0.2415.
A normal curve for heights with mean 68 and standard deviation 3; the area between 65 and 70 is shaded, about 0.589
P(65<X<70) is the area between the two values.

Finding a value from an area. Sometimes the area is given and the value is unknown. Then read the table from the inside out, or use invNorm(area to the left,μ,σ), and solve the z-score equation for x.

Example (top 15%). SAT scores are approximately N(500,100). What is the lowest score that is still in the top 15%? The top 15% means 85% of the scores are to the left, and the z-score with area 0.85 to its left is z≈1.04. So

x−500100=1.04⟹x=500+1.04⋅100=604.

On the calculator, invNorm(0.85,500,100)≈604. Even when you use the calculator, write down the z-score equation: the AP rubrics expect it.

TI-84 (Values from areas). 2nd VARS (DISTR) → 3:invNorm(, then area, μ, σ and, on newer models, the tail:

invNorm(.85,500,100,LEFT)
           603.643338
invNorm(.15,500,100,RIGHT)
           603.643338
invNorm(.90,500,100,CENTER)
     {335.5146373 664.4853627}

LEFT: the area is to the left of x (older models always assume this). RIGHT: the area is to the right. CENTER: the two values symmetric about the mean that enclose the area in the middle (here the middle 90%). With no μ and σ you get a z-score: invNorm(.85) =1.036.

A normal curve for SAT scores with mean 500 and standard deviation 100; the top 15% to the right of 604 is shaded, with z = 1.04
85% of the area is to the left of 604, 15% to the right.

Example (unknown mean). A normal variable has σ=12 and P(X>50)=0.90. Then 10% of the area is to the left of 50, so z=−1.28 and

−1.28=50−μ12⟹μ=50+1.28⋅12≈65.4.

Comparing with z-scores. z-scores let us compare values measured on different scales. Ada scored 680 on a test with mean 600 and standard deviation 50; Ben scored 29 on a test with mean 24 and standard deviation 4. Then

zAda=680−60050=1.6,zBen=29−244=1.25,

so Ada did better relative to the other test takers: she was 1.6 standard deviations above the mean, Ben only 1.25. (This comparison does not need normality; turning a z-score into a percentile does.)

Is the data approximately normal? Before using normal calculations on real data, check that the data is roughly normal:

  • a histogram or dotplot is unimodal and roughly symmetric, without outliers;
  • the 68–95–99.7 rule roughly holds for the data;
  • a normal probability plot (data against their expected z-scores, on the calculator the last STAT PLOT type) is close to a straight line. A curved plot means skewness; isolated points at the ends are outliers.

TI-84 (Normal probability plot). 2nd Y= (STAT PLOT) → Plot1 → On, choose the last type, Data List: L1, Data Axis: X, then ZOOM → 9:ZoomStat. A nearly straight pattern means the data is approximately normal.


Unit 1 Practice 1

Fifteen multiple-choice questions in the style of the AP exam, then free-response questions with full solutions. The questions are adapted (new numbers and contexts) from Barron's AP Q&A Statistics and AP Statistics Premium, 5 Steps to a 5: AP Statistics and released AP exams; each free-response question names the question it is modelled on.

Multiple-Choice Questions

15 multiple-choice questions on Unit 1. Calculator allowed. Suggested time: 35 minutes.

1. If the standard deviation of a set of observations is 0, you can conclude that

  • (A) the mean of the observations is 0
  • (B) a mistake in arithmetic has been made
  • (C) there are no outliers, but the values may differ
  • (D) all the observations have the same value
  • (E) the data set is very small

2. Four petrol stations sell fuel at 3.10 per litre, seven sell at 3.25 per litre and ten sell at 3.40 per litre. What is the median price per litre among these 21 stations?

  • (A) 3.10
  • (B) 3.25
  • (C) 3.29
  • (D) 3.33
  • (E) 3.40

3. The scores on a national exam have mean 500 and standard deviation 80. Every score is first increased by 20 points, and then every result is increased by 10%. What are the new mean and standard deviation?

  • (A) mean 570, standard deviation 80
  • (B) mean 572, standard deviation 80
  • (C) mean 570, standard deviation 88
  • (D) mean 572, standard deviation 96.8
  • (E) mean 572, standard deviation 88

4. In a class, the 18 students in the morning section have a mean test score of 82 and the 12 students in the afternoon section have a mean of 72. What is the mean score of all 30 students?

  • (A) 76
  • (B) 77
  • (C) 78
  • (D) 79
  • (E) 80

5. Exam scores have mean 70 and standard deviation 8. One student's score has z=−1.5 and another student's score has z=2. How many points higher is the second student's score?

  • (A) 28
  • (B) 3.5
  • (C) 4
  • (D) 14
  • (E) 22

6. A data set has median 120 and interquartile range 30. Which of the following must be true?

  • (A) Half of the values are between 105 and 135.
  • (B) 75% of the values are at or below 135.
  • (C) About half of the values are at or below 120.
  • (D) The mean is between 105 and 135.
  • (E) All of the statements above are true.

7. The waiting times (minutes) of 30 patients have minimum 41, Q1=58, median 64, Q3=70 and maximum 99. Using the 1.5⋅IQR rule, how many outliers are there?

  • (A) 0
  • (B) 1
  • (C) 2
  • (D) at least 1
  • (E) at least 2

8. Adult male animals of a species have mean weight 180 kg with standard deviation 12 kg; females have mean 140 kg with standard deviation 9 kg. What is the weight of a male with the same z-score as a female weighing 131 kg?

  • (A) 168 kg
  • (B) 171 kg
  • (C) 172 kg
  • (D) 189 kg
  • (E) 192 kg

9. The weights of a large group of athletes have a bell-shaped (normal) distribution. Order these three weights from smallest to largest: I. the weight with z-score 1; II. the 80th percentile; III. the third quartile.

  • (A) I, II, III
  • (B) I, III, II
  • (C) II, I, III
  • (D) III, I, II
  • (E) III, II, I

10. A student times how long each of five mice takes to find the food in a maze: 21, 24, 26, 29 and 118 seconds. Which pair of statistics best describes the center and spread of these times?

  • (A) mean and standard deviation
  • (B) median and interquartile range
  • (C) mean and interquartile range
  • (D) median and standard deviation
  • (E) mean and range

11. IQ scores are approximately normal with mean 100 and standard deviation 15. What proportion of people have an IQ above 130?

  • (A) 0.0500
  • (B) 0.0228
  • (C) 0.1587
  • (D) 0.4772
  • (E) 0.9772

12. The heights of adult women in a country are approximately normal with mean 164 cm and standard deviation 6.5 cm. Which height is closest to the 90th percentile?

  • (A) 170.5 cm
  • (B) 171.6 cm
  • (C) 172.3 cm
  • (D) 174.7 cm
  • (E) 177.0 cm

13. In a city, the mean selling price of houses last year was 420 thousand euros and the median was 310 thousand euros. Which is the most likely shape of the distribution of prices?

  • (A) roughly symmetric
  • (B) skewed to the left
  • (C) uniform
  • (D) skewed to the right
  • (E) bimodal

14. A data set has one outlier at each end, one very small and one very large. Both outliers are removed. Which of the following is a possible result?

  • (A) The mean and the median are both unchanged.
  • (B) The mean and the standard deviation are both unchanged.
  • (C) The median and the standard deviation are both unchanged.
  • (D) The mean and the standard deviation both increase.
  • (E) The median and the standard deviation both decrease.

15. The fuel economy (km per litre) of 50 car models has minimum 12, Q1=20, median 23, Q3=28, maximum 45, mean 24.6 and standard deviation 6.9. Which statement is true?

  • (A) 50% of the values are between 24.6 and 45.
  • (B) 25% of the values are above 20.
  • (C) The distribution appears to be roughly symmetric and bell-shaped.
  • (D) The interquartile range is 5.
  • (E) There is at least one outlier.
Answer key
Question Answer Why
1 D sx=0 means every deviation x−x¯ is 0.
2 B Sorted, positions 1–4 are 3.10 and 5–11 are 3.25; the median is the 11th value. (3.29 is the mean.)
3 E Mean: (500+20)⋅1.1=572. Adding 20 does not change the spread: 80⋅1.1=88.
4 C Weighted mean: 18⋅82+12⋅7230=234030=78.
5 A The scores are 2−(−1.5)=3.5 standard deviations apart: 3.5⋅8=28.
6 C The median splits the data in half. The quartiles need not be 120±15, and the mean can be anywhere.
7 D Fences: 58−18=40 and 70+18=88. The maximum 99 is an outlier; other values between 88 and 99 may exist.
8 A The female has z=131−1409=−1, so the male weighs 180−12=168.
9 E Q3 is the 75th percentile and z=1 is about the 84th.
10 B 118 is an outlier; the median and IQR are resistant.
11 B z=2; P(z>2)=0.0228 (the 68–95–99.7 rule gives about 0.025).
12 C 164+1.2816⋅6.5≈172.3, or invNorm(0.90, 164, 6.5).
13 D The mean is pulled toward the long tail of expensive houses.
14 A The middle value stays the middle; if the two outliers balance, the mean stays too. The SD must decrease.
15 E IQR=8, upper fence 28+12=40, and the maximum 45 is above it.

Free-Response Questions

Write complete answers: show the method, give the numbers, and finish with a sentence in context. On the AP exam each question is scored E (essentially correct), P (partially correct) or I (incorrect) part by part.

FRQ 1 (outlier rules). Modelled on AP Statistics 2021, FRQ 1. A library recorded how many days each of a random sample of 40 borrowed books stayed out before being returned.

Days out 7 8 9 10 11 14 25
Number of books 5 9 11 8 4 2 1

(a) Find the five-number summary of the number of days.

(b) (i) Using the 1.5⋅IQR rule (method A), identify any outliers. (ii) The mean is 9.58 days and the standard deviation is 2.98 days. Using the rule "more than 2 standard deviations from the mean" (method B), identify any outliers.

(c) Explain why, for a distribution that is strongly skewed to the right, method A can identify more outliers than method B.

Solution

(a) The sorted positions are: 7 (1st–5th), 8 (6th–14th), 9 (15th–25th), 10 (26th–33rd), 11 (34th–37th), 14 (38th–39th), 25 (40th).

  • Median: average of the 20th and 21st values, 9+92=9 days.
  • Q1: median of the lower 20 values, the average of the 10th and 11th, 8 days.
  • Q3: median of the upper 20 values, the average of the 30th and 31st, 10 days.

Five-number summary: min =7, Q1=8, median =9, Q3=10, max =25 days.

(b) (i) IQR=10−8=2, so 1.5⋅IQR=3. The fences are 8−3=5 and 10+3=13. Nothing is below 5; the values 14, 14 and 25 are above 13, so these three books are outliers.

(ii) x¯±2s=9.58±2(2.98), from 3.62 to 15.54 days. Only 25 is outside, so method B finds one outlier.

(c) The standard deviation is not resistant: the long right tail (the values 14, 14 and 25) makes s large, so the interval x¯±2s becomes wide and moderately large values fall inside it. The IQR depends only on the middle half of the data, which is tightly packed here, so the fences stay close to the box and more values fall outside them.

FRQ 2 (comparing distributions). Modelled on AP Statistics 2015, FRQ 1. Two large companies, A and B, both hired graduates as junior engineers five years ago at the same starting salary of 40 thousand euros. For 30 such engineers still working at each company, the current yearly salaries (thousands of euros) are summarised below.

Company Min Q1 Median Q3 Max
A 42 48 51 54 58
B 38 44 49 60 82

(a) Write a few sentences comparing the distributions of salaries at the two companies.

(b) You are offered a junior job at both companies for 40 thousand euros. (i) Using the summaries, give one reason to choose company A. (ii) Give one reason to choose company B.

Solution

(a) Check for outliers first. A: IQR=6, fences 39 and 63: none. B: IQR=16, fences 20 and 84: none.

  • Center: the median salary at A (51 thousand) is slightly greater than at B (49 thousand).
  • Spread: salaries at B are much more variable: the IQR at B (16 thousand) is almost three times that at A (6 thousand), and the range at B (82−38=44) is much larger than at A (58−42=16).
  • Shape: A is roughly symmetric (the median is in the middle of the box and the whiskers are about equal). B is skewed to the right: the upper half of the box and the upper whisker are much longer.
  • Neither company has outliers.

(b) (i) At A the salaries are more consistent and the median is higher; even the lowest salary at A (42) is above the starting salary, while at B some engineers (minimum 38) now earn less than they started with.

(ii) At B the top salaries are much higher: at least 25% of B's engineers earn 60 thousand or more, which is more than anyone at A earns (A's maximum is 58).

Graders look for: comparative language ("greater than", "more variable") and all of center, spread and shape, in context.

FRQ 3 (what a boxplot hides). Modelled on AP Statistics 2019, FRQ 1. The floor areas (m²) of the 20 apartments in a building are shown in the stemplot.

11 | 8
12 | 6
13 | 1 7
14 | 0 4 9
15 | 2 8
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 | 2
27 | 0 6
28 | 1 5 8
29 | 2 6
30 | 1 5
31 | 2
Key: 14 | 0 means 140 m²

(a) Describe the distribution of floor area.

(b) Find the five-number summary, decide whether there are outliers, and describe the boxplot.

(c) What feature of the distribution is clear from the stemplot but would be invisible in the boxplot?

Solution

(a) The distribution of floor area is bimodal with two clusters: 9 small apartments from 118 to 158 m² and 11 large ones from 262 to 312 m², separated by a large gap (no apartments between 159 and 261 m²). The median is about 266 m² and the areas range from 118 to 312 m². There are no outliers.

(b) With n=20 the median is the average of the 10th and 11th values, 262+2702=266. Q1 is the average of the 5th and 6th values, 140+1442=142; Q3 is the average of the 15th and 16th, 288+2922=290. Five-number summary: 118,142,266,290,312.

IQR=148 and 1.5⋅IQR=222, so the fences are 142−222<0 and 290+222=512: no outliers. The boxplot has a box from 142 to 290 with the median line at 266 (close to Q3), and whiskers to 118 and 312. It looks skewed to the left.

(c) The two clusters and the gap. The boxplot only shows five numbers, so it would suggest one skewed group, while in fact there are two quite different kinds of apartments.

FRQ 4 (normal calculations). Modelled on the free-response problems of Barron's AP Q&A Statistics, Chapter 5. The lengths of adult trout in a lake are approximately normal with mean 32 cm and standard deviation 4 cm.

(a) What proportion of adult trout are longer than 38 cm?

(b) Fishing rules say that the shortest 10% of trout must be released. Below what length must a trout be released?

(c) In a second lake, adult perch have lengths that are approximately normal with mean 48 cm and standard deviation 5 cm. Which is more unusually long for its species: a 38 cm trout or a 55 cm perch? Justify.

Solution

(a) Let X = length of a trout, X∼N(32,4).

z=38−324=1.5,P(X>38)=P(z>1.5)=1−0.9332=0.0668.

About 6.7% of adult trout are longer than 38 cm. (Calculator: normalcdf(38, 1000, 32, 4).)

(b) We need the 10th percentile. The z-score with area 0.10 to its left is z≈−1.28, so

−1.28=x−324⟹x=32−1.28⋅4≈26.9 cm.

Trout shorter than about 26.9 cm must be released. (Calculator: invNorm(0.10, 32, 4).)

(c) ztrout=38−324=1.5 and zperch=55−485=1.4. The trout is 1.5 standard deviations above its species' mean, the perch only 1.4, so the 38 cm trout is more unusually long.


Unit 1 Practice 2

A second set of fifteen multiple-choice questions and three free-response questions on Unit 1.

Multiple-Choice Questions

15 multiple-choice questions on Unit 1. Calculator allowed. Suggested time: 35 minutes.

1. Which statement about histograms is true?

  • (A) A histogram shows the value of every single observation.
  • (B) Two students working with the same data may draw histograms that look different.
  • (C) Histograms are used for categorical variables.
  • (D) The bars of a histogram should be separated by gaps.
  • (E) The axes of a histogram need no labels.

2. A teacher has two classes. The mean score of one class is 3.2 and the mean of the other class, which has more students, is 3.8. What must be true about the mean score of all the students?

  • (A) It is exactly 3.5.
  • (B) It may be 3.5, but it need not be.
  • (C) It can be anything between 3.2 and 3.8.
  • (D) It is between 3.2 and 3.5.
  • (E) It is between 3.5 and 3.8.

3. A student's score is at the 70th percentile of all scores. What does this mean?

  • (A) About 70% of the scores are at or below this student's score.
  • (B) The student answered 70% of the questions correctly.
  • (C) The student scored 70 points.
  • (D) About 70% of the scores are above this student's score.
  • (E) The student's z-score is 0.70.

4. A normal distribution with mean 25 and standard deviation 5 is standardized: from each value we subtract 25 and divide by 5. What are the mean and standard deviation of the new values?

  • (A) mean 25, standard deviation 5
  • (B) mean 5, standard deviation 1
  • (C) mean 0, standard deviation 1
  • (D) mean 0, standard deviation 5
  • (E) mean 25, standard deviation 1

5. The numbers of spam e-mails received in one week by 12 managers are summarised below. How many outliers are there by the 1.5⋅IQR rule?

Values below Q1 Q1 Median Q3 Values above Q3
4, 8, 9 12 16 18 24, 26, 29
  • (A) 0
  • (B) 2
  • (C) 3
  • (D) 1
  • (E) 6

6. The numbers of campsites in the parks of a region have Q1=22, Q3=70 and standard deviation 31. It turns out that 5 had been subtracted from every value by mistake. After adding 5 back to every value, what are the IQR and the standard deviation?

  • (A) IQR 48, standard deviation 31
  • (B) IQR 53, standard deviation 31
  • (C) IQR 48, standard deviation 36
  • (D) IQR 58, standard deviation 36
  • (E) IQR 53, standard deviation 36

7. The cost of a family's restaurant meal has mean 60 euros and standard deviation 8 euros. The family always tips 4 euros plus 15% of the meal. What are the mean and standard deviation of the tips?

  • (A) mean 9, standard deviation 1.2
  • (B) mean 13, standard deviation 12
  • (C) mean 13, standard deviation 1.2
  • (D) mean 13, standard deviation 5.2
  • (E) mean 9, standard deviation 5.2

8. For a data set, Q1=30 and Q3=50. Which of the following must be true?

  • (A) The median is 40.
  • (B) The mean is between 30 and 50.
  • (C) The standard deviation is at most 20.
  • (D) There are no outliers.
  • (E) The range is at least 20.

9. A distribution is perfectly symmetric. Which of the following must be true?

  • (A) The distribution is uniform.
  • (B) The mean and the median are equal.
  • (C) The IQR is twice the standard deviation.
  • (D) The range is twice the IQR.
  • (E) There are no outliers.

10. Pregnancy lengths are approximately normal with mean 266 days and standard deviation 16 days. What proportion of pregnancies last between 234 and 282 days?

  • (A) 0.6827
  • (B) 0.9545
  • (C) 0.1359
  • (D) 0.8186
  • (E) 0.7500

11. A distribution has mean 12 and median 18. What is its most likely shape?

  • (A) symmetric
  • (B) uniform
  • (C) bimodal
  • (D) skewed to the right
  • (E) skewed to the left

12. A professor reports grades as z-scores. A student's grade on the final exam is −2.8. What does this mean?

  • (A) The student scored 2.8 standard deviations below the class mean on the final exam.
  • (B) The student scored 2.8 points below the class mean on the final.
  • (C) The student scored 2.8 points lower on the final than on the midterm.
  • (D) The student scored 2.8 standard deviations lower on the final than on the midterm.
  • (E) 2.8% of the class scored lower than the student.

13. A large data set is bell-shaped, and its values run from about 40 to about 100. Which is the best estimate of the standard deviation?

  • (A) 2
  • (B) 5
  • (C) 30
  • (D) 10
  • (E) 60

14. A magazine compares the starting salaries of graduates with and without a master's degree. Which display is not appropriate?

  • (A) side-by-side boxplots
  • (B) a back-to-back stemplot
  • (C) a scatterplot
  • (D) two histograms on the same scale
  • (E) two dotplots on the same scale

15. Which change to a data set can never change its median?

  • (A) adding 10 to every value
  • (B) increasing the largest value by 50
  • (C) doubling every value
  • (D) removing the smallest value
  • (E) adding a new value below the minimum
Answer key
Question Answer Why
1 B Different bin widths or starting points give different pictures.
2 E The overall mean is a weighted mean, pulled toward the larger class.
3 A A percentile is a position, not a percentage of points.
4 C z-scores always have mean 0 and standard deviation 1.
5 D IQR=6, fences 3 and 27: only 29 is beyond them.
6 A Adding a constant changes neither the IQR (70−22) nor the standard deviation.
7 C Mean 4+0.15⋅60=13; standard deviation 0.15⋅8=1.2 (adding 4 changes nothing).
8 E The range contains the IQR, so it is at least 50−30=20.
9 B Symmetry about a point makes the mean and the median that point.
10 D z from −2 to 1: 0.8413−0.0228=0.8186.
11 E The mean is pulled toward the long left tail.
12 A A z-score counts standard deviations from the mean of the same exam.
13 D Almost all of a bell-shaped distribution lies within 3 SD of the mean: range ≈6σ, so σ≈60/6.
14 C A scatterplot needs two quantitative variables for each individual.
15 B The median depends only on the order of the middle values.

Free-Response Questions

FRQ 5 (reading grouped data). Modelled on AP Statistics 2018, FRQ 5. The numbers of years that teachers at two large schools have been teaching are summarised below (40 teachers at each school).

Years 0–5 5–10 10–15 15–20 20–25 25–30
School A 12 10 8 6 3 1
School B 3 6 10 11 7 3

(Each interval includes its left end, for example 5≤x<10.)

(a) Describe the shape of each distribution.

(b) In which interval is the median of each school? Which school has the greater median?

(c) For school A, is the mean greater than, less than or about equal to the median? Explain.

Solution

(a) School A is skewed to the right: most teachers have taught fewer than 10 years and the counts fall steadily toward 30 years. School B is roughly symmetric and mound-shaped, with its peak at 15–20 years.

(b) The median is the average of the 20th and 21st values.

  • A: cumulative counts 12, 22, … The 20th and 21st values are in 5–10 years.
  • B: cumulative counts 3, 9, 19, 30, … The 20th and 21st values are in 15–20 years.

School B has the greater median.

(c) Greater. The distribution is skewed to the right, and the few teachers with 20 or more years pull the mean toward the long right tail, while the median stays in the 5–10 interval.

FRQ 6 (changing units). Modelled on the free-response problems of Barron's AP Q&A Statistics, Chapter 5. A weather station recorded the daily maximum temperature for 60 days. In degrees Celsius: mean 18, median 17, standard deviation 4, IQR 5, minimum 9.

(a) Find the mean, median, standard deviation, IQR and minimum in degrees Fahrenheit, using F=32+1.8C.

(b) Find the z-score of a day with a maximum of 26 °C. What is the z-score of the same day in Fahrenheit?

(c) The station later found that its thermometer read 1.5 °C too low every day. Which of the summaries in degrees Celsius change after the correction, and how?

Solution

(a) Measures of center and position are transformed by the whole formula; measures of spread are only multiplied by 1.8.

  • mean 32+1.8⋅18=64.4 °F; median 32+1.8⋅17=62.6 °F; minimum 32+1.8⋅9=48.2 °F;
  • standard deviation 1.8⋅4=7.2 °F; IQR 1.8⋅5=9 °F.

(b) z=26−184=2. In Fahrenheit the day is 32+1.8⋅26=78.8 °F and z=78.8−64.47.2=2: the z-score does not change when the units change.

(c) Every value increases by 1.5 °C. The mean, median and minimum increase by 1.5 (to 19.5, 18.5 and 10.5 °C); the standard deviation and IQR do not change, because adding a constant shifts the distribution without stretching it.

FRQ 7 (normal model for a filling machine). Modelled on AP Statistics 2022, FRQ 3. A machine fills cereal boxes labelled 500 g. The amount of cereal is approximately normal with mean 510 g and standard deviation 6 g.

(a) What proportion of boxes contain less than the labelled 500 g?

(b) The company wants only 1% of boxes under 500 g. If the standard deviation stays 6 g, what mean should the machine be set to?

(c) Instead, the company keeps the mean at 510 g and improves the machine. What standard deviation would give only 1% of boxes under 500 g?

Solution

(a) Let X be the amount of cereal, X∼N(510,6).

P(X<500)=P(z<500−5106)=P(z<−1.67)≈0.048.

About 4.8% of boxes are underweight.

(b) The 1st percentile of the standard normal distribution is z≈−2.326. We need 500 to be that far below the mean:

−2.326=500−μ6⟹μ=500+2.326⋅6≈514.0 g.

(c) Now μ=510 is fixed and σ is unknown:

−2.326=500−510σ⟹σ=102.326≈4.30 g.


Unit 1 Practice 3

A third set of fifteen multiple-choice questions and three free-response questions on Unit 1.

Multiple-Choice Questions

15 multiple-choice questions on Unit 1. Calculator allowed. Suggested time: 35 minutes.

1. Which of these variables is categorical?

  • (A) height in centimetres
  • (B) number of siblings
  • (C) time to run 100 m
  • (D) postal code
  • (E) daily temperature

2. Which of these is a discrete quantitative variable?

  • (A) the number of goals scored in a match
  • (B) a person's weight
  • (C) eye colour
  • (D) the time taken to finish a test
  • (E) blood type

3. Which statement about stemplots is true?

  • (A) Stemplots are equally useful for small and very large data sets.
  • (B) Stemplots can be used for categorical data.
  • (C) Stemplots can show symmetry, gaps, clusters and outliers.
  • (D) A key is needed only for decimal data.
  • (E) Stems with no leaves should be left out.

4. Twenty students rated a film from 1 to 4: four gave 1, six gave 2, seven gave 3 and three gave 4. What is the median rating?

  • (A) 2
  • (B) 2.5
  • (C) 2.45
  • (D) 3
  • (E) 7

5. A boxplot has minimum 10, Q1=30, median 40, Q3=50 and maximum 60. Which statement is true?

  • (A) There are more values between 10 and 30 than between 50 and 60.
  • (B) The distribution is symmetric.
  • (C) The mean must be greater than the median.
  • (D) The range is 40.
  • (E) About 25% of the values are between 50 and 60.

6. One very large outlier is removed from a data set. Which statistic is likely to change the least?

  • (A) the mean
  • (B) the standard deviation
  • (C) the interquartile range
  • (D) the range
  • (E) the maximum

7. Every value in a data set is multiplied by 3. By what factor does the variance change?

  • (A) 1
  • (B) 3
  • (C) 6
  • (D) 3
  • (E) 9

8. On a cumulative relative frequency plot of test scores, the curve is at 0.30 at a score of 40 and at 0.80 at a score of 60. What proportion of the scores are between 40 and 60?

  • (A) 0.30
  • (B) 0.50
  • (C) 0.80
  • (D) 0.20
  • (E) 1.10

9. Ana scored 85 on a test with mean 75 and standard deviation 5. Ben scored 90 on a test with mean 80 and standard deviation 8. Cem scored 70 on a test with mean 60 and standard deviation 4. Who did best relative to the others who took the same test?

  • (A) Cem
  • (B) Ana
  • (C) Ben
  • (D) Ana and Cem equally
  • (E) It cannot be decided.

10. What proportion of a normal distribution lies within 1.5 standard deviations of the mean?

  • (A) 0.68
  • (B) 0.75
  • (C) 0.9332
  • (D) 0.8664
  • (E) 0.95

11. Scores are approximately normal with mean 70 and standard deviation 10. Which value is closest to the third quartile?

  • (A) 76.7
  • (B) 75.0
  • (C) 80.0
  • (D) 83.4
  • (E) 72.5

12. Which statistics are resistant to outliers?

  • (A) the mean only
  • (B) the mean and the standard deviation
  • (C) the range only
  • (D) the median and the IQR
  • (E) the standard deviation and the IQR

13. A histogram of the heights of everyone at a school sports day (both 6-year-old pupils and their parents) would most likely be

  • (A) roughly normal
  • (B) uniform
  • (C) bimodal
  • (D) skewed to the right
  • (E) skewed to the left

14. Ten values have mean 20. A new value, 42, is added. What is the new mean?

  • (A) 20
  • (B) 21
  • (C) 31
  • (D) 23
  • (E) 22

15. A normal probability plot of a data set is very close to a straight line. What can we conclude?

  • (A) The data has a strong linear relationship with another variable.
  • (B) The data is approximately normal.
  • (C) The data is uniform.
  • (D) The data has no outliers, but it is skewed.
  • (E) The mean is 0 and the standard deviation is 1.
Answer key
Question Answer Why
1 D A postal code is a label; averaging postal codes makes no sense.
2 A Goals are counted: 0, 1, 2, …
3 C A stemplot keeps every value and shows the shape.
4 B Positions 1–4 are 1, 5–10 are 2, 11–17 are 3; the median is the mean of the 10th and 11th, (2+3)/2.
5 E Each of the four parts holds about 25% of the values, whatever its length.
6 C The IQR depends only on the middle half.
7 E The standard deviation is multiplied by 3, so the variance by 32=9.
8 B 0.80−0.30=0.50.
9 A z-scores: Ana 2, Ben 1.25, Cem 2.5.
10 D P(−1.5<z<1.5)=0.9332−0.0668=0.8664.
11 A 70+0.674⋅10≈76.7 (invNorm(0.75, 70, 10)).
12 D Means and standard deviations use every value.
13 C Two different groups give two peaks.
14 E 10⋅20+4211=24211=22.
15 B A straight normal probability plot means the data follows a normal pattern.

Free-Response Questions

FRQ 8 (a stemplot). Modelled on AP Statistics 2013, FRQ 1(a). The noise levels (decibels) in 20 classrooms during a lesson are shown in the stemplot.

 5 | 2 4 7
 6 | 0 1 3 5 5 8
 7 | 0 2 2 3 6 9
 8 | 1 4 7
 9 | 0
10 |
11 | 3
Key: 6 | 3 means 63 dB

(a) Noise above 85 dB is considered harmful. What proportion of the classrooms had harmful noise levels?

(b) Find the five-number summary and determine whether there are outliers.

(c) The mean noise level is 72.1 dB. Explain why the mean is greater than the median.

Solution

(a) The values above 85 are 87, 90 and 113: 320=0.15.

(b) With n=20: median =70+722=71 (10th and 11th values); Q1=61+632=62 (5th and 6th); Q3=79+812=80 (15th and 16th). Five-number summary: 52, 62, 71, 80, 113 dB.

IQR=18, 1.5⋅18=27, fences 62−27=35 and 80+27=107. The classroom with 113 dB is an outlier; there are no low outliers.

(c) The mean is not resistant: the very loud classroom (113 dB) and the slight right skew pull the mean up toward the high values, while the median depends only on the middle values.

FRQ 9 (choosing between two services). Modelled on the comparison problems in 5 Steps to a 5, Chapter 5. The delivery times (minutes) of 25 orders from each of two pizza services were recorded.

Service Mean SD Min Q1 Median Q3 Max
A 31 4 24 28 30 33 41
B 29 11 12 20 27 37 55

(a) Are there outliers in either data set? Justify.

(b) Compare the two distributions.

(c) You need a pizza delivered within 35 minutes for a party. Which service would you choose? Use the summaries to justify.

Solution

(a) A: IQR=5, fences 28−7.5=20.5 and 33+7.5=40.5, so the 41-minute delivery is an outlier. B: IQR=17, fences −5.5 and 62.5: no outliers.

(b) The median delivery time of B (27 minutes) is less than that of A (30 minutes). B is far more variable: its IQR (17 minutes) is more than three times A's (5 minutes), and its standard deviation is 11 minutes compared with 4. A is roughly symmetric apart from one high outlier; B is skewed to the right (the upper whisker and upper half of the box are longer).

(c) Service A. At A at least 75% of deliveries took at most 33 minutes (Q3=33), so well over 75% arrive within 35 minutes. At B, 25% of the deliveries took 37 minutes or more, so more than 25% would be late. B is faster on average but much less reliable.

FRQ 10 (normal model and relative position). Modelled on AP Statistics 2017, FRQ 3(a). The diameters of apples from orchard A are approximately normal with mean 75 mm and standard deviation 4 mm; those from orchard B are approximately normal with mean 70 mm and standard deviation 5 mm.

(a) What proportion of orchard A's apples have a diameter over 80 mm?

(b) Find the 95th percentile of the diameters of orchard A's apples.

(c) An apple has a diameter of 78 mm. Would this apple be more unusual if it came from orchard A or from orchard B? Justify.

Solution

(a) X∼N(75,4): P(X>80)=P(z>80−754)=P(z>1.25)≈0.106.

(b) The z-score with area 0.95 to its left is 1.645, so x=75+1.645⋅4≈81.6 mm (invNorm(0.95, 75, 4)).

(c) From A: z=78−754=0.75. From B: z=78−705=1.6. The apple is 1.6 standard deviations above the mean of orchard B but only 0.75 above that of A, so it would be more unusual from orchard B.


Unit 2: Exploring Two-Variable Data

Two Categorical Variables

When both variables are categorical, the data is summarised in a two-way table (contingency table). The table below gives the country of origin and blood type of the 500 people at a conference; we will use it again in Unit 4.

Country O A B AB Total
1 150 73 22 5 250
2 46 75 19 10 150
3 29 22 39 10 100
Total 225 170 80 25 500
  • The numbers in the Total row and column are the marginal frequencies; the numbers inside the table are the joint frequencies.
  • Dividing by the grand total (500) gives relative frequencies.
  • The marginal distribution of one variable uses only the totals: for blood type, 225500=45% O, 34% A, 16% B and 5% AB.
  • A conditional distribution looks at one variable within one group of the other: we divide by the row (or column) total, not by 500.

Conditional Distributions and Segmented Bar Graphs

To compare a categorical variable across groups we use conditional relative frequencies: we treat each group on its own. In Country 1, 150 of the 250 people have type O, a conditional relative frequency of 150250=60%. Doing this for every country gives the conditional distribution of blood type by country:

Country O A B AB
1 60% 29.2% 8.8% 2%
2 30.7% 50% 12.7% 6.7%
3 29% 22% 39% 10%

Comparing raw counts would be misleading here: Country 1 has more people of every type simply because it is the largest group. Always compare percentages within groups.

  • A side-by-side bar graph draws, for each country, one bar per blood type (heights are the conditional percentages).
  • A segmented bar graph draws one bar of the same length for each group, divided into segments by these percentages.
  • A mosaic plot does the same, but makes the width of each bar proportional to the size of the group. So it also shows how many people are in each group, and the area of a rectangle is proportional to the number of people in that cell.
Left: three equal-width bars for countries 1 to 3 split into blood types O, A, B and AB. Right: a mosaic plot of the same data where the bar widths are proportional to 250, 150 and 100 people
Same percentages; the mosaic plot also shows that Country 1 is the largest group.

Association. Two categorical variables are associated if the conditional distributions of one variable differ from group to group of the other. Here they clearly differ: type O is 60% of Country 1 but under a third of Countries 2 and 3, and type B is far more common in Country 3. So blood type and country are associated; knowing a person's country changes what we expect their blood type to be. If there were no association, all the bars would be split the same way. (In Unit 4 the same idea appears as independence of events.) The mosaic plot also shows that the number of type A people is about the same in Countries 1 and 2 (73 and 75), since those two rectangles have about the same area.

An association in a two-way table, like a correlation, does not show cause and effect.

Scatterplots

In Unit 1 we looked at one variable at a time. Now every individual gives us two quantitative values, a pair (x,y), and we want to know how they are related. The graph for this is a scatterplot: one point per individual.

  • The explanatory variable x (the one we think explains or predicts) goes on the horizontal axis.
  • The response variable y (the one we measure as the outcome) goes on the vertical axis.

TI-84 (Scatterplot). Enter the x-values in L1 and the y-values in L2 (STAT → 1:Edit). Then 2nd Y= (STAT PLOT) → Plot1 → On, choose the first type (scatter), Xlist: L1, Ylist: L2, and ZOOM → 9:ZoomStat. Turn off any functions in Y= that you do not want drawn on top.

Describe a scatterplot with direction, form and strength (plus unusual points), in context:

  • Positive association: above-average x goes with above-average y; the cloud rises from left to right.
  • Negative association: above-average x goes with below-average y; the cloud falls from left to right.
  • Form: linear, or curved (for example U-shaped).
  • Strength: how tightly the points follow the form.
Four scatterplots: positive linear, negative linear, no association, and a U-shaped curve
Direction and form; note that the curve has a strong relationship but r close to 0.

On the exam a quick hand sketch of the scatterplot is enough, but the axes must be labelled and scaled.

The Correlation Coefficient r

The correlation r measures the direction and the strength of a linear relationship:

r=1n−1∑(xi−x¯sx)(yi−y¯sy)=1n−1∑zxizyi.

So r is (almost) the average of the products of the z-scores. When a point is above average in both x and y, or below average in both, the product is positive; this is why positive association gives a positive r. You will not compute it by hand; the formula is on the formula sheet and the calculator gives r.

Properties of r:

  • −1≤r≤1. At r=±1 the points lie exactly on a line.
  • The sign gives the direction: r>0 positive, r<0 negative.
  • A rough guide to strength:
 -1        -0.8        -0.5         0         0.5        0.8         1
  |  strong  | moderate  |   weak   |   weak   | moderate  |  strong  |
  • r=0 means no linear relationship. There may still be a strong curved one: points on a U-shape can have r close to 0.
  • Swapping x and y does not change r.
  • Changing units (hours to minutes, inches to cm) does not change r.
  • r is not resistant. One point far away from the rest can change r a lot, even turn a negative association into a positive-looking one. Always look at the scatterplot, not just at r.
Four scatterplots with correlations of about 0.93, 0.76, 0.30 and minus 0.88
The tighter the cloud around a line, the closer r is to 1 or −1.

Correlation is not slope. A steep line with points widely scattered around it has a large slope but a small r; a nearly flat line with points tightly on it has a small slope but r close to 1. r measures how close the points are to a line, not how steep the line is.

Left: a steep regression line with scattered points; right: a nearly flat line with points tightly on it
A big slope does not mean a big r, and a small slope does not mean a small r.

TI-84 (Correlation). r and r2 only appear if diagnostics are on. Do this once: on the TI-84 Plus CE, MODE and set STAT DIAGNOSTICS: ON; on older models, 2nd 0 (CATALOG), scroll to DiagnosticOn and press ENTER twice. Then STAT → CALC → 8:LinReg(a+bx) gives a, b, r2 and r (see the box in the next section).

Correlation Does Not Imply Causation

A strong correlation between two variables does not show that one causes the other. Often a third variable (a lurking or confounding variable) drives both. Ice cream sales and drownings rise together, but hot weather causes both. Only a well-designed experiment (Unit 3) can show cause and effect.

The Least-Squares Regression Line (LSRL)

If the scatterplot looks linear, we fit a line to predict y from x. Here, unlike for r, it matters which variable is x and which is y.

y^=a+bx

  • y^ ("y-hat") is the predicted value of y.
  • b is the slope, a is the y-intercept (the predicted y when x=0).

For every point, the vertical distance from the point to the line is its residual:

residual=y−y^=actual−predicted.

For the regression line the residuals always add up to zero, ∑(y−y^)=0, so their sum cannot tell us which line is best. Instead we square them: the least-squares regression line (the "line of best fit") is the line that makes the sum of squared residuals ∑(y−y^)2 as small as possible.

A scatterplot with the regression line and dashed vertical segments from each point to the line; one point above the line has a positive residual and one below has a negative residual
Residuals are vertical distances: actual minus predicted.

Formulas.

b=rsysx,a=y¯−bx¯.

The second formula says that the LSRL always passes through the point (x¯,y¯). The first says that the slope and r always have the same sign.

Example. For hours studied (x) and test score (y): x¯=3, y¯=80, sx=2, sy=10, r=0.8. Then

b=0.8⋅102=4,a=80−4⋅3=68,score^=68+4(hours).

  • Slope in context: for each additional hour of study, the predicted score increases by 4 points.
  • Intercept in context: a student who does not study at all is predicted to score 68.
  • Prediction: a student who studies 2.5 hours is predicted to score 68+4(2.5)=78. This is a prediction, not a guarantee.
Points around the line score = 68 + 4 hours, a dashed guide from 2.5 hours to the predicted score 78, the point (3, 80) on the line, and a student at 4 hours scoring 82 just below the predicted 84
The line passes through (3, 80), predicts 78 at 2.5 hours, and the student at 4 hours has residual −2.

Always define the variables in context. "y^=68+4x" with no explanation of x and y does not get full credit.

Reading computer output. Regression software prints a table like this:

Predictor      Coef    SE Coef      T       P
Constant     68.000      ...       ...     ...
Hours         4.000      ...       ...     ...

S = ...      R-Sq = 64.0%

The number next to Constant is the intercept a, the number next to the variable name is the slope b, and R-Sq is r2. The other columns belong to inference (Unit 9).

TI-84 (The regression line). STAT → CALC → 8:LinReg(a+bx), then Xlist: L1 (explanatory), Ylist: L2 (response), Store RegEQ: Y1 (VARS → Y-VARS → 1:Function → 1:Y1), Calculate:

LinReg
 y=a+bx
 a=68
 b=4
 r²=.64
 r=.8

Because the line is stored in Y1, a prediction is one step: Y1(2.5) gives 78 (type Y1 from VARS → Y-VARS). GRAPH draws the line over the scatterplot. Use LinReg(a+bx), which matches the AP notation y^=a+bx; LinReg(ax+b) swaps the letters.

On the exam: write the equation with the variable names, score^=68+4(hours), not just "a=68, b=4".

Residuals and Residual Plots

  • A positive residual means the point is above the line: the actual value is higher than predicted (the line underestimated).
  • A negative residual means the point is below the line: the line overestimated.

Example. With score^=68+4(hours), a student who studied 4 hours and scored 82 has predicted score 68+16=84 and residual 82−84=−2. The line overestimated this student by 2 points.

A residual plot puts the residuals on the vertical axis against x (or against the predicted values y^). It is the main tool for checking whether a line is a good model. A line is appropriate when the residuals are

  1. randomly scattered with no pattern, and
  2. spread around 0.

Patterns that warn you:

  • a curve (U-shape or upside-down U): the relationship is not linear;
  • a fan that opens out: the predictions get less reliable as x grows;
  • residuals all positive at both ends and negative in the middle (or the reverse): again, a curve.
Three residual plots: random scatter around zero, a U-shaped curve, and a fan that widens
Only the first one says a line is a good model.

Example. Population growth is usually not linear but exponential. A line fitted to it misses at both ends, and the residual plot shows a clear U-shape.

TI-84 (Residual plot). Every LinReg stores its residuals in the list RESID. Make a scatterplot with Xlist: L1 and Ylist: RESID (2nd STAT (LIST) → NAMES → RESID), then ZOOM → 9:ZoomStat. To see the residuals as numbers, go to STAT → 1:Edit, move to the name of an empty list, type RESID and press ENTER. Run LinReg again whenever the data changes, because RESID belongs to the last regression.

Interpolation and Extrapolation

  • Interpolation: predicting for an x-value inside the range of the data. Fairly safe if the line fits well.
  • Extrapolation: predicting for an x-value outside that range. Dangerous: nothing guarantees the linear pattern continues. A line that predicts children's height from age between 18 and 29 months will give absurd heights if you plug in an age of 12 years.
Data points in a shaded middle range with the regression line solid there and dashed outside, with question marks at both ends
Inside the data we can trust the line; outside we are guessing.

The Coefficient of Determination r2

Without any x information, the best prediction for y is simply y¯. Compare the total error of the two ways of predicting:

SST=∑(y−y¯)2(error using the mean),SSE=∑(y−y^)2(error using the line).

r2=SST−SSESST

is the proportion of the variation in y that is explained by the linear relationship with x. It is exactly the square of the correlation r.

The same points measured against a horizontal line at the mean of y and against the regression line; the distances to the regression line are much shorter
The line removes most of the error we would make by always guessing the mean.

Interpretation sentence (learn it): "r2=0.64 means that 64% of the variation in test score is explained by the linear relationship with hours studied."

Going back from r2 to r: r=±r2, and the sign is the sign of the slope. If r2=0.64 and the slope is positive, r=0.8; if the slope is negative, r=−0.8.

The Standard Deviation of the Residuals s

r2 tells us what fraction of the variation the line explains; s tells us how big the prediction errors typically are, in the units of y:

s=∑(yi−y^i)2n−2=SSEn−2.

In computer output it is the number labelled S.

Interpretation sentence (learn it): "s=6.2 means that the actual test scores typically differ from the scores predicted by the line by about 6.2 points."

A good model has a small s compared with the size of the y-values, a high r2 and a residual plot without a pattern. Use all three; none of them alone proves that a line is appropriate.

Example (reading output). Regression of the time (seconds) to finish checkout on the number of customers already in line gives

Predictor        Coef    SE Coef      T       P
Constant        70.20     ...        ...     ...
Customers       165.80    ...        ...     ...

S = 185.0    R-Sq = 71.4%
  • Slope: for each additional customer in line, the predicted checkout time increases by about 166 seconds.
  • Intercept: a customer who arrives at an empty line is predicted to need about 70 seconds.
  • r2: 71.4% of the variation in checkout time is explained by the linear relationship with the number of customers in line.
  • s: actual checkout times typically differ from the predicted times by about 185 seconds.
  • r=+0.714≈0.845 (positive, because the slope is positive).

Slope in standard deviations. Since b=rsy/sx, an increase of one standard deviation in x predicts an increase of only r standard deviations in y. With |r|<1, predictions are pulled toward the mean of y: this is regression to the mean. Very tall parents tend to have tall children, but on average not as tall as themselves.

Regressing x on y is a different line. The LSRL of y on x minimises vertical distances. To predict x from y we must compute a new regression (with x and y swapped); solving y^=a+bx for x does not give it, except when r=±1.

Outliers and Influential Points

  • An outlier in regression is a point with a large residual: far from the line, outside the overall pattern.
  • An influential point is one that changes the regression a lot (slope, intercept, r) when you remove it. Points that are far out in the x-direction (high leverage) are often influential: they pull the line toward themselves, so they may even have a small residual.

To decide, imagine removing the point: if the line or r changes a lot, the point is influential.

Three scatterplots with regression lines: original data, an added point far above the others, and an added point far to the right that flattens the line
One added point changes r from about −0.98 to −0.59 (outlier) or −0.14 (influential point).

Transformations to Achieve Linearity

If the scatterplot or the residual plot shows a curve, a line is not a suitable model for the original data. Sometimes we can transform a variable so that the relationship becomes linear, fit a line to the transformed data, and then transform back.

The typical case is exponential growth (bacteria, populations, money with interest): take the natural logarithm of y.

  1. Compute ln⁡y for every point (on the calculator: L3 = ln(L2)).
  2. Check that x versus ln⁡y looks linear and its residual plot shows no pattern.
  3. Fit the line: ln⁡y^=a+bx (LinReg(a+bx) L1, L3).
  4. Predict, then back-transform: the line gives ln⁡y^, so y^=ea+bx.

TI-84 (Transforming a list). In the list editor, move the cursor onto the name L3 (at the top), type ln(L2) and press ENTER: every value of L3 becomes ln⁡y. (From the home screen: ln(L2) STO→ L3.) Then LinReg(a+bx) L1, L3, Y1 and the residual plot as usual. To back-transform a prediction, use 2nd LN (ex): e2.5≈12.18.

Left: points curving upward exponentially; right: the same x against ln y lying on a straight line
Taking ln y straightens exponential growth.

Example. The model is ln⁡y^=0.5+0.4x. For x=5: ln⁡y^=0.5+0.4⋅5=2.5, so y^=e2.5≈12.18. Forgetting the last step (answering 2.5) is the classic mistake.

Left: the straight line ln y-hat = 0.5 + 0.4x reaching 2.5 at x = 5; right: the curve y-hat = e to the 0.5 + 0.4x reaching about 12.18 at x = 5
Read 2.5 from the line, then undo the logarithm: e^2.5 ≈ 12.18.

On the exam you will rarely transform raw data yourself; more often you get the output for transformed data and are asked whether the transformation helped (compare the scatterplots, residual plots and r2 values).


Unit 2 Practice 1

Fifteen multiple-choice questions and four free-response questions on two-variable data, adapted from Barron's AP Q&A Statistics, 5 Steps to a 5 and released AP exams.

Multiple-Choice Questions

15 multiple-choice questions on Unit 2. Calculator allowed. Suggested time: 35 minutes.

1. For a random sample of essays, the regression of grade on essay length gives grade^=55.1+0.8(length) with r=0.3. What percentage of the variation in grades is explained by the linear relationship with length?

  • (A) 0.3%
  • (B) 3%
  • (C) 9%
  • (D) 30%
  • (E) 55%

2. Which of the following statements about the least-squares regression line is incorrect?

  • (A) It always passes through the point (x¯,y¯).
  • (B) Its slope always has the same sign as the correlation.
  • (C) It makes the sum of the squared residuals as small as possible.
  • (D) Its slope is always between −1 and 1.
  • (E) The residuals always add up to 0.

3. For a set of paired data, x¯=4, sx=2, y¯=10 and sy=6. Which of the following could be the least-squares regression line?

  • (A) y^=2+2x
  • (B) y^=−6+4x
  • (C) y^=4+2x
  • (D) y^=26−4x
  • (E) y^=10+3x

4. The correlation between two variables is r=−0.4. Every y-value is multiplied by −3. Which describes the new scatterplot?

  • (A) It slopes down to the right, and r=−0.4.
  • (B) It slopes up to the right, and r=0.4.
  • (C) It slopes up to the right, and r=1.2.
  • (D) It slopes down to the right, and r=−1.2.
  • (E) It slopes up to the right, and r=−0.4.

5. Ten people on a diet each lost exactly 5 kg. What is the correlation between their weights before and after the diet?

  • (A) 0
  • (B) 0.5
  • (C) 1
  • (D) −1
  • (E) It cannot be found without the data.

6. For used phones, price^=900−30(age in months), and 64% of the variation in price is explained by the linear relationship with age. What is the correlation?

  • (A) −0.8
  • (B) −0.64
  • (C) 0.64
  • (D) 0.8
  • (E) It cannot be determined.

7. For cars travelling at 80 km/h, the regression of braking distance (m) on car weight (kg) is d^=40+0.025w. What is the best interpretation of the intercept 40?

  • (A) For each additional kilogram, the predicted braking distance increases by 40 m.
  • (B) For each additional metre of braking distance, the car is 40 kg heavier on average.
  • (C) A car that weighs 40 kg has a predicted braking distance of 0 m.
  • (D) On average, cars brake within 40 m.
  • (E) It has no meaningful interpretation, because a weight of 0 kg is far outside the data.

8. A teacher found score^=50+5(hours) for predicting test score from hours of study. To predict hours from score, she solves for hours and gets hours^=−10+0.2(score). Is this correct?

  • (A) Yes; solving the equation algebraically gives this result.
  • (B) Yes; the correlation is the same whichever variable is x.
  • (C) No; the line for predicting hours minimises errors in hours, so it must be computed separately, and it equals this only if r=±1.
  • (D) No; the slope should still be 5.
  • (E) No; regression can never be used to predict the explanatory variable.

9. The line y^=12+3x is fitted to some data. What is the residual of the point (5,30), and what does it say?

  • (A) −3; the line overestimates y
  • (B) 3; the line underestimates y
  • (C) 3; the line overestimates y
  • (D) −3; the line underestimates y
  • (E) 27; the predicted value is 27

Questions 10–11 refer to a survey of 200 cinema-goers who were asked whether they bring their own snacks.

Yes No Total
Teenagers 96 24 120
Adults 54 26 80
Total 150 50 200

10. What percentage of the adults bring their own snacks?

  • (A) 27%
  • (B) 36%
  • (C) 54%
  • (D) 67.5%
  • (E) 80%

11. Which statement gives evidence of an association between age group and bringing snacks?

  • (A) More teenagers (96) than adults (54) said yes.
  • (B) 80% of teenagers but only 67.5% of adults said yes.
  • (C) There are more teenagers (120) than adults (80) in the sample.
  • (D) Most of the people in the sample (75%) said yes.
  • (E) The table has four cells.

12. A scatterplot shows a strong positive linear pattern for x between 0 and 20, plus one point at x=60 that lies close to the line through the other points. If this point is removed, what will most likely happen?

  • (A) The slope will change sign.
  • (B) The point's residual will become large.
  • (C) The correlation will move closer to 1.
  • (D) The residual plot will become curved.
  • (E) The correlation will move closer to 0.

13. A line predicting children's height from age was fitted to data for ages 3 to 10 years. Using it to predict the height of a 30-year-old gives a height of 3.1 m. What is the best explanation?

  • (A) The correlation must be weak.
  • (B) The residuals were not added correctly.
  • (C) The slope was calculated with the wrong formula.
  • (D) The point (x¯,y¯) is not on the line.
  • (E) This is an extrapolation: the linear pattern does not continue beyond the ages in the data.

14. After a log transformation, the model ln⁡y^=1.2+0.3x was found. What is the predicted value of y when x=4?

  • (A) 2.4
  • (B) 3.30
  • (C) 6.05
  • (D) 11.02
  • (E) 251.2

15. The regression of final exam score on homework average has s=6.5 points. What does this mean?

  • (A) Actual final exam scores typically differ from the scores predicted by the line by about 6.5 points.
  • (B) For each additional point of homework average, the predicted exam score rises by 6.5 points.
  • (C) 6.5% of the variation in exam scores is not explained by the line.
  • (D) The exam scores vary by about 6.5 points from their mean.
  • (E) The largest residual is 6.5 points.
Answer key
Question Answer Why
1 C r2=0.32=0.09.
2 D The slope b=rsy/sx can be any number; it is r that lies between −1 and 1.
3 A The line must pass through (4,10) and have |b|=|r|⋅3≤3. Only (A) does both (r=2/3).
4 B Multiplying by a negative number flips the direction; the strength is unchanged, so r=0.4.
5 C After = before −5: the points lie exactly on a line with positive slope.
6 A r=±0.64, and the sign is the sign of the slope (−30).
7 E A car of 0 kg does not exist; the intercept is an extrapolation.
8 C The regression of x on y is a different line.
9 B y^=12+15=27; residual =30−27=3>0, so the point is above the line.
10 D 54/80=0.675. (27% is 54/200 and 36% is 54/150.)
11 B Association means the conditional percentages differ; raw counts depend on group size.
12 E A far-out point that follows the trend makes the pattern look stronger; without it r drops.
13 E Predictions far outside the range of x are not trustworthy.
14 D ln⁡y^=2.4, so y^=e2.4≈11.02.
15 A s is the typical size of a residual. (D describes sy.)

Free-Response Questions

FRQ 1 (interpreting regression output). Modelled on AP Statistics 2022, FRQ 1, and 2018, FRQ 1. A biologist measured the length (cm) and mass (g) of 12 lizards of one species, whose lengths ranged from 10 to 24 cm. The scatterplot showed a strong, positive, linear relationship, and regression software gave:

Predictor      Coef      SE Coef      T        P
Constant     -18.40       ...        ...      ...
Length         1.92       ...        ...      ...

S = 3.10     R-Sq = 84.0%

(a) Write the equation of the least-squares regression line, defining the variables, and interpret the slope in context.

(b) Interpret r2 and find the correlation r.

(c) One lizard is 18 cm long and has a mass of 12 g. Find its residual. Does the line overestimate or underestimate its mass?

(d) Would it be reasonable to use the line to predict the mass of a 45 cm lizard of a related species? Explain.

Solution

(a) mass^=−18.40+1.92(length), where mass is in grams and length in centimetres. Slope: for each additional centimetre of length, the predicted mass of a lizard increases by 1.92 g.

(b) 84% of the variation in the mass of these lizards is explained by the linear relationship with length. Since the slope is positive, r=+0.84≈0.917.

(c) mass^=−18.40+1.92⋅18=16.16 g. Residual =12−16.16=−4.16 g. The residual is negative, so the line overestimates this lizard's mass by about 4.2 g.

(d) No. 45 cm is far outside the range of the data (10 to 24 cm), so this is an extrapolation: there is no evidence that the linear pattern continues. In addition, the lizard belongs to a different species, which the data does not describe.

FRQ 2 (two categorical variables). Modelled on AP Statistics 2024, FRQ 2. Students at two schools were asked which kind of book they read most. School A surveyed 200 students: 45% said fiction, 35% nonfiction and 20% comics. School B surveyed 600 students: 30% fiction, 30% nonfiction and 40% comics.

(a) Describe how segmented bar graphs comparing the two schools would look.

(b) The librarian of school A says: "More of our students read fiction than at school B." Is this correct for the students surveyed? Explain.

(c) Is there an association between school and preferred kind of book for these students? Justify.

Solution

(a) Two bars of equal height (100%), one per school. School A's bar is split into segments of 45%, 35% and 20% (fiction, nonfiction, comics); school B's into 30%, 30% and 40%. The fiction segment is taller for A and the comics segment is taller for B.

(b) No. The percentage is higher at A, but the counts are 0.45⋅200=90 students at A and 0.30⋅600=180 students at B. Twice as many surveyed students at B read mostly fiction, because B's sample is three times larger.

(c) Yes. The conditional distributions of preferred kind of book differ between the schools: fiction is 45% at A but 30% at B, and comics are 20% at A but 40% at B. Knowing the school changes the distribution of preferences, so the variables are associated (for these students).

FRQ 3 (the line from summary statistics). Modelled on the free-response problems of Barron's AP Q&A Statistics, Chapter 5. For a random sample of students, the hours of sleep per night have mean 7.2 and standard deviation 0.9, and their grade point averages (GPA) have mean 3.1 and standard deviation 0.45. The correlation is r=0.6.

(a) Find the least-squares regression line for predicting GPA from hours of sleep.

(b) Predict the GPA of a student who sleeps 8 hours.

(c) A student sleeps one standard deviation more than the mean. How many standard deviations above the mean GPA is the predicted GPA? What is this effect called?

(d) A counsellor wants to predict hours of sleep from GPA and uses the line from (a), solved for sleep. Find the correct line and explain why the two differ.

Solution

(a) b=rsysx=0.6⋅0.450.9=0.3 and a=y¯−bx¯=3.1−0.3⋅7.2=0.94. So GPA^=0.94+0.3(hours of sleep).

(b) GPA^=0.94+0.3⋅8=3.34.

(c) Only r=0.6 standard deviations above the mean GPA (3.1+0.6⋅0.45=3.37, which matches 0.94+0.3⋅8.1). Because |r|<1, predictions are closer to the mean (in standard deviations) than the x-value is: regression to the mean.

(d) With sleep as the response: b=0.6⋅0.90.45=1.2 and a=7.2−1.2⋅3.1=3.48, so sleep^=3.48+1.2(GPA). Solving the first line for sleep would give slope 1/0.3≈3.33, not 1.2. The two lines differ because each minimises the squared errors of its own response variable (vertical errors for GPA in one case, errors in hours in the other); they coincide only when r=±1.

FRQ 4 (choosing a model). Modelled on AP Statistics 2014, FRQ 6, and the transformation problems in 5 Steps to a 5. The number of users (thousands) of a new app was recorded for 12 months. Two models were fitted, with month x=1,2,…,12:

  • Model I: y^=−4.1+2.3x, with r2=0.91; the residual plot is clearly U-shaped.
  • Model II: ln⁡y^=0.85+0.21x, with r2=0.99; the residual plot shows random scatter around 0.

(a) Which model is more appropriate? Give two reasons.

(b) Use the better model to predict the number of users in month 10.

(c) By what factor does Model II predict the number of users grows each month?

Solution

(a) Model II. Its residual plot has no pattern, while the U-shape in Model I's residual plot shows that the relationship is curved and a line misses systematically. Also, Model II explains more of the variation (r2=0.99 compared with 0.91), though the residual plot is the more important reason.

(b) ln⁡y^=0.85+0.21⋅10=2.95, so y^=e2.95≈19.1 thousand users.

(c) Each extra month adds 0.21 to ln⁡y^, which multiplies y^ by e0.21≈1.23: about 23% growth per month.


Unit 2 Practice 2

A second set of fifteen multiple-choice questions and three free-response questions on Unit 2.

Multiple-Choice Questions

15 multiple-choice questions on Unit 2. Calculator allowed. Suggested time: 35 minutes.

1. Which correlation shows the strongest linear relationship?

  • (A) 0.60
  • (B) −0.85
  • (C) 0.79
  • (D) 0
  • (E) −0.50

2. Which statement about the residuals of a least-squares regression line is always true?

  • (A) They are all positive.
  • (B) Half of them are positive and half negative.
  • (C) Their squares add up to 0.
  • (D) The largest residual belongs to the largest x-value.
  • (E) They add up to 0.

3. The line y^=4.5+0.8x is used to predict y. What is the prediction for x=10?

  • (A) 12.5
  • (B) 8.5
  • (C) 13.3
  • (D) 45.8
  • (E) 0.8

4. For a set of paired data, r=−0.6, sx=5 and sy=20. What is the slope of the least-squares regression line of y on x?

  • (A) −0.15
  • (B) −0.6
  • (C) −2.4
  • (D) 2.4
  • (E) −4

5. The correlation between two variables is r=0.16. Every x-value is tripled, 0.04 is added to every y-value, and then the roles of x and y are swapped. What is the new correlation?

  • (A) 0.20
  • (B) 0.48
  • (C) 0.52
  • (D) 0.16
  • (E) 0.60

6. The correlation between a car's age and its price is r=−0.9. What fraction of the variation in price is explained by the linear relationship with age?

  • (A) 81%
  • (B) −81%
  • (C) 90%
  • (D) −90%
  • (E) 10%

7. The regression line is y^=30+2x. A point with x=8 has residual −3. What is its actual y-value?

  • (A) 49
  • (B) 46
  • (C) 43
  • (D) 40
  • (E) 3

8. In a city, the number of firefighters sent to a fire is strongly positively correlated with the amount of damage. What is the best explanation?

  • (A) Firefighters cause damage.
  • (B) Damage attracts more firefighters after the fire.
  • (C) The correlation must be a calculation error.
  • (D) A strong correlation always means a causal link.
  • (E) A lurking variable, the size of the fire, increases both.

9. A residual plot shows the residuals spreading out more and more as x increases (a fan shape). What does this mean?

  • (A) The relationship is curved.
  • (B) The predictions are less precise for large x-values.
  • (C) The correlation is negative.
  • (D) There are no outliers.
  • (E) The line fits perfectly.

10. Which kind of point is most likely to be influential in a regression?

  • (A) a point near (x¯,y¯)
  • (B) a point with a large y-value in the middle of the x-range
  • (C) a point with a small residual near the center
  • (D) a point with an extreme x-value that does not follow the pattern of the others
  • (E) a point on the regression line

Questions 11–12 refer to this survey of 300 students about a new timetable.

Like Dislike Total
Grade 10 90 60 150
Grade 12 50 100 150
Total 140 160 300

11. Of the students who like the timetable, what percentage are in grade 12?

  • (A) 33.3%
  • (B) 16.7%
  • (C) 50%
  • (D) 66.7%
  • (E) 35.7%

12. What is the marginal distribution of grade?

  • (A) 50% grade 10, 50% grade 12
  • (B) 60% grade 10, 40% grade 12
  • (C) 46.7% like, 53.3% dislike
  • (D) 64.3% grade 10, 35.7% grade 12
  • (E) 30% like in grade 10, 16.7% like in grade 12

13. A scatterplot of x against ln⁡y is strongly linear with random residuals. Which model fits the original data best?

  • (A) a straight line y^=a+bx
  • (B) a power model y^=axb
  • (C) a quadratic model
  • (D) an exponential model y^=a⋅bx
  • (E) no model can fit these data

14. The points (−2,3), (0,7), (1,9), (3,13) and (10,n) have correlation exactly r=1. What is n?

  • (A) 25
  • (B) 26
  • (C) 27
  • (D) 30
  • (E) No value of n makes r=1.

15. A residual plot shows a clear U-shaped pattern. What is the best conclusion?

  • (A) The correlation is close to 0.
  • (B) A linear model is not appropriate; try a transformation or a curved model.
  • (C) There is an outlier that should be removed.
  • (D) The slope of the line is too steep.
  • (E) The line is appropriate, because the residuals add up to 0.
Answer key
Question Answer Why
1 B Strength is |r|, and |−0.85| is the largest.
2 E For the LSRL ∑(y−y^)=0 always.
3 A 4.5+0.8⋅10=12.5.
4 C b=rsy/sx=−0.6⋅4.
5 D Changes of units and swapping x and y do not change r.
6 A r2=0.81; r2 is never negative.
7 C y^=46; actual =y^+residual=43.
8 E Bigger fires get more firefighters and cause more damage.
9 B The scatter around the line grows with x.
10 D High leverage plus not following the pattern pulls the line.
11 E 50/140≈0.357.
12 A Row totals 150 and 150 out of 300.
13 D ln⁡y^=a+bx gives y^=ea(eb)x.
14 C The first four points lie on y=7+2x, so n=7+20.
15 B A curved pattern in the residuals means the relationship is curved.

Free-Response Questions

FRQ 5 (predicting height). Modelled on AP Statistics 2015, FRQ 5. For a random sample of 30 adults, forearm length (cm) and height (cm) were measured. The scatterplot is linear, and the output is:

Predictor      Coef
Constant      52.30
Forearm        4.60

S = 4.80     R-Sq = 72.0%

(a) Predict the height of an adult with a forearm 26 cm long.

(b) One adult in the sample has a 26 cm forearm and is 180 cm tall. Find and interpret the residual.

(c) Interpret s=4.80 in context.

(d) If the heights had been measured in inches instead (1 inch = 2.54 cm), how would the slope, r2 and r change?

Solution

(a) height^=52.30+4.60⋅26=171.9 cm.

(b) Residual =180−171.9=8.1 cm. This adult is 8.1 cm taller than the line predicts for a 26 cm forearm (the line underestimates the height).

(c) The actual heights typically differ from the heights predicted by the line by about 4.8 cm.

(d) Each height is divided by 2.54, so the slope becomes 4.60/2.54≈1.81 inches of height per cm of forearm. r and r2 do not change: correlation has no units.

FRQ 6 (an influential point). Modelled on AP Statistics 2012, FRQ 1. A magazine rated 14 pairs of headphones on a 0–100 quality scale and recorded their prices (euros). With all 14 pairs, the regression line is rating^=22+0.12(price) with r=0.62. One pair is far more expensive than the others (400 euros) and has a rating of only 50. Without it, the line is rating^=15+0.30(price) with r=0.85.

(a) Describe the effect of the expensive pair on the slope and on the correlation.

(b) What kind of point is the expensive pair? Explain.

(c) Interpret the slope of the line without the expensive pair.

Solution

(a) With the expensive pair the slope is much smaller (0.12 instead of 0.30) and the correlation is weaker (0.62 instead of 0.85). The point pulls the right end of the line down toward itself.

(b) It is an influential point: its price is far from the other prices (high leverage), it does not follow the pattern of the others (its rating is much lower than the trend predicts), and removing it changes the slope and r a lot.

(c) Among the 13 other pairs, each additional euro of price is associated with an increase of 0.30 points in the predicted quality rating (3 points per 10 euros).

FRQ 7 (association in a two-way table). Modelled on AP Statistics 2014, FRQ 1. A school asked 240 students how they usually get to school.

Walk Bus Car Total
Grade 9 40 70 10 120
Grade 12 30 30 60 120
Total 70 100 70 240

(a) What proportion of grade 12 students come by car?

(b) Give the conditional distributions of travel mode for each grade, and describe how segmented bar graphs of them would look.

(c) Is there an association between grade and travel mode for these students? Explain.

Solution

(a) 60120=0.50.

(b) Grade 9: walk 40/120≈33.3%, bus 58.3%, car 8.3%. Grade 12: walk 25%, bus 25%, car 50%. In the segmented bar graphs, the grade 9 bar is mostly bus with a thin car segment; the grade 12 bar has a car segment six times as tall and a much shorter bus segment.

(c) Yes. The conditional distributions are clearly different: 50% of grade 12 students come by car but only 8.3% of grade 9 students, while 58.3% of grade 9 students take the bus compared with 25% of grade 12 students. Knowing the grade changes what we expect about the travel mode. (Many grade 12 students are old enough to drive; the association does not tell us the cause.)


Unit 2 Practice 3

A third set of fifteen multiple-choice questions and three free-response questions on Unit 2.

Multiple-Choice Questions

15 multiple-choice questions on Unit 2. Calculator allowed. Suggested time: 35 minutes.

1. Which of the following is not part of describing a scatterplot?

  • (A) direction
  • (B) form
  • (C) strength
  • (D) the mean of the x-values
  • (E) unusual points

2. The correlation between height (cm) and weight (kg) of a group is 0.65. What is the correlation if height is measured in inches?

  • (A) 0.65
  • (B) 0.65/2.54
  • (C) 0.65⋅2.54
  • (D) 0.652
  • (E) It cannot be determined without the data.

3. A least-squares regression line has slope 2.5, and x¯=12, y¯=40. What is its intercept?

  • (A) 40
  • (B) 30
  • (C) 10
  • (D) −10
  • (E) 2.5

4. For used cars, price^=28−1.5(age), with price in thousands of euros and age in years. What does the slope mean?

  • (A) A new car costs 1.5 thousand euros.
  • (B) For each additional year of age, the predicted price decreases by 1.5 thousand euros.
  • (C) Every car loses exactly 1.5 thousand euros each year.
  • (D) The price of a car decreases by 1.5% per year.
  • (E) For each thousand euros of price, the car is 1.5 years younger.

5. A regression has r2=0.49 and a negative slope. What is r?

  • (A) 0.49
  • (B) −0.49
  • (C) 0.7
  • (D) −0.24
  • (E) −0.7

6. A point has a positive residual. What does this mean?

  • (A) The point is to the right of x¯.
  • (B) The point is an outlier.
  • (C) The actual y-value is above the predicted value.
  • (D) The point is influential.
  • (E) The line overestimates y for this point.

7. For a regression, the standard deviation of the residuals is s=0. What can we conclude?

  • (A) r=0.
  • (B) The slope is 0.
  • (C) All the y-values are equal.
  • (D) The data has no outliers, but the points need not be on a line.
  • (E) All the points lie exactly on the regression line.

8. The heights of fathers and sons have correlation r=0.5. A father is 2 standard deviations taller than the mean of fathers. The regression line predicts his son to be how many standard deviations above the mean of sons?

  • (A) 2
  • (B) 1
  • (C) 0.5
  • (D) 4
  • (E) 0.25

9. Across towns, the number of churches is strongly positively correlated with the number of crimes. What is the most likely explanation?

  • (A) A lurking variable, the population of the town, increases both.
  • (B) Churches cause crime.
  • (C) Crime causes churches to be built.
  • (D) The correlation must be negative.
  • (E) There is no association.

10. After transforming both variables, the model ln⁡y^=1.1+2ln⁡x was found. What is the predicted y for x=3?

  • (A) 3.30
  • (B) 9
  • (C) 13.1
  • (D) 27.0
  • (E) 54.0

11. Which display is best for comparing the proportions of students in each grade who play a sport?

  • (A) a segmented bar graph
  • (B) a scatterplot
  • (C) a boxplot
  • (D) a stemplot
  • (E) a histogram

12. In a survey of 200 adults, 20 of the 80 smokers and 72 of the 120 non-smokers exercise regularly. What proportion of the smokers exercise regularly?

  • (A) 0.10
  • (B) 0.20
  • (C) 0.217
  • (D) 0.25
  • (E) 0.40

13. The residual plot of a linear model shows no pattern, with points scattered evenly around 0. What does this suggest?

  • (A) The correlation is close to 1.
  • (B) There is no relationship between x and y.
  • (C) A linear model is appropriate.
  • (D) The relationship is curved.
  • (E) The slope is 0.

14. A line for predicting a child's weight from age was fitted to children aged 2 to 8. A parent uses it to predict the child's weight at age 25. What is wrong?

  • (A) The correlation is too weak.
  • (B) The residuals are not normal.
  • (C) The slope should be negative.
  • (D) Weight cannot be predicted from age.
  • (E) It is an extrapolation far beyond the ages in the data.

15. A scatterplot shows a moderate positive linear pattern. One point in the middle of the x-range lies far above the others. If this point is removed, what is most likely to happen?

  • (A) The slope changes sign.
  • (B) The correlation increases, but the slope changes little.
  • (C) The correlation decreases, and the slope changes a lot.
  • (D) Nothing changes.
  • (E) The intercept becomes 0.
Answer key
Question Answer Why
1 D Describe direction, form, strength and unusual points, in context.
2 A Changing units does not change r.
3 C The line passes through (x¯,y¯): a=40−2.5⋅12=10.
4 B The slope is the change in the predicted price per year.
5 E r=−0.49, with the sign of the slope.
6 C Residual = actual − predicted >0.
7 E s=0 means every residual is 0.
8 B r⋅2=1: regression to the mean.
9 A Bigger towns have more of both.
10 D ln⁡y^=1.1+2ln⁡3≈3.297, so y^=e3.297≈27.0 (equivalently e1.1⋅32).
11 A Segmented bars compare conditional percentages.
12 D 20/80.
13 C Random residuals around 0 are what a good linear fit leaves.
14 E Age 25 is far outside 2–8.
15 B An outlier in y near x¯ weakens r but has little leverage on the slope.

Free-Response Questions

FRQ 8 (regression output). Modelled on AP Statistics 2017, FRQ 1. Foresters measured the trunk diameter (cm) and the age (years) of 25 trees of one species. The output for predicting age from diameter is:

Predictor      Coef
Constant       3.20
Diameter       2.15

S = 6.40     R-Sq = 79.0%

(a) Interpret the slope in context.

(b) A tree with a diameter of 30 cm is 70 years old. Find its residual. Is the tree older or younger than predicted?

(c) Find the correlation between diameter and age.

(d) A forester says: "The intercept tells us that a tree with zero diameter is 3.2 years old." Comment.

Solution

(a) For each additional centimetre of trunk diameter, the predicted age of a tree increases by 2.15 years.

(b) age^=3.20+2.15⋅30=67.7 years. Residual =70−67.7=2.3 years: the tree is 2.3 years older than predicted.

(c) r=+0.79≈0.889 (positive, because the slope is positive).

(d) The intercept is an extrapolation: no tree in the data has a diameter near 0, so we should not interpret it. (Very young trees do have tiny diameters, but the linear pattern need not hold there.)

FRQ 9 (the line by hand). Modelled on the two-variable free-response problems of Barron's AP Q&A Statistics, Chapter 5. Five students recorded hours of practice x and the number of correct answers y on a short quiz: (1,2), (2,4), (3,5), (4,4), (5,5).

(a) Find the least-squares regression line, using b=∑(x−x¯)(y−y¯)∑(x−x¯)2 and a=y¯−bx¯.

(b) Find all five residuals and check that they add up to 0.

(c) Find r2 and s.

Solution

(a) x¯=3 and y¯=4. The deviations x−3 are −2,−1,0,1,2 and y−4 are −2,0,1,0,1.

∑(x−x¯)(y−y¯)=4+0+0+0+2=6,∑(x−x¯)2=4+1+0+1+4=10,

so b=0.6 and a=4−0.6⋅3=2.2: y^=2.2+0.6x.

(b) Predicted values 2.8, 3.4, 4.0, 4.6, 5.2; residuals −0.8,0.6,1.0,−0.6,−0.2. Their sum is −0.8+0.6+1.0−0.6−0.2=0.

(c) SSE=0.64+0.36+1+0.36+0.04=2.4 and SST=∑(y−y¯)2=4+0+1+0+1=6. Then

r2=6−2.46=0.6,s=2.45−2≈0.894.

60% of the variation in correct answers is explained by the linear relationship with practice time, and the actual numbers of correct answers typically differ from the predictions by about 0.9.

FRQ 10 (what "no association" looks like). Modelled on the two-way table questions in Barron's AP Statistics Premium, Unit 2. 400 adults were asked which of two phone brands they prefer.

Brand A Brand B Total
Under 30 120 80 200
30 and over 60 140 200
Total 180 220 400

(a) Find the proportion who prefer brand A in each age group.

(b) Is there an association between age group and preferred brand? Explain.

(c) Fill in a table with the same totals that would show no association.

Solution

(a) Under 30: 120200=0.60. 30 and over: 60200=0.30.

(b) Yes. Brand A is preferred by 60% of the younger adults but only 30% of the older ones; the conditional distributions of brand differ by age group.

(c) With no association, both age groups would prefer A in the same proportion as everyone, 180400=45%:

Brand A Brand B Total
Under 30 90 110 200
30 and over 90 110 200
Total 180 220 400

Unit 3: Collecting Data

Most of AP Statistics is about analysing data and drawing conclusions from it. This unit is about the step before that: how the data is collected. A conclusion can never be better than the data behind it, so a badly collected sample makes every later calculation meaningless, however careful it is.

Census or Sample?

The only way to know a population exactly is a census: you check every unit in the population. In practice a census is usually

  • impractical (you cannot reach everybody),
  • too slow, and
  • too expensive.

So we take a sample, a part of the population, and use it to say something about the whole. The aim is a representative sample: one that looks like the population in the features we care about. A well-chosen sample of a few thousand people can describe a whole country surprisingly well; a badly chosen sample of a million can be useless.

Population, Sampling Frame and Sample

Three different sets are involved, nested inside each other:

  • the population: everyone we want to know about,
  • the sampling frame: the list we actually choose from,
  • the sample: the units we end up selecting from the frame.
Nested regions: the population, the sampling frame inside it, and the sample inside the frame; the part of the population outside the frame cannot be chosen
Whoever is not on the list can never be in the sample.

Ideally the frame is the population, but often it is not. If you want to study all students of a school but choose from the list of students who have an e-mail address, everyone without one is in the population but not in the frame, and can never be selected.

Bias is not the same as "nonrepresentative". Bias is a property of the method: a biased method gives estimates that are too high (or too low) on average, over many samples. Nonrepresentative describes one particular sample that happens to differ from the population. A perfectly fair random method can still, by bad luck, give a nonrepresentative sample; it just does not do so systematically.

Probability Samples

In a probability sample every member of the population has a known chance of being chosen, and some random mechanism (drawing names, a random number generator, dice) does the choosing. The chances do not have to be equal, but they have to be known. Using chance instead of human judgement is what protects us from bias.

Example (equal or only known chances?). A college has 3000 students, and we want a sample of 30.

  • Method I. Write each student's name on one card, put the 3000 cards in a box, mix them and draw 30. Every student has the same chance, so this is a random sample (in fact an SRS).
  • Method II. The 500 final-year students each write their name on 4 cards, and the other 2500 students on one card each. The box now holds 500⋅4+2500=4500 cards, and we draw 30. A final-year student is about four times as likely to be chosen as anyone else. The chances are not equal, but we know exactly what they are, so this is still a probability sample, though not a random sample.
Four grids of 60 dots showing which units are chosen in a simple random, systematic, stratified and cluster sample
The four probability samples at a glance.

Random Sample and Simple Random Sample (SRS)

  • Random sample: every individual has the same chance of being selected.
  • Simple random sample (SRS) of size n: every possible group of n individuals has the same chance of being the sample.

An SRS is always a random sample, but a random sample is not always an SRS.

Example (drawing names). A school has 3000 seniors and we want 30 of them. Write every name on a slip, mix the slips well and draw 30. Every set of 30 seniors could come out, all with the same chance, so this is an SRS.

Example (two from each team). A league has 20 teams with 32 players each, 640 players in total. We want 40 players, so we pick 2 players at random from every team.

  • Each player has the same chance, 2/32, of being chosen, so this is a random sample.
  • But a sample made of all 32 players of team 1 and 8 players of team 2 can never come out of this method, even though it is a perfectly valid group of 40 players. Not every group of 40 is possible, so this is not an SRS.
Twenty teams each with two chosen players; below, a group of 40 made of all of team 1 and 8 of team 2 that this method can never produce
Same chance for every player, but not every group of 40 is possible.

Counting samples. The number of different samples of size k from n individuals is

(nk)=C(n,k)=n!(n−k)!k!.

For example, {1,2,3,4} has (42)=4!2!2!=4⋅32=6 subsets of size 2: {1,2},{1,3},{1,4},{2,3},{2,4},{3,4}.

TI-84 (Counting with nCr). MATH → PROB → 3:nCr: type 12, then nCr, then 4, and ENTER gives 495. Factorials are MATH → PROB → 4:!, so 12!/(4!*8!) gives the same number.

Example (counting the possible samples). A population has 12 people, p1,p2,…,p12, and we want a sample of 4. The number of different samples of size 4 is

(124)=12!4!8!=495.

An SRS must make all 495 of them equally likely. Now try this method instead: split the people into four groups {p1,p2,p3}, {p4,p5,p6}, {p7,p8,p9}, {p10,p11,p12} and pick one person at random from each group. A sample such as {p1,p5,p9,p12} is possible, but {p1,p2,p3,p4} can never be reached, because it takes three people from the same group. So the method is random but not an SRS.

Twelve people p1 to p12 in four groups of three; the sample p1, p5, p9, p12 is possible, the sample p1, p2, p3, p4 is impossible
One person per group: some samples of 4 can never occur.

Systematic Sample

Choose the first unit at random, then take every k-th unit after it. For a population of size N:

k=Nn(sample of size n),k=100p(sample of p% of the population).

Pick the starting point at random from the first k units, then keep adding k.

Example. From 100 students we want 10, so k=10. Pick a random starting point between 1 and 10, say 3, and then take

3, 13, 23, 33, …, 93.

Example. From 20 people we want 5, so k=4. Pick a random start between 1 and 4, say 3: the sample is 3,7,11,15,19.

Twenty numbered boxes in blocks of four, with 3, 7, 11, 15 and 19 highlighted
Random start 3, then every 4th.

Example (exam style). Describe a systematic method to select 30 students from a population of 3000. Number the students from 1 to 3000. Since 3000/30=100, choose a random number between 1 and 100, say 23, and then take every 100th student: 23,123,223,…,2923.

Example (a percentage). We want 10% of the seniors on an alphabetical list. Then k=100/10=10: choose one of the first 10 names at random and take every 10th name after it.

Before the starting point is chosen every person has the same chance (1/k) of being selected, so a systematic sample is a random sample. It is not an SRS: neighbours on the list can never be in the sample together. With 100 students and k=10, the sample {3,4,5,…,12} is a perfectly good group of 10, but this method can never produce it.

Stratified Random Sample

  1. Divide the population into groups called strata (singular: stratum). Units within a stratum are similar to each other.
  2. Take a separate SRS from every stratum.
  3. Combine them into one sample.

Notes:

  • The strata may have different sizes.
  • We may take different numbers of units from different strata. A common choice is to take them in proportion to the strata, so the sample mirrors the population.

Example. A company's staff is 45% engineers, 25% technicians, 15% office staff and 15% managers. A proportional stratified sample of 200 people takes an SRS of

0.45⋅200=90,0.25⋅200=50,0.15⋅200=30,0.15⋅200=30

from the four groups, 90+50+30+30=200 in total. If the company has N=10000 employees, the strata contain 4500, 2500, 1500 and 1500 people, and we take an SRS of 90 out of the 4500 engineers, 50 out of the 2500 technicians, and so on.

A bar for the 10 000 employees split 45%, 25%, 15%, 15%, with arrows labelled SRS down to a sample bar of 90, 50, 30, 30
Each group is sampled separately, in proportion to its size.

Stratifying guarantees that every group is represented, and it usually gives more precise estimates than an SRS of the same size.

Cluster Sample

  1. Divide the population into groups called clusters. Ideally each cluster is a small copy of the population, a mixture of all kinds of units.
  2. Choose some clusters at random.
  3. Take every unit in the chosen clusters.

Example. 40 people stand in a line and are split into clusters of 5: {1,…,5}, {6,…,10}, … Choose two clusters at random, say the 1st and the 5th, and survey everyone in them: 1,2,3,4,5 and 21,22,23,24,25.

Forty dots in eight clusters of five; clusters 1–5 and 21–25 are highlighted
Two whole clusters are surveyed, nobody else.

Cluster sampling is popular because it is cheap: choosing a few schools and surveying every teacher in them is far easier than visiting teachers scattered across a whole city.

One Population, Three Methods

Take again the population of 12 people p1,p2,…,p12 and a sample of size n=4. Each of the three methods below gives every person the same chance, 1/3, of being chosen, so each one is a random sample. But each method has samples of 4 that it can never produce, so none of them is an SRS.

  1. Systematic. Since 12/4=3, choose a random start among p1,p2,p3, say p2, and then take every 3rd person: {p2,p5,p8,p11}. The sample {p1,p2,p5,p6} can never come out, because two neighbours are never chosen together.
  2. Stratified. Split the people into four strata {p1,p2,p3}, {p4,p5,p6}, {p7,p8,p9}, {p10,p11,p12} and take an SRS of one person from each, for example {p1,p6,p9,p10}. The sample {p1,p2,p8,p11} can never come out, because it takes two people from the first stratum. (This only counts as stratified sampling if the people inside each stratum really are similar to each other: strata need to be homogeneous.)
  3. Cluster. Split the people into three clusters of four, {p1,p3,p7,p10}, {p2,p4,p5,p11}, {p6,p8,p9,p12}, choose a random number from 1 to 3, and take the whole cluster with that number. Only these 3 samples are possible; {p1,p2,p6,p8}, for example, can never come out.
Twelve people p1 to p12 sampled three ways: systematically (p2, p5, p8, p11), by strata (p1, p6, p9, p10) and by one whole cluster (p2, p4, p5, p11), each with a sample of four it can never produce
Same chance for everyone, yet each method rules out some samples of 4.

Compare this with an SRS, where all (124)=495 samples of size 4 are equally likely.

Stratified or Cluster? Don't Mix Them Up

Stratified Cluster
Groups are… similar inside, different from each other mixed inside, similar to each other
From each group we… take an SRS from every group take all units of some groups
Main reason precision, every group represented convenience, lower cost

Nonprobability Samples

Sometimes samples are collected without any random mechanism, and the collector simply hopes the result is representative. The danger is an unknown bias that we cannot measure. Common examples:

  1. Voluntary response (self-selected) sample. People decide themselves whether to take part: online polls, call-in shows, "send us your opinion" forms. Those with strong (usually negative) feelings answer the most.
  2. Convenience sample. The collector takes whoever is easiest to reach: the students in one classroom, the first people walking through a door. The collector, not chance, decides who is in the sample.
  3. Quota sample. The collector fills quotas so that the sample matches known features of the population (for example, 50% women), but chooses the individuals personally. It looks like a stratified sample, but the selection inside each group is not random.

Sampling Bias

Our goal is to avoid bias: a method that, on average, gives answers that are too high or too low. The main types:

  • Undercoverage. Part of the population can never be chosen because it is missing from the sampling frame. A survey done only online misses everyone without internet access.
  • Voluntary response bias. Comes from self-selected samples: the people who choose to answer are not typical.
  • Nonresponse bias. People are selected but do not answer. If those who stay silent differ from those who reply, the results are biased, even though the original selection was random.
  • Wording bias. The way a question is phrased pushes the answers. "Should students be forced to wear uniforms?" and "Should schools adopt a uniform to reduce peer pressure about clothes?" ask about the same policy but will get very different results. Mentioning the cost ("billions of dollars") or using loaded words ("forced") moves the answers in a predictable direction.
  • Response bias. People do not answer truthfully or accurately: they want to please the interviewer, they are embarrassed by the true answer, they misunderstand the question, or the order of the options influences them.

Example. A school counsellor asks the next 25 students who come for counselling how satisfied they are with the counselling service. Several problems at once:

  • it is a convenience sample, not a random one;
  • only students who already use the service are asked, so the rest of the school is missing (undercoverage), and they are likely to have a more favourable view;
  • the counsellor asks in person, so students tend to please the interviewer (response bias).

A large sample does not fix bias. A biased method with a huge sample just gives the wrong answer very precisely.

Observational Studies and Experiments

Statistical significance. A difference between groups is statistically significant if it is too large to be explained by chance alone. The idea is the same as asking how unusual a value is with a z-score. If a group's average is normally distributed with mean 300 and standard deviation 15 when the treatment does nothing, an observed average of 350 has

z=350−30015≈3.33,P(x¯≥350)=normalcdf(350, 1099, 300, 15)≈0.0004.

That would happen by chance in about 4 out of 10 000 repetitions, so we do not believe it is just chance: the result is significant. The exact methods come later in the course, with inference.

A normal curve with mean 300 and standard deviation 15; the value 350 is far in the right tail with a tiny shaded area
350 is so far in the tail that chance alone is not a believable explanation.

How small is "too small"? Suppose the heights of professional basketball players are N(200,7) in centimetres. A player under 162 cm has probability P(X<162)≈3⋅10−8: possible in principle, but statistically (almost) impossible. Before the study we fix a cut-off, the significance level α, and call a result significant when its probability under "chance alone" is below α. Common choices are

α=11000,1100,5100,10100,

and α=0.05 is the most common. With α=0.05, the result above (0.0004) is clearly significant.

  • In an observational study we only observe and record; we do not change anything. Surveys are observational studies.
    • Retrospective: looks back at data that already exists.
    • Prospective: chooses subjects now and follows them into the future.
  • In an experiment we impose a treatment on the experimental units (called subjects when they are people) and measure the effect.
    • The explanatory variable (factor) is what we change; the response variable is what we measure.

Only a well-designed experiment can show cause and effect. An observational study can show an association, but not that one thing causes another.

The vocabulary of an experiment. The explanatory variables of an experiment are its factors; the values a factor takes are its levels; a treatment is one combination of levels that is applied to the experimental units.

Example. A study of plant growth uses 2 factors: fertilizer (none, type A, type B: 3 levels) and watering (once or twice a day: 2 levels). That gives 3⋅2=6 treatments, such as "type A fertilizer, watered twice a day". The response variable is the growth in centimetres after 6 weeks. On an exam, name the treatments, the experimental units and the response variable separately and in context.

Confounding. Two variables are confounded when their effects on the response cannot be separated. Students who use an online practice platform may score higher, but they may also simply be more motivated, and motivation alone could explain the higher scores. Motivation is a confounding variable.

Motivation points to both using the platform and a higher score; the arrow from platform to score is dashed with a question mark
We cannot tell how much of the higher score is due to the platform and how much to motivation.

The Three Principles of Experimental Design

  1. Control. Keep everything except the treatment as equal as possible between the groups, and compare with a control group: no treatment, an existing treatment, or a placebo.
  2. Randomization. Use chance to assign subjects to treatments. This balances the variables we did not think of (or cannot measure) between the groups, so a difference in the response can be blamed on the treatment.
  3. Replication. Use enough subjects in each group, so that natural variation between individuals does not hide (or fake) a real effect.

How to Randomize

Any of these is fine, as long as you describe it clearly:

  • Slips of paper: write each name (or number) on identical slips, mix them in a container and draw.
  • Random number generator: number the subjects 1 to N and use, for example, randInt(1, N) on the calculator; ignore repeats.
  • Table of random digits: give each subject a label with the same number of digits (01,02,…,60), read the table in groups of that many digits, and skip numbers that are out of range or already used.

TI-84 (Random numbers). MATH → PROB → 5:randInt( gives random whole numbers: randInt(1,60) one number from 1 to 60, randInt(1,60,10) ten of them (repeats possible, so skip them). Newer models have MATH → PROB → 8:randIntNoRep(1,60,30), which gives 30 different numbers at once: a quick way to pick a random half of 60 subjects. To make results reproducible (or to make sure every student's calculator gives different numbers), seed the generator first: 2024 STO→ rand (rand is MATH → PROB → 1).

Completely Randomized Design

Every subject is assigned to a treatment group completely at random; then the groups are compared.

Subjects are randomly assigned to group 1 with treatment 1, group 2 with treatment 2, or group 3 as control, and the responses are compared
Completely randomized design.

Placebo and blinding. A placebo is a fake treatment (a sugar pill, for example). It is used because people often improve just because they believe they are being treated: the placebo effect. A placebo is not needed when a new treatment is compared with an existing one whose effect is already known.

  • Single-blind: the subjects do not know which treatment they get.
  • Double-blind: neither the subjects nor the people who measure the response know who got which treatment. Someone (the person who prepared the assignment) still knows.
A table: in a single-blind study the subjects don't know but evaluators and organiser know; in a double-blind study subjects and evaluators don't know, only the organiser knows
Blinding: who knows which treatment each subject got.

Randomized Block Design

If we already know a variable that affects the response (for example, gender or prior grades), we block on it:

  1. Split the subjects into blocks that are similar with respect to that variable.
  2. Carry out a completely randomized experiment separately inside each block.
  3. Compare the treatments within each block.
Subjects are split into block A and block B; inside each block they are randomly assigned to treatment or control, and the comparison is made within each block
Randomized block design: randomize separately inside each block.

Block what you know, randomize what you don't. Blocking removes the effect of the variables we know about; randomization takes care of the rest.

Example (fish tanks, AP exam 1997). We want to compare two fish foods, A and B, on fish growth. There are eight tanks in one room, with a heater at the back, a door in the front centre and windows on the front sides. Temperature and light affect growth, so tanks in different places are not alike. Block by position: the two tanks next to the heater form block 1, the two a little further away block 2, the two by the door block 3 and the two by the windows block 4. Inside each block, flip a coin to decide which tank gets food A; the other tank gets food B.

A room with a heater at the back, a door at the front and windows at the sides; eight tanks form four blocks of two, and in each block one tank gets food A and the other food B
Blocking controls the known effects of the room; randomization inside each block controls the unknown ones.

Matched-Pairs Design

A special block design with blocks of size two:

  • the same subject twice: before and after, or both treatments in a random order, or
  • two very similar subjects paired up (same age, same level), with a coin deciding which of the two gets which treatment.
Three pairs of similar subjects; in each pair a coin decides who gets the treatment and who gets the control, and one difference is recorded per pair
Matched pairs: one difference per pair.

In the analysis we work with the differences within each pair, which turns the two columns of data into one.

Why pair? Subjects differ a lot from one another (age, fitness, severity of illness). Pairing compares each treatment with the other treatment on (nearly) the same subject, so this subject-to-subject variation is removed from the comparison, and a real treatment effect is easier to detect.

Scope of Inference

What a study allows us to conclude depends on two separate uses of chance. Learn this table; it appears in almost every exam.

Random assignment to treatments No random assignment
Random sample from the population cause and effect, and the result generalises to the population association only, but it generalises to the population
No random sample cause and effect, but only for the subjects in the study (or people like them) association only, and only for the individuals studied
  • Random sampling decides to whom the conclusion applies (generalisation).
  • Random assignment decides whether we may conclude causation.

Example. 60 volunteers are randomly assigned to two diets, and the low-sugar group loses significantly more weight. Random assignment lets us say the diet caused the extra weight loss, but only for volunteers like these: they were not a random sample of all adults.

Example. A random sample of 1000 adults shows that people who walk more have lower cholesterol. This generalises to all adults in the population, but it is an observational study, so it does not show that walking lowers cholesterol (healthier people may simply walk more).


Unit 3 Practice 1

Fifteen multiple-choice questions and four free-response questions on sampling and experiments, adapted from Barron's AP Q&A Statistics, 5 Steps to a 5 (Chapter 7) and released AP exams.

Multiple-Choice Questions

15 multiple-choice questions on Unit 3. Suggested time: 30 minutes.

1. You want a simple random sample of 40 students from the senior class. Which method gives one?

  • (A) Write each senior's name on a slip of paper, mix the slips well in a box and draw 40.
  • (B) Choose two classes at random and survey every student in them.
  • (C) From an alphabetical list, choose one of the first 10 names at random and then every 10th name.
  • (D) Ask the first 40 seniors who enter the cafeteria.
  • (E) Choose 10 students at random from each of the four senior maths classes.

2. A city council chooses 6 of its 80 neighbourhoods at random and surveys every household in those 6 neighbourhoods. What kind of sample is this?

  • (A) a simple random sample
  • (B) a stratified random sample
  • (C) a cluster sample
  • (D) a systematic sample
  • (E) a convenience sample

3. A school has 1200 students: 40% in year 9, 30% in year 10, 20% in year 11 and 10% in year 12. A stratified random sample of 150 students with proportional allocation is taken. How many year 11 students are in the sample?

  • (A) 20
  • (B) 30
  • (C) 40
  • (D) 45
  • (E) 60

4. An experiment tests three doses of a fertilizer (none, low, high) and two watering schedules (daily, every other day). How many treatments are there?

  • (A) 2
  • (B) 3
  • (C) 5
  • (D) 6
  • (E) 9

5. A radio host asks listeners to phone in and say whether the city should build a new stadium. 78% of the callers say no. Why is this result likely to be biased?

  • (A) The sample is too small.
  • (B) The host did not use a stratified sample.
  • (C) Some listeners may lie to the host.
  • (D) The question was not worded neutrally.
  • (E) It is a voluntary response sample: people with strong opinions are most likely to call.

6. A survey uses a list of landline telephone numbers to study the opinions of all adults in a country. What is the main problem?

  • (A) undercoverage: adults without a landline can never be selected
  • (B) nonresponse: many people do not answer
  • (C) response bias: people lie on the phone
  • (D) wording bias
  • (E) there is no problem if the numbers are chosen at random

7. A magazine mails a questionnaire to 2000 randomly chosen subscribers; 310 return it. Which kind of bias is the biggest concern?

  • (A) undercoverage
  • (B) voluntary response bias
  • (C) nonresponse bias
  • (D) wording bias
  • (E) none, because the subscribers were chosen at random

8. Which question is most likely to produce wording bias?

  • (A) "How many hours did you sleep last night?"
  • (B) "Do you agree that the dangerous new highway should not be built?"
  • (C) "Which subject do you like best?"
  • (D) "Do you support or oppose building a new highway?"
  • (E) "How old are you?"

9. Researchers compare 300 volunteers who had been taking vitamin C daily with 300 volunteers who had not, and record the number of colds each person gets in the next month. What kind of study is this?

  • (A) a completely randomized experiment
  • (B) a randomized block experiment
  • (C) a matched-pairs experiment
  • (D) an observational study
  • (E) a census

10. A study finds that people who eat two carrots a day have better eyesight than people who rarely eat carrots. Which of the following statements are correct? I. The study proves that carrots improve eyesight. II. General health-consciousness could be a confounding variable. III. This is an observational study, not an experiment.

  • (A) I only
  • (B) III only
  • (C) I and II only
  • (D) I and III only
  • (E) II and III only

11. A company thinks men and women may react differently to a new acne cream. The men are randomly split into a cream group and a placebo group, and the women are split the same way. What is this design?

  • (A) completely randomized
  • (B) randomized block design, blocked by gender
  • (C) matched pairs
  • (D) stratified random sample
  • (E) observational study with two groups

12. Why is a double-blind design important in an experiment?

  • (A) Subjects may try to please the researchers.
  • (B) It helps control the placebo effect.
  • (C) Evaluators who know the treatments may judge the responses differently.
  • (D) Subjects may react differently if they know they are getting the real treatment.
  • (E) All of the above.

13. To compare two sunscreens, each of 25 volunteers has sunscreen A on one forearm and sunscreen B on the other, with a coin deciding which arm gets A. What is the main advantage of this design?

  • (A) Differences in skin type between people do not affect the comparison, so a real difference is easier to detect.
  • (B) It needs no randomization.
  • (C) The results generalise to all people.
  • (D) It removes the placebo effect.
  • (E) It is cheaper than any other design.

14. 80 volunteers are randomly assigned to a new or a standard physiotherapy programme, and the new programme gives significantly faster recovery. Which conclusion is justified?

  • (A) The new programme causes faster recovery for all patients.
  • (B) The programmes are associated with recovery, but no cause can be claimed.
  • (C) The result generalises to all patients, but no cause can be claimed.
  • (D) The new programme causes faster recovery for patients like these volunteers.
  • (E) Nothing can be concluded, because volunteers were used.

15. What is the main purpose of randomly assigning subjects to treatments?

  • (A) to make sure every subject in the population could be chosen
  • (B) to make the sample size larger
  • (C) to create groups that are alike, so variables we did not control are balanced between the treatments
  • (D) to remove the need for a control group
  • (E) to make the experiment double-blind
Answer key
Question Answer Why
1 A Every group of 40 seniors is equally likely. (B) cluster, (C) systematic, (D) convenience, (E) stratified.
2 C Whole groups (neighbourhoods) are chosen at random and everyone in them is surveyed.
3 B 0.20⋅150=30.
4 D 3⋅2=6 combinations of levels.
5 E Self-selected samples over-represent strong (usually negative) opinions.
6 A The sampling frame leaves out part of the population.
7 C Only 15.5% answered; those who did may differ from those who did not.
8 B "Dangerous" pushes the respondent toward one answer.
9 D The subjects chose whether to take vitamin C; no treatment was imposed.
10 E An observational study cannot prove cause and effect.
11 B Randomization is done separately within the blocks of men and women.
12 E Blinding both subjects and evaluators deals with all of these.
13 A Each person is compared with themselves, which removes person-to-person variation.
14 D Random assignment allows causation; volunteers limit the generalisation.
15 C Randomization balances the effects of lurking variables between the groups.

Free-Response Questions

FRQ 1 (sampling methods). Modelled on AP Statistics 2013, FRQ 2. A city with 90 000 adult residents plans a survey to estimate the proportion who support building a new park. The council considers three ways to choose 400 residents.

(a) Method 1: survey the first 400 adults who arrive at a free outdoor concert. Explain why this method might give a biased estimate.

(b) Method 2: a simple random sample of 400 from the city's list of adult residents. Describe how to select it using a random number generator.

(c) Method 3: a stratified random sample. The city has three districts, and the proposed park is in district North. Would stratifying by district or by gender (male, female) be more likely to give a precise estimate? Explain.

Solution

(a) It is a convenience sample. People who attend a free outdoor concert probably enjoy outdoor events and public spaces, so they are more likely to support a new park than the average resident. The sample proportion would then tend to overestimate the proportion of all adults who support it.

(b) Number the 90 000 residents on the list from 1 to 90 000. Use a random number generator (for example randInt(1, 90000)) to generate numbers, ignoring repeats, until 400 different numbers have been chosen. Survey the residents with those numbers.

(c) Stratifying by district. Stratification gives a more precise estimate when the units within each stratum are similar to each other in their answers and the strata differ from each other. Residents of North (who live near the park) probably answer differently from residents of the other districts, while support is unlikely to differ much between men and women. So district strata are more homogeneous with respect to the response.

FRQ 2 (matched pairs). Modelled on AP Statistics 2022, FRQ 2. A dermatologist will compare two sunscreens, A and B. 25 volunteers will each have one sunscreen applied to the left forearm and the other to the right forearm, and then spend two hours in the sun. Afterwards a nurse rates the redness of each forearm on a scale from 0 to 10.

(a) Identify the treatments, the experimental units and the response variable.

(b) Describe a statistical advantage of this design over a completely randomized design in which each volunteer gets only one sunscreen.

(c) Describe how to randomize the treatments in this design.

(d) Explain how the experiment could be made double-blind.

Solution

(a) Treatments: sunscreen A and sunscreen B. Experimental units: the forearms of the 25 volunteers (50 forearms, in 25 pairs). Response variable: the redness rating (0–10) of each forearm.

(b) Skin type and sensitivity to the sun differ a lot from person to person. In the matched-pairs design both sunscreens are tested on the same person, so these differences affect both treatments equally and are removed from the comparison of A and B. The variability of the differences is smaller, so a real difference between the sunscreens is easier to detect.

(c) For each volunteer, flip a fair coin: heads means sunscreen A goes on the left forearm and B on the right; tails means the reverse. This randomization balances any left/right differences (for example, which arm faces the sun while driving).

(d) Put both sunscreens in identical unlabeled tubes coded by someone not involved, so the volunteers do not know which is which, and make sure the nurse who rates the redness also does not know which forearm received which sunscreen.

FRQ 3 (bias and scope of inference). Modelled on AP Statistics 2021, FRQ 2. Researchers will study screen time and sleep. They select a random sample of 200 teenagers from a city's schools and follow them for six months.

(a) The researchers can measure screen time with an app on each phone or ask the teenagers to keep a daily diary. Describe a bias that the diary could introduce.

(b) Explain the benefit of selecting a random sample of teenagers.

(c) At the end, teenagers with more screen time had significantly less sleep. Can the researchers conclude that screen time causes less sleep? Explain.

Solution

(a) Response bias. Teenagers may underreport their screen time in the diary, because a lot of screen time is seen as undesirable, or simply because they forget or guess. The recorded screen times would then tend to be too low, which the phone app would avoid.

(b) A random sample is likely to be representative of all teenagers in the city's schools, so the results (for example, the size of the association) can be generalised to that population.

(c) No. This is an observational study: the teenagers chose their own screen time; it was not randomly assigned. Other variables could explain the result, for example stress or anxiety, which might lead both to more screen time and to worse sleep. Only an experiment with random assignment of screen-time levels could show causation.

FRQ 4 (designing an experiment). Modelled on 5 Steps to a 5, Chapter 7, Free-Response 10 and 11. A nutritionist has 120 adult volunteers and wants to test whether a new breakfast cereal lowers cholesterol more than the standard cereal over 8 weeks. She suspects that the effect may depend on age, and 48 of the volunteers are over 50 years old.

(a) Describe a completely randomized design for this experiment, including how to carry out the random assignment.

(b) Describe a better design that takes age into account, and explain why it is better.

(c) Why should the nutritionist measure the change in cholesterol rather than only the cholesterol after 8 weeks?

Solution

(a) Number the volunteers 001 to 120. Use a random number generator to choose 60 different numbers (ignoring repeats); these volunteers eat the new cereal and the other 60 eat the standard cereal. The cereals should be in identical packages (double-blind). Measure each volunteer's cholesterol at the start and after 8 weeks, and compare the mean decrease in the two groups.

(b) A randomized block design, blocked by age. Form two blocks: the 48 volunteers over 50 and the 72 volunteers aged 50 or under. Within each block, randomly assign half to each cereal (24 and 24 in the older block, 36 and 36 in the younger block), using the method from (a). Compare the cereals within each block. This is better because age is suspected to affect the response: blocking removes the age-related variation from the comparison, so the effect of the cereal can be estimated more precisely, and it also shows whether the effect differs by age.

(c) Volunteers start at very different cholesterol levels. Measuring the change for each person removes these starting differences, so the comparison focuses on the effect of the cereal and is less variable.


Unit 3 Practice 2

A second set of fifteen multiple-choice questions and three free-response questions on Unit 3.

Multiple-Choice Questions

15 multiple-choice questions on Unit 3. Suggested time: 30 minutes.

1. What is a census?

  • (A) a sample chosen by a random mechanism
  • (B) a study that collects data from every member of the population
  • (C) a survey of a representative sample
  • (D) an experiment on the whole population
  • (E) a list of the population from which a sample is drawn

2. The mean pulse rate of 15 randomly chosen students is used to estimate the mean pulse rate of all students at the school. Which statement is correct?

  • (A) Both means are parameters.
  • (B) Both means are statistics.
  • (C) The sample mean is a parameter and the school mean is a statistic.
  • (D) The school mean can be computed exactly from the sample.
  • (E) The sample mean is a statistic and the school mean is a parameter.

3. A shop chooses one of its first 20 customers of the day at random and then asks every 20th customer after that to fill in a survey. What kind of sample is this?

  • (A) a systematic sample
  • (B) a simple random sample
  • (C) a cluster sample
  • (D) a stratified sample
  • (E) a voluntary response sample

4. What is the main difference between a stratified sample and a cluster sample?

  • (A) A cluster sample uses a random mechanism; a stratified sample does not.
  • (B) A stratified sample takes every member of some groups; a cluster sample takes some members of every group.
  • (C) A stratified sample takes an SRS from every group; a cluster sample takes every member of some randomly chosen groups.
  • (D) Strata are always larger than clusters.
  • (E) There is no difference.

5. An interviewer must survey 50 men and 50 women, and chooses whoever is willing on a busy street until both numbers are reached. What kind of sample is this?

  • (A) a stratified random sample
  • (B) a simple random sample
  • (C) a cluster sample
  • (D) a quota sample
  • (E) a systematic sample

6. A study of how much time adults spend on the internet uses an online questionnaire. What is the most likely problem?

  • (A) undercoverage of people who rarely use the internet, so internet time is overestimated
  • (B) wording bias, so internet time is underestimated
  • (C) nonresponse bias, so internet time is underestimated
  • (D) no bias, because online questionnaires are anonymous
  • (E) response bias caused by the interviewer

7. Students are asked face to face by their teacher whether they have ever cheated on a test. What kind of bias is most likely?

  • (A) undercoverage
  • (B) voluntary response bias
  • (C) response bias
  • (D) nonresponse bias
  • (E) sampling frame bias

8. A biased sampling method is used to choose 10 000 people instead of 1000. What is the effect?

  • (A) The bias disappears.
  • (B) The bias becomes smaller.
  • (C) The bias becomes larger.
  • (D) The results become unbiased if the population is small.
  • (E) The results are more precise but just as biased.

9. What is the main purpose of blocking in an experiment?

  • (A) to make the experiment double-blind
  • (B) to reduce the variability caused by a variable known to affect the response
  • (C) to replace randomization
  • (D) to make the sample representative of the population
  • (E) to increase the number of treatments

10. What is the placebo effect?

  • (A) a side effect of the real treatment
  • (B) the effect of blocking
  • (C) the bias caused by a non-random sample
  • (D) a response to a dummy treatment, caused by the belief that one is being treated
  • (E) the difference between two treatments

11. What does "replication" mean in experimental design?

  • (A) repeating the whole experiment in another country
  • (B) giving each subject both treatments
  • (C) measuring the response twice
  • (D) copying the results of an earlier study
  • (E) using enough experimental units in each treatment group

12. Dogs fed a new food have shinier coats, but their owners also brush them more often. Which word describes the food and the brushing?

  • (A) confounded
  • (B) blocked
  • (C) randomized
  • (D) replicated
  • (E) stratified

13. 60 tomato plants are randomly assigned to three fertilizers, and the weight of tomatoes per plant is recorded. What are the experimental units and the response variable?

  • (A) fertilizers; weight of tomatoes
  • (B) plants; fertilizers
  • (C) tomatoes; plants
  • (D) plants; weight of tomatoes per plant
  • (E) weight of tomatoes; plants

14. To assign 60 subjects to two groups of 30 with a table of random digits, which method is correct?

  • (A) Label the subjects 1 to 60 and read single digits.
  • (B) Label the subjects 00 to 60 and read pairs of digits, keeping repeats.
  • (C) Label the subjects 01 to 60 and read pairs of digits, ignoring 00, numbers above 60 and repeats; the first 30 labels chosen form group 1.
  • (D) Choose the first 30 subjects who arrive for group 1.
  • (E) Label the subjects 01 to 60 and put the odd labels in group 1.

15. Researchers enrol 5000 newborns and record their diets and health for 20 years. What kind of study is this?

  • (A) a retrospective observational study
  • (B) a prospective observational study
  • (C) a completely randomized experiment
  • (D) a matched-pairs experiment
  • (E) a census
Answer key
Question Answer Why
1 B A census checks every unit.
2 E Statistics come from samples, parameters describe populations.
3 A A random start, then every k-th unit.
4 C Stratified: SRS within each stratum. Cluster: all units of some clusters.
5 D Quotas are filled by the interviewer's choice, not by chance.
6 A People who seldom go online are missed.
7 C People give the socially acceptable answer.
8 E Size improves precision, never bias.
9 B Blocking removes the variation due to the blocking variable.
10 D People can improve just because they believe they are treated.
11 E Enough units per group so chance variation does not dominate.
12 A Their effects on coat shine cannot be separated.
13 D The treatments are applied to the plants; we measure tomato weight.
14 C Equal-length labels, skip unusable and repeated pairs.
15 B It follows subjects forward in time without imposing a treatment.

Free-Response Questions

FRQ 5 (nonresponse). Modelled on AP Statistics 2014, FRQ 4. A university's alumni office e-mails a questionnaire about current income to all 3000 graduates of one year; 400 reply. The office reports the mean income of the 400 as the mean income of the graduates of that year.

(a) Identify a source of bias and say whether the reported mean is likely to be too high or too low. Explain.

(b) Describe one way to reduce this bias.

(c) The office instead wants a stratified random sample of 300 graduates with strata defined by field of study. Describe how to select it, and explain why stratifying by field of study could help.

Solution

(a) Nonresponse bias: only 400 of 3000 (13%) replied. Graduates with high incomes are more likely to be proud to report them, while graduates with low incomes or without jobs are less likely to reply, so the reported mean is probably too high.

(b) Choose a smaller random sample of graduates and follow up repeatedly with those who do not reply (reminders, phone calls), so the response rate becomes high; or keep the questionnaire anonymous, so that people with low incomes are not embarrassed to answer.

(c) Split the 3000 graduates by field of study (for example engineering, medicine, arts, …). In each field select an SRS, with sample sizes proportional to the field's share of graduates (a field with 20% of the graduates gets 60 of the 300), and combine. Incomes are probably similar within a field and very different between fields, so stratifying gives a more precise estimate than an SRS of the same size.

FRQ 6 (a block design). Modelled on AP Statistics 2023, FRQ 2. A city wants to test whether a new road paint lasts longer than the standard paint. It has 20 road sections for the test: 10 on busy main roads and 10 on quiet side streets. The response is the number of months until the paint must be renewed.

(a) Identify the treatments, the experimental units and the response variable.

(b) Explain why it makes sense to block on type of road.

(c) Describe how to randomly assign the paints in a randomized block design.

Solution

(a) Treatments: new paint and standard paint. Experimental units: the 20 road sections. Response: months until the paint must be renewed.

(b) Traffic wears paint out much faster, so the type of road affects the response. In a completely randomized design, one paint might by chance get more busy roads, and the difference in traffic would be confounded with the difference in paints. Blocking compares the paints on similar roads, which removes the traffic variation from the comparison.

(c) Form two blocks: the 10 busy sections and the 10 quiet sections. In the busy block, number the sections 1 to 10, write the numbers on identical slips, mix them and draw 5: those sections get the new paint and the other 5 the standard paint. Do the same, separately, in the quiet block. Compare the paints within each block.

FRQ 7 (designing a basic experiment). Modelled on AP Statistics 2019, FRQ 2. A gardener wants to know whether a new organic spray reduces the damage caused by insects to tomato plants. She has 40 plants in one greenhouse.

(a) Why should some plants receive no spray (or water only)?

(b) Describe how to assign the treatments using a random number generator.

(c) The gardener's friend suggests spraying the 20 plants nearest the door, because that is easier. Explain how this could lead to a misleading conclusion.

Solution

(a) A control group gives a baseline: insects damage plants anyway, and the amount varies with the season. Only by comparing with similar unsprayed plants can we tell whether the damage on sprayed plants is lower because of the spray. Spraying the control plants with water imitates the handling.

(b) Number the plants 1 to 40. Use randInt(1, 40) to generate numbers, ignoring repeats, until 20 different numbers are chosen. Those plants get the spray; the other 20 get water only. After a set time, measure the damage on each plant and compare the two groups.

(c) The plants near the door may differ from the others: more air flow, a different temperature, more or fewer insects coming in. Any difference in damage could then be caused by the location rather than the spray (confounding). Random assignment balances such differences between the groups.


Unit 3 Practice 3

A third set of fifteen multiple-choice questions and three free-response questions on Unit 3.

Multiple-Choice Questions

15 multiple-choice questions on Unit 3. Suggested time: 30 minutes.

1. What makes a sample a simple random sample of size n?

  • (A) Every individual has the same chance of being chosen.
  • (B) The sample is chosen by a computer.
  • (C) The sample contains members of every group in the population.
  • (D) Every possible group of n individuals has the same chance of being chosen.
  • (E) The sample is larger than 10% of the population.

2. A school with 400 grade 9 students and 100 grade 12 students chooses 10 students at random from each grade. Which statement is correct?

  • (A) It is a stratified random sample, but grade 12 students have a greater chance of being chosen than grade 9 students.
  • (B) It is a simple random sample.
  • (C) It is a cluster sample.
  • (D) Every student has the same chance of being chosen.
  • (E) It is not a probability sample.

3. What is a disadvantage of cluster sampling?

  • (A) It needs a list of the whole population.
  • (B) It is usually the most expensive method.
  • (C) If the units within a cluster are similar to each other, the estimates are less precise.
  • (D) It is not a probability sample.
  • (E) It cannot be used for large populations.

4. A reporter asks the first 50 people leaving a shopping centre what they think of a new bus line. What kind of sample is this?

  • (A) a systematic sample
  • (B) a convenience sample
  • (C) a cluster sample
  • (D) a stratified sample
  • (E) a simple random sample

5. "Do you prefer a cheap, unhealthy lunch or a healthy lunch at a fair price?" What is the main problem with this question?

  • (A) undercoverage
  • (B) nonresponse
  • (C) the order of the options
  • (D) it has only two options
  • (E) wording bias: the words "unhealthy" and "fair" push respondents toward one answer

6. A survey selects 1000 phone numbers at random; 620 people refuse to answer. What is the main concern?

  • (A) undercoverage
  • (B) voluntary response bias
  • (C) nonresponse bias
  • (D) wording bias
  • (E) no concern, because the numbers were chosen at random

7. Why can an observational study not establish cause and effect?

  • (A) It uses too few subjects.
  • (B) It never uses random samples.
  • (C) Its results are always biased.
  • (D) It is always retrospective.
  • (E) The groups may differ in other variables that also affect the response (confounding).

8. 25 runners are timed before and after a six-week training plan. What kind of design is this?

  • (A) completely randomized
  • (B) matched pairs
  • (C) randomized block with two blocks
  • (D) observational study with a control group
  • (E) cluster sample

9. What does "double-blind" mean?

  • (A) Neither the subjects nor the people who evaluate them know which treatment each subject received.
  • (B) The subjects do not know which treatment they received.
  • (C) Nobody knows which treatment each subject received.
  • (D) The experiment is done twice.
  • (E) The subjects are chosen at random and assigned at random.

10. In a completely randomized experiment, 120 volunteers are assigned to 4 treatments in groups of equal size. How many volunteers receive each treatment?

  • (A) 4
  • (B) 20
  • (C) 25
  • (D) 30
  • (E) 40

11. Which is an example of a randomized block design?

  • (A) Men and women are separated, and within each group subjects are randomly assigned to treatment or placebo.
  • (B) All subjects are randomly assigned to treatment or placebo.
  • (C) Each subject receives both treatments in a random order.
  • (D) Volunteers choose which treatment they want.
  • (E) The men get the treatment and the women the placebo.

12. A random sample of 2000 adults shows that people who sleep more report less stress. What can be concluded?

  • (A) More sleep causes less stress for all adults.
  • (B) More sleep causes less stress, but only for these 2000 adults.
  • (C) Nothing, because the study is not an experiment.
  • (D) There is an association between sleep and stress among all adults in the population, but not necessarily a causal one.
  • (E) There is an association only for these 2000 adults.

13. Why does an experiment include a control group?

  • (A) to make the sample random
  • (B) to increase the number of subjects
  • (C) to provide a baseline for comparison, so the effect of the treatment can be measured
  • (D) to make the experiment double-blind
  • (E) to remove the need for randomization

14. In an experiment, the difference between the treatment groups is "statistically significant". What does this mean?

  • (A) The difference is large enough to matter in practice.
  • (B) The experiment was double-blind.
  • (C) The treatment works for every subject.
  • (D) The sample was random.
  • (E) The difference is too large to be explained by chance variation alone.

15. Patients do not know whether they receive a new drug or a placebo, but their doctors do. What kind of experiment is this?

  • (A) double-blind
  • (B) single-blind
  • (C) observational
  • (D) matched pairs
  • (E) not blinded at all
Answer key
Question Answer Why
1 D That is the definition of an SRS.
2 A Grade 12 students have chance 10/100, grade 9 students only 10/400.
3 C Clusters should be small copies of the population; similar units in a cluster add little information.
4 B The reporter takes whoever is easiest to reach.
5 E Loaded words decide the answer.
6 C 62% did not answer, and they may differ from those who did.
7 E Without random assignment, lurking variables are not balanced.
8 B Each runner is compared with themselves.
9 A Someone (the organiser) still knows.
10 D 120/4.
11 A Randomization within each block.
12 D Random sampling allows generalisation; no random assignment, so no causation.
13 C Without a baseline we cannot tell what the treatment changed.
14 E Statistical significance is about chance, not about practical importance.
15 B Only the subjects are blind.

Free-Response Questions

FRQ 8 (observational study or experiment?). Modelled on AP Statistics 2015, FRQ 4. A health magazine reports that among 8000 adults who answered its online survey, those who drink at least three cups of coffee a day had fewer heart problems.

(a) Is this an observational study or an experiment? Explain.

(b) Describe a possible confounding variable and explain how it could account for the result.

(c) Describe how an experiment could investigate whether coffee affects heart health, and one practical difficulty of it.

Solution

(a) An observational study: the adults chose how much coffee to drink; no treatment was imposed. (It is also a voluntary response sample, so it may not represent all adults.)

(b) Age, for example. Older adults may drink less coffee (for instance on doctors' advice) and also have more heart problems because of their age. Then heavy coffee drinkers would have fewer heart problems because they are younger, not because of the coffee. Age and coffee drinking would be confounded.

(c) Recruit volunteers, randomly assign them to drink three cups of coffee a day or three cups of decaffeinated coffee (a placebo that looks and tastes the same), keep the study double-blind, and compare the heart health of the groups after a long time. Difficulty: heart problems develop over many years, so the study would take very long and subjects might not keep to their assigned drink.

FRQ 9 (an experiment with children). Modelled on AP Statistics 2016, FRQ 2. A company wants to know whether a brightly coloured package makes children more likely to choose a healthy snack. 80 children aged 6 to 12 take part. Each child is offered the healthy snack and a sweet snack, and the researchers record which one the child chooses.

(a) Describe a completely randomized design to compare a bright package with a plain package for the healthy snack.

(b) The researchers suspect that younger and older children react differently to colours. Describe how to change the design.

(c) Why should the person who offers the snacks not know the purpose of the study?

Solution

(a) Number the children 1 to 80 and use a random number generator to choose 40 different numbers (ignoring repeats). These children are offered the healthy snack in the bright package; the other 40 are offered it in the plain package. The sweet snack and everything else is the same. Compare the proportions of children who choose the healthy snack in the two groups.

(b) Use a randomized block design with age blocks, for example 6–8 and 9–12 years. Within each block, randomly assign half of the children to the bright package and half to the plain package, and compare the packages within each block.

(c) If the person offering the snacks knows the purpose, they might (even unconsciously) encourage the children with the bright package to pick the healthy snack, for example by how they hold or describe it. Keeping them blind prevents this bias.

FRQ 10 (chance in random assignment). Modelled on AP Statistics 2017, FRQ 6. Two men (M1, M2) and two women (W1, W2) take part in an experiment. Two of the four will be randomly selected for the treatment group, and the other two form the control group.

(a) List all the possible treatment groups. What is the probability that the treatment group consists of both men?

(b) What is the probability that both men end up in the same group?

(c) Explain why this is a problem if men and women respond differently to the treatment, and describe a design that prevents it.

Solution

(a) There are (42)=6 equally likely treatment groups: {M1, M2}, {M1, W1}, {M1, W2}, {M2, W1}, {M2, W2}, {W1, W2}. Only one is both men: probability 16.

(b) Both men are together if the treatment group is {M1, M2} or {W1, W2} (then both men are in the control group): probability 26=13.

(c) With probability 13 one group is all men and the other all women. Then any difference in the response could be due to gender rather than the treatment (gender and treatment would be confounded). A randomized block design prevents this: form a block of the two men and a block of the two women, and within each block flip a coin to decide which person gets the treatment. Then each group always has one man and one woman.


Unit 4: Probability, Random Variables and Probability Distributions

Units 1–3 were about data we already have. Inference (Units 6–9) needs the language of probability: a sentence like "if the treatment did nothing, a result this extreme would happen by chance only 6% of the time" is a probability statement. This unit lays that foundation.

Chance Events and Probability

A chance event (random phenomenon) is an activity whose outcome we can observe, but cannot predict for any single trial. Rolling a die is one: we know the result will be 1, 2, 3, 4, 5 or 6, but not which.

The probability of an event is its long-run relative frequency: if we repeat the random process many times, the proportion of times the event happens settles down to its probability. So a probability is always between 0 and 1; 0 means the event is impossible, 1 means it is certain.

There are two ways to find a probability:

  • experimentally: repeat the process and count;
  • theoretically: reason from the structure of the process, for example that all faces of a fair die are equally likely.

Example. A die was rolled 300 times and showed a 6 on 56 of them. The experimental estimate is 56300≈0.187; the theoretical value is 16≈0.167. The two agree fairly well, and they would agree better with more rolls.

Bar chart of 300 rolls of a die: faces 1 to 6 came up 36, 53, 51, 49, 55 and 56 times, around the expected 50
Experimental frequencies vary around the theoretical 50 per face.

This is the law of large numbers: as the number of repetitions grows, the relative frequency of an event settles down at its probability. In a few tosses anything can happen; in thousands of tosses the proportion of heads is very close to one half.

Running proportion of heads in 1000 simulated tosses of a fair coin: it jumps around at first and settles near 0.5
The proportion of heads after each of 1000 simulated tosses.

Outcomes, Events and Sample Spaces

  • An outcome is one possible result of a chance process.
  • An event is a collection of outcomes. Rolling an even number is the event E={2,4,6}.
  • A sample space S is a list of outcomes that is
    • complete: every possibility is on the list, and
    • disjoint (mutually exclusive): no two outcomes can happen at the same time.

Every event is a subset of the sample space: E⊂S.

Example (two coins). Flipping two coins has the sample space S={HH,HT,TH,TT}. The event "at least one head" is {HH,HT,TH}.

If the outcomes in the sample space are equally likely, then

P(E)=number of outcomes in Enumber of outcomes in the sample space.

So P(HH)=14, and the event "exactly one head", E={HT,TH}, has P(E)=24.

Be careful: the formula needs equally likely outcomes. We could also describe two coins by the number of heads, with sample space {0,1,2}, but these three outcomes are not equally likely: one head happens in two ways (HT and TH), so P(1 head)=12, not 13.

The probabilities of all the outcomes in a sample space add up to 1.

Example (more coins). Each coin has 2 outcomes, so n coins have 2⋅2⋯2=2n equally likely outcomes. For 3 coins there are 23=8, and we can list them all without missing one by counting in binary (0=H, 1=T: 000,001,010,…,111):

S={HHH,HHT,HTH,HTT,THH,THT,TTH,TTT}.

Tree diagram of three coin tosses with 8 equally likely outcomes from HHH to TTT
Each toss doubles the number of branches: 23=8 outcomes, each with probability 18.
  • At least one tail: only HHH is missing, so by the complement P=1−18=78.
  • Exactly 3 heads in 5 coins: there are 25=32 outcomes. An outcome with exactly 3 heads is fixed by choosing which 3 of the 5 places show H, and there are (53)=5!3!2!=10 ways to do this. So P=1032. (This counting is the idea behind the binomial distribution, later in this unit.)

Example (two dice). Rolling two dice has 36 equally likely outcomes, written as pairs: 11,12,…,16,21,…,66. They are disjoint and the list is complete.

  • Doubles: {11,22,33,44,55,66}, so P=636=16.
  • The sum is 7: {16,25,34,43,52,61}, so P=636=16.
  • The sum is 5, or one of the dice shows 5: the sum is 5 for {14,23,32,41}, and a 5 appears in {15,25,35,45,55,65,51,52,53,54,56}. The outcome 55 is counted only once. That makes 4+11=15 outcomes, so P=1536.
  • The sum is even, or a die shows 6: 18 outcomes have an even sum; the outcomes with a 6 and an odd sum, 16,36,56,61,63,65, add 6 more. So P=2436.
A six by six grid of the outcomes 11 to 66 of two dice; the 15 outcomes where the sum is 5 or a die shows 5 are highlighted
Count each outcome once: 55 belongs to both rows and columns of 5s.

Example (three children). A couple has three children, and at least one of them is a boy. The sample space is {BBB,BBG,BGB,GBB,BGG,GBG,GGB,GGG}. Seven outcomes have at least one boy, and three of those have exactly two boys, so the probability of exactly two boys is 37.

Two-Way Tables

The two-way table of blood type by country from Unit 2 is a good probability model: if we pick one person at random from the 500, every relative frequency becomes a probability. The cells are a sample space: each person is in exactly one cell (disjoint), and nobody is missing (complete). You can check this by seeing that every row and column adds up to its total.

Country O A B AB Total
1 150 73 22 5 250
2 46 75 19 10 150
3 29 22 39 10 100
Total 225 170 80 25 500

Example. For a randomly selected person, P(type A)=170500=0.34, and P(Country 1 and type O)=150500=0.30.

Combined Events: "Or", "And", "Not"

  • P(A or B), written P(A∪B) ("A union B"): the probability that A happens, or B happens, or both.
  • P(A and B), written P(A∩B) ("A intersect B"): the probability that both happen.

Example. P(Country 2 or type A): add every cell that is in the Country 2 row or the type A column, counting the cell in both only once:

(46+75+19+10)+(73+22)500=245500=0.49.

The shortcut is to add the two totals and subtract the overlap, which was counted twice. This is the addition rule:

P(A or B)=P(A)+P(B)−P(A and B).

Here P(type A or Country 2)=170500+150500−75500=245500=0.49.

Venn diagram of Country 2 (150 people) and type A (170 people) overlapping in 75 people
The 75 people in both groups would be counted twice, so the addition rule subtracts them once.

Disjoint events. If A and B cannot happen together, then P(A and B)=0 and the rule becomes P(A or B)=P(A)+P(B). A person cannot have two blood types, so

P(type A or type O)=170500+225500=395500=0.79.

Complement. The complement of A, written A¯ or Ac, is "A does not happen": all outcomes of the sample space that are not in A. Then

P(A¯)=1−P(A).

Example. P(type A, O or AB)=1−P(type B)=1−80500=0.84. This is quicker than adding three probabilities.

Conditional Probability

The conditional probability P(A∣B), "the probability of A given B", is the probability of A when we already know that B has happened. Knowing B shrinks the sample space to B:

P(A∣B)=P(A and B)P(B).

From a table. We pick a person with blood type A. What is the probability that this person is from Country 3? We only look at the type A column, 170 people, of whom 22 are from Country 3:

P(Country 3∣type A)=22170≈0.129.

From a tree diagram. A tree diagram lists all the possible outcomes step by step. Along each branch we write a conditional probability, and we multiply along a path to get the probability of that path.

Example (computers). A company makes 50% of its computers in California, 30% in Washington and 20% in Oregon. Of the Californian computers 15% are laptops, of the Washington ones 40%, of the Oregon ones 60%. All computers go to one distribution centre.

Tree diagram: California 0.50, Washington 0.30, Oregon 0.20; each splits into laptop and desktop, with path probabilities 0.075, 0.425, 0.12, 0.18, 0.12, 0.08
Multiply along a path; add the paths that end in the event.

(a) A computer chosen at random is a laptop with probability 0.075+0.12+0.12=0.315. (The six path probabilities add up to 1, so no case is missing.)

(b) If the chosen computer is a laptop, the probability that it was made in California is

P(California∣laptop)=P(California and laptop)P(laptop)=0.0750.315≈0.238.

Question (b) runs the tree "backwards": we know where the path ended and ask which way it went. (This is known as Bayes's rule; the name is not needed for the AP exam, but this kind of question is.)

(c) If the chosen computer is a laptop, the probability that it was not made in Oregon is

P(not Oregon∣laptop)=0.075+0.120.315=0.1950.315≈0.619.

Thinking in counts. The same tree is easier to read with 1000 imaginary computers: 500 are made in California (75 laptops), 300 in Washington (120 laptops) and 200 in Oregon (120 laptops). That is 75+120+120=315 laptops, of which 75+120=195 are not from Oregon, and 195/315≈0.619 again.

Example (darts). Harvey, Laura and Gina are equally likely to throw next. Harvey hits the target with probability 12, Laura with 13, Gina with 14. Given that the target was hit, what is the probability that Laura threw? The three "hit" paths have probabilities 13⋅12=16, 13⋅13=19 and 13⋅14=112, so

P(Laura∣hit)=1916+19+112=413.

Independent Events

Events A and B are independent if knowing that one of them happened does not change the probability of the other:

P(A∣B)=P(A)(equivalently, P(B∣A)=P(B)).

Example (cards). Draw one card from a standard deck of 52. Let A = "an ace", B = "a 10, J, Q, K or A", C = "a diamond". Then P(A)=452=113.

  • P(A∣B)=420=15≠113: knowing B changes the chance of an ace, so A and B are not independent.
  • P(A∣C)=113=P(A): one of the 13 diamonds is an ace, so A and C are independent.

The same check can be done with the multiplication rule below: A and B are independent exactly when P(A and B)=P(A)⋅P(B). Here P(A and C)=P(ace of diamonds)=152=113⋅14, so A and C are independent; but P(A and B)=452 (every ace is in B) while P(A)⋅P(B)=113⋅513=5169, so A and B are not.

Example. At the conference, P(Country 3)=100500=0.20 but P(Country 3∣type A)≈0.129, so "from Country 3" and "type A" are not independent. Likewise P(California)=0.50 but P(California∣laptop)≈0.238.

Independent is not the same as disjoint. Disjoint events with positive probabilities are never independent: if A happens, B certainly did not, so knowing A changes P(B) to 0.

The Multiplication Rule

From the definition of conditional probability:

P(A and B)=P(A)⋅P(B∣A).

If A and B are independent, P(B∣A)=P(B) and the rule becomes P(A and B)=P(A)⋅P(B).

Example (free throws). A basketball player makes a free throw with probability 0.6.

  • If he gets nervous after making the first shot, and his chance on the second shot drops to 0.4, then P(both)=0.6⋅0.4=0.24.
  • If the two shots are independent, P(both)=0.6⋅0.6=0.36.
  • Suppose his second shot goes in with probability 0.4 whatever happened on the first (he is nervous either way). What is the probability that he makes exactly one of the two? Draw the tree: first shot S (0.6) or F (0.4), then S (0.4) or F (0.6). Exactly one is "make, miss" or "miss, make", two disjoint paths:

P(exactly one)=P(SF)+P(FS)=0.6⋅0.6+0.4⋅0.4=0.52.

Tree diagram of two free throws; the paths make-miss (0.36) and miss-make (0.16) give exactly one make
Multiply along each path, then add the paths that give "exactly one".

Example (first serves). A tennis player's first serve goes in with probability 0.65, independently from serve to serve. The probability that her first two serves are faults and the third goes in is P(out, out, in)=0.35⋅0.35⋅0.65≈0.080.

Example ("at least one"). A die has three faces marked X, two marked Y and one marked Z. The probability that at least one of the first two rolls is a Y is easiest through the complement:

P(at least one Y)=1−P(no Y)=1−(23)2=59.

Random Variables

A random variable X is a number assigned to each outcome of a chance process. Formally it is a function whose domain is the sample space and whose values are real numbers. We write P(X=x) for the probability that X takes the value x.

Example. Toss a coin twice, S={TT,TH,HT,HH}, and let X be the number of heads: X(TT)=0, X(TH)=X(HT)=1, X(HH)=2. Then P(X≤1)=34. Any rule that gives a number to each outcome is a random variable; in a game, for example, X could be the amount won on each outcome.

Examples. The face value of a fair die: X∈{1,2,3,4,5,6} and P(X=2)=16. The SAT score of a randomly chosen student: a value from 200 to 800.

There are two kinds:

  • A discrete random variable has a countable set of values, separated by gaps: the number of left-handed people in a sample of 100 (a whole number from 0 to 100), the number of votes a candidate gets.
  • A continuous random variable takes all values in an interval: heights, times, weights. (Reported heights may look discrete when rounded to the nearest inch, but height itself is continuous.) Example: pick a random point on the line across a lake that is 25 m wide, and let X be the depth of the lake at that point; if the lake is at most 4.2 m deep, X can be any number with 0≤X≤4.2.

Discrete Probability Distributions

The probability distribution of a discrete random variable lists its possible values together with their probabilities.

Example. Let X be the number of boys in a family with three children, where each birth is a boy with probability 0.5. From the eight equally likely outcomes BBB,BBG,…,GGG:

x 0 1 2 3
P(X=x) 18 38 38 18

The probabilities pi of a discrete distribution always satisfy

  1. 0≤pi≤1 for every value, and
  2. ∑pi=1.

A table with probabilities 0.2, 0.3, 0.3, 0.4 is not a probability distribution, because they add up to 1.2.

The mean (or expected value) and the standard deviation of a discrete random variable are

μX=E(X)=∑x⋅P(x),σX2=∑(x−μX)2⋅P(x),σX=∑(x−μX)2⋅P(x).

σX2 is the variance. These formulas are on the AP formula sheet.

Example. Find P(X=3), μX and σX for

x 2 3 4 5 6
P(X=x) 0.15 ? 0.2 0.2 0.35

The probabilities add up to 1, so P(X=3)=1−(0.15+0.2+0.2+0.35)=0.1. Then

μX=2(0.15)+3(0.1)+4(0.2)+5(0.2)+6(0.35)=4.5,

σX=(2−4.5)2(0.15)+(3−4.5)2(0.1)+⋯+(6−4.5)2(0.35)=2.05≈1.432.

TI-84 (Mean and standard deviation of a random variable). Put the values in L1 and the probabilities in L2. Then STAT → CALC → 1:1-Var Stats with List: L1, FreqList: L2:

1-Var Stats
 x̄=4.5
 Σx=4.5
 Σx²=22.3
 Sx=
 σx=1.431782106
 n=1

Read μX from x̄ and σX from σx. Sx stays empty because n=1 (the "frequencies" add up to 1). This is also a check: if n is not 1, the probabilities do not add up to 1. On the exam, still show the formula with the numbers in it.

A probability histogram pictures a discrete distribution: one bar for each value, with height equal to its probability.

A probability histogram with bars 0.15, 0.1, 0.2, 0.2, 0.35 at x = 2, 3, 4, 5, 6, and the mean 4.5 marked
The bar heights add up to 1; the mean is the balance point.

Example (a fair and an unfair game). You bet a friend 10 euros on the toss of a fair coin: you win 10 euros on heads and lose 10 on tails. Then E(X)=10⋅12+(−10)⋅12=0: a fair game, and σX=10 euros.

In a casino, the same bet is 10 euros on red at a European roulette wheel, which has 37 slots: 18 red, 18 black and one green zero. You win 10 euros with probability 1837 and lose 10 with probability 1937:

μX=10⋅1837+(−10)⋅1937=−1037≈−0.27,σX=(10+0.27)2⋅1837+(−10+0.27)2⋅1937≈10.0.

A single bet looks almost exactly like the coin game: the standard deviation is the same, about 10 euros, and on any one night you may well win. But the expected value is negative: on average the player loses 27 cents per 10-euro bet, so over 1000 bets the expected loss is about 270 euros. The single green slot is the casino's whole profit; in the long run the casino always wins.

The running average gain per bet over 2000 simulated roulette bets: it swings widely at first and settles near minus 0.27 euros, below the zero line of a fair game
Running average of 2000 simulated 10-euro bets on red: early luck fades, and the average settles at the expected value −0.27.

Example (a scratch card). A scratch card costs 2 euros. 0.2% of the cards win 100 euros, 1% win 20 euros, 8% win 5 euros and 20% win 2 euros (the price back); the rest win nothing. The expected prize is

100(0.002)+20(0.01)+5(0.08)+2(0.20)=0.2+0.2+0.4+0.4=1.20 euros,

so the expected net gain is 1.20−2=−0.80 euros per card. In the long run the lottery pays back 60% of the money it takes in. Real lotteries are designed exactly like this.

Continuous Probability Distributions

A continuous random variable is described by a density curve: a curve on or above the x-axis with total area 1 under it. Probabilities are areas under the curve.

  • The probability of any single value is 0: P(X=a)=0. So for a continuous variable, P(X<a)=P(X≤a).
  • We only ever ask for the probability of an interval.

Example (waiting for a bus). A bus comes every 10 minutes, and you arrive at the stop at a random time. Your waiting time X is equally likely to be anywhere between 0 and 10 minutes: its density is the horizontal line y=110 on 0≤x≤10 (a rectangle of width 10 and height 110, area 1). This is a uniform distribution. Then P(2≤X≤5)=3⋅110=0.3, and P(X>8)=2⋅110=0.2.

Left: a uniform density of height 0.1 from 0 to 10 with the area between 2 and 5 shaded, 0.3. Right: the triangle y = 2x on 0 to 1 with the trapezoid between 0.2 and 0.7 shaded, 0.45
For a continuous variable, a probability is an area under the density curve.

Example (a triangle). The line y=2x on [0,1] is a density curve (a triangle with area 12⋅1⋅2=1). The area between 0.2 and 0.7 is a trapezoid:

P(0.2≤X≤0.7)=12(0.7−0.2)[2(0.2)+2(0.7)]=0.45.

The most important continuous distribution is the normal distribution (see Unit 1): normal probabilities are found with normalcdf and invNorm.

Simulation

When a probability is hard to work out, we can estimate it by simulation: imitate the chance process with random numbers many times, and use the proportion of successes as the estimate. The law of large numbers says that as the number of trials grows, this proportion gets closer and closer to the true probability.

To describe a simulation clearly:

  1. say how digits (or numbers) represent outcomes, with the right probabilities;
  2. say what one trial is and what you record;
  3. do the trials and give the estimate.

Example (three-point shots). A basketball player makes 40% of her three-point shots, independently. Simulate 50 shots: let the digits 0, 1, 2, 3 mean "made" and 4–9 mean "missed". Reading the 50 digits

79692 51707 73274 12548 91497 11135 81218 79572 06484 87440

gives 18 made shots, a proportion of 1850=0.36, close to the true 0.4.

Example (girls). On an island every family keeps having children until they have a girl, then stops. Each birth is a girl with probability 0.5. Does this change the proportion of girls? Simulate a birth with a coin (heads = girl) or with randInt(1, 2) on the calculator. One trial is one family: flip until the first head, and record the number of girls (always 1) and boys. In 15 such families, done with the calculator, there were 15 girls and 15 boys: the rule does not change the proportion of girls. Every birth is still a girl with probability 0.5, whatever the family decides.

Wait-time simulation. Sometimes the question is how long we wait for something. With the same digits (0–3 = made), how many shots does the player need to make five three-pointers? Read digits until the fifth "made" appears, record how many digits were used, and start again. Three trials took 13, 14 and 7 shots, an average of 11.3; the theoretical average is 5/0.4=12.5. More trials give a better estimate.

TI-84 (Simulating with random numbers). MATH → PROB → 5:randInt(0,9,50) gives 50 random digits; with "made" = 0–3, count how many are at most 3. Faster: randInt(0,9,50) STO→ L1, then sum(L1≤3) counts them (sum( is in 2nd STAT → MATH, ≤ in 2nd MATH). randBin(50,0.4) (MATH → PROB → 7) does a whole trial at once: it returns the number of successes in 50 trials with p=0.4. Press ENTER repeatedly for more trials.

On the exam you may be asked to use a table of random digits rather than the calculator, so that the grader can follow exactly what you did. State whether you skip repeated numbers and numbers outside the range.

Transforming and Combining Random Variables

Linear transformations. If we add a constant a to every value of X and multiply by b:

μa+bX=a+bμX,σa+bX=|b|σX,σa+bX2=b2σX2.

Adding a constant shifts the centre but does not change the spread; multiplying stretches both.

Example. μX=14, σX=2. Then μ3+4X=3+4⋅14=59 and σ3+4X=4⋅2=8.

Example. X∼N(13,0.45). Then 2−4X has mean 2−4⋅13=−50 and standard deviation 4⋅0.45=1.8 (the minus sign does not make it negative).

Sums and differences. For any two random variables

μX±Y=μX±μY.

For variances we need independence. If X and Y are independent,

σX±Y2=σX2+σY2,σX±Y=σX2+σY2.

Note the plus sign also for X−Y: subtracting a random quantity adds variability, it does not cancel it. And we add variances, never standard deviations. These rules extend to any number of variables.

Example (two tests). The November admission test has mean 156 and standard deviation 12; the December test has mean 165 and standard deviation 11. The scores of different students on the two dates can be taken as independent, so the total X+Y has

μX+Y=156+165=321,σX+Y=122+112=265≈16.28.

Example (a difference). X and Y are independent with μX=3, σX2=1, μY=5, σY2=1.3. Then μX−Y=3−5=−2 and σX−Y=1+1.3≈1.52.

When independence fails. 25 students took both the AP Statistics exam (mean 2.4, SD 0.6) and the AP Spanish exam (mean 2.65, SD 0.55). The mean of the combined score is 2.4+2.65=5.05, but its standard deviation cannot be found: the two scores belong to the same students, so they are not independent.

Example (why independence matters). A beach café sells hot and cold drinks. Its daily profit from each depends on the weather:

weather cold and rainy cool warm hot
probability 0.2 0.3 0.3 0.2
X = profit on hot drinks (euros) 300 250 150 100
Y = profit on cold drinks (euros) 50 100 200 300
X+Y 350 350 350 400

With 1-Var Stats (values in one list, probabilities in another): μX=200, σX≈74.2; μY=160, σY≈88.9; and for the total X+Y: mean 360, standard deviation 20.

  • The means rule works: μX+Y=200+160=360. Means always add and subtract.
  • The variance rule does not: 74.22+88.92≈115.8, far from 20. X and Y depend on the same weather, so they are not independent: when hot drinks sell badly, cold drinks sell well. That is why selling both keeps the café's daily profit steady.
  • Transformations: if a price rise makes the hot-drink profit 10% higher, μ1.1X=1.1⋅200=220 and σ1.1X=1.1⋅74.2≈81.6. Paying a fixed rent of 120 euros a day gives μX+Y−120=360−120=240, while the standard deviation stays 20.
Bars for the hot-drink and cold-drink profits in four kinds of weather: one falls as the other rises, and their total stays near 350 to 400 euros
Dependent variables: the two profits move in opposite directions, so the total hardly varies.

Shape. If X and Y are independent and both normal, then X+Y and X−Y are normal too, so we can find probabilities with normalcdf.

Example (will it fit?). The length of a bolt is N(5.00,0.03) cm and the depth of a hole is N(5.10,0.04) cm, independently. The bolt fits if D=hole−bolt>0. Then μD=5.10−5.00=0.10 and σD=0.032+0.042=0.05, so

P(D>0)=P(z>0−0.100.05)=P(z>−2)≈0.977.

Normal curve of D = hole minus bolt with mean 0.10 and standard deviation 0.05; the area to the right of 0, about 0.977, is shaded
The difference of two independent normal variables is normal; the bolt fits on about 97.7% of pairs.

The Binomial Distribution

Many questions count successes in a fixed number of tries: the number of heads in 10 flips, the number of left-handed students in a sample of 20. Check the four conditions, BINS:

  • Binary: each trial is a success or a failure;
  • Independent: the trials do not influence each other;
  • Number: the number of trials n is fixed in advance;
  • Same probability: p=P(success) is the same on every trial.

Then X = the number of successes has a binomial distribution with parameters n and p, and

P(X=k)=(nk)pk(1−p)n−k,k=0,1,…,n.

Why: one particular order with k successes and n−k failures has probability pk(1−p)n−k (multiply, by independence), and there are (nk) such orders.

μX=np,σX=np(1−p).

TI-84 (Binomial probabilities). 2nd VARS (DISTR) and scroll to binompdf( and binomcdf(; enter trials n, p and the x-value:

binompdf(10,.3,3)
           .266827932
binomcdf(10,.3,2)
           .3827827864
1-binomcdf(10,.3,2)
           .6172172136

binompdf gives P(X=k) and binomcdf gives P(X≤k), always "at most". Translate first:

Question Calculator
P(X≤4), "at most 4" binomcdf(n,p,4)
P(X<4), "fewer than 4" binomcdf(n,p,3)
P(X≥4), "at least 4" 1-binomcdf(n,p,3)
P(X>4), "more than 4" 1-binomcdf(n,p,4)
P(2≤X≤5) binomcdf(n,p,5)-binomcdf(n,p,1)

Leaving out the x-value gives the whole distribution as a list: binompdf(10,.3) STO→ L2, with 0 to 10 in L1, is ready for a histogram or for 1-Var Stats L1,L2.

Example. 30% of the students at a school walk to school. Choose 10 students at random; X is the number who walk, so X∼B(10,0.3).

  • P(X=3)=(103)(0.3)3(0.7)7=120⋅0.027⋅0.0824≈0.267.
  • P(X≤2)=binomcdf(10,0.3,2)≈0.383.
  • P(X≥3)=1−P(X≤2)≈0.617. (A classic mistake is 1−P(X≤3).)
  • μX=10⋅0.3=3 students and σX=10⋅0.3⋅0.7≈1.45 students.
Probability histogram of the binomial distribution with n = 10 and p = 0.3, peaking at 3; the bars for 0, 1 and 2 are highlighted and the mean 3 is marked
B(10,0.3): skewed right, centred at np=3.

Interpreting the mean: "If we took many random samples of 10 students, the number who walk would be 3 on average."

Shape. A binomial distribution is skewed right when p is small, skewed left when p is large, and symmetric for p=0.5. It becomes approximately normal when np≥10 and n(1−p)≥10.

The 10% condition. Sampling without replacement makes the trials slightly dependent (each person chosen changes who is left). If the sample is at most 10% of the population, n≤0.10N, we can ignore this and use the binomial model.

Writing it up on the exam. Define the variable, name the distribution with its parameters, give the probability statement and the answer: "Let X = number of walkers among the 10; X∼B(10,0.3); P(X≥3)=1−binomcdf(10,0.3,2)≈0.617." A calculator command alone, without the parameters labelled, does not earn full credit.

The Geometric Distribution

Sometimes there is no fixed number of trials: we repeat independent trials with the same p until the first success. Then X = the number of the trial on which the first success happens has a geometric distribution:

P(X=k)=(1−p)k−1p,k=1,2,3,…

(the first k−1 trials fail, then one succeeds). Also

P(X>k)=(1−p)k,μX=1p,σX=1−pp.

TI-84 (Geometric probabilities). 2nd VARS (DISTR) and scroll to geometpdf( and geometcdf( (note the spelling geomet); enter p and the trial number:

geometpdf(.7,3)
           .063
geometcdf(.7,3)
           .973
1-geometcdf(.7,3)
           .027

geometpdf(p,k) =P(X=k) and geometcdf(p,k) =P(X≤k), so "the first success comes after trial k" is 1-geometcdf(p,k) =(1−p)k.

Example. A basketball player makes 70% of her free throws, independently. Let X be the number of the shot on which she first scores.

  • P(X=3)=(0.3)2(0.7)=0.063: miss, miss, make.
  • P(X>3)=(0.3)3=0.027: the first three shots all miss.
  • μX=10.7≈1.43 shots on average until the first make.
Probability histogram of a geometric distribution with p = 0.7: 0.7, 0.21, 0.063, 0.019 and so on; the bar for 3 is highlighted
Geometric with p=0.7: the most likely value is 1, and the bars shrink by a factor 0.3 each time.

The geometric distribution is always skewed right, and its most likely value is always 1.

Example (back to the girls). In the simulation of families who have children until the first girl, the number of children is geometric with p=0.5, so a family has on average 1/0.5=2 children: 1 girl and on average 1 boy, which is why the proportion of girls stays at one half.

Binomial or geometric? Ask: is the number of trials fixed (binomial, count the successes) or do we wait for the first success (geometric, count the trials)?


Unit 4 Practice 1: Probability

Fifteen multiple-choice questions and three free-response questions on probability rules, conditional probability and simulation, adapted from Barron's AP Q&A Statistics, 5 Steps to a 5 (Chapter 8) and released AP exams.

Multiple-Choice Questions

15 multiple-choice questions on probability. Calculator allowed. Suggested time: 35 minutes.

1. A life table for a region shows how many of 10 000 newborns are still alive at each age: 9850 at age 20, 9420 at age 40, 8700 at age 60 and 5400 at age 80. What is the probability that a 20-year-old will live to 60?

  • (A) 11509850
  • (B) 870010000
  • (C) 87009850
  • (D) 985010000
  • (E) 115010000

2. Events E and F are independent, P(E)=0.4 and P(E or F)=0.7. What is P(F)?

  • (A) 0.5
  • (B) 0.3
  • (C) 0.28
  • (D) 0.42
  • (E) 0.75

3. P(E)=0.5, P(F)=0.3 and P(E or F)=0.65. The events E and F are

  • (A) independent and mutually exclusive
  • (B) independent but not mutually exclusive
  • (C) mutually exclusive but not independent
  • (D) neither independent nor mutually exclusive
  • (E) impossible to classify from this information

4. P(X)=0.4, P(Y)=0.5 and P(X∣Y)=0.3. What is P(Y∣X)?

  • (A) 0.12
  • (B) 0.15
  • (C) 0.20
  • (D) 0.30
  • (E) 0.375

5. 1% of a population has a disease. A test is positive for 98% of people with the disease and for 5% of people without it. A randomly chosen person tests positive. What is the probability that the person has the disease?

  • (A) 0.01
  • (B) 0.05
  • (C) 0.098
  • (D) 0.165
  • (E) 0.98

6. Events S and T have nonzero probabilities. Which of the following is impossible?

  • (A) P(S)+P(T)>1
  • (B) P(S)<P(T)
  • (C) P(S∣T)=P(S)
  • (D) S and T are both independent and mutually exclusive.
  • (E) S and T are neither independent nor mutually exclusive.

7. 8% of adults say they trust a certain news channel. In a random sample of 5 adults, what is the probability that at least one says so?

  • (A) 5(0.08)
  • (B) 1−(0.92)5
  • (C) (0.08)5
  • (D) 1−(0.08)5
  • (E) 5(0.08)(0.92)4

8. Two fair dice are rolled. What is the probability that the sum is 6, given that at least one die shows a 4?

  • (A) 211
  • (B) 212
  • (C) 16
  • (D) 236
  • (E) 1136

9. Game 1: you win if between 45% and 55% of your coin flips are heads. Game 2: you win if more than 70% of your flips are heads. You may choose to flip 20 or 200 times in each game. What should you choose?

  • (A) 20 times in both games
  • (B) 200 times in both games
  • (C) It makes no difference in either game.
  • (D) 20 times in game 1 and 200 times in game 2
  • (E) 200 times in game 1 and 20 times in game 2

Questions 10–11 use this two-way table of counts.

D E Total
A 18 12 30
B 20 25 45
C 32 43 75
Total 70 80 150

10. What are P(A and E) and P(C∣E)?

  • (A) 12150 and 43150
  • (B) 1280 and 4375
  • (C) 12150 and 4380
  • (D) 1230 and 4380
  • (E) 1280 and 4380

11. What is P(A or D)?

  • (A) 18150
  • (B) 100150
  • (C) 30150
  • (D) 70150
  • (E) 82150

12. 70% of a factory's items come from line A and 30% from line B. 20% of line A's items and 60% of line B's items need rework. An item needs rework. What is the probability it came from line B?

  • (A) 0.5625
  • (B) 0.18
  • (C) 0.30
  • (D) 0.32
  • (E) 0.60

13. A fair four-sided die has faces 1, 2, 3, 4. It is rolled three times. What is the probability of at least one 4?

  • (A) 34
  • (B) 164
  • (C) 3764
  • (D) 2764
  • (E) 916

14. In a simulation, each trial must represent an event with probability 0.35. Which assignment of random digits is correct?

  • (A) single digits 0–3 = event, 4–9 = no event
  • (B) pairs of digits 00–34 = event, 35–99 = no event
  • (C) pairs of digits 01–35 = event, 36–99 = no event, 00 ignored
  • (D) single digits 0–2 = event, 3–9 = no event, and repeats ignored
  • (E) pairs of digits 00–35 = event, 36–99 = no event

15. Two cards are drawn without replacement from a standard deck of 52. What is the probability that both are hearts?

  • (A) 116
  • (B) 1352+1251
  • (C) 14
  • (D) 1352⋅1251
  • (E) 1352⋅1351
Answer key
Question Answer Why
1 C Given alive at 20 (9850 people), 8700 reach 60.
2 A 0.7=0.4+p−0.4p, so 0.6p=0.3 and p=0.5.
3 B P(E and F)=0.5+0.3−0.65=0.15=0.5⋅0.3, and it is not 0.
4 E P(X and Y)=0.3⋅0.5=0.15; P(Y∣X)=0.15/0.4=0.375.
5 D 0.01⋅0.980.01⋅0.98+0.99⋅0.05=0.00980.0593≈0.165.
6 D If S happens, T cannot, so P(T∣S)=0≠P(T).
7 B 1−P(nobody)=1−0.925≈0.341.
8 A 11 outcomes have a 4; of these, 24 and 42 have sum 6.
9 E More flips bring the proportion closer to 0.5 (law of large numbers): good for game 1, bad for game 2.
10 C Joint: divide by 150. Given E: divide by the E total, 80.
11 E 30+70−18150=82150.
12 A P(rework)=0.14+0.18=0.32; 0.18/0.32=0.5625.
13 C 1−(3/4)3=1−27/64.
14 B 35 of the 100 equally likely pairs. (E) uses 36 pairs.
15 D After one heart, 12 hearts remain among 51 cards.

Free-Response Questions

FRQ 1 (a table of relative frequencies). Modelled on AP Statistics 2019, FRQ 3. A large survey asked adults how often they take medicine as prescribed. The relative frequencies are:

Never Sometimes Always Total
Men 0.06 0.18 0.23 0.47
Women 0.05 0.16 0.32 0.53
Total 0.11 0.34 0.55 1.00

(a) One person is selected at random. Find the probability that the person (i) answered never and is a woman; (ii) answered never or is a woman; (iii) answered never, given that the person is a woman.

(b) Are "answered never" and "is a woman" independent events? Justify.

(c) Suppose 55% of a large population always take medicine as prescribed. Five people are chosen at random. Find the probability that at least 4 of them always do.

Solution

(a) (i) P(never and woman)=0.05.

(ii) P(never or woman)=0.11+0.53−0.05=0.59.

(iii) P(never∣woman)=0.050.53≈0.094.

(b) No. P(never)=0.11, but P(never∣woman)≈0.094. Since these are not equal, knowing that the person is a woman changes the probability of answering never.

(c) Let X = number of the 5 who always take medicine as prescribed. The people are chosen at random from a large population, so the trials are (nearly) independent with p=0.55: X∼B(5,0.55).

P(X≥4)=(54)(0.55)4(0.45)+(0.55)5≈0.2059+0.0503=0.256.

(Calculator: 1 - binomcdf(5, 0.55, 3).)

FRQ 2 (a tree, then the binomial). Modelled on AP Statistics 2018, FRQ 3, and 2017, FRQ 3. A shop sells phones from two factories. 6% of its phones come from factory X, of which 5% are defective; the other 94% come from factory Y, of which 2% are defective.

(a) What is the probability that a randomly selected phone is defective?

(b) Given that a randomly selected phone is defective, what is the probability that it came from factory X?

(c) A random sample of 25 phones is selected from the shop's large stock. What is the probability that at least 2 of them are defective?

Solution

(a) A tree: X (0.06) then defective (0.05); Y (0.94) then defective (0.02).

P(D)=0.06⋅0.05+0.94⋅0.02=0.0030+0.0188=0.0218.

(b)

P(X∣D)=P(X and D)P(D)=0.00300.0218≈0.138.

(c) Let N = number of defective phones among the 25. The stock is large (25 is far less than 10% of it), so N∼B(25,0.0218).

P(N≥2)=1−P(N=0)−P(N=1)=1−(0.9782)25−25(0.0218)(0.9782)24≈1−0.5764−0.3211=0.103.

(Calculator: 1 - binomcdf(25, 0.0218, 1).)

FRQ 3 (simulation). Modelled on 5 Steps to a 5, Chapter 8, Free-Response 15 and 16. Each box of a cereal contains one of 4 different toys, each equally likely. A child wants to collect all 4. Use this line of random digits to estimate how many boxes must be bought:

79692 51707 73274 12548 91497 11135 81218 79572 06484 87440

(a) Describe how to use the random digits to simulate buying boxes.

(b) Carry out two complete trials, starting at the beginning of the line, and mark where each ends.

(c) What is your estimate, and how could it be improved?

Solution

(a) Read single digits. Let 1, 2, 3, 4 stand for the four toys and ignore the digits 0 and 5–9. Each used digit is one box. One trial ends when all four of 1, 2, 3, 4 have appeared; record the number of digits used (boxes bought).

(b) Trial 1: the used digits are 2, 1, 3, 2, 4. All four toys appear after 5 boxes (at the 4 in "73274").

Trial 2 continues from there: 1, 2, 4, 1, 4, 1, 1, 1, 3. The 3 (in "11135") completes the set after 9 boxes.

(c) The estimate is 5+92=7 boxes. Two trials are far too few; by the law of large numbers, many more trials (hundreds, with a computer) would give an estimate much closer to the true mean, which is 4(1+12+13+14)≈8.3 boxes.


Unit 4 Practice 2: Random Variables

Fifteen multiple-choice questions and three free-response questions on random variables, the binomial and geometric distributions and combining random variables.

Multiple-Choice Questions

15 multiple-choice questions on random variables. Calculator allowed. Suggested time: 35 minutes.

1. In a game, a player loses 1 euro with probability 0.55, wins 1 euro with probability 0.30 and wins 3 euros with probability 0.15. What is the expected gain per game?

  • (A) 0.05 euros
  • (B) 0.20 euros
  • (C) 0.45 euros
  • (D) −0.20 euros
  • (E) It cannot be found, since the probabilities do not add up to 1.

2. X takes the values 3, 5, 7 with probabilities 13,12,16, and Y takes the values 1, 3, 4, 5 with probabilities 18,38,?,316. If X and Y are independent, what is P(X=5 and Y=4)?

  • (A) 516
  • (B) 1316
  • (C) 332
  • (D) 532
  • (E) 316

3. A random variable has mean μX=4 and variance σX2=0.36. What are the mean and standard deviation of 5−2X?

  • (A) mean −3, standard deviation 1.2
  • (B) mean −3, standard deviation −1.2
  • (C) mean 3, standard deviation 1.2
  • (D) mean −3, standard deviation 0.72
  • (E) mean −3, standard deviation 1.44

4. A student's yearly spending on books has mean 800 euros and standard deviation 120 euros; spending on travel has mean 500 euros and standard deviation 90 euros. Assuming independence, what are the mean and standard deviation of the total?

  • (A) mean 1300, standard deviation 210
  • (B) mean 650, standard deviation 105
  • (C) mean 1300, standard deviation 150
  • (D) mean 1300, standard deviation 30
  • (E) mean 1300, standard deviation 22 500

5. X and Y are independent with σX=5 and σY=12. What is the standard deviation of X−Y?

  • (A) 7
  • (B) 17
  • (C) 7
  • (D) 119
  • (E) 13

6. The same 25 students took an AP Statistics exam (mean 2.4, standard deviation 0.6) and an AP Spanish exam (mean 2.65, standard deviation 0.55). What are the mean and standard deviation of the sum of each student's two scores?

  • (A) mean 5.05, standard deviation 1.15
  • (B) mean 5.05, standard deviation 0.81
  • (C) mean 5.05, standard deviation 0.66
  • (D) mean 2.53, standard deviation 0.81
  • (E) mean 5.05; the standard deviation cannot be determined

7. 45% of adults get their news online. In a random sample of 10 adults, what is the probability that exactly 6 get their news online?

  • (A) (106)(0.45)6(0.55)4
  • (B) (106)(0.45)4(0.55)6
  • (C) (0.45)6(0.55)4
  • (D) 6(0.45)6(0.55)4
  • (E) (104)(0.55)6

8. 70% of the claims made on a news programme are accurate. If 4 independent claims are made, what is the probability that fewer than half are accurate?

  • (A) 6(0.7)2(0.3)2
  • (B) (0.3)4
  • (C) 1−(0.7)4
  • (D) (0.3)4+4(0.7)(0.3)3
  • (E) (0.3)4+4(0.7)(0.3)3+6(0.7)2(0.3)2

9. A person has a 7% chance of winning a daily office draw, independently each day. What is the probability that her first win is on the third day?

  • (A) 3(0.07)(0.93)2
  • (B) (0.93)2(0.07)
  • (C) (0.07)2(0.93)
  • (D) (31)(0.07)2(0.93)
  • (E) 1−(0.93)3

10. X is binomial with n=50 and p=0.2. What are its mean and standard deviation?

  • (A) mean 10, standard deviation 8
  • (B) mean 10, standard deviation 4
  • (C) mean 10, standard deviation 2.83
  • (D) mean 2.5, standard deviation 2.83
  • (E) mean 40, standard deviation 2.83

11. A quiz-show contestant answers questions until the first one she gets right; each answer is right with probability 0.25, independently. What is the expected number of questions she answers?

  • (A) 4
  • (B) 3
  • (C) 0.25
  • (D) 1.33
  • (E) 0.75

12. Which random variable is binomial?

  • (A) The number of cards drawn from a deck, without replacement, until the first ace.
  • (B) The number of heads when a coin is flipped until it shows heads twice.
  • (C) The number of girls in a family that has children until the first boy.
  • (D) The number of sixes in 30 rolls of a fair die.
  • (E) The number of red cards when 10 cards are dealt from a deck of 20 cards.

13. A density curve is the line y=x2 for 0≤x≤2. What is P(0.5≤X≤1.5)?

  • (A) 0.25
  • (B) 0.50
  • (C) 0.75
  • (D) 1.00
  • (E) 0.40

14. The time to cook a dish is N(40,3) minutes and the time to prepare it is N(25,4) minutes, independently. What is the probability that the total time is more than 70 minutes?

  • (A) 0.0228
  • (B) 0.3085
  • (C) 0.1587
  • (D) 0.8413
  • (E) 0.0668

15. A class has 30 students, 12 of whom are left-handed. 20 students are chosen at random without replacement, and X is the number of left-handed students chosen. Why is X not binomial?

  • (A) The outcome is not a success or a failure.
  • (B) The number of trials is not fixed.
  • (C) The expected value is not a whole number.
  • (D) There are fewer than 10 expected successes.
  • (E) The sample is more than 10% of the population, so the trials are clearly dependent.
Answer key
Question Answer Why
1 B −0.55+0.30+0.45=0.20.
2 D P(Y=4)=1−18−38−316=516; times P(X=5)=12.
3 A 5−2⋅4=−3; σ=|−2|⋅0.6=1.2.
4 C Means add; variances add: 1202+902=150.
5 E 25+144=13. Variances add for differences too.
6 E The scores belong to the same students, so they are not independent.
7 A Binomial with n=10, p=0.45, k=6.
8 D Fewer than half means 0 or 1 accurate claims.
9 B Miss, miss, win.
10 C np=10 and 50⋅0.2⋅0.8=8≈2.83.
11 A Geometric: μ=1/p=4.
12 D Fixed n=30, independent rolls, same p=1/6.
13 B Area =14(1.52−0.52)=0.5 (a trapezoid).
14 C Total ∼N(65,9+16=5); P(z>1)=0.1587.
15 E 20 of 30 is far more than 10%: each draw changes the chances of the next.

Free-Response Questions

FRQ 4 (a discrete distribution). Modelled on AP Statistics 2015, FRQ 3. An office has three printers. X is the number working when the office opens on a randomly selected day:

x 0 1 2 3
P(X=x) 0.10 0.20 0.45 0.25

(a) What is the probability that at least one printer is working?

(b) Find the expected number of working printers.

(c) Given that at least one printer is working, what is the probability that all three are?

(d) Given that at least one is working, is the expected number of working printers less than, equal to or greater than the answer to (b)? Explain without calculating, then check.

Solution

(a) P(X≥1)=1−P(X=0)=1−0.10=0.90.

(b) E(X)=0(0.10)+1(0.20)+2(0.45)+3(0.25)=0+0.20+0.90+0.75=1.85 printers.

(c) P(X=3∣X≥1)=P(X=3)P(X≥1)=0.250.90≈0.278.

(d) Greater. The condition removes the value 0, the smallest value, and the remaining probabilities are scaled up, so the average moves up. Check: the conditional probabilities are 0.200.90,0.450.90,0.250.90 for 1, 2, 3, and the mean is 0.20+0.90+0.750.90=1.850.90≈2.06>1.85.

FRQ 5 (expected value of a game). Modelled on AP Statistics 2012, FRQ 2. A charity runs a game: a player pays 3 euros and spins a spinner with 8 equal sectors. Five sectors pay nothing, two sectors pay 5 euros and one sector pays 10 euros. Let X be the charity's net gain from one play.

(a) Give the probability distribution of X.

(b) Find the expected net gain of the charity per play.

(c) What is the smallest number of plays for which the expected total net gain is at least 600 euros?

(d) The game is expected to be played 1500 times. The total net gain then has mean 750 euros and standard deviation 136.9 euros. Use a normal model to estimate the probability that the charity gains at least 600 euros.

Solution

(a) The charity keeps the 3 euros and pays the prize:

x (euros) 3 −2 −7
P(X=x) 58 28 18

(b) E(X)=3⋅58−2⋅28−7⋅18=15−4−78=0.50 euros per play.

(c) 0.50n≥600 gives n≥1200: at least 1200 plays.

(d) Let T be the total net gain, T≈N(750,136.9).

P(T≥600)=P(z≥600−750136.9)=P(z≥−1.10)≈0.864.

(Check of the standard deviation: E(X2)=9⋅5+4⋅2+498=12.75, so σX2=12.75−0.25=12.5, and for 1500 independent plays σT=1500⋅12.5≈136.9.)

FRQ 6 (combining random variables). Modelled on AP Statistics 2013, FRQ 3. A full crate of apples consists of one empty crate and 6 apples, all chosen at random. The weights of full crates are approximately normal with mean 1250 g and standard deviation 18 g.

(a) What is the probability that a randomly selected full crate weighs more than 1280 g?

(b) The empty crates have mean weight 50 g and standard deviation 4 g. The weights of the crate and of the 6 apples are independent. Let A be the weight of one randomly selected apple. Find (i) the mean and (ii) the standard deviation of A.

Solution

(a) Let F be the weight of a full crate, F∼N(1250,18).

P(F>1280)=P(z>1280−125018)=P(z>1.67)≈0.048.

(b) F=C+A1+A2+⋯+A6, where C is the crate and A1,…,A6 the apples.

(i) Means add: 1250=50+6μA, so μA=12006=200 g.

(ii) Variances add, because the weights are independent: 182=42+6σA2, so 324=16+6σA2 and σA2=3086≈51.3. Then σA≈7.16 g.

Note the 6 separate apples, A1+⋯+A6, not 6A: the variance of six independent apples is 6σA2, while 6A (one apple counted six times) would have variance 36σA2.


Unit 4 Practice 3: Mixed Review

Fifteen multiple-choice questions and three free-response questions mixing all of Unit 4: probability rules, conditional probability, random variables and the binomial and geometric distributions.

Multiple-Choice Questions

15 multiple-choice questions on Unit 4. Calculator allowed. Suggested time: 35 minutes.

1. A fair coin is flipped and a fair four-sided die (1 to 4) is rolled. Which is a sample space of equally likely outcomes?

  • (A) {H,T,1,2,3,4}
  • (B) {H1,H2,H3,H4,T1,T2,T3,T4}
  • (C) {H1,H2,H3,H4,T1,T2}
  • (D) {H,T,even,odd}
  • (E) {H1,T4}

2. An inspector tests 400 randomly selected microchips and finds 18 with minor defects. What is the experimental probability that a chip is defective?

  • (A) 0.018
  • (B) 0.03
  • (C) 0.18
  • (D) 0.40
  • (E) 0.045

Questions 3–4 use this table of 200 nurses by shift and department.

ER ICU Surgery Total
Day 45 35 40 120
Night 30 20 30 80
Total 75 55 70 200

3. A nurse is selected at random. What is the probability that the nurse works nights or in the ICU?

  • (A) 0.575
  • (B) 0.675
  • (C) 0.100
  • (D) 0.400
  • (E) 0.275

4. A randomly selected nurse works in the ER. What is the probability that this nurse works the day shift?

  • (A) 45120
  • (B) 45200
  • (C) 4575
  • (D) 75200
  • (E) 3075

5. A rare subspecies of an insect makes up 0.2% of the population, and 96% of its members have a certain pattern on their backs; only 3% of the common subspecies have it. Which expression gives the probability that an insect with the pattern belongs to the rare subspecies?

  • (A) (0.002)(0.96)
  • (B) 1−(0.002)(0.96)
  • (C) (0.002)(0.96)(0.998)(0.03)
  • (D) (0.002)(0.96)(0.002)(0.96)+(0.998)(0.03)
  • (E) (0.998)(0.03)(0.002)(0.96)+(0.998)(0.03)

6. E and F are mutually exclusive, P(E)=0.25 and P(E or F)=0.64. What is P(F)?

  • (A) 0.39
  • (B) 0.16
  • (C) 0.52
  • (D) 0.89
  • (E) 0.64

7. A fair die is rolled 4 times. What is the probability of at least one six?

  • (A) 46
  • (B) (16)4
  • (C) 1−(56)4≈0.518
  • (D) 4⋅16(56)3
  • (E) (56)4

8. A salesperson makes a sale on each call with probability 0.2, independently. What is the probability that the first sale comes after the third call?

  • (A) 0.008
  • (B) 0.128
  • (C) 0.2
  • (D) 0.488
  • (E) 0.512

9. X∼B(8,0.25). What is P(X≤2)?

  • (A) 0.311
  • (B) 0.679
  • (C) 0.322
  • (D) 0.900
  • (E) 0.367

10. An insurance company sells a one-year policy for 50 euros. With probability 0.002 it must pay 10 000 euros; otherwise it pays nothing. What is the company's expected gain per policy?

  • (A) 50 euros
  • (B) 20 euros
  • (C) −20 euros
  • (D) 30 euros
  • (E) 0 euros

11. X1,X2,X3 are independent, each with standard deviation 2. What is the standard deviation of X1+X2+X3?

  • (A) 6
  • (B) 12
  • (C) 2
  • (D) 4
  • (E) 3.46

12. Daily temperatures have standard deviation 3 °C. With F=32+1.8C, what is the standard deviation in °F?

  • (A) 5.4
  • (B) 37.4
  • (C) 3
  • (D) 9.72
  • (E) 1.67

13. X∼N(10,2) and Y∼N(15,3) are independent. What is P(X+Y<20)?

  • (A) 0.0228
  • (B) 0.1587
  • (C) 0.5000
  • (D) 0.0828
  • (E) 0.2420

14. X is binomial with n=200 and p=0.15. What are its mean and standard deviation?

  • (A) mean 30, standard deviation 25.5
  • (B) mean 15, standard deviation 5.05
  • (C) mean 30, standard deviation 5.05
  • (D) mean 170, standard deviation 5.05
  • (E) mean 30, standard deviation 0.36

15. In a group, P(A)=0.4, P(B)=0.5 and P(A and B)=0.2. Which statement is true?

  • (A) A and B are mutually exclusive.
  • (B) A and B are independent.
  • (C) P(A∣B)=0.8.
  • (D) P(A or B)=0.9.
  • (E) A and B are neither independent nor mutually exclusive.
Answer key
Question Answer Why
1 B Each coin result goes with each die result: 2⋅4=8 equally likely pairs.
2 E 18/400=0.045.
3 A 80+55−20200=115200.
4 C Only the ER column (75 nurses) counts.
5 D Bayes: the "rare and pattern" path divided by all "pattern" paths.
6 A Disjoint: 0.64=0.25+P(F).
7 C 1−P(no six).
8 E The first three calls all fail: 0.83.
9 B binomcdf(8, 0.25, 2) ≈0.1001+0.2670+0.3115.
10 D 50−0.002⋅10000=30.
11 E 4+4+4=12.
12 A Only the factor 1.8 affects spread.
13 D X+Y∼N(25,13≈3.61); z=−1.39.
14 C np=30, 200⋅0.15⋅0.85=25.5.
15 B 0.4⋅0.5=0.2=P(A and B).

Free-Response Questions

FRQ 7 (binomial and geometric). Modelled on the free-response problems of Barron's AP Q&A Statistics, Chapter 7. A basketball player makes 80% of her free throws, independently of each other.

(a) In 10 free throws, what is the probability that she makes exactly 8?

(b) In 10 free throws, what is the probability that she makes at least 9?

(c) Find the mean and the standard deviation of the number of free throws she makes in 10 attempts, and interpret the mean.

(d) What is the probability that her first miss is on her 4th free throw?

Solution

Let X be the number of made free throws in 10 attempts. There are two outcomes per shot, the shots are independent, n=10 is fixed and p=0.8 every time, so X∼B(10,0.8).

(a) P(X=8)=(108)(0.8)8(0.2)2=45⋅0.1678⋅0.04≈0.302.

(b) P(X≥9)=(109)(0.8)9(0.2)+(0.8)10≈0.2684+0.1074=0.376 (or 1 - binomcdf(10, 0.8, 8)).

(c) μX=10⋅0.8=8 and σX=10⋅0.8⋅0.2≈1.26. If she shot many sets of 10 free throws, she would make 8 per set on average.

(d) Now we wait for the first miss (probability 0.2): geometric with p=0.2. The first three shots go in and the fourth misses: (0.8)3(0.2)=0.1024.

FRQ 8 (combining normal random variables). Modelled on 5 Steps to a 5, Chapter 8, Free-Response 6. Emre walks to the station and then takes a train to school. His walking time is approximately normal with mean 8 minutes and standard deviation 1.5 minutes; the train time is approximately normal with mean 25 minutes and standard deviation 3 minutes. The two times are independent.

(a) Find the mean and the standard deviation of his total travel time.

(b) What is the probability that the trip takes more than 37 minutes?

(c) Emre leaves home 40 minutes before school starts. On what proportion of days will he be late?

Solution

(a) Let T=W+R. Means add: μT=8+25=33 minutes. The times are independent, so variances add: σT=1.52+32=11.25≈3.35 minutes.

(b) A sum of independent normal variables is normal, so T∼N(33,3.35):

P(T>37)=P(z>37−333.35)=P(z>1.19)≈0.117.

(c) P(T>40)=P(z>40−333.35)=P(z>2.09)≈0.018: he will be late on about 1.8% of days.

FRQ 9 (two stages, then repeated play). Modelled on Barron's AP Q&A Statistics, Question 219. A game has 10 boxes. Seven boxes contain 3 red and 2 blue marbles; the other three contain 1 red and 4 blue marbles. A player picks a box at random and then a marble at random from it, and wins if the marble is red.

(a) What is the probability of winning?

(b) Given that the player won, what is the probability that the box was one of the seven "3 red" boxes?

(c) The player plays 4 times (everything is put back each time). What is the probability of exactly 2 wins?

Solution

(a) Tree: "3 red" box (0.7) then red (0.6); "1 red" box (0.3) then red (0.2).

P(win)=0.7⋅0.6+0.3⋅0.2=0.42+0.06=0.48.

(b)

P(3-red box∣win)=0.420.48=0.875.

(c) The plays are independent with p=0.48, so the number of wins W∼B(4,0.48):

P(W=2)=(42)(0.48)2(0.52)2=6⋅0.2304⋅0.2704≈0.374.


Exam Tips

Unit 1

  • Describe a distribution with shape, center, spread and unusual features, always in context.
  • Give a key with every stemplot.
  • Skewness points to the tail; the mean is pulled toward the tail, the median is not.
  • n+12 is the position of the median, not its value, and the data must be sorted first.
  • Report mean and sx for symmetric data, median and IQR for skewed data or data with outliers.
  • Justify outliers with numbers: show the fences Q1−1.5⋅IQR and Q3+1.5⋅IQR.
  • Compare distributions with comparative words ("greater than", "more variable"), covering shape, center, spread and outliers.
  • Adding a constant changes center but not spread; multiplying changes both.
  • In normal problems, show the z-score (or name the distribution and its parameters) and shade a sketch.

Unit 2

  • Describe a scatterplot with direction, form and strength, in context.
  • Interpret the slope as "for each additional unit of x, the predicted y increases (decreases) by b". Use the word predicted.
  • Residual = actual − predicted.
  • A good linear model has a residual plot with no pattern, scattered around 0.
  • r2: "…% of the variation in y is explained by the linear relationship with x".
  • Correlation does not imply causation.
  • s: "the actual y-values typically differ from the predicted values by about s".
  • In two-way tables compare conditional percentages, never raw counts of groups of different sizes.
  • Do not interpret an intercept that is far outside the data, and never trust extrapolation.

Unit 3

  • When asked whether a sample is an SRS, check whether every group of size n could be chosen, not just every individual.
  • When you describe a sampling or randomization procedure, say exactly how the randomness is produced (numbering the units, a random number generator, drawing slips), and whether repeated numbers are skipped.
  • Know the difference between an experiment and an observational study, and why only experiments support cause-and-effect conclusions.
  • In a block design, remember to randomize the treatments inside each block.
  • Identify treatments, experimental units and response variable separately, in context.
  • Scope of inference: random sampling allows generalisation; random assignment allows causation.
  • When you name a bias, also say in which direction it pushes the estimate and why.

Unit 4

  • P(E)=favourabletotal only works when the outcomes are equally likely.
  • In "or" questions, count the overlap only once: P(A or B)=P(A)+P(B)−P(A and B).
  • For "at least one", use the complement: 1−P(none).
  • For P(A∣B), the given event is the new whole: divide by P(B).
  • To show (in)dependence, compare P(A∣B) with P(A) using numbers. Disjoint is not the same as independent.
  • For normal problems, write the distribution (X∼N(μ,σ)), the z-score and the area, not just the calculator answer.
  • Variances add, for sums and differences, but only for independent random variables. Never add standard deviations.
  • Describe a simulation fully: what the digits mean, what one trial is, what you record.
  • Binomial: check BINS, write X∼B(n,p) and the probability statement; "at least 3" is 1−P(X≤2).
  • Geometric: no fixed number of trials; you wait for the first success, μ=1/p.

Flashcards

Sample space

A list of all the outcomes of a chance process that is complete (nothing is missing) and disjoint (no two outcomes can happen together).

Event

A collection of outcomes, that is, a subset of the sample space. Rolling an even number is the event {2,4,6}.

Probability of an event

The long-run relative frequency of the event when the chance process is repeated many times; a number between 0 and 1.

Disjoint (mutually exclusive) events

Events with no outcomes in common, so they cannot happen together: P(A and B)=0 and P(A or B)=P(A)+P(B).

Addition rule

P(A or B)=P(A)+P(B)−P(A and B).

Complement A¯

The event "A does not happen"; P(A¯)=1−P(A).

Marginal and joint frequencies

In a two-way table, the totals of the rows and columns are the marginal frequencies; the counts in the cells are the joint frequencies.

Conditional probability P(A∣B)

The probability of A when we know B happened: P(A∣B)=P(A and B)P(B).

Independent events

Knowing that one happened does not change the probability of the other: P(A∣B)=P(A). Then P(A and B)=P(A)⋅P(B).

Multiplication rule

P(A and B)=P(A)⋅P(B∣A); for independent events, P(A)⋅P(B).

Mosaic plot

A segmented bar graph whose bar widths are proportional to the group sizes, so the area of each rectangle is proportional to the count in that cell.

Random variable

A number assigned to each outcome of a chance process. It is discrete if its values are countable and separated by gaps, continuous if it takes all values in an interval.

Probability distribution (discrete)

The list of the values of X with their probabilities; every pi is between 0 and 1 and ∑pi=1.

Expected value μX

The mean of a discrete random variable, μX=∑x⋅P(x): the long-run average value of X.

Variance and standard deviation of X

σX2=∑(x−μX)2⋅P(x), and σX=σX2.

Density curve

A curve on or above the x-axis with total area 1 under it; for a continuous random variable, probabilities are areas under it, and P(X=a)=0.

Law of large numbers

As the number of trials grows, the proportion of successes gets closer and closer to the true probability.

Simulation

Imitating a chance process with random numbers many times and using the proportion of successes to estimate a probability.

μ and σ of a+bX

μa+bX=a+bμX and σa+bX=|b|σX.

Variance of X±Y

If X and Y are independent, σX±Y2=σX2+σY2 (plus for differences too).

Normal distribution N(μ,σ)

A symmetric, bell-shaped density curve with mean μ and standard deviation σ; about 68%, 95% and 99.7% of the values are within 1, 2 and 3 standard deviations of the mean.

z-score

z=x−μσ: how many standard deviations x is from the mean.

Significance level α

The cut-off, fixed before the study, below which a result's probability under "chance alone" counts as statistically significant; usually α=0.05.

Standard deviation sx

sx=∑(xi−x¯)2n−1: roughly the typical distance of the values from the mean. Not resistant; 0 only when all values are equal.

Interquartile range (IQR)

IQR=Q3−Q1, the range of the middle half of the data. It is resistant.

Five-number summary

Minimum, Q1, median, Q3, maximum; Q1 and Q3 are the medians of the lower and upper halves of the sorted data.

The 1.5⋅IQR rule

A value is an outlier if it is below Q1−1.5⋅IQR or above Q3+1.5⋅IQR.

Modified boxplot

A box from Q1 to Q3 with a line at the median, whiskers to the most extreme values that are not outliers, and outliers drawn as separate points.

pth percentile

The value with p% of the data at or below it; Q1, the median and Q3 are the 25th, 50th and 75th percentiles.

Marginal and conditional distributions

In a two-way table, the marginal distribution of a variable uses the totals only; a conditional distribution gives the percentages of one variable within one group of the other.

Association (categorical variables)

Two categorical variables are associated if the conditional distributions of one differ across the groups of the other.

Standard deviation of the residuals s

s=∑(y−y^)2n−2: the typical size of a prediction error, in the units of y.

Regression to the mean

An x-value k standard deviations from x¯ predicts a y-value only rk standard deviations from y¯, closer to the mean when |r|<1.

Factors, levels and treatments

The factors are the explanatory variables of an experiment, the levels are the values of a factor, and a treatment is a combination of levels applied to the experimental units.

Scope of inference

Random sampling lets us generalise the results to the population; random assignment to treatments lets us conclude cause and effect.

Binomial distribution B(n,p)

The number of successes in n independent trials with the same success probability p: P(X=k)=(nk)pk(1−p)n−k, μ=np, σ=np(1−p).

Geometric distribution

The number of the trial on which the first success occurs, in independent trials with success probability p: P(X=k)=(1−p)k−1p and μ=1/p.

The 10% condition

When sampling without replacement, the trials may be treated as independent if the sample is at most 10% of the population.

Uniform distribution

A continuous distribution whose density is a horizontal line: every value in an interval [a,b] is equally likely, the height is 1b−a, and probabilities are areas of rectangles.