π FIT2086: Modelling for Data Analysis
Map of Content
Index for FIT2086 Modelling for Data Analysis β the statistics spine of the DS degree; W0β1 revision is shared with FIT1058_MOC and FIT1043_MOC, not duplicated.
π Assessment Map
- Assignment 1 (10%, due W5) Β· Assignment 2 (20%, due W8) Β· Assignment 3 (20%, due W11) β carry the whole in-semester half; all involve implementing models in R (LO5).
- Final exam (50%) β (Studio 12 sample paper) nine sections β short answer Β· MLE Β· random variables Β· CI & -values Β· regression Β· classification Β· logistic regression Β· bias & variance Β· machine learning β all hand-worked, with a formula sheet and table supplied β FIT2086 Unit Cheatsheet.
- LO map β LO1 EDA/descriptive (W1β2) Β· LO2 inferential models (W3β5) Β· LO3 predictive models (W6β9, W11) Β· LO4 sampling/simulation/testing (W3, W5, W10) Β· LO5 implement in R (W6β11) Β· LO6 interpret results (W4β11).
- LO thread so far β W1β2 probability models β W3β4 fit (MLE), judge (bias/var/MSE), bound (CI) [A1] β W5 test β W6β7 linear + logistic regression, predictor selection [A2] β W8 complexity control (tests Β· IC Β· CV Β· ridge/lasso) β W9 trees Β· forests Β· kNN β W10 simulation (Monte Carlo Β· bootstrap Β· permutation) β W11 unsupervised (k-means Β· mixtures/EM Β· imputation) [A3] β W12 revision of L1βL9 + sample paper.
π§° Toolkit Cheatsheets
- FIT2086 Unit Cheatsheet β the paper-exam crib: every hand formula with its precondition, π marks what the formula sheet supplies, Studio 12 exam anatomy + model short answers
- R Toolkit (Cheatsheet) β dual-unit (FIT1043 + FIT2086); FIT2086 blocks: simulation/distributions Β· hypothesis tests Β·
lm/stepΒ·glm/pROCΒ·glmnetΒ· trees/forests/kNN Β· resampling (hand loops +boot/boot.ci)
π Knowledge Index
Week 0 β Self-Study / Revision
- Measures of Centrality β Parent Framework: Statistical Modelling and Inference (dual-unit β statistic framing)
- Measures of Spread and Boxplots β Parent Framework: Statistical Modelling and Inference (dual-unit β variance , percentile )
- Association Between Variables β Parent Framework: Statistical Modelling and Inference (dual-unit β Pearson , correlation β causation)
- Mathematics for Modelling (Log, Exp, Calculus) β Parent Framework: Statistical Modelling and Inference (log/exp/derivative/partial β the MLE toolkit)
- R Basics (Syntax, Types, Control Flow), R Vectors, R Data Frames and IO, R Visualisation (base graphics) + the cheatsheet.
Week 1 β Modelling, Probability & Random Variables
- Statistical Modelling and Inference β Parent Framework: FIT2086_MOC (hub: population/sample/model/inference)
- Random Variables and Probability Distributions (FIT2086) β Parent Framework: Statistical Modelling and Inference (exam-heavy: pmf/pdf/cdf/quantile/mode; jointβmarginalβconditional; iid)
- R Simulation and Random Sampling β Parent Framework: R for Data Science (
set.seed,sample,d/p/q/r) - (Cross-links: the FIT1058 probability cluster β Random Variable, Conditional Probability, Bayesβ Theorem, Expectation, Variance and Standard Deviation β holds the maths.)
Week 2 β Expectations & Probability Distributions
- Expectations and Covariance (FIT2086) β Parent Framework: Random Variables and Probability Distributions (FIT2086) (exam-heavy: , linearity, , cov/corr, WLLN, non-existence)
- Taylor Approximation of Expectations β Parent Framework: Expectations and Covariance (FIT2086) (derivation drill β 2nd order for , 1st order for )
- Parametric Probability Distributions β Parent Framework: Statistical Modelling and Inference (hub: , + the distribution zoo tables)
- Gaussian Distribution β Parent Framework: Parametric Probability Distributions (self-similarity, -rules, additivity)
- Binomial Distribution Β· Poisson Distribution Β· Uniform Distribution β the discrete pair plus continuous , with means and variances
Studio 1 (run in W2 β R foundations, heart.csv / Mushroom.csv / wine.csv)
- Categorical Summaries and Cross-Tabulation in R β Parent Framework: R for Data Science (
factor/table/prop.table/pieβ the catβcat toolkit) - R Basics (Syntax, Types, Control Flow) Β· R Data Frames and IO Β· Association Between Variables β merged: functions, logical referencing, the
corscreening loop
Week 3 β Parameter Estimation, Maximum Likelihood & Estimator Quality
- Maximum Likelihood Estimation β Parent Framework: Statistical Modelling and Inference (exam-heavy derivation drill: likelihood β NLL β )
- Sampling Distribution of an Estimator β Parent Framework: Statistical Modelling and Inference ( is an RV; ; strength-of-assumptions ladder)
- Estimator Quality (Bias, Variance, MSE) β Parent Framework: Sampling Distribution of an Estimator (exam-heavy: , efficiency, consistency)
- (Reading: Ross Ch. 6 Β§6.1, 6.2, 6.4, 6.5 and Ch. 7 Β§7.1, 7.2, 7.7)
Studio 2 (run in W3 β drills the W2 distributions; no new notes, merged into the existing four)
- Gaussian Distribution β -table lookup with linear interpolation ( worked three ways); is why the -rules are scale-free
- Binomial Distribution β term-by-term pmf interpretation; a named sequence has no ; fair-coin tails by hand
- Poisson Distribution β additivity run backwards (/week β /day); βat least oneβ
- Uniform Distribution β cdf derivation, by integration, out-of-support probabilities are zero
- Parametric Probability Distributions β the family selection drill (15 described variables β verdict + reason)
- R Simulation and Random Sampling β running-mean accumulator + the WLLN convergence plot; why converges faster than
Week 4 β Central Limit Theorem & Confidence Intervals
- Central Limit Theorem β Parent Framework: Sampling Distribution of an Estimator (exam-heavy: ; normal approximations)
- Confidence Intervals β Parent Framework: Statistical Modelling and Inference (exam-heavy: coverage vs the wrong β probabilityβ reading; the four cases / / difference / CLT-approximate)
- Student-t Distribution β Parent Framework: Parametric Probability Distributions (, heavier tails, always)
- (Reading: Ross Ch. 6 Β§6.3 and Ch. 7 Β§7.3, 7.4, 7.5)
Studio 3 (run in W4 β drills the W3 estimation material; train.csv / test.csv)
- Plug-in Prediction and Held-Out Evaluation β Parent Framework: Maximum Likelihood Estimation (fit on train β predict β out-of-sample NLL)
- Monte Carlo Estimator Comparison β Parent Framework: Estimator Quality (Bias, Variance, MSE) (simulation loop for //MSE; RelMSE; mean vs median under contamination)
- Maximum Likelihood Estimation β the Bernoulli derivation ; MLβs boundary overconfidence at
- Estimator Quality (Bias, Variance, MSE) β efficiency vs robustness: RelMSE is scale-free, moves with and the contamination fraction
Week 5 β Hypothesis Testing
- Hypothesis Testing β Parent Framework: Statistical Modelling and Inference (exam-heavy hub: NeymanβPearson, -value semantics + evidence grading, one vs two sided, , why the null can never be proved)
- Tests for Normal Means (z-test and t-test) β Parent Framework: Hypothesis Testing (exam-heavy hand skill: the 5-case selection matrix + 8 worked examples; pooled/Welch flagged optional)
- Tests for Bernoulli Populations β Parent Framework: Hypothesis Testing (CLT-based proportion -test; null-supplied , pooled , exact
binom.test/prop.test) - Confidence Intervals β merged: proportion intervals, small- pooled/Welch difference intervals, and the intervalβtest pairing from the W5 summary tables
- (Reading: Lecture 5 Notes)
Studio 4 (run in W5 β drills the W4 CLT/CI material; train.csv / test.csv / SP500.csv)
- Confidence Intervals in R (calcCI) β Parent Framework: Confidence Intervals (A1 hand-and-R skill:
calcCIanatomy β heights train/test check β SP500 pre/post-Lehman difference β the reporting statement) - Confidence Interval Coverage Simulation β Parent Framework: Confidence Intervals (generate β build interval β tally containment; exact / vs the undercovering plug-in; Poisson coverage grid)
- Confidence Intervals β at , the degenerate interval , the plug-in proportion interval + the coin toss
- Student-t Distribution β critical-value table extended to β visibly by
- Estimator Quality (Bias, Variance, MSE) β the Bernoulli drill: , , consistency, and the CLT limit
Week 6 β Linear Regression & Model Selection
- Linear Regression (FIT2086) β Parent Framework: Statistical Modelling and Inference (exam-heavy hub: supervised setup, simpleβmultiple, least squares, //, prediction)
- Least Squares as Maximum Likelihood β Parent Framework: Linear Regression (FIT2086) (derivation drill: Gaussian errors βΉ LS ML)
- Predictor Transformations (Indicators, Polynomials, Interactions) β Parent Framework: Linear Regression (FIT2086) ( indicators, /polynomial, β linear in , not in )
- Model Selection and Information Criteria (AIC, BIC) β Parent Framework: Linear Regression (FIT2086) (exam-heavy: , AIC vs BIC, stepwise)
- Multiple Regression and Stepwise Selection in R β Parent Framework: R for Data Science (LO5 hand skill:
lmβsummaryβstep(β¦, k = log(n))) - Bias-Variance Tradeoff (Underfitting vs Overfitting) β merged: under/overfitting restated as omitting important vs including spurious predictors; generalisation; polynomial degree predictor-set choice
- (Reading: Ross Ch. 9)
Studio 5 (run in W6 β drills the W5 hypothesis-testing material; bpdata.csv / SP500.csv)
- Hypothesis Testing in R (t.test, binom.test, prop.test) β Parent Framework: Hypothesis Testing (exam + A2 hand skill:
mu/alternative/conf.level/var.equal;rv$p.value;binom.testvsprop.test) - Tests for Normal Means (z-test and t-test) β merged: one- vs two-sided on
bpdata; three routes to one difference on S&P - Tests for Bernoulli Populations β merged: CLT vs exact
binom.test/prop.test; the sensitivity sweep - Hypothesis Testing β merged: ; the threshold scales with the consequences of a wrong call
- Confidence Intervals β merged: a one-sided alternative returns a bound , not a range; the width sweep on
bpdata
Week 7 β Classification & Logistic Regression
- Classification and Conditional Class Probabilities β Parent Framework: Statistical Modelling and Inference (hub: , curse of dimensionality)
- Logistic Regression β Parent Framework: Classification and Conditional Class Probabilities (exam-heavy: log-odds, Bernoulli NLL, reading)
- Classification Evaluation (Confusion Matrix and Metrics) β merged (now dual-unit): rule, CA/TPR/TNR, class-frequency baseline
- ROC and AUC β Parent Framework: Classification Evaluation (Confusion Matrix and Metrics) (hand skill: threshold sweep β sensitivity/specificity trade-off β ROC β AUC by counting ordered pairs)
- Logarithmic Loss β Parent Framework: Classification Evaluation (Confusion Matrix and Metrics) (scores the probabilities, not the labels; NLL of future data; vs is the whole point)
- Model Selection and Information Criteria (AIC, BIC) β merged: the penalty transfers unchanged to logistic regression as , with (AIC), (KIC, new), (BIC)
- (Terms to revise, from the lecture: odds/log-odds Β· logistic regression Β· classification accuracy Β· specificity/sensitivity Β· AUC Β· logarithmic loss)
Week 8 β Model Selection & Penalized Regression
- Bias-Variance Tradeoff (Underfitting vs Overfitting) β merged: , irreducible , the simulation
- Multiple Testing and the Bonferroni Correction β Parent Framework: Hypothesis Testing (exam hand skill: false positives, threshold , FWER vs FDR)
- Model Selection and Information Criteria (AIC, BIC) β merged: NLL-scale AIC/KIC/BIC/RIC, when each over/underfits, the polynomial-order plot, problems with conventional selection
- Cross-Validation β Parent Framework: Model Selection and Information Criteria (AIC, BIC) (MSPE estimate; -fold / repeated / LOO; LOO β AIC)
- Penalized Regression (Ridge and Lasso) β Parent Framework: Linear Regression (FIT2086) (exam-heavy: ridge vs lasso , by CV)
Studio 7 (run in W8 β drills the W7 logistic-regression material; gene.*.csv / pima.*.csv)
- Logistic Regression in R (glm, pROC, step) β Parent Framework: Logistic Regression (LO5 hand skill:
glmβtype = "response"βmy.pred.statsβstep) - Logistic Regression β merged: null/residual deviance , interaction reading on the log-odds, the pruned SNP12/SNP56 equation drill
- Predictor Transformations (Indicators, Polynomials, Interactions) β merged: judge a new term by -value and deviance drop (
log(BMI)keep,PLAS^2drop,SKIN*AGEkeep) - (Terms to revise: under/overfitting Β· irreducible error Β· Bonferroni Β· AIC/BIC Β· CV Β· instability Β· ridge/lasso)
Week 9 β Trees & Nearest Neighbour Methods
- Decision Trees and Regression Trees β merged (now dual-unit with FIT1043): disjoint regions, Bernoulli/Normal leaf models, complexity , strengths/weaknesses, three near-equal trees βΉ instability
- Decision Tree Learning (Likelihood Splits, Pruning, CV) β Parent Framework: Decision Trees and Regression Trees (exam hand skill: leaf-NLL splits, pruning, CV over )
- Random Forest β merged (dual-unit): bootstrap sample + random candidate variables per split, average means/probabilities, low bias with reduced variance, variable importance
- k-Nearest Neighbours β Parent Framework: Classification and Conditional Class Probabilities (exam hand skill: Euclidean distance, standardise, vote vs average vs kernel-weighted average, LOO CV for )
- Cross-Validation β merged: the general complexity parameter (predictor count, , , ) and
- Machine Learning β merged: the statisticianβs framing β algorithmic, flexible, few assumptions, prediction over interpretation
- (Terms to revise, from the lecture: cross-validation Β· decision tree Β· split and leaf Β· random forest Β· -nearest neighbours method)
Studio 8 (run in W9 β drills the W8 selection/shrinkage material; gene.*.csv / pima.*.csv / wrappers.R)
- Shrinkage Estimator of the Mean β Parent Framework: Estimator Quality (Bias, Variance, MSE) (derivation drill: β bias, variance, MSE)
- Penalized Regression in R (glmnet) β Parent Framework: Penalized Regression (Ridge and Lasso) (LO5 hand skill:
cv.glmnet.f,lambda.min, lasso vs BIC) - Multiple Testing and the Bonferroni Correction β merged: the gene drill β 12 SNPs pass vs expected by chance, pass Bonferroni, RIC
k = 2*log(p)keeps SNP56 alone () - Penalized Regression (Ridge and Lasso) β merged: the one-parameter shrinkage case and the Studio 8 small- evidence
Week 10 β Simulation-Based Statistical Methods
- Monte Carlo Simulation (Empirical Probabilities) β Parent Framework: Statistical Modelling and Inference (exam hand skill: average of indicators, resolution )
- Pseudo-Random Number Generators β Parent Framework: Monte Carlo Simulation (Empirical Probabilities) (seed β deterministic sequence β reproducible; uniforms first; the LCG hand trace)
- Bootstrap β Parent Framework: Sampling Distribution of an Estimator (exam-heavy: exact bootstrap by hand, resampling algorithm, percentile CI, bagging)
- Permutation Tests β Parent Framework: Hypothesis Testing (exam-heavy: shuffle under , )
- (Terms to revise, from the lecture: simulation Β· pseudo-random numbers Β· bootstrap distribution Β· bootstrap algorithm Β· permutation test)
Studio 9 (run in W10 β drills the W9 trees/forests/kNN material; diabetes.*.csv / wrappers.R)
- Trees, Forests and kNN in R (rpart, randomForest, kknn) β Parent Framework: Decision Trees and Regression Trees (LO5 hand skill:
rpart,randomForest,train.kknn, test RMSE) - Random Forest β merged: bagging lineage, out-of-bag error,
%IncMSEas permutation importance,ntree - k-Nearest Neighbours β merged: the six
kknnkernels; CV pickedgaussian, - Decision Trees and Regression Trees β merged: the pruned diabetes tree as instability evidence (different top leaf, near-equal prediction)
Week 11 β Introduction to Unsupervised Learning
- Machine Learning Styles (Supervised vs Unsupervised) β merged (now dual-unit): vs joint , intrinsic classification
- k-means Clustering β merged (now tri-unit): objective (WCSS), local minima + k-means++, cityblock/Hamming, the limitations list, the 5-person height/weight trace
- Mixture Models (EM Algorithm) β Parent Framework: Machine Learning Styles (Supervised vs Unsupervised) (exam hand skill: posterior by Bayes, EM, by IC)
- Multivariate Normal Distribution β Parent Framework: Gaussian Distribution (density, /, spherical/diagonal/elliptical, read from a scatter)
- Missing Data Imputation and Recommender Systems β Parent Framework: Machine Learning Styles (Supervised vs Unsupervised) (hand skill: univariate vs MVN vs kNN imputation; the Netflix trace)
- k-Nearest Neighbours Β· Model Selection and Information Criteria (AIC, BIC) β merged: kNN reused for imputation; IC/MML choose
- (Terms to revise, from the lecture: clustering Β· k-means algorithm Β· mixture modelling Β· missing data Β· imputation Β· recommender systems Β· collaborative filtering)
Studio 10 (run in W11 β drills the W10 resampling material; bpdata.csv / pima.*.csv / studio10.prediction.stats.R / perm.log.reg.R)
- Resampling Inference in R (boot, boot.ci, perm.log.reg) β Parent Framework: Bootstrap (LO5 hand skill:
bootβboot.cibasic/BCa; permutation vs Wald -values) - Bootstrap β merged: vs basic vs BCa on BSA, median se and its spiky bootstrap distribution, the AUC interval inherits training optimism
- Permutation Tests β merged: global null vs conditional Wald test, Monte Carlo noise at , reading INS/BP null histograms, the shipped codeβs zeros
Week 12 β Revision
- FIT2086 Unit Cheatsheet β Parent Framework: FIT2086_MOC (new: the L1βL9 revision lecture as one crib, syllabus-ordered, W10β11 appended)
- (No new concepts β the lectureβs worked examples (Poisson , Pima BMI CI and -test) already live in Maximum Likelihood Estimation, Confidence Intervals, Tests for Normal Means (z-test and t-test).)
Studio 12 (run in W12 β sample exam questions)
- FIT2086 Unit Cheatsheet β exam anatomy (section β LO β drilling note), formula-sheet coverage, the short-answer recipe + six model answers
- Tests for Normal Means (z-test and t-test) β merged: the cholesterol -test by table lookup, , CIβtest agreement
- Expectations and Covariance (FIT2086) β merged: two independent Poissons β label each line linearity vs independence
- Classification and Conditional Class Probabilities β merged: odds from a conditional; judge a predictor by comparing both conditionals
- Logistic Regression β merged: non-linearity fix (transform or switch to tree/forest); βis logistic regression appropriate?β off a scatter
- (Already drilled, no change: Exponential MLE β Maximum Likelihood Estimation Practice 1 Β· unbiased/consistent β Estimator Quality (Bias, Variance, MSE) Β· tree print-out β Trees, Forests and kNN in R (rpart, randomForest, kknn) Practice 1 Β· kNN vote β k-Nearest Neighbours.)
Revision sheets (L1β6 formula summary + W7β9 worked examples)
- Model Selection and Information Criteria (AIC, BIC) β merged: hand-score a four-model AIC/BIC table (); AIC ties, BIC picks the smaller model
- Bias-Variance Tradeoff (Underfitting vs Overfitting) β merged: diagnose under/overfit from training vs held-out error (polynomial CV MSE Β· tree vs forest accuracy gap)
- Random Variables and Probability Distributions (FIT2086) Β· Expectations and Covariance (FIT2086) Β· Linear Regression (FIT2086) Β· Penalized Regression (Ridge and Lasso) Β· Classification and Conditional Class Probabilities β merged one line each: discrete median Β· Β· β = % variation explainedβ Β· why the intercept is unpenalised Β· odds straight from the joint row
- FIT2086 Unit Cheatsheet β all of the above + , the / case split, the rule
- (Everything else in both decks is already drilled β no change.)
π Outline topics not seen in the material
- Dirichlet Β· exploratory vs confirmatory analysis Β· Bayesian classification & inverse probability (closest: the posterior in Mixture Models (EM Algorithm)).
π§ Suggested Reading Order
(read leftβright Β· bold = assessment-critical)
- W0 β revision: Measures of Centrality β Measures of Spread and Boxplots β Association Between Variables β Mathematics for Modelling (Log, Exp, Calculus) (needed for every MLE derivation)
- W1 β modelling & probability: Statistical Modelling and Inference (the hub) β Random Variables and Probability Distributions (FIT2086) (sum/product rules, iid, pdf/CDF/quantile) β R Simulation and Random Sampling (simulate it in R)
- W2 β expectations & distributions: Expectations and Covariance (FIT2086) (every summary is an ) β Taylor Approximation of Expectations (derivation drill) β Parametric Probability Distributions (the zoo tables) β Gaussian Distribution β Binomial Distribution β Poisson Distribution β Uniform Distribution
- W3 β estimation: Maximum Likelihood Estimation (the derivation drill) β Sampling Distribution of an Estimator ( as an RV) β Estimator Quality (Bias, Variance, MSE) (compare estimators)
- W4 β CLT & intervals: Central Limit Theorem (shape for free) β Student-t Distribution (unknown ) β Confidence Intervals (A1 hand skill) β Plug-in Prediction and Held-Out Evaluation (Studio 3, in R) β Monte Carlo Estimator Comparison (Studio 3, in R)
- W5 β testing: Hypothesis Testing (the logic + -value) β Tests for Normal Means (z-test and t-test) (exam hand skill) β Tests for Bernoulli Populations (proportions) β Confidence Intervals in R (calcCI) (Studio 4, A1 skill) β Confidence Interval Coverage Simulation (Studio 4, in R)
- W6 β regression & selection: Linear Regression (FIT2086) (the hub) β Least Squares as Maximum Likelihood (derivation drill) β Predictor Transformations (Indicators, Polynomials, Interactions) (build the columns) β Bias-Variance Tradeoff (Underfitting vs Overfitting) (why prune) β Model Selection and Information Criteria (AIC, BIC) (exam hand skill) β Multiple Regression and Stepwise Selection in R (LO5, in R) β Hypothesis Testing in R (t.test, binom.test, prop.test) (Studio 5, in R)
- W7 β classification: Classification and Conditional Class Probabilities (why the joint dies) β Logistic Regression (the model + the derivation) β Classification Evaluation (Confusion Matrix and Metrics) (CA, TPR, TNR) β ROC and AUC (exam hand skill) β Logarithmic Loss (confidence, not labels)
- W8 β selection & shrinkage: Bias-Variance Tradeoff (Underfitting vs Overfitting) (the decomposition) β Multiple Testing and the Bonferroni Correction (why tests mislead) β Model Selection and Information Criteria (AIC, BIC) (four penalties) β Cross-Validation (estimate MSPE) β Penalized Regression (Ridge and Lasso) (stable selection) β Logistic Regression in R (glm, pROC, step) (Studio 7, in R)
- W9 β trees & neighbours: Machine Learning (the framing) β Decision Trees and Regression Trees (leaves + leaf models) β Decision Tree Learning (Likelihood Splits, Pruning, CV) (NLL split drill) β Random Forest (average away instability) β k-Nearest Neighbours (vote/average by hand) β Cross-Validation (one recipe) β Shrinkage Estimator of the Mean (Studio 8 derivation) β Penalized Regression in R (glmnet) (Studio 8, in R)
- W10 β simulation & resampling: Monte Carlo Simulation (Empirical Probabilities) (average indicators) β Pseudo-Random Number Generators (why a seed reproduces) β Bootstrap (variability without assumptions) β Permutation Tests (-values without assumptions) β Trees, Forests and kNN in R (rpart, randomForest, kknn) (Studio 9, in R)
- W11 β unsupervised learning: Machine Learning Styles (Supervised vs Unsupervised) (joint, not conditional) β k-means Clustering (WCSS trace by hand) β Multivariate Normal Distribution (read ) β Mixture Models (EM Algorithm) (posterior by hand) β Missing Data Imputation and Recommender Systems (kNN fill by hand) β Resampling Inference in R (boot, boot.ci, perm.log.reg) (Studio 10, in R)
- W12 β revision: FIT2086 Unit Cheatsheet (one re-read of the whole paper half; then attempt Studio 12 cold)
π― Learning Outcomes (key skills per week)
- W0 β
- classify data (nominal/ordinal/discrete/continuous)
- compute + interpret centrality (, median, mode) and spread (range, , , percentiles/IQR, boxplots)
- read Pearson correlation and know independence
- apply the log/exp identities and differentiate (power/log/exp, product, chain, partial) toward log-likelihoods
- W1 β
- separate population/sample/model Β· sampling/inference/model-checking Β· three sources of randomness
- state a pmf (, ); apply inclusionβexclusion
- joint marginal (sum rule) conditional (product rule); test independence; write the iid product
- continuous: is not a probability, , split piecewise integrals
- derive cdf pdf, survival , quantile , mode
- in R:
set.seed,sample, thed/p/q/rfamily
- W2 β
- compute , , from a pmf
- apply linearity and ; know products need independence
- read population / and why independence
- state the WLLN; test whether exists at all
- derive and
- select a family by support: Β· Β· Β· Β· , with each mean/variance
- (Studio 1) subset a data frame by condition; write an R function returning a
list;factor+table+prop.table; screen predictors withcor
- W3 β
- separate the three inference tasks: point / interval / hypothesis testing
- derive an MLE cold: β β β
- quote , , ,
- use the plug-in distribution for probability statements
- derive and say what naming the family buys
- compute , , ; rank by efficiency; test consistency
- (Studio 2) read a -table by interpolation; justify a family choice from a data description; code an running mean and read a convergence plot
- W4 β
- state the CLT for sums and derive from it
- approximate by and by
- recognise an estimator as an average βΉ asymptotically normal
- derive the interval by inverting
- select among the four CI cases: known Β· unknown Β· difference of means Β· CLT-approximate
- state coverage correctly (procedure, not the one interval) and read a difference CI containing zero
- (Studio 3) derive the Bernoulli MLE and explain MLβs boundary overconfidence
- (Studio 3) fit on train, predict with
pnorm, check against empirical proportions, rank models by held-out NLL - (Studio 3) code a simulation study returning bias/variance/MSE, and read RelMSE for efficiency vs robustness
- W5 β
- set up vs and identify one-sided vs two-sided from the wording
- define a -value as and grade it ( / )
- select the test: known Β· unknown small- Β· large- approximate Β· two-sample difference
- compute / by hand and bracket with tabulated criticals
- test a proportion via the CLT, pooling for two Bernoulli samples
- explain why a large never proves , and why -thresholding is deprecated
- (Studio 4) state how CI width scales with and ( data to halve the width); read at any
- (Studio 4) write
calcCIcold and report an interval as a sentence about the population - (Studio 4) build a difference-of-means CI for two groups and read it against zero
- (Studio 4) derive , , MSE, consistency and the CLT limit for the Bernoulli
- (Studio 4) simulate coverage and explain why plug-in intervals undercover at small
- W6 β
- separate classification (categorical target) from regression (numerical target)
- write ; read each as a per-unit change
- fit by least squares; state , , and the requirement
- compute and say why it can never select a model
- derive βΉ LS ML; quote vs
- build indicators, polynomial terms, and interaction columns
- rank predictors by , test , score models by
- contrast AIC (, overfits) with BIC (, underfits); is significant
- search all-subsets vs forward/backward stepwise; run
step(β¦, k = log(n))in R - (Studio 5) run
t.testwith the rightmu,alternative,conf.levelandvar.equal - (Studio 5) explain why weakens the evidence, and read a of correctly
- (Studio 5) judge a large effect with a borderline β demand a larger trial, not a verdict
- (Studio 5) compare approximate , Welch and pooled on one difference, and say which interval is overconfident
- (Studio 5) test one and two proportions by hand, then check against
binom.test/prop.test
- W7 β
- separate classification (categorical ) from regression; predict by
- count joint cells β the curse of dimensionality that kills direct estimation
- convert odds probability , and read as log-odds per unit
- derive the Bernoulli NLL ; state convex, no closed form
- compute , , from a confusion matrix, against the class-frequency baseline
- compute AUC by hand from ranked scores, and say what log-loss adds that AUC cannot
- W8 β
- define and over repeated training samples
- state and add for predicting a new β irreducible
- map underfitting β high bias/low variance and overfitting β low bias/high variance; say what more does and doesnβt fix
- compute expected false positives and the Bonferroni threshold ; distinguish FWER from FDR
- write AIC , KIC , BIC , RIC and say which over/underfits
- describe -fold, repeated -fold and LOO CV, and choose a model by smallest CV error
- explain why all-or-nothing subset selection is statistically unstable
- write the penalised LS objective, justify standardising, and read a path
- contrast ridge (, stable, no zeros) with lasso (, sparse, biased large coefficients); pick by CV then refit on all data
- explain penalisation as adding bias to cut variance, and why it helps with multicollinearity and
- (Studio 7) fit
glm(β¦, family = binomial)and read deviance, AIC deviance , and each -test - (Studio 7) predict probabilities with
type = "response", threshold at , and score CA/sens/spec/AUC/log-loss on test data - (Studio 7) prune with
stepatk = 2/3/log(n)and argue BIC (interpretable) vs KIC (predictive) - (Studio 7) add
log(),I(x^2)anda*bterms and justify each from its -value and deviance drop - (Studio 7) write a pruned modelβs log-odds equation and read each coefficientβs effect
- W9 β
- explain how a tree partitions predictor space into leaves and predicts with each leafβs Bernoulli/Normal model
- compute a leafβs minimised NLL and pick the purer split
- explain why splitting never raises the NLL βΉ size trees by IC, pruning, or -fold CV over
- explain how bootstrap samples and random candidate variables let a forest cut variance, and what it costs in interpretability
- apply kNN: Euclidean distance on standardised predictors, then vote / average / kernel-weighted average
- choose , distance and kernel by LOO CV
- (Studio 8) derive bias, variance and MSE of , find where it beats , and prove it is the ridge solution
- (Studio 8) count false discoveries against , apply Bonferroni, and run RIC stepwise with
k = 2*log(p) - (Studio 8) fit lasso/ridge with
cv.glmnet.f, read thelambda.mincoefficients, and compare with BIC stepwise on test data - (Studio 8) explain why penalisation beats stepwise when is small relative to
- W10 β
- write and prove convergence via indicator β Bernoulli β WLLN
- state the resolution and size for a rare event
- approximate , , quantiles and from simulated draws
- explain a PRNG as a seeded deterministic recurrence; trace an LCG
- enumerate an exact bootstrap () and compute its bias and variance by hand
- run the bootstrap algorithm: resample rows with replacement, refit, take percentiles for a CI
- say why bootstrapping training MSE does not remove its optimism, and how bagging cuts a treeβs variance
- justify a permutation test from and compute
- choose CV vs bootstrap vs permutation test from the question asked
- (Studio 9) read an
rpartprint-out and follow a new individual to its leaf - (Studio 9) size a tree with
learn.tree.cvand compare test RMSE against a lasso benchmark - (Studio 9) read a forestβs OOB error,
% Var explainedand%IncMSE; tunentree - (Studio 9) choose and kernel with
train.kknnand predict withfitted(kknn(β¦)) - (Studio 9) score tree/forest classifiers by probability (
[, 2],type = "prob") and kNN by accuracy only
- W11 β
- contrast supervised with unsupervised structure in
- run k-means by hand: assign to the nearest centroid, re-centre, stop when nothing moves
- state the WCSS objective , why seeds give local minima, and what k-means++ changes
- list k-meansβ limitations: hard assignment, mixed attributes, no statistical reading, choosing
- write the mixture density and the conditional-independence product
- compute posterior memberships and assign by the largest
- describe EM (E-step soft assign, M-step weighted ML) as a generalisation of k-means
- choose by an information criterion / MML and say why the search needs split/merge/restart moves
- read and of a multivariate normal off a scatter; name the spherical/diagonal/elliptical structures
- compare univariate, multivariate-normal and kNN imputation; impute a ratings matrix with kNN on co-observed columns
- (Studio 10) write a
bootstatisticfunction(data, indices)and get basic and BCa intervals withboot.ci - (Studio 10) explain the spiky bootstrap distribution of a median
- (Studio 10) bootstrap a refitted modelβs AUC and say why the interval does not remove training optimism
- (Studio 10) run a coefficient-wise permutation test on a
glmand explain why its -values differ from the Wald -values
- W12 β
- answer a definition question as what it is + one or two properties, in 2β3 sentences
- separate what the formula sheet supplies (known- CI and -test, differentiation rules, table) from what must be recalled (pmfs, means/variances, MLEs, , , IC penalties)
- read a -value off the table at the nearest row, double it for two-sided, and grade the evidence
- label every / step as linearity (always) or independence (needs it)
- judge a predictor by comparing across its values, and judge logistic regressionβs fit by whether a straight boundary separates the classes
- score a model table by AIC and BIC by hand, and diagnose under/overfitting from the training vs held-out error gap