GPA Guarantee: Score A+ under Finals

Lecture Transcription |LMS sync |Live Tutor Q&A
50% OFFAll plan

STAT5003 Cheatsheet · Computational Statistical Methods

University of Sydney · Cheatsheet for the final exam. Semester 2 formal examination period, from 16 November 2026 (the Exams Office publishes the exact date). Full STAT5003 study guide →

A4 landscape · ~7pt body · 6 columns · ink + yellow · copy side 1 by hand 2 sides · STAT5003 · USyd
STAT5003
Computational Statistical Methods
The University of Sydney · postgraduate · Semester 2, 2026
STAT5003 cheatsheet QR code – open the full STAT5003 study guide
Full guide + ask Sia
about STAT5003
SIDE 1/2   HANDWRITTEN A4 PLANNER · priority methods, formulas, assumptions and output cues Copy this side by hand 60% final · individual secure examination

01 · Exam mapcourse.json + final FAQ

5Project 35%Final 60%
AssessmentWtFormat
Weekly Workshop Contribution5%Participation monitored in allocated workshops
Group Project35%Collaborative analysis of a selected dataset
Invigilated Final Examination60%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

assumption+ inputscompute+ outputdiagnoseboundaryinterpretin context
Every claim needs inputs, computation, diagnostic and interpretation.
Line to writeWhat it proves
Target + population + unitsYou solved the requested object.
Rule before substitutionThe operation is reconstructible.
Derived value + sign + scaleArithmetic remains auditable.
Diagnostic / counter-caseThe conclusion survives a check.
Context sentence + limitationOutput 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.

publishedscenarioinferencedecisionclaim
Do not let a valid general result become an overconfident case claim.

03 · Regression & smoothersC3 · course overview

linear modeldiagnosticspredictiondecision
Fit → predict conditionally → check residual structure → qualify.

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.

NeedMethod familyWhat to inspect
Conditional mean, interpretable slopesSimple / multiple linear regressionResidual pattern, variance, range, uncertainty
Local pattern without one global lineMoving-average or kNN smootherNeighbourhood width; edge behaviour
Flexible piecewise curveRegression splineComplexity 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

small h: detail + noiselarge h: smooth + bias
Bandwidth changes visible structure; vary it before trusting a bump.

kernel density estimatef̂ₕ(x)=(1/nh)ΣᵢK((x−xᵢ)/h)
small h → less smoothing · large h → more smoothing

05 · Classification coreC5 · glossary

rule +thresholdscale +distanceconfusionmatrixcost-leddecision
Thresholds create error trade-offs; stakeholder cost selects the operating point.

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.

actual classpred.positivenegativeTPFPFNTNprecisionNPV →recall ↑specificity ↑
Read each metric from its own denominator; accuracy can hide imbalance.

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

missingmechanismimputationboundarymargin +kernelqualifieddecision
Data-loss assumptions remain separate from the classifier fitted afterwards.
ItemBoundary
MCAR / MAR / MNARName the assumed missingness mechanism; sensitivity matters when it depends on unobserved information.
Single / multiple / MICECarry imputation uncertainty; completed values are not observed facts.
SVMMaximum-margin boundary uses support vectors; kernels represent nonlinear boundaries in a transformed feature space.

08 · CV & model selectionC7 · glossary

trainingfoldsrotate held-outfold; averagevalidation losstuningbias check
K-fold rotates validation; repeated CV reduces split sensitivity.

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.

outer loop: performance estimationinner looptune λ / modelwith inner foldsouter hold-outestimate onlynever tune here
Nested CV separates inner tuning from outer performance estimation.
SelectorJob / caution
Best subsetSearch predictor sets; expensive as choices grow.
StepwiseSequential search; path can miss another subset.
Cp / AIC / BIC / adjusted R²Balance fit against complexity with different penalties.
Repeated CVReduce 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 cueWrite next
Training error falls as complexity risesDo not choose from training fit; compare held-out loss.
Repeated CV varies across runsReport split sensitivity rather than one fortunate split.
λ selectedName the tuning loss and the resampling level that selected it.
Final model refittedKeep final performance evidence independent of the choices made.

10 · Trees & ensemblesC8 · overview

