about STAT5003
01 · Exam mapcourse.json + final FAQ
| Assessment | Wt | Format |
|---|---|---|
| Weekly Workshop Contribution | 5% | Participation monitored in allocated workshops |
| Group Project | 35% | Collaborative analysis of a selected dataset |
| Invigilated Final Examination | 60% | Individual secure examination |
“Cheat sheet: One A4 sheet of handwritten notes double-sided. It should be handwritten!! Please note that printed sheets, including those written on the iPad and printed, are not allowed” (STAT5003 Final Exam FAQ, Semester 2 2026)
02 · Response spineC1 · C12
| Line to write | What it proves |
|---|---|
| Target + population + units | You solved the requested object. |
| Rule before substitution | The operation is reconstructible. |
| Derived value + sign + scale | Arithmetic remains auditable. |
| Diagnostic / counter-case | The conclusion survives a check. |
| Context sentence + limitation | Output becomes analysis, not arithmetic. |
three-error audittranslation error → calculation error → interpretation error.
Repair the first failed move; then recheck a limit or independent route.
Exam use Read the task verb first: estimate, predict, classify, compare, diagnose or interpret. Keep observed inputs separate from derived quantities.
03 · Regression & smoothersC3 · course overview
linear modelE(Y|X)=β₀+β₁X₁+⋯+βₚXₚ
ŷᵢ=β̂₀+Σⱼβ̂ⱼxᵢⱼ · eᵢ=yᵢ−ŷᵢ
Coefficient: expected change in the conditional mean for one-unit increase in that predictor, holding the others constant, under stated assumptions. Prediction belongs within the modelled range; attach uncertainty and units. Association from a fitted model is not automatically causal.
| Need | Method family | What to inspect |
|---|---|---|
| Conditional mean, interpretable slopes | Simple / multiple linear regression | Residual pattern, variance, range, uncertainty |
| Local pattern without one global line | Moving-average or kNN smoother | Neighbourhood width; edge behaviour |
| Flexible piecewise curve | Regression spline | Complexity and out-of-sample behaviour |
bias–variance decompositionExpected prediction error = irreducible noise + Bias² + Variance.
Output stem “Holding the other modelled predictors constant, the fitted conditional mean changes by … per …; this is an association within the model and data range.”
04 · Density & likelihoodC4 · glossary
kernel density estimatef̂ₕ(x)=(1/nh)ΣᵢK((x−xᵢ)/h)
small h → less smoothing · large h → more smoothing
05 · Classification coreC5 · glossary
kNN: classify from nearby labelled cases. Scale predictors first or a large-unit variable dominates distance. Small neighbourhoods are flexible and sample-sensitive; larger neighbourhoods smooth the boundary. Tune inside resampling, then assess on independent evidence.
confusion metricsAccuracy=(TP+TN)/N
Sensitivity/recall=TP/(TP+FN)
Specificity=TN/(TN+FP)
Precision=TP/(TP+FP)
Metric choice: actual positives → sensitivity; actual negatives → specificity; positive calls → precision. Under class imbalance, inspect errors by actual and predicted class rather than reporting accuracy alone.
06 · SVM + missing dataC6 · glossary
| Item | Boundary |
|---|---|
| MCAR / MAR / MNAR | Name the assumed missingness mechanism; sensitivity matters when it depends on unobserved information. |
| Single / multiple / MICE | Carry imputation uncertainty; completed values are not observed facts. |
| SVM | Maximum-margin boundary uses support vectors; kernels represent nonlinear boundaries in a transformed feature space. |
08 · CV & model selectionC7 · glossary
k-fold estimateCV error = (1/k)Σⱼ Loss on fold j, after fitting on the other folds.
Split roles: training fits parameters; validation compares or tunes choices; independent test evidence supports the final out-of-sample claim. Once you repeatedly tune to one validation result, it has become training information.
| Selector | Job / caution |
|---|---|
| Best subset | Search predictor sets; expensive as choices grow. |
| Stepwise | Sequential search; path can miss another subset. |
| Cp / AIC / BIC / adjusted R² | Balance fit against complexity with different penalties. |
| Repeated CV | Reduce split sensitivity; still keep tuning separate from final estimation. |
09 · Regularisationglossary
ridgeminβ Loss(β)+λΣⱼβⱼ²
lassominβ Loss(β)+λΣⱼ|βⱼ|
λ controls shrinkage. Ridge shrinks correlated coefficients; lasso can set coefficients exactly to zero. Tune λ inside the resampling scheme and report the performance estimate from evidence not used to choose it.
| Output cue | Write next |
|---|---|
| Training error falls as complexity rises | Do not choose from training fit; compare held-out loss. |
| Repeated CV varies across runs | Report split sensitivity rather than one fortunate split. |
| λ selected | Name the tuning loss and the resampling level that selected it. |
| Final model refitted | Keep final performance evidence independent of the choices made. |
10 · Trees & ensemblesC8 · overview
| Method | Course-level distinction |
|---|---|
| Decision tree | Interpretable splits; compare predictive gain with stability. |
| Bagging / random forest | Aggregate many trees; compare performance and interpretability. |
| AdaBoost / stochastic gradient boosting / XGBoost | Ensemble methods named in the course; tune and validate out of sample. |
| Importance | Name fitted model, data split and metric. Ranking can change with any of them. |
Boundary Predictive importance is model- and metric-dependent. Never turn a ranking into a causal effect.
11 · BootstrapC9
- Define the observed empirical data and target statistic.
- Resample according to the design; recompute the statistic each time.
- Use the bootstrap distribution for uncertainty or interval construction.
- State dependence, sampling and bias limitations.
A bootstrap inherits bias and dependence problems in the observed sample. Naive row resampling is not justified merely because software makes it easy; match the resampling unit to the data structure.
| Same goal? | Keep distinct |
|---|---|
| Forest aggregation | Targets predictive stability across many trees. |
12 · Output sentenceC12
13 · Monte CarloC10 · overview
Monte Carlo meanμ̂ᴹᶜ=(1/M)Σₘg(Xₘ)
Monte Carlo SE ≈ s[g(X)]/√M
Define the target and sampling mechanism; simulate reproducibly; compute the estimator; report simulation error. Increasing iterations shrinks simulation error at roughly the square-root rate. It does not repair biased inputs or model misspecification.
| Technique named in course | Role |
|---|---|
| Inverse transform | Generate from a target via a transformed uniform draw where available. |
| Acceptance–rejection | Generate candidates, then accept according to the target/proposal relationship. |
| Variance reduction | Improve precision for the same simulation budget without changing the estimand. |
14 · Bayes & MCMCC11 · overview
Bayes rule, proportional formp(θ|y) ∝ p(y|θ)p(θ)
posterior ∝ likelihood × prior
| Method / check | What earns the line |
|---|---|
| Metropolis–Hastings | Name proposal, acceptance step and target posterior. |
| Gibbs | Update from conditional distributions in turn. |
| Diagnostics | Inspect stability and mixing across the chain; compare behaviour rather than citing length alone. |
| Sensitivity | Keep prior information and observed-data likelihood identifiable in the posterior interpretation. |
Trap A long chain is not evidence of convergence or adequate mixing. More draws cannot rescue the wrong target or an unidentified model.