MATH3320
Foundation of Data Analytics
Regression and validation, sparse approximation, spectral and learned dimensionality reduction, matrix completion, quadratic optimization, and clustering from center objectives to density hierarchies.
Seven original questions with complete worked solutions. 90 minutes, 100 marks.
Your progress
0/ 48 sections marked complete
Next section: 1.1 Least squares and residuals
Completion marks are saved in this browser.
This course in the web
In the MATH3320 notes
- Theorem cards
- 119
- Definitions
- 73
- Counterexamples
- 47
- Concept lenses
- 27
- Histories of ideas
- 6
- Proof X-rays
- 45
Sections with a history of an idea
- Stochastic Gradient Descent: Minibatches and a Finite-Horizon Expected Stationarity Bound3.3
- Binary Logistic Regression: Likelihood, Convexity and Finite-Data Existence5.2
- Exact Confidence Intervals for a Normal Mean and Variance7.2
- Comparing Two Means: Independent and Paired Samples7.4
- Two-Way Contingency Tables and Pearson's Chi-Square Test for Independence7.5
- Randomization and Permutation Tests for a Difference in Means7.6
None of these is on the timeline yet.
No concept lens from this course is recorded in the web yet.
Counts cover the 48 public sections of this course and what is written in them, not recorded connections. 0 of these sections are indexed into the web in detail so far.
In the webTheorem cards 119 · Definitions 73 · Counterexamples 47 · Concept lenses 27 · Histories of ideas 6 · Proof X-rays 45
None of these is on the timeline yet.
No concept lens from this course is recorded in the web yet.
Counts cover the 48 public sections of this course and what is written in them, not recorded connections. 0 of these sections are indexed into the web in detail so far.
Chapter 1 · 8 sections
Regression
Fit observations, measure held-out prediction error, and derive regularized and sparse models.
Theorems 22 · Definitions 7Counterexamples 8Lenses 4Proof X-rays 8
Chapter outline →See this chapter on the web →Not yet indexed in the web
- 1.1
Least squares and residuals
Build a regression design matrix, derive the normal equations, and interpret the residual through orthogonal projection and weighting.
- 1.2
Model validation and ridge regression
Separate fitting from model validation, compute held-out errors, and derive ridge regression with an explicit loss convention.
- 1.3
LASSO and matching pursuit
Derive soft thresholding and coordinate conditions, then trace matching pursuit and distinguish it from orthogonal refitting.
- 1.4
The complete regression prediction chain
Step-by-step validation, refitting, inverse scaling, and regularization.
- 1.5
Proximal gradient for LASSO
Derive a soft-threshold iteration, prove its convergence and use a dual gap to assess an approximate solution.
- 1.6
LASSO prediction and restricted eigenvalues
Prove fixed-design prediction and coefficient bounds using a noise event and a restricted eigenvalue condition.
- 1.7
Exact Inference in Fixed-Design Gaussian Linear Regression
From least-squares geometry to exact t intervals for linear contrasts, mean responses, and new observations, with full proofs, a computed three-point example, counterexamples, and solved exercises.
- 1.8
One-Way ANOVA and Nested Regression F Tests
Projection geometry, exact chi-square and F distributions, the one-way ANOVA decomposition, and the assumptions under which the F reference distribution is valid.
Chapter 2 · 6 sections
Dimensionality reduction
Build coordinates from data, distances, kernels, and class labels, with the objective of each projection made explicit.
Theorems 12 · Definitions 11Counterexamples 4Lenses 1Proof X-rays 4
Chapter outline →See this chapter on the web →Not yet indexed in the web
- 2.1
SVD and principal components
Center a data matrix, connect its singular values to covariance, and derive PCA from variance and reconstruction error.
- 2.2
Classical and non-metric multidimensional scaling
Recover coordinates from pairwise dissimilarities using double centering, and distinguish classical strain from non-metric stress.
- 2.3
Centered kernels and kernel PCA
Center a kernel Gram matrix, normalize its eigenvectors in feature space, and project new observations using fixed training means.
- 2.4
Fisher discriminants and class scatter
Decompose class scatter and solve the Fisher ratio through whitening, generalized eigenvectors, and the within-class metric.
- 2.5
Learned metrics and random projections
Learn a positive-semidefinite distance from pair constraints and derive finite-set distance preservation under Gaussian projection.
- 2.6
Low-rank matrix completion
Model missing entries using observation masks and low rank, derive singular-value thresholding, and construct the corresponding proximal update.
Chapter 3 · 3 sections
Optimization
Relate gradients, curvature, and step size to the behavior of iterative least-squares fitting.
Theorems 9 · Definitions 4Counterexamples 4Lenses 2History 1Proof X-rays 2
Chapter outline →See this chapter on the web →Not yet indexed in the web
- 3.1
Gradient descent on quadratics
Derive gradient descent for quadratic losses, analyze the step-size interval, and connect convergence to the spectrum of the Hessian.
- 3.2
Gradient Descent for Smooth Nonconvex Objectives: Descent, Summable Gradients and Stationarity
A rigorous treatment of fixed-step gradient descent for functions with Lipschitz gradients: the descent lemma, the sufficient-decrease inequality, the summability of squared gradient norms, a finite-time stationarity bound, and a careful account of what these results do not guarantee, illustrated by a one-parameter tanh predictor and several counterexamples.
- 3.3
Stochastic Gradient Descent: Minibatches and a Finite-Horizon Expected Stationarity Bound
How the deterministic descent lemma extends to noisy gradient estimates. Covers conditional unbiasedness, bounded conditional variance, minibatch variance reduction, sampling pitfalls, and an expected stationarity bound with a genuine noise floor.
Chapter 4 · 5 sections
Clustering
Derive center objectives, probabilistic memberships, hierarchical merges and density connectivity from explicit definitions and original examples.
Theorems 12 · Definitions 7Counterexamples 3Lenses 3Proof X-rays 3
Chapter outline →See this chapter on the web →Not yet indexed in the web
- 4.1
Voronoi cells and k-center
Derive nearest-site cells and their Delaunay dual, then prove the metric two-approximation for farthest-first k-center clustering.
- 4.2
Centre objectives and Lloyd updates
Compare mean, median and medoid center objectives, derive Lloyd descent and finite termination, and interpret local minima and elbow plots.
- 4.3
Gaussian mixtures and expectation-maximization
Derive Gaussian-mixture responsibilities and weighted parameter updates, prove likelihood ascent, and distinguish soft EM from hard assignments.
- 4.4
Hierarchical linkages and dendrograms
Build and cut nested partitions, derive Ward merge costs, compare linkage updates, and connect single-link cuts to graph components.
- 4.5
Density connectivity and mean shift
Construct DBSCAN core components and border labels, follow mutual-reachability hierarchies, and prove Gaussian mean-shift density ascent.
Chapter 5 · 7 sections
Classification
Binary linear scores, geometric margins, perceptron updates and hard-margin separating geometry.
Theorems 21 · Definitions 11Counterexamples 8Lenses 4History 1Proof X-rays 7
Chapter outline →See this chapter on the web →Not yet indexed in the web
- 5.1
Linear prediction, margins and perceptron
Distinguish binary affine scores from numerical fitting, prove the perceptron update bound and fair-pass stopping, and derive hard-margin geometry with an unpenalized intercept.
- 5.2
Binary Logistic Regression: Likelihood, Convexity and Finite-Data Existence
How the logistic model turns affine scores into model probabilities, why its negative log-likelihood is a smooth convex objective, how to evaluate it stably, and sufficient conditions and examples for existence or nonexistence of a finite minimizer.
- 5.3
Multiclass Softmax Regression and Cross-Entropy
Softmax probabilities, the categorical log-likelihood, gradients and Hessians, stable log-sum-exp, identifiability gauges, existence of minimizers, and how fitted scores lead into classification evaluation.
- 5.4
Bernoulli Naive Bayes Classification
Binary-feature naive Bayes as an application of Bayes' rule: likelihood factorization under conditional independence, additive log posterior odds, base rates, cost-sensitive thresholds, zero counts, Beta smoothing and the limits of the independence assumption.
- 5.5
k-Nearest-Neighbor Binary Classification
A careful account of the k-nearest-neighbor classifier: deterministic tie rules, scores versus probabilities, feature scaling, computational cost, a finite-sample noise counterexample, and leakage-free validation.
- 5.6
Classification Trees with Gini Impurity
Gini impurity, the split-gain identity, a deterministic greedy fitting rule for binary classification trees, a fully computed one-dimensional example, and the limits of training-impurity reduction as evidence of generalization.
- 5.7
Evaluating Binary Classifiers: Confusion Tables, Thresholds, ROC Curves and Prevalence
How to turn a classifier score into decisions, measure those decisions with confusion-table metrics, summarize rankings with ROC curves and AUC, account for prevalence and asymmetric costs, and validate the result honestly.
Chapter 6 · 1 section
Graph-structured data
Weighted graph energies, normalized Laplacians, reversible walks and spectral relaxations of graph cuts.
Counterexamples 1Proof X-rays 1
Chapter outline →See this chapter on the web →Not yet indexed in the web
- 6.1
Graph Laplacians and spectral coordinates
Derive weighted graph energies, isolate-safe normalization, reversible walks and constrained spectral coordinates, with an exact normalized-cut relaxation.
Chapter 10 · 3 sections
Finite-sample learning
Prove bounded-sample concentration, control a finite family of predictors, and separate approximation, estimation, optimization, bias and variance.
Theorems 6 · Definitions 5Counterexamples 3Proof X-rays 5
Chapter outline →See this chapter on the web →Not yet indexed in the web
- 10.1
Concentration, model comparison, and prediction risk
Prove bounded-sample concentration, control a finite family of predictors, and separate approximation, estimation, optimization, bias and variance.
- 10.2
Parameter nets and uniform risk
Control a continuous bounded parameter family by a finite grid, and derive uniform risk and approximate empirical minimization guarantees.
- 10.3
Rademacher complexity and generalization
Use random signs to prove a uniform bounded-loss generalization bound and understand sample patterns.
Chapter 7 · 8 sections
Probability foundations
Sampling models, means, prediction risk and Monte Carlo error.
Theorems 20 · Definitions 16Counterexamples 9Lenses 7History 4Proof X-rays 8
Chapter outline →See this chapter on the web →Not yet indexed in the web
- 7.1
Sampling, prediction risk, and Monte Carlo error
Build a probability model for observations, separate empirical from population error, and prove finite-sample bounds for means and fixed prediction rules.
- 7.2
Exact Confidence Intervals for a Normal Mean and Variance
Why the sample mean and the sample variance of a normal sample are independent, how this produces the chi-square and Student t pivots, and how those pivots give exact confidence intervals for the mean and the variance when the variance is unknown.
- 7.3
Confidence Intervals for a Binomial Proportion: Wald, Wilson, and Exact Tail Inversion
A careful treatment of interval estimation for an event rate: what coverage means, why the Wald interval fails at the boundary, how the Wilson score interval comes from inverting a quadratic, and why exact binomial tail inversion guarantees at least nominal coverage.
- 7.4
Comparing Two Means: Independent and Paired Samples
Exact pooled and paired t intervals under normal models, the approximate Welch interval, and why the sampling design, not the data afterwards, determines the standard error.
- 7.5
Two-Way Contingency Tables and Pearson's Chi-Square Test for Independence
A rigorous treatment of two-way contingency tables: the multinomial sampling model, estimated expected counts, Pearson's statistic, a projection-based proof of its asymptotic chi-square law, effect size versus evidence, and the designs under which the reference law fails.
- 7.6
Randomization and Permutation Tests for a Difference in Means
Exact finite-sample tests built by counting assignments: Fisher's sharp null, super-uniform p-values with ties, exchangeability, design-respecting reference sets, and the contrast with bootstrap resampling.
- 7.7
The Nonparametric Bootstrap for the Sample Mean
A careful account of resampling from the empirical distribution: exact conditional moments of the bootstrap mean, the finite-sample downward factor, Monte Carlo error, simple bootstrap intervals, and the situations where the method can mislead.
- 7.8
Kernel Density Estimation: Exact Bias, Variance and the Bandwidth Trade-off
Univariate kernel density estimation with fixed bandwidth: why the estimator is itself a density, exact finite-sample mean and variance, smooth-interior bias asymptotics, leading-term bandwidth balance, and a boundary counterexample.
Chapter 8 · 1 section
Approximation foundations
Polynomial spaces, tensor complexity and weighted snapshot POD.
Theorems 2Counterexamples 1Lenses 1Proof X-rays 1
Chapter outline →See this chapter on the web →Not yet indexed in the web
- 8.1
Polynomial spaces, dimensional growth, and POD
Construct polynomial approximants, prove a tensor Bernstein error bound, and derive optimal snapshot subspaces with explicit weights and error norms.
Chapter 11 · 1 section
Noisy polynomial approximation
Connect continuous polynomial projection to weighted sample fitting, prove conditioning and noise formulas, and identify aliasing that survives zero training error.
Theorems 2 · Definitions 2Counterexamples 1Lenses 1Proof X-rays 1
Chapter outline →See this chapter on the web →Not yet indexed in the web
- 11.1
Orthogonal polynomials and noisy weighted approximation
Connect continuous polynomial projection to weighted sample fitting, prove conditioning and noise formulas, and identify aliasing that survives zero training error.
Chapter 16 · 5 sections
Coherent dictionary recovery
Prove exact finite-dictionary OMP recovery under a coherence bound, trace orthogonal refits, and distinguish sampled recovery from continuous approximation.
Theorems 13 · Definitions 10Counterexamples 5Lenses 4Proof X-rays 5
Chapter outline →See this chapter on the web →Not yet indexed in the web
- 16.1
Coherence, orthogonal pursuit, and sparse recovery
Prove exact finite-dictionary OMP recovery under a coherence bound, trace orthogonal refits, and distinguish sampled recovery from continuous approximation.
- 16.2
Noisy refitting and support thresholding
Prove finite-dictionary conditioning and deterministic noisy support recovery by one-step correlation thresholding.
- 16.4
Restricted isometries, uniqueness and oracle refitting
Use restricted isometry to distinguish sparse uniqueness, conditional stability and projected correlation bounds.
- 16.5
Basis pursuit and the null-space property
Characterize exact sparse recovery by ℓ1 minimization and quantify the effect of a coefficient tail.
- 16.6
Noisy basis pursuit and robust null-space bounds
Prove a deterministic sparse-recovery bound separating measurement noise and a coefficient tail.