Paper 2 — Statistics
Time allowed: 75 minutes Total marks: 50 Topics covered: All 5 statistics topics
Instructions
Answer all questions. Calculators are permitted. Show all working — marks are awarded for method as well as final answer.
Questions
Q1 [10 marks] — Data Representation
The frequency distribution below shows the daily commuting times (in minutes) for 200 employees at a large company:
| Commuting time (min) | Frequency |
|---|---|
| 12 | |
| 38 | |
| 56 | |
| 65 | |
| 29 |
(a) A student draws a histogram using the frequency on the vertical axis and the commuting time on the horizontal axis, making all bars the same width. Explain why this histogram is misleading, and state the correct quantity to plot on the vertical axis. [3 marks]
(b) Calculate the frequency density for each class and estimate the mean commuting time. [4 marks]
(c) An employee claims "the most common commuting time is between 35 and 60 minutes." Determine whether this claim is supported by the data, carefully distinguishing between the class with the highest frequency and the class with the highest frequency density. [3 marks]
Q2 [10 marks] — Correlation and Regression
An economist collects data on the annual income (in thousands of pounds) and annual savings (in hundreds of pounds) for 7 households:
| Income (, in ) | 15 | 22 | 30 | 35 | 42 | 55 | 68 |
|---|---|---|---|---|---|---|---|
| Savings (, in ) | 3 | 8 | 12 | 18 | 22 | 35 | 48 |
(a) Calculate the product moment correlation coefficient (PMCC) for this data. [4 marks]
(b) The data is coded using and . A student claims that the PMCC of and will be different from the PMCC of and because "the units have changed." Determine whether this claim is correct, and explain your reasoning. [2 marks]
(c) Calculate Spearman's rank correlation coefficient for the original data. [2 marks]
(d) Explain why the PMCC is the more appropriate measure of correlation here rather than Spearman's rank coefficient, and state one scenario where Spearman's rank would be preferred. [2 marks]
Q3 [10 marks] — Probability
A medical test for a disease has the following characteristics:
- If a person has the disease, the test is positive with probability 0.95.
- If a person does not have the disease, the test is positive with probability 0.02.
- The prevalence of the disease in the population is 0.01 (1%).
A person is randomly selected from the population and tests positive.
(a) Calculate the probability that the person actually has the disease. [3 marks]
(b) A prosecutor argues in court: "The test is 95% accurate, so there is a 95% chance the defendant has the disease." Identify the specific error in this reasoning, naming the two probabilities that have been confused. [2 marks]
(c) The hospital director wants the positive predictive value to be at least 50%. Find the minimum prevalence of the disease required to achieve this, keeping the test characteristics the same. [3 marks]
(d) Explain why in general, and state the condition under which they would be equal. [2 marks]
Q4 [10 marks] — Statistical Distributions
For each of the following scenarios, determine whether the binomial distribution is appropriate. If it is, state the values of and . If it is not, identify which binomial condition is violated and name the correct distribution (if one has been covered).
(a) A bag contains 5 red and 3 blue balls. Balls are drawn one at a time without replacement until a red ball is drawn. is the number of blue balls drawn before the first red ball. [2 marks]
(b) A machine produces components, and 2% are defective. Components are packed in boxes of 50. is the number of defective components in a randomly selected box. [2 marks]
(c) A fair coin is tossed repeatedly until 3 heads have been obtained. is the total number of tosses required. [2 marks]
(d) A biased die is rolled 100 times. The probability of rolling a 6 is . is the number of times a 6 is rolled in the first 50 rolls. [2 marks]
(e) A student answers 10 multiple choice questions, each with 4 options. For the first 5 questions, she knows the answer. For the last 5, she guesses randomly. is the total number of correct answers. [2 marks]
Q5 [10 marks] — Hypothesis Testing
A researcher tests whether a new drug reduces blood pressure. Under the null hypothesis : the drug has no effect, so the change in blood pressure . The alternative hypothesis is : the drug reduces blood pressure, i.e., with .
The researcher tests the drug on 25 patients and finds the mean reduction in blood pressure is mmHg.
(a) Calculate the p-value for this test. [3 marks]
(b) The researcher writes in her report: "The p-value is greater than 0.05, so we accept the null hypothesis. The drug has no effect." Identify two errors in this statement and rewrite it correctly. [3 marks]
(c) A colleague argues: "Since the p-value is greater than 0.05, the null hypothesis is probably true." Explain why this is incorrect, making reference to what the p-value actually measures. [2 marks]
(d) The researcher doubles the sample size to 50 patients and finds the same mean reduction of mmHg. Calculate the new p-value and explain why it is smaller even though the effect size (mean reduction) is the same. [2 marks]
Solutions
Q1 — Solution
(a) The class widths are not equal: 10, 10, 15, 25, and 30 minutes respectively. When bars are drawn with equal width, the area of each bar is proportional to the frequency, but the height should be proportional to the frequency density, not the raw frequency. By plotting raw frequency as the bar height with equal-width bars, the visual impression over-represents narrow classes and under-represents wide classes.
The correct quantity for the vertical axis is the frequency density, defined as:
(b) Frequency densities:
| Class | Width | Frequency | Frequency density |
|---|---|---|---|
| 10 | 12 | 1.2 | |
| 10 | 38 | 3.8 | |
| 15 | 56 | 3.73 | |
| 25 | 65 | 2.6 | |
| 30 | 29 | 0.97 |
To estimate the mean, we use the midpoint of each class:
| Class | Midpoint | Frequency | |
|---|---|---|---|
| 5 | 12 | 60 | |
| 15 | 38 | 570 | |
| 27.5 | 56 | 1540 | |
| 47.5 | 65 | 3087.5 | |
| 75 | 29 | 2175 |
(c) The class has the highest frequency (65), so more employees fall in this class than any other. However, the class with the highest frequency density is (density 3.8), meaning the data is most concentrated (per unit time interval) in the 10--20 minute range.
The employee's claim is supported in the sense that the largest number of employees commute for 35--60 minutes. But the claim could be misleading if interpreted as "the most common single commuting time is in this range," since the density is highest in the 10--20 minute range. The wide class width of the 35--60 minute class inflates its frequency.
Q2 — Solution
(a) We need , , , , .
(b) The student's claim is incorrect. The PMCC is invariant under linear coding of the form and (where ). Here and , which are linear transformations.
To see why: the PMCC is defined as . Under coding:
The factors of and cancel out completely, so the PMCC is unchanged by scaling or shifting.
(c) Ranking the data:
| Rank | Rank | ||||
|---|---|---|---|---|---|
| 15 | 1 | 3 | 1 | 0 | 0 |
| 22 | 2 | 8 | 2 | 0 | 0 |
| 30 | 3 | 12 | 3 | 0 | 0 |
| 35 | 4 | 18 | 4 | 0 | 0 |
| 42 | 5 | 22 | 5 | 0 | 0 |
| 55 | 6 | 35 | 6 | 0 | 0 |
| 68 | 7 | 48 | 7 | 0 | 0 |
Spearman's rank correlation coefficient is 1 (perfect rank correlation).
(d) The PMCC is more appropriate here because:
- The data appears to follow an approximately linear relationship (PMCC ), so the PMCC correctly captures the strength of this linear association.
- The PMCC uses the actual data values, giving a more precise measure of the strength of the linear relationship. Spearman's rank discards information about the magnitude of differences between values.
Spearman's rank would be preferred when:
- The relationship is monotonic but not linear (e.g., exponential or logarithmic).
- The data contains extreme outliers whose values would distort the PMCC but whose rank positions are not affected.
- The data is ordinal (ranked categories) rather than interval/ratio.
Q3 — Solution
(a) Let = "person has the disease" and = "test is positive".
We need .
By Bayes' theorem (or using a tree diagram / contingency table):
So there is approximately a 32.4% chance the person actually has the disease, despite the positive test.
(b) The prosecutor has confused:
- (probability of a positive test given the person has the disease)
- (probability the person has the disease given a positive test)
This is the prosecutor's fallacy (also known as the base rate fallacy or confusion of the inverse). The prosecutor has transposed the conditioning, ignoring the base rate (prevalence) of the disease. When the disease is rare (1% prevalence), most positive tests are actually false positives, even with a "95% accurate" test.
(c) We need .
Let be the prevalence. Then:
The minimum prevalence is approximately 2.06%. At this prevalence, exactly half of all positive tests are true positives.
(d) in general because they condition on different events. is the sensitivity of the test (among people with the disease, what fraction test positive), while is the positive predictive value (among people who test positive, what fraction actually have the disease). These are related by Bayes' theorem:
They would be equal only when , i.e., when the prevalence equals the overall probability of a positive test. This is a very specific condition that would not generally hold.
Q4 — Solution
(a) The binomial distribution is NOT appropriate. The condition violated is independence of trials: since balls are drawn without replacement, the probability of drawing a red ball changes after each draw. The probability of red on the first draw is , but if the first ball is blue, the probability of red on the second draw becomes .
The correct distribution is the geometric distribution (number of failures before the first success in sampling without replacement follows a negative hypergeometric distribution, but the scenario of "number of blue balls before the first red" without replacement is best modelled by a direct probability calculation for each value).
(b) The binomial distribution IS appropriate.
- Fixed number of trials: components per box.
- Two outcomes: defective or not defective.
- Constant probability: (assuming the defect rate is constant and independent between components, which is reasonable for a large production process).
- Independent trials: the defect status of one component does not affect another.
So .
(c) The binomial distribution is NOT appropriate. The condition violated is fixed number of trials: the number of tosses is not fixed in advance; it depends on when the third head occurs.
The correct distribution is the negative binomial distribution (or Pascal distribution). If we define as the number of trials until the -th success, then .
(d) The binomial distribution IS appropriate.
- Fixed number of trials: (the first 50 rolls).
- Two outcomes: 6 or not 6.
- Constant probability: for each roll.
- Independent trials: die rolls are independent.
So .
The fact that there are 100 total rolls is irrelevant --- we are only considering the first 50.
(e) The binomial distribution is NOT appropriate. The condition violated is constant probability of success: for the first 5 questions, , but for the last 5 questions, . The probability of success changes partway through.
The correct approach is to split where (deterministic: always 5) and . Then and .
Q5 — Solution
(a) Under : , so .
This is a one-tailed test (left-tailed), so the p-value is:
The p-value is approximately 0.0414.
Since , the result is statistically significant at the 5% level.
(b) The researcher's statement contains two errors:
-
"Accept the null hypothesis": We never "accept" . The correct language is "there is insufficient evidence to reject " or "we fail to reject ." The distinction matters because a lack of evidence against is not the same as evidence for . The drug may have a small effect that the test was not powerful enough to detect.
-
"The drug has no effect": Failing to reject does not prove that is true. The correct statement is that "the data does not provide sufficient evidence to conclude that the drug reduces blood pressure." The drug might still have an effect; we simply cannot detect it with this sample size.
Corrected statement: "The p-value is [greater/less] than 0.05, so there is [insufficient/sufficient] evidence at the 5% significance level to reject the null hypothesis that the drug has no effect on blood pressure."
(c) The colleague's statement is incorrect because the p-value does not measure the probability that is true. The p-value is:
The probability of obtaining a test statistic at least as extreme as the one observed, assuming is true.
The p-value is a conditional probability: , not .
A large p-value means the observed data is consistent with , but it does not mean is probably true. The data could also be consistent with a small but non-zero effect. For example, if the true effect is a reduction of 2 mmHg (which is clinically meaningful), a small sample might still produce a large p-value.
To determine would require Bayesian methods (prior probabilities), which go beyond the scope of classical hypothesis testing.
(d) With : , so .
The new p-value is approximately 0.0071, which is much smaller than the original 0.0414.
The p-value decreases because with a larger sample, the standard error is smaller. The same mean reduction of 5.2 mmHg represents a larger number of standard errors away from the null hypothesis value of 0. This makes the evidence against stronger, even though the observed effect size is the same.
This illustrates a fundamental principle: statistical significance depends on both the effect size and the sample size. With a large enough sample, even a very small effect can produce a statistically significant result.
Marking Guide
| Question | Topic | Marks | Key Skills Tested |
|---|---|---|---|
| Q1 | Data Representation | 10 | Frequency density vs frequency, grouped mean estimation, unequal class widths |
| Q2 | Correlation and Regression | 10 | PMCC calculation, coding invariance, Spearman's rank, choosing appropriate measure |
| Q3 | Probability | 10 | Bayes' theorem, prosecutor's fallacy, base rate, conditional probability direction |
| Q4 | Statistical Distributions | 10 | Binomial conditions, distribution identification, independence and fixed trials |
| Q5 | Hypothesis Testing | 10 | P-value calculation, correct conclusion language, Type I/II errors, sample size effects |
| Total | 50 |