one treeclear splitsless stableforestmany treesmore stablecompare gain ↔ interpretability
A forest aggregates trees; its importance is not a causal ranking.
MethodCourse-level distinction
Decision treeInterpretable splits; compare predictive gain with stability.
Bagging / random forestAggregate many trees; compare performance and interpretability.
AdaBoost / stochastic gradient boosting / XGBoostEnsemble methods named in the course; tune and validate out of sample.
ImportanceName 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

empiricalsampleresamplestatistic*distributionuncertaintyintervalconclusion
Resample under a stated scheme; retain the sample’s defects.
  1. Define the observed empirical data and target statistic.
  2. Resample according to the design; recompute the statistic each time.
  3. Use the bootstrap distribution for uncertainty or interval construction.
  4. 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 aggregationTargets predictive stability across many trees.

12 · Output sentenceC12

questionoutputdiagnosticqualified
Question → decisive output → diagnostic → assumption-sensitive conclusion.

13 · Monte CarloC10 · overview

Monte Carlo estimatorsimulation errorvariance reduction
Improve efficiency without changing the target quantity.

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 courseRole
Inverse transformGenerate from a target via a transformed uniform draw where available.
Acceptance–rejectionGenerate candidates, then accept according to the target/proposal relationship.
Variance reductionImprove precision for the same simulation budget without changing the estimand.

14 · Bayes & MCMCC11 · overview

prior × likelihoodposteriorchain diagnosticsdecision
Posterior updating is distinct from the computation used to approximate it.

Bayes rule, proportional formp(θ|y) ∝ p(y|θ)p(θ)
posterior ∝ likelihood × prior

Method / checkWhat earns the line
Metropolis–HastingsName proposal, acceptance step and target posterior.
GibbsUpdate from conditional distributions in turn.
DiagnosticsInspect stability and mixing across the chain; compare behaviour rather than citing length alone.
SensitivityKeep 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.

asksia.ai/cheatsheet/usyd-stat5003
Shared by ________
Forward this to your tutorial groupv2 · 2026-10-23 · side 1/2
Semester 2 formal examination period, from 16 November 2026
(the Exams Office publishes the exact date).
Your exam allows one HANDWRITTEN A4 (both sides): copy side 1 by hand; do not bring this printout.
STAT5003
Computational Statistical Methods · Drills & Fast Recall
The University of Sydney · postgraduate · Semester 2, 2026
STAT5003 cheatsheet QR code – open the full STAT5003 study guide
Full guide + ask Sia
about STAT5003
SIDE 2/2   DRILLS BEFORE THE EXAM · five 4-mark response patterns · traps · fast recall Practice, then retrieve unaided source-grounded · no invented datasets

D1 · Regression response [4]C3 worked example

Prompt pattern: translate coefficient output into a conditional prediction and uncertainty statement; restore the missing link between the linear model and residual diagnostics.

linear modelpredictionresidualsobjectmechanismboundary
Do not jump from model name straight to diagnostics; make prediction explicit.
  1. [1] Mark the starting condition or object represented by the linear model.
  2. [1] Write the change, rule or mechanism supplied by prediction as a verb-led link.
  3. [1] Show how that link reaches residual diagnostics; do not skip an intermediate quantity or stage.
  4. [1] Answer with the completed chain and preserve the limit: association from a fitted model is not automatically causal.

answer frameFor [population], holding [other predictors] constant, [coefficient/prediction] means … . The residual check shows … . This supports [narrow conclusion], subject to [assumption/range/uncertainty]; it is not automatically causal.

Lose the markRepair
Coefficient without units/referenceName outcome, predictor, unit and held-constant condition.
“Good fit” from one statisticRead residual pattern and uncertainty.
ExtrapolationState the modelled range.
Self-mark lineEvidence visible?
Object and condition stated before arithmeticOutcome, predictors, population and units are named.
Prediction link is verb-ledThe coefficient/output changes a specified conditional mean.
Residuals test the fitted structureA pattern, spread or boundary is interpreted rather than merely named.

R3 · Drill protocolstudy strategy

