about DATA2002
1 · Exam map course data · sample cover
Weights: Final Exam 60% · Group Project Report (Project 1) 10% · Individual Project Report (Project 2) 10% · Individual Feedback Exercise 9% · Group Project Presentation (Project 1) 5% · Individual GitHub Contribution (Project 1) 5% · Individual Early Feedback Task 1%.
Permitted materials — exact rule“Exam Conditions: This is a closed-book examination — no material permitted.” DATA2002 Semester 2 2026 exam sample paper, cover instructions (PDF_2026S2_DATA2x02_Exam_Sample_DW_V3)
Final: 2 hours, 60%. Released sample: no calculator; 30 equally weighted MCQs = ¾, one extended answer = ¼; key procedures follow the questions. Learn recognition, expressions, assumptions and interpretation.
2 · Six-slot answer Ch 3
| Write | Check |
|---|---|
| 1 level α | chosen before data |
| 2 H₀ / H₁ | population parameters |
| 3 assumptions | design + distribution |
| 4 statistic | value + null law + df |
| 5 p-value | correct tail |
| 6 conclusion | variables + population |
Reject when p ≤ α. Otherwise “insufficient evidence against H₀”, never “H₀ is true”.
4 · χ² counts Ch 3 · Ch 5
χ² = Σ (yᵢ−eᵢ)²/eᵢ
df = k−1−q, q = parameters estimated from these data
χ² = ΣᵢΣⱼ (yᵢⱼ−eᵢⱼ)²/eᵢⱼ
df = (r−1)(c−1)
Upper tail only: χ² is non-negative distance. Check expected, not observed, counts. Every expected count ≥ 5; otherwise pool adjacent meaningful categories and recount df, or use exact/simulation.
| Sampling sentence | Name / conclusion |
|---|---|
| fixed n per group | homogeneity: distributions match? |
| one sample, two labels | independence: variables associated? |
For a small 2×2 table, Fisher’s exact test enumerates tables with fixed margins; no approximation means no expected-count condition. Larger sparse tables: simulated null with margins fixed.
5 · Two-by-two reflexes Ch 4
| Truth + | Truth − | |
|---|---|---|
| Test + | a = TP | b = FP |
| Test − | c = FN | d = TN |
Sens=a/(a+c) · Spec=d/(b+d)
FNR=c/(a+c)=1−Sens · FPR=b/(b+d)=1−Spec
PPV=a/(a+b) · NPV=d/(c+d)
Sensitivity/specificity condition on truth and belong to the instrument. Predictive values condition on result and change with prevalence. For rare conditions, accuracy can flatter a useless classifier: compare with always predicting the majority class.
6 · Risk versus odds Ch 4
| Outcome + | Outcome − | |
|---|---|---|
| Exposed | a | b |
| Unexposed | c | d |
8 · Pairing, intervals, power Ch 6–7
n = pairs, not measurements
Pairing removes between-unit variation. Ignoring it can enlarge the denominator and p-value. Normal quantile plot the differences, not the two columns. Large samples make normality less consequential; small samples make it real.
CI = x̄ ± c·s/√n
power(μ)=Pμ(reject H₀)=1−β(μ)
| Move | Power | Cost / meaning |
|---|---|---|
| |effect| ↑ | ↑ | not controlled |
| n ↑ | ↑ | time/money; only no statistical concession |
| spread ↓ | ↑ | usually not controlled |
| α ↓ | ↓ | Type I ↓, Type II ↑ |
Coverage belongs to the repeated procedure, not the realised interval. A 95% interval does not put a 95% probability on a fixed parameter. Sample-size answers always round up.
9 · Rank ladder Ch 8
| Procedure | Keeps | Use |
|---|---|---|
| t | values | normal model defensible |
| signed rank | sign + magnitude rank | paired, symmetric shape |
| sign | direction only | paired; strongest immunity |
| rank sum | pooled ranks | two independent groups |
10 · Resample correctly Ch 9
| Question | Permutation | Bootstrap |
|---|---|---|
| Purpose | test / p-value | estimate / interval |
| Action | shuffle labels under H₀ | sample with replacement |
| Size | preserve group sizes | same n as original |
| Assumption | exchangeability | sample represents population |
Any statistic may be permuted; using a t statistic does not invoke a t distribution. Paired design: permute signs, not labels. Enumerate all reallocations when feasible for an exact p-value; otherwise simulate and report repetitions.
95% endpoints = 2.5th and 97.5th percentiles
Report resamples, seed and interval method. Resampling estimates sampling variability; it cannot repair selection bias or manufacture information in a small sample.
12 · ANOVA machinery Ch 11–12
df: N−1 = (g−1)+(N−g)
MS = SS/df; F = MS_treatment/MS_residual
F ~ F(g−1, N−g) under H₀
One-way H₀: all group means equal; upper tail only. Rejecting says at least one differs, not which. Residual QQ plot checks normality; residuals vs fitted checks equal spread. Use the pooled residual variance for follow-ups.
| Follow-up | Valid scope |
|---|---|
| Bonferroni | contrasts fixed in advance |
| Tukey | all pairwise; exact if equal n |
8b · Critical-value notation Ch 7
| tν(γ) = lower-tail γ quantile | Reject when |
|---|---|
| H₁: μ<μ₀ | T≤tν(α) |
| H₁: μ>μ₀ | T≥−tν(α) |
| H₁: μ≠μ₀ | |T|≥−tν(α/2) |
For small α the unit’s tν(α) is negative. Read the definition before choosing the sign.
13 · Second factor Ch 12
| Design | Structure | Can test interaction? |
|---|---|---|
| blocked | one observation/cell; nuisance factor | no: interaction becomes error |
| two-factor replicated | >1 observation/cell | yes: genuine within-cell residual |
df residual=ab(r−1); df total=abr−1
Read interaction first. Significant A×B → main-effect averages can describe neither condition; report simple effects. Parallel interaction-plot lines mean no interaction. Replication means repetition within cells.
14 · Linear model Ch 13
s²=SSE/(n−p−1); t=bⱼ/SE(bⱼ)
R²=1−SSE/SST
| Assumption | Check / failure |
|---|---|
| linear mean | residuals vs fitted: curve |
| constant spread | residuals vs fitted: funnel |
| normal errors | residual QQ: curvature/tail point |
| independence | residuals in collection order |
Fit → inspect residuals → only then infer. Slope: change in mean response per unit x; in multiple regression add holding other variables constant. Intercept is interpretable only if x=0 is meaningful and near the observed range.
Mean-response CI answers “average at x₀”. Prediction interval answers “new case at x₀” and is always wider because it also carries irreducible individual scatter.
16 · Classification Ch 15
log-odds neutral 0 → odds ratio neutral 1 → probability 0…1
Logistic coefficient inference uses z, no df. Thresholding probabilities is a separate decision. Printed confusion matrices put predictions in rows, truth in columns; transposition leaves accuracy unchanged but swaps sensitivity/specificity.
| Method | High-value rule |
|---|---|
| Tree | larger complexity constant demands more improvement → smaller tree |
| Forest | more trees, not deeper; sample predictors to decorrelate trees |
| k-nearest neighbours | k=1 is perfect in-sample; standardise distances; choose k out-of-sample |
Before praising accuracy, compute majority-class accuracy. Lowering the classification threshold trades specificity for sensitivity.
17 · PCA and clustering Ch 16
| Question | PCA | Clustering |
|---|---|---|
| Works on | columns | rows |
| Object | variance directions | distance groups |
| Interpret | loadings name; scores locate | cut dendrogram / nearest centre |
standardised data: Σ eigenvalues = p
maximum components = min(n−1,p)
Standardise by default: units otherwise dominate variance and distance. Keep components by stated cumulative threshold, elbow, or λ>1 convention; these may disagree. Hierarchical: no k first, deterministic. Partitioning: choose k first, fix seed, assigns new rows to centres.