Statistical Analysis & Hypothesis Testing
High-yield mathematical problem solving. Complete verified numerical solutions for Karl Pearson's correlation coefficient on Father & Son heights ($r = 2/\sqrt{11} \approx +0.6030$), Chi-Square test of uniformity on aircraft accidents ($\chi^2 = 2.1429 < 11.070$), and ANOVA diet vs exercise decoupling.
01. Intuition & Concept Contrast
Statistical inference separates genuine experimental signals from random sampling fluctuations.
Correlation vs Chi-Square Test
Pearson Correlation ($r$): Evaluates the strength and direction of a linear relationship between two continuous numerical variables ($X, Y \in \mathbb{R}$). $r \in [-1, +1]$.
Chi-Square Goodness-of-Fit ($\chi^2$): Tests whether observed frequency counts across discrete categorical bins conform to a theoretical distribution (e.g. uniform distribution).
Association vs Causation
Correlation ($r = 0.99$): Measures co-movement. Does NOT prove that $X$ causes $Y$ (could be driven by a lurking confounding variable $Z$).
ANOVA Experimentation ($F = 57.15$): When treatments are assigned randomly under experimental control, significant differences prove direct causality.
02. Karl Pearson's Correlation Coefficient ($r$)
Jan 2025 (Q5.i) Guaranteed 10-Mark Numerical. Father ($X$) and Son ($Y$) heights.
Step-by-Step Verified Arithmetic ($n = 8$ pairs):
1. Means: $\sum X = 544 \implies \bar{X} = 68.0 \text{ inches}$. $\sum Y = 552 \implies \bar{Y} = 69.0 \text{ inches}$.
2. Sum of squared deviations:
$$\sum (X_i - \bar{X})^2 = (-3)^2 + (-2)^2 + (-1)^2 + (-1)^2 + 0^2 + 1^2 + 2^2 + 4^2 = 9+4+1+1+0+1+4+16 = \mathbf{36}$$ $$\sum (Y_i - \bar{Y})^2 = (-2)^2 + (-1)^2 + (-4)^2 + (-1)^2 + 3^2 + 3^2 + 0^2 + 2^2 = 4+1+16+1+9+9+0+4 = \mathbf{44}$$3. Sum of cross products:
$$\sum (X_i - \bar{X})(Y_i - \bar{Y}) = 6 + 2 + 4 + 1 + 0 + 3 + 0 + 8 = \mathbf{24}$$4. Exact algebraic resolution:
$$r = \frac{24}{\sqrt{36 \times 44}} = \frac{24}{6 \sqrt{44}} = \frac{4}{2\sqrt{11}} = \mathbf{\frac{2}{\sqrt{11}} \approx +0.6030}$$Interpretation: A moderate-to-strong positive linear correlation ($r = +0.6030$). Taller fathers tend to have taller sons.
03. Chi-Square Goodness-of-Fit Test ($\chi^2$)
Jan 2025 (Q5.ii) Guaranteed 10-Mark Problem. Uniform distribution of aircraft accidents.
Step-by-Step Verified Resolution ($k = 6$ days):
1. Total Accidents: $N = 14 + 18 + 12 + 11 + 15 + 14 = \mathbf{84}$.
2. Expected frequency under null hypothesis $H_0$ (uniform distribution):
$$E_i = \frac{N}{k} = \frac{84}{6} = \mathbf{14.0 \text{ accidents per day}}$$3. Deviations squared $(O_i - E_i)^2$:
- Mon: $(14 - 14)^2 = 0$
- Tue: $(18 - 14)^2 = 16$
- Wed: $(12 - 14)^2 = 4$
- Thu: $(11 - 14)^2 = 9$
- Fri: $(15 - 14)^2 = 1$
- Sat: $(14 - 14)^2 = 0$
- Sum of squared deviations $= 0 + 16 + 4 + 9 + 1 + 0 = \mathbf{30}$
4. Test statistic calculation:
$$\chi^2_{\text{calc}} = \frac{30}{14} = \frac{15}{7} \approx \mathbf{2.1429}$$5. Critical value comparison: $df = 6 - 1 = 5$. At $\alpha = 0.05$, critical table value $\chi^2_{0.05, 5} = \mathbf{11.070}$.
$$\mathbf{\chi^2_{\text{calc}} = 2.1429 < \chi^2_{\text{table}} = 11.070 \implies \text{Fail to Reject } H_0}$$Conclusion: Empirical data confirms accidents are uniformly distributed over the week ($p \approx 0.829$).
04. Decoupling Treatment ANOVA vs. Correlation
Nov 2025 (Q7.i) 10-Mark Interpretation Question. Weight loss study with diets and exercise.
Diet Comparison (ANOVA)
Result: $F = 57.15, \quad p = 7.36 \times 10^{-7} \lll 0.001$.
Interpretation: Extremely significant difference among the 3 diets. Because $p < 0.001$, the probability that differences are due to random sampling noise is less than 1 in a million. Diet choice has a decisive causal impact on weight loss.
Exercise Correlation
Result: Pearson $r = 0.9877, \quad p = 7.2 \times 10^{-12}$.
Interpretation: Near-perfect positive linear relationship ($r \approx 0.99$). Daily exercise hours directly scale weight loss. Explains $r^2 \approx 97.5\%$ of variance.
05. Notation Decoding Matrix
| Symbol | Formal Name | Plain-English Meaning | Exam Benchmark |
|---|---|---|---|
| $r$ | Pearson's Correlation | Strength and direction of linear association | $r = \frac{2}{\sqrt{11}} \approx +0.6030$ |
| $O_i$ | Observed Frequency | Empirical count recorded in sample data | Tue accidents: $O = 18$ |
| $E_i$ | Expected Frequency | Theoretical count predicted under null hypothesis | Uniform expected: $E = 84 / 6 = \mathbf{14.0}$ |
| $\chi^2_{\text{calc}}$ | Calculated Chi-Square | Total standardized squared divergence from expectation | $\chi^2 = 15/7 \approx \mathbf{2.1429}$ |
| $df$ | Degrees of Freedom | Number of values free to vary in statistic | Chi-square: $k - 1 = 5$ |
06. Repeatable Step-by-Step Solving Protocol
Ensure means are exact. In the exam problem, $\bar{X} = 68.0$ and $\bar{Y} = 69.0$ are exact integers.
Create columns $(X - \bar{X})$, $(Y - \bar{Y})$, squared deviations, and cross products. Verify sums of deviations equal zero.
Write $H_0$: Accidents are uniformly distributed; $H_1$: Accidents are not uniformly distributed.
Show $\chi^2_{\text{calc}} = 2.14 < \chi^2_{0.05, 5} = 11.070 \implies$ **Fail to reject $H_0$**.
07. 6 Deadly Exam Traps & Common Student Mistakes
Using $df = k$ Instead of $k - 1$
Degrees of freedom for a goodness-of-fit test is **$k - 1$**. For 6 days, $df = 6 - 1 = \mathbf{5}$. Using $df = 6$ uses the wrong critical value.
Dividing by $O_i$ Instead of $E_i$
The denominator must be the expected frequency $E_i$ ($\frac{(O-E)^2}{E}$). Dividing by $O_i$ invalidates the statistic.
Rejecting $H_0$ When $\chi^2_{\text{calc}} < \chi^2_{\text{table}}$
We reject $H_0$ only when calculated value **EXCEEDS** table value ($\chi^2_{\text{calc}} > \chi^2_{\text{table}}$). Since $2.14 < 11.07$, we **fail to reject $H_0$**.
Forgetting Square Root in $r$ Denominator
The denominator is $\sqrt{\sum dx^2 \sum dy^2}$. Writing $\sum dx^2 \sum dy^2$ yields an absurd number like $0.015$.
Assuming 7 Days When Table Gives 6
Read the table carefully! The exam table lists **6 days (Mon to Sat)**, with total 84 accidents. Dividing by 7 gives $E=12$, which is incorrect. Divide by 6 to get $E = 14.0$.
Claiming Exercise Directly Causes Diet Weight Loss
Correlation indicates linear association, not mechanistic causality. Only controlled experimental designs prove causality.
08. Complete University Question Bank (All Past PYQs Solved)
Jan 2025 · Question 5.i Karl Pearson's Correlation for Father & Son Heights (10 Marks)
Calculate correlation coefficient for heights of fathers (X) and sons (Y):
X: [65, 66, 67, 67, 68, 69, 70, 72] | Y: [67, 68, 65, 68, 72, 72, 69, 71] (10 Marks)
Solution:
| $i$ | $X$ | $Y$ | $X - \bar{X}$ | $Y - \bar{Y}$ | $(X - \bar{X})^2$ | $(Y - \bar{Y})^2$ | $(X - \bar{X})(Y - \bar{Y})$ |
|---|---|---|---|---|---|---|---|
| 1 | 65 | 67 | -3 | -2 | 9 | 4 | +6 |
| 2 | 66 | 68 | -2 | -1 | 4 | 1 | +2 |
| 3 | 67 | 65 | -1 | -4 | 1 | 16 | +4 |
| 4 | 67 | 68 | -1 | -1 | 1 | 1 | +1 |
| 5 | 68 | 72 | 0 | +3 | 0 | 9 | 0 |
| 6 | 69 | 72 | +1 | +3 | 1 | 9 | +3 |
| 7 | 70 | 69 | +2 | 0 | 4 | 0 | 0 |
| 8 | 72 | 71 | +4 | +2 | 16 | 4 | +8 |
| Sum | 544 | 552 | 0 | 0 | 36 | 44 | 24 |
$\bar{X} = 544 / 8 = 68.0$, $\bar{Y} = 552 / 8 = 69.0$
$$r = \frac{24}{\sqrt{36 \times 44}} = \frac{24}{6 \times \sqrt{44}} = \frac{4}{2\sqrt{11}} = \frac{2}{\sqrt{11}} \approx \mathbf{+0.6030}$$Conclusion: Moderate-to-strong positive linear correlation ($r \approx +0.6030$).
Jan 2025 · Question 5.ii Chi-Square Test for Uniform Distribution of Aircraft Accidents (10 Marks)
Test whether aircraft accidents are uniformly distributed across days of week:
Mon(14), Tue(18), Wed(12), Thu(11), Fri(15), Sat(14). (10 Marks)
Solution:
1. Total: $N = 84$, Days $k = 6 \implies E_i = 84 / 6 = \mathbf{14.0}$.
2. Calculation Table:
| Day | $O_i$ | $E_i$ | $O_i - E_i$ | $(O_i - E_i)^2$ | $(O_i - E_i)^2 / E_i$ |
|---|---|---|---|---|---|
| Mon | 14 | 14.0 | 0 | 0 | 0.0000 |
| Tue | 18 | 14.0 | +4 | 16 | 1.1429 |
| Wed | 12 | 14.0 | -2 | 4 | 0.2857 |
| Thu | 11 | 14.0 | -3 | 9 | 0.6429 |
| Fri | 15 | 14.0 | +1 | 1 | 0.0714 |
| Sat | 14 | 14.0 | 0 | 0 | 0.0000 |
| Total | 84 | 84.0 | 0 | 30 | 2.1429 |
Degrees of freedom: $df = 6 - 1 = 5$. Critical value: $\chi^2_{0.05, 5} = \mathbf{11.070}$.
Since $\chi^2_{\text{calc}} = 2.1429 < 11.070$, we **fail to reject $H_0$**. Accidents are uniformly distributed over the week.
Nov 2025 · Question 7.i Diet ANOVA ($F = 57.15$) & Exercise Correlation ($r = 0.9877$) Interpretation (10 Marks)
Nutrition study on 3 diets on weight loss: ANOVA $F = 57.15, p = 7.36 \times 10^{-7}$; Exercise correlation $r = 0.9877, p = 7.2 \times 10^{-12}$. Interpret findings. (10 Marks)
Solution:
- Diet ANOVA: $p < 0.001$ proves that weight loss differences between the three diets are statistically significant, not caused by chance.
- Exercise Correlation: $r = 0.9877$ shows an almost perfect linear relationship between exercise hours and weight loss ($R^2 = 97.5\%$).
- Synthesis: Diet establishes the baseline metabolic environment, while daily exercise acts as a powerful continuous linear multiplier.
09. Interactive Offline Pearson Correlation & Chi-Square Calculator
Test your calculations. Enter paired $(X, Y)$ values or frequency counts to verify statistical test results live.
10. Active Recall Self-Test Quiz
11. Exam Hall Answer Sheet Presentation Checklist
Show $X, Y, (X - \bar{X}), (Y - \bar{Y}), dx^2, dy^2, dxdy$ with exact column totals.
Write $r = \frac{24}{\sqrt{36 \times 44}} = \frac{2}{\sqrt{11}} \approx \mathbf{+0.6030}$.
Write $H_0$: Accidents are uniformly distributed; $H_1$: Accidents are not uniformly distributed.
Write $df = 6 - 1 = 5$, $\chi^2_{\text{calc}} = 2.14 < \chi^2_{0.05, 5} = 11.070 \implies$ Fail to reject $H_0$.