retrievemechanismboundaryverify
Retrieve → apply to a changed case → test a boundary → verify the first failed move.

    D2 · Classification response [4]C5 worked example

    Prompt pattern: connect a classification threshold to errors and stakeholder cost; keep classification rule, distance/scaling and confusion matrix separate.

    exact comparisonrule/thresholddistance +scalingconfusion +cost
    The matrix is a discriminator, not an afterthought.
    1. [1] State the exact comparison required.
    2. [1] Define the classification rule and attach the observation that belongs to it.
    3. [1] Define distance and scaling separately; state why the concepts cannot be collapsed.
    4. [1] Apply the confusion matrix to the same evidence and conclude within the limit that accuracy alone can mislead under class imbalance.

    answer frameThe rule classifies … at threshold … . Scaling matters because … . The confusion matrix shows [error type/metric]; given stakeholder cost, choose … rather than relying on accuracy alone.

    SignalSay
    Minority positives costly to missInspect FN and sensitivity.
    False alarms costlyInspect FP and precision/specificity.
    Units differScale before neighbour distance.
    Threshold changesExpect a sensitivity/specificity trade-off.
    sensitivityspecificitythreshold
    Moving a threshold trades error types; cost determines which trade is acceptable.
    Denominator testFast interpretation
    TP+FNAll actual positives: sensitivity asks how many were found.
    TN+FPAll actual negatives: specificity asks how many were rejected.
    TP+FPAll positive predictions: precision asks how many were correct.
    NAccuracy averages both classes and can conceal minority failure.

    metric recallSensitivity=TP/(TP+FN) · Specificity=TN/(TN+FP)
    Precision=TP/(TP+FP) · Accuracy=(TP+TN)/N

    D3 · Cross-validation [4]C7 worked example

    Prompt pattern: estimate out-of-sample performance without leaking validation information; use k-fold CV and tuning bias to test the choice.

    requiredoutcomek-foldcomparisoninside tuningleakagefailure path
    Validation used repeatedly for choices is no longer independent evidence.
    1. [1] Extract the outcome or operation the task requires.
    2. [1] State the precondition under which training/validation is relevant.
    3. [1] Use k-fold CV to reject the nearest alternative; run a failure-path check for tuning bias.
    4. [1] Choose the response and state when it must be withdrawn: repeated tuning against one validation result makes it part of training.
    Bad workflowWhyRepair
    Tune and quote same CV scoreOptimistic selectionNested CV or independent final evidence
    Preprocess before foldsHeld-out information enters trainingFit preprocessing within each training fold
    Try many models on one splitSplit becomes training informationRepeat CV; retain outer/test evidence

    Fast check For every transformation ask: “Was this fitted using only the training portion available at that stage?”

    inner: tunefit preprocessingouter eval.no tuning
    Inner choices; outer estimation. Keep those jobs distinct.
    Choice madeWhere it must occur
    Scaling / imputationFit within the available training portion; apply to its hold-out.
    Features / model family / λCompare inside the tuning loop.
    Reported performanceUse the outer or independent evidence untouched by those choices.
    Final refitRefit only after the assessment protocol and model are fixed.

    one-sentence auditIf a held-out value influenced preprocessing, selection or tuning, it is no longer held out for that decision.

    D4 · Bootstrap response [4]C9 worked example

    Prompt pattern: approximate sampling uncertainty from a reproducible resampling scheme; assign empirical resampling, bootstrap distribution and interval construction separate jobs.

    objectsamplemechanismresamplecheckdistributionconclusioninterval
    Observed sample → resampling rule → distribution → bounded conclusion.
    1. [1] Use empirical resampling to fix the object or condition being analysed.
    2. [1] Use the bootstrap distribution to state the mechanism.
    3. [1] Use interval construction for a consequence, counter-case or check.
    4. [1] Conclude without crossing the limit that the bootstrap inherits bias and dependence problems in the observed sample.

    answer frameResample [unit] from the observed empirical data under [scheme]; recompute [statistic] each time. The bootstrap distribution approximates sampling uncertainty, giving [interval/SE]. This relies on [sampling/dependence condition].

    TrapCorrection
    Resample individual rows despite dependenceMatch the resampling unit to dependence.
    Treat completed values as observedKeep imputation assumptions visible.
    Call a narrow interval unbiasedPrecision does not erase sample bias.
    Unrecorded randomnessPreserve the reproducible scheme.
    observedsamplebootstrap repeatssample structureand defects
    Resampling cannot manufacture information absent from the original sample.
    Answer componentRequired detail
    ObjectObserved empirical data, sampling unit and target statistic.
    MechanismWhat is resampled, with replacement, and what is recomputed.
    DistributionWhat feature represents variability or supports the interval.

    D5 · Monte Carlo + MCMC [4]C10–C11 worked patterns

    Monte Carlo prompt: quantify approximation error and improve efficiency without changing the target. MCMC prompt: separate posterior updating from the computation used to approximate it.

    define target + estimatorreport simulation errorvariance-reduction check
    More iterations reduce simulation error, not model misspecification.
    1. [1] Define the target quantity represented by the Monte Carlo estimator.
    2. [1] Write the simulation-error relationship before substituting or simplifying.
    3. [1] Carry the computation through; use variance reduction as the interpretation check.
    4. [1] Report result, unit and scope; preserve the model-misspecification boundary.
    prior + likelihoodposterior targetchain outputmixing + stability
    Target distribution and approximation diagnostics answer different questions.
    MCMC lineCheck
    Prior + likelihood → posteriorKeep sources of information identifiable.
    Metropolis–Hastings / GibbsName the update used to approximate the target.
    Long chainNot proof of convergence or mixing.
    Posterior conclusionAttach diagnostic and assumption limits.

    Square-root recall Multiplying iterations substantially gives only square-root improvement in Monte Carlo error; do not confuse computational precision with model validity.

    CompareMonte CarloMCMC
    TargetExpectation / integralPosterior approximation
    Error cueSimulation SE and square-root rateStability and mixing across a Markov chain
    More iterationsReduce simulation errorDo not alone establish convergence
    Shared boundaryComputation cannot repair a misspecified target or unsupported assumptions.

    final drill lineTarget → sampling/update mechanism → numerical summary → diagnostic → scope-limited interpretation.

    R1 · Method choosercourse overview

    If asked to…Candidate familyDecisive check
    Predict a continuous responseLinear / multiple regression; local smoothers; splinesResiduals, range, uncertainty, CV
    Estimate distribution shapeHistogram, KDE, maximum likelihoodBins/bandwidth; model and sampling noise
    ClassifyLogistic regression, LDA, kNN, SVM, tree/ensembleScaling, threshold, confusion errors, cost
    Visualise high-dimensional structurePCA, t-SNE, MDSScale, selection and interpretation limits
    Clusterk-means, hierarchicalRepresentation, distance and stability
    Select / tuneBest subset, stepwise, information criteria, ridge/lasso, CVComplexity penalty and leakage
    Quantify sampling uncertaintyBootstrapResampling unit, bias, dependence
    Approximate expectation/integralMonte Carlo; variance reductionTarget, simulation SE, reproducibility
    Approximate posteriorMetropolis–Hastings, GibbsMixing, stability, prior/likelihood sensitivity
    retrievecounter-casetransferverify
    Retrieve unaided → transfer to a changed case → test a counter-case → verify.

    R2 · Trap registerC2–C12 limits

    Tempting claimBoundary to write
    “The plot proves structure.”Scale, selection and overplotting can mislead.
    “The bump is real.”Vary bins/bandwidth; it may be sampling or MC noise.
    “Accuracy is high.”Inspect class-specific errors and stakeholder cost.
    “Imputation fixed the data.”It did not restore unobserved information.
    “CV is unbiased because k-fold was used.”Repeated tuning can leak validation information.
    verify objectstate mechanismtest boundaryanswer the verb
    Final 20-second audit: object, mechanism, boundary, requested conclusion.
    asksia.ai/cheatsheet/usyd-stat5003
    Shared by ________
    Forward this to your tutorial groupv2 · 2026-10-23 · side 2/2
    Semester 2 formal examination period, from 16 November 2026
    (the Exams Office publishes the exact date).
    Your exam allows one HANDWRITTEN A4 (both sides): copy side 1 by hand; do not bring this printout.

    Want one for YOUR exact syllabus?

    Sia is your free desktop study agent. Drop your University of Sydney STAT5003 slides — Sia builds a sheet tailored to YOUR exam. Better than this library because it knows YOUR materials.

    ↓ Download Sia · Free