Completeness contract
This article follows all thirteen pages of1_Ch2 Fundamentals of ML.pdf. Numbered and unnumbered displayed equations, meaningful inline mathematics, equations inside figures, question placeholders??, captions, footnotes, references, and legible handwriting are individually linked to ledgers. Source blanks and suspected errors are preserved first; completed and corrected variants receive separate statuses.
Keep three layers distinct.
Separate the 2025 PDF reconstruction, editorial and mathematical verification, and the research update dated August 18, 2026. Later research does not retroactively rewrite the lecture’s claims.
#Ledger status
- PDF mapping: 13 of 13 pages
- Source equations: 103 (
MAI-P2-001–MAI-P2-103) - Equation statuses:
source-exact,source-suspect,editorially-completed,corrected-variant - Source PDF SHA-256:
c6ac9d80c5ae2bc96f0aa8aec70c126f559e6dd5c36d51a46eb1bdb6775e836c - Figures are reconstructed as new diagrams or precise descriptions preserving axes, legends, values, and structure, rather than reproducing source images.
#Reconstructing the PDF source
#2. Fundamentals of machine learning
Machine learning is introduced as methods that automatically discover patterns in large datasets and use them to predict future data or make decisions under uncertainty. The lecture presents it as a response to automated-analysis demands in the era of big data.
Even an apparently enormous dataset can contain few effective samples of a rare event of interest. The lecture describes this long-tail property: a few events are common, while most are rare.
#2.1 Tasks
#2.1.1 Classification
Classification learns a mapping from inputs to outputs. The output space is . With , the task is binary classification, usually using ; with , it is multiclass classification.
- Nonexclusive classes give multilabel classification, which can be viewed as a multioutput model predicting several related binary labels together.
Unless otherwise stated, classification here means single-output multiclass classification.
As function approximation, classification assumes an unknown relationship and estimates it from labeled training examples.
Source equation · PDF p. 1
Explanation Core explanation
The question this equation answers
What does this equation define or connect in the article?
Key idea
For equations without an actual calculation or derivation, briefly clarify context and symbols rather than attaching a generic procedure.
Symbols
Symbols used in this equation
| Symbol | Meaning |
|---|---|
| Sample count or loss function; check context |
Reference-quality follow-up
Explore this calculation further
After learning, predicts new inputs. Working well on previously unseen inputs is generalization.
#2.1.2 Regression
Regression predicts numerical values from inputs. The learned function has form . Its structure resembles classification, but its outputs are real-valued.
The lecture compares a line and quadratic polynomial using one real input and response . The page ends by asking which fit looks better, leaving ?? rather than supplying an answer.
Lecture annotation — PDF p. 1
A note appearing to read “path” and a λ symbol occur near the regression example. Context is insufficient to determine their meaning, so the ledger marks them uncertain to read.
#2.1.3 Density estimation
Density estimation learns , interpreting as a PDF or PMF over the space generating samples.
A good density model learns data structure, including dense regions and rarely observed ones. Knowing a density does not automatically solve every related task: required computations can still be intractable.
#2.2 Example: linear regression
The input is and output is scalar . Predictions are defined as follows.
Source equation · PDF p. 2
Explanation Core explanation · Formula-specific lesson
The question this equation answers
What does this equation define or connect in the article?
Key idea
For equations without an actual calculation or derivation, briefly clarify context and symbols rather than attaching a generic procedure.
Formula-specific lesson
Build predictions by adding feature contributions
Decompose wᵀx into component products wᵢxᵢ and their sum rather than treating it as a black box.
Reference-quality follow-up
Explore this calculation further
Here, is the parameter vector. Each component multiplies its corresponding feature, determining that feature’s contribution to prediction.
The learning algorithm adjusts weights using training data . An intuitive criterion minimizes training mean squared error (MSE).
Source equation · PDF p. 2
Explanation and calculations 4 calculation steps · Numerical example · Checks included · Formula-specific lesson
The question this equation answers
How far are predictions from targets on average?
Key idea
Subtract targets from predictions, square each residual, and divide by sample count. Larger errors receive greater penalties.
Formula-specific lesson
From least squares to normal equations
Keep X, y, and w fixed while connecting predictions, residuals, MSE, gradients, normal equations, and solutions.
Calculation walkthrough
Calculation steps
- 1
Calculate predictions
For linear regression, predictions are Xw or wᵀx.
- 2
Calculate residuals
- 3
Square the residuals
Remove signs and emphasize larger errors.
- 4
Sum and divide by sample count
Worked example
Work through the numbers — MSE for two samples
Compare predictions and targets directly.
- 1
Targets and predictions
- 2
Residual
- 3
Square
- 4
Average
Result: MSE is 5. The second sample's error of 3 substantially increases it.
Sanity check
Checks
- Check whether the expression divides by sample count or is merely a sum of squares.
- MSE has squared output units.
Symbols
Symbols used in this equation
| Symbol | Meaning |
|---|---|
| Data matrix collecting samples | |
| Sample count or loss function; check context |
Reference-quality follow-up
Explore this calculation further
The lecture derives the normal equation by setting the gradient to zero without skipping intermediate lines.
Source equation · PDF p. 2
Explanation and calculations 4 calculation steps · Numerical example · Checks included · Formula-specific lesson
The question this equation answers
How much does the objective increase or decrease when each parameter increases?
Key idea
Collect partial derivatives into a vector and move in the opposite direction during minimization.
Formula-specific lesson
From least squares to normal equations
Keep X, y, and w fixed while connecting predictions, residuals, MSE, gradients, normal equations, and solutions.
Calculation walkthrough
Calculation steps
- 1
Choose the differentiation variable
Treat other variables as constants.
- 2
Apply sum, product, and chain rules
For composition, multiply the outer derivative by the inner derivative.
- 3
Collect partial derivatives into one vector
- 4
Substitute current values
Obtain numerical gradient magnitudes and signs.
Worked example
Work through the numbers — Gradient of a one-dimensional loss
The loss squares distance from target value 3.
- 1
Function
- 2
Derivative
- 3
Substitute w=5
Result: The positive gradient 4 means decreasing w reduces loss.
Sanity check
Checks
- The gradient and parameter vectors must have matching lengths.
- A constant term has derivative zero.
Symbols
Symbols used in this equation
| Symbol | Meaning |
|---|---|
| A gradient collecting derivatives in each variable direction |
Reference-quality follow-up
Explore this calculation further
Source equation · PDF p. 2
Explanation and calculations 4 calculation steps · Numerical example · Checks included · Formula-specific lesson
The question this equation answers
How much does the objective increase or decrease when each parameter increases?
Key idea
Collect partial derivatives into a vector and move in the opposite direction during minimization.
Formula-specific lesson
From least squares to normal equations
Keep X, y, and w fixed while connecting predictions, residuals, MSE, gradients, normal equations, and solutions.
Calculation walkthrough
Calculation steps
- 1
Choose the differentiation variable
Treat other variables as constants.
- 2
Apply sum, product, and chain rules
For composition, multiply the outer derivative by the inner derivative.
- 3
Collect partial derivatives into one vector
- 4
Substitute current values
Obtain numerical gradient magnitudes and signs.
Worked example
Work through the numbers — Gradient of a one-dimensional loss
The loss squares distance from target value 3.
- 1
Function
- 2
Derivative
- 3
Substitute w=5
Result: The positive gradient 4 means decreasing w reduces loss.
Sanity check
Checks
- The gradient and parameter vectors must have matching lengths.
- A constant term has derivative zero.
Symbols
Symbols used in this equation
| Symbol | Meaning |
|---|---|
| Data matrix collecting samples | |
| A gradient collecting derivatives in each variable direction | |
| Sample count or loss function; check context |
Reference-quality follow-up
Explore this calculation further
Source equation · PDF p. 2
Explanation and calculations 4 calculation steps · Numerical example · Checks included · Formula-specific lesson
The question this equation answers
How much does the objective increase or decrease when each parameter increases?
Key idea
Collect partial derivatives into a vector and move in the opposite direction during minimization.
Formula-specific lesson
From least squares to normal equations
Keep X, y, and w fixed while connecting predictions, residuals, MSE, gradients, normal equations, and solutions.
Calculation walkthrough
Calculation steps
- 1
Choose the differentiation variable
Treat other variables as constants.
- 2
Apply sum, product, and chain rules
For composition, multiply the outer derivative by the inner derivative.
- 3
Collect partial derivatives into one vector
- 4
Substitute current values
Obtain numerical gradient magnitudes and signs.
Worked example
Work through the numbers — Gradient of a one-dimensional loss
The loss squares distance from target value 3.
- 1
Function
- 2
Derivative
- 3
Substitute w=5
Result: The positive gradient 4 means decreasing w reduces loss.
Sanity check
Checks
- The gradient and parameter vectors must have matching lengths.
- A constant term has derivative zero.
Symbols
Symbols used in this equation
| Symbol | Meaning |
|---|---|
| Data matrix collecting samples | |
| A gradient collecting derivatives in each variable direction |
Reference-quality follow-up
Explore this calculation further
Source equation · PDF p. 2
Explanation and calculations 4 calculation steps · Numerical example · Checks included · Formula-specific lesson
The question this equation answers
How much does the objective increase or decrease when each parameter increases?
Key idea
Collect partial derivatives into a vector and move in the opposite direction during minimization.
Formula-specific lesson
From least squares to normal equations
Keep X, y, and w fixed while connecting predictions, residuals, MSE, gradients, normal equations, and solutions.
Calculation walkthrough
Calculation steps
- 1
Choose the differentiation variable
Treat other variables as constants.
- 2
Apply sum, product, and chain rules
For composition, multiply the outer derivative by the inner derivative.
- 3
Collect partial derivatives into one vector
- 4
Substitute current values
Obtain numerical gradient magnitudes and signs.
Worked example
Work through the numbers — Gradient of a one-dimensional loss
The loss squares distance from target value 3.
- 1
Function
- 2
Derivative
- 3
Substitute w=5
Result: The positive gradient 4 means decreasing w reduces loss.
Sanity check
Checks
- The gradient and parameter vectors must have matching lengths.
- A constant term has derivative zero.
Symbols
Symbols used in this equation
| Symbol | Meaning |
|---|---|
| Data matrix collecting samples | |
| A gradient collecting derivatives in each variable direction |
Reference-quality follow-up
Explore this calculation further
Source equation · PDF p. 2
Explanation Core explanation · Formula-specific lesson
The question this equation answers
What does this equation define or connect in the article?
Key idea
For equations without an actual calculation or derivation, briefly clarify context and symbols rather than attaching a generic procedure.
Formula-specific lesson
From least squares to normal equations
Keep X, y, and w fixed while connecting predictions, residuals, MSE, gradients, normal equations, and solutions.
Symbols
Symbols used in this equation
| Symbol | Meaning |
|---|---|
| Data matrix collecting samples |
Reference-quality follow-up
Explore this calculation further
Source equation · PDF p. 2
Explanation Core explanation · Formula-specific lesson
The question this equation answers
What does this equation define or connect in the article?
Key idea
For equations without an actual calculation or derivation, briefly clarify context and symbols rather than attaching a generic procedure.
Formula-specific lesson
From least squares to normal equations
Keep X, y, and w fixed while connecting predictions, residuals, MSE, gradients, normal equations, and solutions.
Symbols
Symbols used in this equation
| Symbol | Meaning |
|---|---|
| Data matrix collecting samples |
Reference-quality follow-up
Explore this calculation further
Source equation · PDF p. 2 · Eq. (1)
Explanation and calculations 5 calculation steps · Numerical example · Checks included · Formula-specific lesson
The question this equation answers
Which w minimizes squared linear-regression error?
Key idea
Expand squared error, differentiate with respect to w, and set the result to zero to obtain XᵀXw=Xᵀy.
Formula-specific lesson
From least squares to normal equations
Keep X, y, and w fixed while connecting predictions, residuals, MSE, gradients, normal equations, and solutions.
Calculation walkthrough
Calculation steps
- 1
Write the sum of squared residuals
- 2
Expand the matrix products
- 3
Differentiate with respect to w
- 4
Set the gradient to zero at a candidate minimum
- 5
Solve the linear system
Worked example
Work through the numbers — Regressing an intercept and slope
Fit a line to (1,1) and (2,2).
- 1
Construct matrices
- 2
Calculate products
- 3
Apply the inverse
- 4
Weights
Result: The line y=x, with intercept zero and slope one, passes through both points.
Note: Implementations should use QR, SVD, or a linear solve rather than explicitly forming (XᵀX)⁻¹.
Sanity check
Checks
- Check whether XᵀX is invertible.
- The length of w must equal the number of columns of X.
Symbols
Symbols used in this equation
| Symbol | Meaning |
|---|---|
| Data matrix collecting samples |
Reference-quality follow-up
Explore this calculation further
The final expression is source equation (1). Its inverse form implicitly assumes an invertible Gram matrix.
Source equation · PDF p. 2
Explanation and calculations 4 calculation steps · Numerical example · Checks included · Formula-specific lesson
The question this equation answers
How much does the objective increase or decrease when each parameter increases?
Key idea
Collect partial derivatives into a vector and move in the opposite direction during minimization.
Formula-specific lesson
Differentiate squared residuals to build a gradient
Trace the chain rule: compute Ax−y, weight residuals, and map back through Aᵀ to obtain 2AᵀW(Ax−y).
Calculation walkthrough
Calculation steps
- 1
Choose the differentiation variable
Treat other variables as constants.
- 2
Apply sum, product, and chain rules
For composition, multiply the outer derivative by the inner derivative.
- 3
Collect partial derivatives into one vector
- 4
Substitute current values
Obtain numerical gradient magnitudes and signs.
Worked example
Work through the numbers — Gradient of a one-dimensional loss
The loss squares distance from target value 3.
- 1
Function
- 2
Derivative
- 3
Substitute w=5
Result: The positive gradient 4 means decreasing w reduces loss.
Sanity check
Checks
- The gradient and parameter vectors must have matching lengths.
- A constant term has derivative zero.
Symbols
Symbols used in this equation
| Symbol | Meaning |
|---|---|
| Partial derivative with respect to a particular variable |
Reference-quality follow-up
Explore this calculation further
The source attributes this derivative identity to The Matrix Cookbook.
Lecture annotation — PDF p. 2, training-sample notation
The note reads(x_l,y_l)as one training sample and stacks rowwise feature vectors to formX^(train).
Source equation · PDF p. 2
Explanation Core explanation · Formula-specific lesson
The question this equation answers
What does this equation define or connect in the article?
Key idea
For equations without an actual calculation or derivation, briefly clarify context and symbols rather than attaching a generic procedure.
Formula-specific lesson
Assemble sample sums into matrix expressions
Accumulate xₗxₗᵀ into XᵀX and verify numerically that summed sample errors equal ‖Xw−y‖².
Symbols
Symbols used in this equation
| Symbol | Meaning |
|---|---|
| Sum over all specified terms | |
| Sample count or loss function; check context |
Reference-quality follow-up
Explore this calculation further
Source equation · PDF p. 2
Explanation and calculations 4 calculation steps · Numerical example · Checks included · Formula-specific lesson
The question this equation answers
How far are predictions from targets on average?
Key idea
Subtract targets from predictions, square each residual, and divide by sample count. Larger errors receive greater penalties.
Formula-specific lesson
Assemble sample sums into matrix expressions
Accumulate xₗxₗᵀ into XᵀX and verify numerically that summed sample errors equal ‖Xw−y‖².
Calculation walkthrough
Calculation steps
- 1
Calculate predictions
For linear regression, predictions are Xw or wᵀx.
- 2
Calculate residuals
- 3
Square the residuals
Remove signs and emphasize larger errors.
- 4
Sum and divide by sample count
Worked example
Work through the numbers — MSE for two samples
Compare predictions and targets directly.
- 1
Targets and predictions
- 2
Residual
- 3
Square
- 4
Average
Result: MSE is 5. The second sample's error of 3 substantially increases it.
Sanity check
Checks
- Check whether the expression divides by sample count or is merely a sum of squares.
- MSE has squared output units.
Symbols
Symbols used in this equation
| Symbol | Meaning |
|---|---|
| Sample count or loss function; check context |
Reference-quality follow-up
Explore this calculation further
Source equation · PDF p. 2
Explanation and calculations 4 calculation steps · Numerical example · Checks included · Formula-specific lesson
The question this equation answers
How much does the objective increase or decrease when each parameter increases?
Key idea
Collect partial derivatives into a vector and move in the opposite direction during minimization.
Formula-specific lesson
Differentiate squared residuals to build a gradient
Trace the chain rule: compute Ax−y, weight residuals, and map back through Aᵀ to obtain 2AᵀW(Ax−y).
Calculation walkthrough
Calculation steps
- 1
Choose the differentiation variable
Treat other variables as constants.
- 2
Apply sum, product, and chain rules
For composition, multiply the outer derivative by the inner derivative.
- 3
Collect partial derivatives into one vector
- 4
Substitute current values
Obtain numerical gradient magnitudes and signs.
Worked example
Work through the numbers — Gradient of a one-dimensional loss
The loss squares distance from target value 3.
- 1
Function
- 2
Derivative
- 3
Substitute w=5
Result: The positive gradient 4 means decreasing w reduces loss.
Sanity check
Checks
- The gradient and parameter vectors must have matching lengths.
- A constant term has derivative zero.
Symbols
Symbols used in this equation
| Symbol | Meaning |
|---|---|
| Partial derivative with respect to a particular variable |
Reference-quality follow-up
Explore this calculation further
Source equation · PDF p. 2
Explanation and calculations 4 calculation steps · Numerical example · Checks included · Formula-specific lesson
The question this equation answers
How much does the objective increase or decrease when each parameter increases?
Key idea
Collect partial derivatives into a vector and move in the opposite direction during minimization.
Formula-specific lesson
Differentiate squared residuals to build a gradient
Trace the chain rule: compute Ax−y, weight residuals, and map back through Aᵀ to obtain 2AᵀW(Ax−y).
Calculation walkthrough
Calculation steps
- 1
Choose the differentiation variable
Treat other variables as constants.
- 2
Apply sum, product, and chain rules
For composition, multiply the outer derivative by the inner derivative.
- 3
Collect partial derivatives into one vector
- 4
Substitute current values
Obtain numerical gradient magnitudes and signs.
Worked example
Work through the numbers — Gradient of a one-dimensional loss
The loss squares distance from target value 3.
- 1
Function
- 2
Derivative
- 3
Substitute w=5
Result: The positive gradient 4 means decreasing w reduces loss.
Sanity check
Checks
- The gradient and parameter vectors must have matching lengths.
- A constant term has derivative zero.
Symbols
Symbols used in this equation
| Symbol | Meaning |
|---|---|
| A gradient collecting derivatives in each variable direction |
Reference-quality follow-up
Explore this calculation further
Source equation · PDF p. 2
Explanation Core explanation · Formula-specific lesson
The question this equation answers
What does this equation define or connect in the article?
Key idea
For equations without an actual calculation or derivation, briefly clarify context and symbols rather than attaching a generic procedure.
Formula-specific lesson
Assemble sample sums into matrix expressions
Accumulate xₗxₗᵀ into XᵀX and verify numerically that summed sample errors equal ‖Xw−y‖².
Symbols
Symbols used in this equation
| Symbol | Meaning |
|---|---|
| Data matrix collecting samples | |
| Sum over all specified terms | |
| Sample count or loss function; check context |
Reference-quality follow-up
Explore this calculation further
Uncertain reading — lower-right PDF p. 2
A dimensional comparison resemblingL ≫ Nand a numerical example are obscured by overlapping handwriting. Their location is retained without speculative reconstruction.
#2.3 Underfitting and overfitting
The central machine-learning challenge is maintaining performance on inputs not used in training. This is generalization.
Optimizing parameters to reduce training-set error is an optimization problem. Machine learning adds the requirement of low generalization or test error: expected error on new inputs.
The linear-regression example evaluates the model from equation (1) on a test set.
Source equation · PDF p. 3
Explanation and calculations 4 calculation steps · Numerical example · Checks included · Formula-specific lesson
The question this equation answers
How far are predictions from targets on average?
Key idea
Subtract targets from predictions, square each residual, and divide by sample count. Larger errors receive greater penalties.
Formula-specific lesson
Test training-selected w★ on new data
Choose w★ from training data only, average squared residuals on independent test data, and repeat the whole procedure to distinguish expected training and test errors.
Calculation walkthrough
Calculation steps
- 1
Calculate predictions
For linear regression, predictions are Xw or wᵀx.
- 2
Calculate residuals
- 3
Square the residuals
Remove signs and emphasize larger errors.
- 4
Sum and divide by sample count
Worked example
Work through the numbers — MSE for two samples
Compare predictions and targets directly.
- 1
Targets and predictions
- 2
Residual
- 3
Square
- 4
Average
Result: MSE is 5. The second sample's error of 3 substantially increases it.
Sanity check
Checks
- Check whether the expression divides by sample count or is merely a sum of squares.
- MSE has squared output units.
Symbols
Symbols used in this equation
| Symbol | Meaning |
|---|---|
| Data matrix collecting samples |
Reference-quality follow-up
Explore this calculation further
Here, M is the number of test samples.
Training and test data are modeled as draws from a data-generating distribution. The typical i.i.d. assumption makes samples independent and gives training and test sets the same distribution.
For a procedure that samples training data, optimizes parameters, and then samples test data, the lecture explains that expected test error is no smaller than expected training error.
Source equation · PDF p. 3
Explanation and calculations 4 calculation steps · Numerical example · Checks included · Formula-specific lesson
The question this equation answers
Where does the average tend after many repetitions of the same experiment?
Key idea
Multiply each outcome by its probability and sum. For continuous variables, integrate instead.
Formula-specific lesson
Test training-selected w★ on new data
Choose w★ from training data only, average squared residuals on independent test data, and repeat the whole procedure to distinguish expected training and test errors.
Calculation walkthrough
Calculation steps
- 1
Pair possible values with their probabilities
- 2
Multiply each value by its probability
- 3
Add all terms
- 4
Check that probabilities sum to one
Worked example
Work through the numbers — Mean of a discrete random variable
X takes 1,2,3 with probabilities 0.2,0.5,0.3 respectively.
- 1
Weighted values
- 2
Sum
Result: E[X]=2.1. It need not be an observable outcome itself.
Sanity check
Checks
- Probabilities or densities must be normalized.
- E[g(X)] generally differs from g(E[X]).
Symbols
Symbols used in this equation
| Symbol | Meaning |
|---|---|
| Expectation: the probability-weighted average of possible values |
Reference-quality follow-up
Explore this calculation further
- A good learning algorithm should achieve low training error.
- It should also keep the gap between training and test errors small.
Underfitting occurs when the model cannot obtain sufficiently low error even on training data.
Overfitting occurs when the training–test error gap is excessively large.
Changing model capacity controls these possibilities. Low capacity may fail to represent the training set; high capacity may memorize properties that do not help on test data.
#2.3.1 No free lunch theorem
“All models are wrong, but some are useful.” — George Box
Machine learning designs models and fitting algorithms. Cross-validation can select empirically better methods for a particular problem, but no single model is optimal for every problem: assumptions useful in one domain can hurt in another.
Uncertain reading — bottom of PDF p. 3
Handwriting following “example” cannot be determined reliably because of image resolution and overlapping strokes.
Underfitting
A simple line misses the samples’ curvature, producing high training error.
Overfitting
An excessively complex curve oscillates through samples, widening the training–test gap.
Appropriate capacity
A curve follows the overall trend without chasing local noise.
The degree-nine model becomes almost flat and underfits.
Suppressing high-order oscillations brings the fit closer to the true quadratic.
An overfitted curve diverges strongly at the boundaries.
The no-free-lunch result motivates multiple model families for varied real data structures. Even the same model has different speed, accuracy, and complexity trade-offs under different training algorithms.
#2.3.2 Regularization
A learning algorithm can incorporate preferences suited to a task. Performance improves when those preferences match the problem’s structure.
The linear-regression example adds weight decay to favor smaller weights.
Source equation · PDF p. 4
Explanation and calculations 4 calculation steps · Numerical example · Checks included · Formula-specific lesson
The question this equation answers
How far are predictions from targets on average?
Key idea
Subtract targets from predictions, square each residual, and divide by sample count. Larger errors receive greater penalties.
Formula-specific lesson
Balancing training error and small weights with λ
Keep the same degree-nine model and training points while varying λ to calculate MSE_train, ‖w‖², λ‖w‖², total objective, and curve changes together.
Calculation walkthrough
Calculation steps
- 1
Calculate predictions
For linear regression, predictions are Xw or wᵀx.
- 2
Calculate residuals
- 3
Square the residuals
Remove signs and emphasize larger errors.
- 4
Sum and divide by sample count
Worked example
Work through the numbers — MSE for two samples
Compare predictions and targets directly.
- 1
Targets and predictions
- 2
Residual
- 3
Square
- 4
Average
Result: MSE is 5. The second sample's error of 3 substantially increases it.
Sanity check
Checks
- Check whether the expression divides by sample count or is merely a sum of squares.
- MSE has squared output units.
Symbols
Symbols used in this equation
| Symbol | Meaning |
|---|---|
| Regularization strength or eigenvalue |
Reference-quality follow-up
Explore this calculation further
λ is selected in advance. With there is no small-weight preference; larger λ shrinks weights more strongly.
Figure 3 compares underfitting at excessive λ, a suitable intermediate fit, and overfitting near zero.
Preferences can be explicit or implicit. This example explicitly favors small-weight linear functions through an added objective term.
Lecture annotation — right of Figure 2, PDF p. 4
Added error-versus-iteration curves distinguish three trends appearing to indicate training, test, and underfitting.
Uncertain reading — lower-right PDF p. 4
Partially legible short notes are not completed by guessing their meaning.
These different ways of introducing preferences are collectively called regularization.
Regularization is any modification of a learning algorithm intended to reduce generalization error rather than training error.
Just as no algorithm is best for every problem, no regularizer is universally best. Choose one suited to the task.
The lecture summarizes deep learning’s philosophy as solving broad classes of tasks effectively through very general forms of regularization.
#2.4 Hyperparameters and validation sets
Most learning algorithms have hyperparameters controlling their behavior. These are not the model parameters adapted by the algorithm itself.
Polynomial degree in Figure 1 is a capacity hyperparameter, as is weight-decay λ.
Some settings remain hyperparameters because optimization is difficult. More commonly, learning them on the training set is inappropriate: choosing capacity there can favor the maximum available capacity and overfit.
A validation set unseen by the training algorithm addresses this problem.
#2.4.1 Training, validation, and test sets
- Training set: learns model parameters.
- Validation set: estimates generalization to unseen data and selects hyperparameters and configurations.
- Test set: evaluates the final frozen model on genuinely unseen data for an unbiased generalization estimate.
iterations, depth, width, optimizer, learning rate, batch size, epochs, …
Lecture annotation — PDF p. 5
Notes appearing to read “hyper” beside the hyperparameter heading and “dropout” near regularization are present.
#2.4.2 Cross-validation
With a small test set in a fixed split, statistical uncertainty in mean test error makes claims that algorithm A beats B difficult.
This matters less with hundreds of thousands of samples. Small datasets can instead spend extra computation on repeated training and evaluation across splits, using all samples to estimate mean test error.
The usual K-fold procedure divides data into K disjoint subsets and runs K experiments. Run k tests on subset k and trains on the remainder; average the K test errors.
Section-specific concept lesson
K-fold: test each sample once without including it in training during that run
The source section has no displayed equation, so no formula ID is invented. Figure 4 and the procedure are verified through a separate concept ID.
| run | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | error |
|---|---|---|---|---|---|---|---|---|---|---|---|
| 1 | TEST | train | train | train | train | TEST | train | train | train | train | 0.12 |
| 2 | train | TEST | train | train | train | train | TEST | train | train | train | 0.18 |
| 3 | train | train | TEST | train | train | train | train | TEST | train | train | 0.10 |
| 4 | train | train | train | TEST | train | train | train | train | TEST | train | 0.16 |
| 5 | train | train | train | train | TEST | train | train | train | train | TEST | 0.14 |
#2.5 Supervised-learning example: support vector machines
Like logistic regression, an SVM centers on a linear function but outputs class identity rather than probability. It predicts positive for and negative for .
Its key innovation is the kernel trick. Learning algorithms expressible through sample inner products can fit linear models in transformed spaces without explicitly constructing high-dimensional features.
The footnote introduces logistic regression as generalized linear regression for binary classification: targets are , and squashes the linear output for probabilistic interpretation.
Source equation · PDF p. 6
Explanation and calculations 4 calculation steps · Numerical example · Checks included · Formula-specific lesson
The question this equation answers
How can a linear score become interpretable as a probability?
Key idea
Negate score z, exponentiate, and take the reciprocal of 1+e^{-z}.
Formula-specific lesson
From linear scores to kernel scores
Keep the query and support vectors fixed while calculating inner-product sums, feature-map kernel identities, and Gaussian kernel scores, distinguishing the logistic-sigmoid footnote from SVM scores.
Calculation walkthrough
Calculation steps
- 1
Calculate the linear score z
- 2
Calculate the negative exponential
- 3
Add one
- 4
Take the reciprocal
Worked example
Work through the numbers — When z=2
Observe how a positive score becomes an output value.
- 1
Exponentiation
- 2
Denominator
- 3
Reciprocal
Result: The output is approximately 0.881.
Sanity check
Checks
- At z=0, it is exactly 0.5.
- Large positive scores approach one; large negative scores approach zero.
Symbols
Symbols used in this equation
| Symbol | Meaning |
|---|---|
| Standard deviation or sigmoid notation |
Reference-quality follow-up
Explore this calculation further
The SVM linear function can be rewritten as a sum of inner products with training samples.
Source equation · PDF p. 7
Explanation and calculations 4 calculation steps · Numerical example · Checks included · Formula-specific lesson
The question this equation answers
Which side of the decision boundary contains input x?
Key idea
Calculate wᵀx+b: positive assigns one class, negative the other, and zero lies on the boundary.
Formula-specific lesson
From linear scores to kernel scores
Keep the query and support vectors fixed while calculating inner-product sums, feature-map kernel identities, and Gaussian kernel scores, distinguishing the logistic-sigmoid footnote from SVM scores.
Calculation walkthrough
Calculation steps
- 1
Multiply corresponding features and weights
- 2
Sum the products and add bias
- 3
Check the sign
- 4
Calculate boundary distance if needed
Worked example
Work through the numbers — Classifying one point
w=[1,-2], x=[3,1], and b=0.5.
- 1
Weighted sum
- 2
Class
- 3
Distance to the boundary
Result: The point is on the positive-class side, approximately 0.67 from the boundary.
Sanity check
Checks
- w and x must have the same dimension.
- Geometric distance requires |g(x)|, while signed distance may retain its sign.
Symbols
Symbols used in this equation
| Symbol | Meaning |
|---|---|
| Learning rate, mixture coefficient, or dual coefficient | |
| Sum over all specified terms | |
| Sample count or loss function; check context |
Reference-quality follow-up
Explore this calculation further
Here, x_l is a training sample and α a coefficient vector. Map inputs through φ(x), then replace inner products with a kernel.
Source equation · PDF p. 7
Explanation and calculations 4 calculation steps · Numerical example · Checks included · Formula-specific lesson
The question this equation answers
How can a nonlinear relationship become a similarity score usable by a linear model?
Key idea
Use input distances or feature-space inner products to produce scalar similarity κ(u,v).
Formula-specific lesson
From linear scores to kernel scores
Keep the query and support vectors fixed while calculating inner-product sums, feature-map kernel identities, and Gaussian kernel scores, distinguishing the logistic-sigmoid footnote from SVM scores.
Calculation walkthrough
Calculation steps
- 1
Calculate the difference between inputs
- 2
Calculate squared distance
- 3
Divide by the kernel-width factor
- 4
Apply a negative exponential for similarity
Worked example
Work through the numbers — The RBF kernel
u=[0,0], v=[1,1], and σ=1.
- 1
Squared distance
- 2
Exponentiation
Result: The points' RBF similarity is approximately 0.368.
Sanity check
Checks
- For u=v, the RBF kernel equals one.
- Very small σ makes most distinct points nearly zero in similarity; very large σ makes them similar.
Symbols
Symbols used in this equation
| Symbol | Meaning |
|---|---|
| A kernel returning similarity between two inputs | |
| A transformation into feature space |
Reference-quality follow-up
Explore this calculation further
Source equation · PDF p. 7
Explanation and calculations 4 calculation steps · Numerical example · Checks included · Formula-specific lesson
The question this equation answers
How can a nonlinear relationship become a similarity score usable by a linear model?
Key idea
Use input distances or feature-space inner products to produce scalar similarity κ(u,v).
Formula-specific lesson
From linear scores to kernel scores
Keep the query and support vectors fixed while calculating inner-product sums, feature-map kernel identities, and Gaussian kernel scores, distinguishing the logistic-sigmoid footnote from SVM scores.
Calculation walkthrough
Calculation steps
- 1
Calculate the difference between inputs
- 2
Calculate squared distance
- 3
Divide by the kernel-width factor
- 4
Apply a negative exponential for similarity
Worked example
Work through the numbers — The RBF kernel
u=[0,0], v=[1,1], and σ=1.
- 1
Squared distance
- 2
Exponentiation
Result: The points' RBF similarity is approximately 0.368.
Sanity check
Checks
- For u=v, the RBF kernel equals one.
- Very small σ makes most distinct points nearly zero in similarity; very large σ makes them similar.
Symbols
Symbols used in this equation
| Symbol | Meaning |
|---|---|
| Learning rate, mixture coefficient, or dual coefficient | |
| A kernel returning similarity between two inputs | |
| Sum over all specified terms | |
| Sample count or loss function; check context |
Reference-quality follow-up
Explore this calculation further
The function may be nonlinear in x while remaining linear in φ(x) and in α. This corresponds exactly to transforming every input through φ and learning a linear model in that space.
- With φ fixed and only α optimized, a model nonlinear in original inputs can be learned through convex optimization.
- κ may be much cheaper to compute than explicitly constructing and dotting the high-dimensional feature vectors.
The lecture’s representative example is the Gaussian kernel.
Source equation · PDF p. 7
Explanation and calculations 4 calculation steps · Numerical example · Checks included · Formula-specific lesson
The question this equation answers
How plausible is observation x under mean μ and covariance Σ?
Key idea
Calculate a covariance-scaled distance from the mean and a normalization constant to obtain density.
Formula-specific lesson
From linear scores to kernel scores
Keep the query and support vectors fixed while calculating inner-product sums, feature-map kernel identities, and Gaussian kernel scores, distinguishing the logistic-sigmoid footnote from SVM scores.
Calculation walkthrough
Calculation steps
- 1
Calculate the difference from the mean
- 2
Adjust distance using variance or covariance
- 3
Calculate exponential decay
- 4
Divide by the normalization constant
Worked example
Work through the numbers — x=1 under a standard normal
A one-dimensional Gaussian with μ=0 and σ=1.
- 1
Standardized distance
- 2
Exponential term
- 3
Normalization
Result: Density at x=1 is approximately 0.242. A density value is not itself an event probability.
Sanity check
Checks
- Σ must be symmetric positive definite for the inverse and positive density to be stably defined.
- Obtain probabilities through interval integration, distinct from pointwise density.
Symbols
Symbols used in this equation
| Symbol | Meaning |
|---|---|
| Standard deviation or sigmoid notation | |
| A kernel returning similarity between two inputs | |
| Gaussian distribution |
Reference-quality follow-up
Explore this calculation further
The notation denotes a normal density with mean μ and covariance Σ.
#2.6 Minimum-distance classifiers: deterministic classification
A minimum-distance classifier calculates distance from a pattern vector to each class prototype and assigns the nearest prototype’s class.
Prototypes are usually class-mean vectors.
Source equation · PDF p. 7
Explanation and calculations 4 calculation steps · Numerical example · Checks included · Formula-specific lesson
The question this equation answers
Which class mean is closest to input x?
Key idea
Calculate class means m_c and compare all distances D_c(x).
Formula-specific lesson
Prototypes, distances, and perpendicular-bisector boundaries
Calculate class means m_c, query Euclidean distances, and discriminants together to verify equivalent decisions and midpoint boundaries.
Calculation walkthrough
Calculation steps
- 1
Calculate class representatives
- 2
Subtract representatives from the input
- 3
Calculate squared distance
- 4
Choose the class with smallest distance
Worked example
Work through the numbers — Two classes in two dimensions
x=(3,2), m₁=(2,2), and m₂=(5,2).
- 1
Distance to class 1
- 2
Distance to class 2
Result: Since D₁<D₂, assign class 1.
Sanity check
Checks
- Compare consistently using either distances or squared distances.
- Differently scaled features may require standardization or Mahalanobis distance.
Symbols
Symbols used in this equation
| Symbol | Meaning |
|---|---|
| Sum over all specified terms | |
| Total class count or a matrix; check context |
Reference-quality follow-up
Explore this calculation further
M_c counts patterns used for mean c, S_c is pattern class c, and C is the number of classes.
Using Euclidean similarity gives the following distances.
Source equation · PDF p. 8
Explanation and calculations 4 calculation steps · Numerical example · Checks included · Formula-specific lesson
The question this equation answers
Which class mean is closest to input x?
Key idea
Calculate class means m_c and compare all distances D_c(x).
Formula-specific lesson
Prototypes, distances, and perpendicular-bisector boundaries
Calculate class means m_c, query Euclidean distances, and discriminants together to verify equivalent decisions and midpoint boundaries.
Calculation walkthrough
Calculation steps
- 1
Calculate class representatives
- 2
Subtract representatives from the input
- 3
Calculate squared distance
- 4
Choose the class with smallest distance
Worked example
Work through the numbers — Two classes in two dimensions
x=(3,2), m₁=(2,2), and m₂=(5,2).
- 1
Distance to class 1
- 2
Distance to class 2
Result: Since D₁<D₂, assign class 1.
Sanity check
Checks
- Compare consistently using either distances or squared distances.
- Differently scaled features may require standardization or Mahalanobis distance.
Symbols
Symbols used in this equation
| Symbol | Meaning |
|---|---|
| Total class count or a matrix; check context |
Reference-quality follow-up
Explore this calculation further
Assign x to the class whose distance is smaller than every other class’s.
Source equation · PDF p. 8
Explanation and calculations 4 calculation steps · Numerical example · Checks included · Formula-specific lesson
The question this equation answers
Which class mean is closest to input x?
Key idea
Calculate class means m_c and compare all distances D_c(x).
Formula-specific lesson
Prototypes, distances, and perpendicular-bisector boundaries
Calculate class means m_c, query Euclidean distances, and discriminants together to verify equivalent decisions and midpoint boundaries.
Calculation walkthrough
Calculation steps
- 1
Calculate class representatives
- 2
Subtract representatives from the input
- 3
Calculate squared distance
- 4
Choose the class with smallest distance
Worked example
Work through the numbers — Two classes in two dimensions
x=(3,2), m₁=(2,2), and m₂=(5,2).
- 1
Distance to class 1
- 2
Distance to class 2
Result: Since D₁<D₂, assign class 1.
Sanity check
Checks
- Compare consistently using either distances or squared distances.
- Differently scaled features may require standardization or Mahalanobis distance.
Reference-quality follow-up
Explore this calculation further
Ties with are resolved arbitrarily.
Minimizing distance is equivalent to maximizing the following discriminant.
Source equation · PDF p. 8 · Eq. (2)
Explanation and calculations 4 calculation steps · Numerical example · Checks included · Formula-specific lesson
The question this equation answers
Which class mean is closest to input x?
Key idea
Calculate class means m_c and compare all distances D_c(x).
Formula-specific lesson
Prototypes, distances, and perpendicular-bisector boundaries
Calculate class means m_c, query Euclidean distances, and discriminants together to verify equivalent decisions and midpoint boundaries.
Calculation walkthrough
Calculation steps
- 1
Calculate class representatives
- 2
Subtract representatives from the input
- 3
Calculate squared distance
- 4
Choose the class with smallest distance
Worked example
Work through the numbers — Two classes in two dimensions
x=(3,2), m₁=(2,2), and m₂=(5,2).
- 1
Distance to class 1
- 2
Distance to class 2
Result: Since D₁<D₂, assign class 1.
Sanity check
Checks
- Compare consistently using either distances or squared distances.
- Differently scaled features may require standardization or Mahalanobis distance.
Symbols
Symbols used in this equation
| Symbol | Meaning |
|---|---|
| Total class count or a matrix; check context |
Reference-quality follow-up
Explore this calculation further
Source equation · PDF p. 8
Explanation and calculations 4 calculation steps · Numerical example · Checks included · Formula-specific lesson
The question this equation answers
Which class mean is closest to input x?
Key idea
Calculate class means m_c and compare all distances D_c(x).
Formula-specific lesson
Prototypes, distances, and perpendicular-bisector boundaries
Calculate class means m_c, query Euclidean distances, and discriminants together to verify equivalent decisions and midpoint boundaries.
Calculation walkthrough
Calculation steps
- 1
Calculate class representatives
- 2
Subtract representatives from the input
- 3
Calculate squared distance
- 4
Choose the class with smallest distance
Worked example
Work through the numbers — Two classes in two dimensions
x=(3,2), m₁=(2,2), and m₂=(5,2).
- 1
Distance to class 1
- 2
Distance to class 2
Result: Since D₁<D₂, assign class 1.
Sanity check
Checks
- Compare consistently using either distances or squared distances.
- Differently scaled features may require standardization or Mahalanobis distance.
Reference-quality follow-up
Explore this calculation further
In recognition, this is called a decision or discriminant function.
A two-class boundary contains x where their discriminants agree.
Source equation · PDF p. 8 · Eq. (3)
Explanation and calculations 4 calculation steps · Numerical example · Checks included · Formula-specific lesson
The question this equation answers
Which class mean is closest to input x?
Key idea
Calculate class means m_c and compare all distances D_c(x).
Formula-specific lesson
Prototypes, distances, and perpendicular-bisector boundaries
Calculate class means m_c, query Euclidean distances, and discriminants together to verify equivalent decisions and midpoint boundaries.
Calculation walkthrough
Calculation steps
- 1
Calculate class representatives
- 2
Subtract representatives from the input
- 3
Calculate squared distance
- 4
Choose the class with smallest distance
Worked example
Work through the numbers — Two classes in two dimensions
x=(3,2), m₁=(2,2), and m₂=(5,2).
- 1
Distance to class 1
- 2
Distance to class 2
Result: Since D₁<D₂, assign class 1.
Sanity check
Checks
- Compare consistently using either distances or squared distances.
- Differently scaled features may require standardization or Mahalanobis distance.
Reference-quality follow-up
Explore this calculation further
Source equation · PDF p. 8
Explanation and calculations 4 calculation steps · Numerical example · Checks included · Formula-specific lesson
The question this equation answers
Which class mean is closest to input x?
Key idea
Calculate class means m_c and compare all distances D_c(x).
Formula-specific lesson
Prototypes, distances, and perpendicular-bisector boundaries
Calculate class means m_c, query Euclidean distances, and discriminants together to verify equivalent decisions and midpoint boundaries.
Calculation walkthrough
Calculation steps
- 1
Calculate class representatives
- 2
Subtract representatives from the input
- 3
Calculate squared distance
- 4
Choose the class with smallest distance
Worked example
Work through the numbers — Two classes in two dimensions
x=(3,2), m₁=(2,2), and m₂=(5,2).
- 1
Distance to class 1
- 2
Distance to class 2
Result: Since D₁<D₂, assign class 1.
Sanity check
Checks
- Compare consistently using either distances or squared distances.
- Differently scaled features may require standardization or Mahalanobis distance.
Reference-quality follow-up
Explore this calculation further
It is the perpendicular bisector of the segment joining m_c and m_c′: a line for , a plane for , and a hyperplane in higher dimensions.
#2.7 Bayes classifiers: statistical classification
Since pattern classes arise from random processes, probabilities matter. This section derives a rule minimizing average classification-error probability.
#2.7.1 Bayes classifiers for arbitrary pattern classes
The quantity is the posterior probability that x came from S_c; is the loss of action a_c when the true class is S_c′.
The usual 0–1 loss gives zero for correct decisions and the same unit loss of one for mistakes.
Source equation · PDF p. 8 · Eq. (4)
Explanation and calculations 5 calculation steps · Numerical example · Checks included · Formula-specific lesson
The question this equation answers
Which action minimizes mean loss for the current observation?
Key idea
For each action, sum true-class loss times posterior probability, then choose the smallest risk.
Formula-specific lesson
Posterior normalization and Bayes risk
Normalize likelihood times prior by evidence, then use the same posterior to calculate actionwise conditional risks under 0–1 and asymmetric losses.
Calculation walkthrough
Calculation steps
- 1
Choose a candidate action
- 2
List losses for each possible true class
- 3
Multiply each loss by its posterior probability
- 4
Sum across all classes
- 5
Select minimum risk
Worked example
Work through the numbers — Two classes with 0–1 loss
P(S₁|x)=0.7 and P(S₂|x)=0.3.
- 1
Risk of choosing S₁
- 2
Risk of choosing S₂
Result: Since R₁<R₂, choose S₁.
Sanity check
Checks
- Specify the meanings of loss-matrix rows and columns first.
- With asymmetric costs, the most probable class may differ from the minimum-risk decision.
Symbols
Symbols used in this equation
| Symbol | Meaning |
|---|---|
| Total class count or a matrix; check context | |
| Sample count or loss function; check context |
Reference-quality follow-up
Explore this calculation further
Conditional mean risk averages the loss of assigning x to a class under posterior probabilities.
Source equation · PDF p. 8 · Eq. (5)
Explanation and calculations 4 calculation steps · Numerical example · Checks included · Formula-specific lesson
The question this equation answers
What is class S's probability after observing x?
Key idea
Multiply the observation's class likelihood by the prior class proportion, then divide by p(x), summing all explanations.
Formula-specific lesson
Posterior normalization and Bayes risk
Normalize likelihood times prior by evidence, then use the same posterior to calculate actionwise conditional risks under 0–1 and asymmetric losses.
Calculation walkthrough
Calculation steps
- 1
Identify the prior
- 2
Calculate class likelihoods
- 3
Multiply them to form joint scores
- 4
Divide by the sum of all class scores
Worked example
Work through the numbers — Calculating a posterior
Suppose P(S)=0.4, p(x|S)=0.3, and p(x)=0.2.
- 1
Numerator
- 2
Normalization
Result: After observation, class S has probability 0.6.
Note: Calculate p(x) by summing p(x|S_c)P(S_c) across classes.
Sanity check
Checks
- Posterior probabilities must sum to one across classes.
- For classification alone, omitting the common denominator p(x) preserves rankings.
Symbols
Symbols used in this equation
| Symbol | Meaning |
|---|---|
| Sum over all specified terms | |
| Event probability | |
| Total class count or a matrix; check context | |
| Sample count or loss function; check context |
Reference-quality follow-up
Explore this calculation further
#Bayes’ rule, priors, and class-conditional densities
Source equation · PDF p. 9
Explanation and calculations 4 calculation steps · Numerical example · Checks included · Formula-specific lesson
The question this equation answers
What is class S's probability after observing x?
Key idea
Multiply the observation's class likelihood by the prior class proportion, then divide by p(x), summing all explanations.
Formula-specific lesson
Posterior normalization and Bayes risk
Normalize likelihood times prior by evidence, then use the same posterior to calculate actionwise conditional risks under 0–1 and asymmetric losses.
Calculation walkthrough
Calculation steps
- 1
Identify the prior
- 2
Calculate class likelihoods
- 3
Multiply them to form joint scores
- 4
Divide by the sum of all class scores
Worked example
Work through the numbers — Calculating a posterior
Suppose P(S)=0.4, p(x|S)=0.3, and p(x)=0.2.
- 1
Numerator
- 2
Normalization
Result: After observation, class S has probability 0.6.
Note: Calculate p(x) by summing p(x|S_c)P(S_c) across classes.
Sanity check
Checks
- Posterior probabilities must sum to one across classes.
- For classification alone, omitting the common denominator p(x) preserves rankings.
Symbols
Symbols used in this equation
| Symbol | Meaning |
|---|---|
| Event probability |
Reference-quality follow-up
Explore this calculation further
In words: posterior = likelihood × prior / evidence. P(S_c) is class probability before observation, P(S_c|x) the posterior afterward, and p(x|S_c) the class-conditional density.
Source equation · PDF p. 9
Explanation and calculations 4 calculation steps · Numerical example · Checks included · Formula-specific lesson
The question this equation answers
What is class S's probability after observing x?
Key idea
Multiply the observation's class likelihood by the prior class proportion, then divide by p(x), summing all explanations.
Formula-specific lesson
Posterior normalization and Bayes risk
Normalize likelihood times prior by evidence, then use the same posterior to calculate actionwise conditional risks under 0–1 and asymmetric losses.
Calculation walkthrough
Calculation steps
- 1
Identify the prior
- 2
Calculate class likelihoods
- 3
Multiply them to form joint scores
- 4
Divide by the sum of all class scores
Worked example
Work through the numbers — Calculating a posterior
Suppose P(S)=0.4, p(x|S)=0.3, and p(x)=0.2.
- 1
Numerator
- 2
Normalization
Result: After observation, class S has probability 0.6.
Note: Calculate p(x) by summing p(x|S_c)P(S_c) across classes.
Sanity check
Checks
- Posterior probabilities must sum to one across classes.
- For classification alone, omitting the common denominator p(x) preserves rankings.
Symbols
Symbols used in this equation
| Symbol | Meaning |
|---|---|
| Event probability | |
| Probability density or conditional probability density |
Reference-quality follow-up
Explore this calculation further
The source leaves equation (6) blank for students to complete the posterior.
Source equation · PDF p. 9 · Eq. (6)
Explanation and calculations 4 calculation steps · Numerical example · Checks included · Formula-specific lesson
The question this equation answers
What is class S's probability after observing x?
Key idea
Multiply the observation's class likelihood by the prior class proportion, then divide by p(x), summing all explanations.
Formula-specific lesson
Posterior normalization and Bayes risk
Normalize likelihood times prior by evidence, then use the same posterior to calculate actionwise conditional risks under 0–1 and asymmetric losses.
Calculation walkthrough
Calculation steps
- 1
Identify the prior
- 2
Calculate class likelihoods
- 3
Multiply them to form joint scores
- 4
Divide by the sum of all class scores
Worked example
Work through the numbers — Calculating a posterior
Suppose P(S)=0.4, p(x|S)=0.3, and p(x)=0.2.
- 1
Numerator
- 2
Normalization
Result: After observation, class S has probability 0.6.
Note: Calculate p(x) by summing p(x|S_c)P(S_c) across classes.
Sanity check
Checks
- Posterior probabilities must sum to one across classes.
- For classification alone, omitting the common denominator p(x) preserves rankings.
Symbols
Symbols used in this equation
| Symbol | Meaning |
|---|---|
| Event probability |
Reference-quality follow-up
Explore this calculation further
#Bayes classifier
Substituting equation (6) into risk produces the common positive factor 1/p(x).
Source equation · PDF p. 9
Explanation and calculations 4 calculation steps · Numerical example · Checks included · Formula-specific lesson
The question this equation answers
What is class S's probability after observing x?
Key idea
Multiply the observation's class likelihood by the prior class proportion, then divide by p(x), summing all explanations.
Formula-specific lesson
Posterior normalization and Bayes risk
Normalize likelihood times prior by evidence, then use the same posterior to calculate actionwise conditional risks under 0–1 and asymmetric losses.
Calculation walkthrough
Calculation steps
- 1
Identify the prior
- 2
Calculate class likelihoods
- 3
Multiply them to form joint scores
- 4
Divide by the sum of all class scores
Worked example
Work through the numbers — Calculating a posterior
Suppose P(S)=0.4, p(x|S)=0.3, and p(x)=0.2.
- 1
Numerator
- 2
Normalization
Result: After observation, class S has probability 0.6.
Note: Calculate p(x) by summing p(x|S_c)P(S_c) across classes.
Sanity check
Checks
- Posterior probabilities must sum to one across classes.
- For classification alone, omitting the common denominator p(x) preserves rankings.
Symbols
Symbols used in this equation
| Symbol | Meaning |
|---|---|
| Sum over all specified terms | |
| Event probability | |
| Probability density or conditional probability density | |
| Total class count or a matrix; check context | |
| Sample count or loss function; check context |
Reference-quality follow-up
Explore this calculation further
Because it is positive and shared across candidate risks, removing it does not change the minimum-risk class.
Source equation · PDF p. 9 · Eq. (7)
Explanation and calculations 4 calculation steps · Numerical example · Checks included · Formula-specific lesson
The question this equation answers
What is class S's probability after observing x?
Key idea
Multiply the observation's class likelihood by the prior class proportion, then divide by p(x), summing all explanations.
Formula-specific lesson
Posterior normalization and Bayes risk
Normalize likelihood times prior by evidence, then use the same posterior to calculate actionwise conditional risks under 0–1 and asymmetric losses.
Calculation walkthrough
Calculation steps
- 1
Identify the prior
- 2
Calculate class likelihoods
- 3
Multiply them to form joint scores
- 4
Divide by the sum of all class scores
Worked example
Work through the numbers — Calculating a posterior
Suppose P(S)=0.4, p(x|S)=0.3, and p(x)=0.2.
- 1
Numerator
- 2
Normalization
Result: After observation, class S has probability 0.6.
Note: Calculate p(x) by summing p(x|S_c)P(S_c) across classes.
Sanity check
Checks
- Posterior probabilities must sum to one across classes.
- For classification alone, omitting the common denominator p(x) preserves rankings.
Symbols
Symbols used in this equation
| Symbol | Meaning |
|---|---|
| Sum over all specified terms | |
| Event probability | |
| Probability density or conditional probability density | |
| Total class count or a matrix; check context | |
| Sample count or loss function; check context |
Reference-quality follow-up
Explore this calculation further
Calculating risks at each x and selecting the smallest minimizes overall mean risk.
Source equation · PDF p. 9
Explanation and calculations 5 calculation steps · Numerical example · Checks included · Formula-specific lesson
The question this equation answers
Which action minimizes mean loss for the current observation?
Key idea
For each action, sum true-class loss times posterior probability, then choose the smallest risk.
Formula-specific lesson
Posterior normalization and Bayes risk
Normalize likelihood times prior by evidence, then use the same posterior to calculate actionwise conditional risks under 0–1 and asymmetric losses.
Calculation walkthrough
Calculation steps
- 1
Choose a candidate action
- 2
List losses for each possible true class
- 3
Multiply each loss by its posterior probability
- 4
Sum across all classes
- 5
Select minimum risk
Worked example
Work through the numbers — Two classes with 0–1 loss
P(S₁|x)=0.7 and P(S₂|x)=0.3.
- 1
Risk of choosing S₁
- 2
Risk of choosing S₂
Result: Since R₁<R₂, choose S₁.
Sanity check
Checks
- Specify the meanings of loss-matrix rows and columns first.
- With asymmetric costs, the most probable class may differ from the minimum-risk decision.
Reference-quality follow-up
Explore this calculation further
#Bayes classifier with 0–1 loss
Source equation · PDF p. 9
Explanation and calculations 5 calculation steps · Numerical example · Checks included · Formula-specific lesson
The question this equation answers
Which action minimizes mean loss for the current observation?
Key idea
For each action, sum true-class loss times posterior probability, then choose the smallest risk.
Formula-specific lesson
Posterior normalization and Bayes risk
Normalize likelihood times prior by evidence, then use the same posterior to calculate actionwise conditional risks under 0–1 and asymmetric losses.
Calculation walkthrough
Calculation steps
- 1
Choose a candidate action
- 2
List losses for each possible true class
- 3
Multiply each loss by its posterior probability
- 4
Sum across all classes
- 5
Select minimum risk
Worked example
Work through the numbers — Two classes with 0–1 loss
P(S₁|x)=0.7 and P(S₂|x)=0.3.
- 1
Risk of choosing S₁
- 2
Risk of choosing S₂
Result: Since R₁<R₂, choose S₁.
Sanity check
Checks
- Specify the meanings of loss-matrix rows and columns first.
- With asymmetric costs, the most probable class may differ from the minimum-risk decision.
Symbols
Symbols used in this equation
| Symbol | Meaning |
|---|---|
| Sample count or loss function; check context |
Reference-quality follow-up
Explore this calculation further
Substituting into equation (7) gives this sum.
Source equation · PDF p. 9
Explanation and calculations 4 calculation steps · Numerical example · Checks included · Formula-specific lesson
The question this equation answers
What is class S's probability after observing x?
Key idea
Multiply the observation's class likelihood by the prior class proportion, then divide by p(x), summing all explanations.
Formula-specific lesson
Posterior normalization and Bayes risk
Normalize likelihood times prior by evidence, then use the same posterior to calculate actionwise conditional risks under 0–1 and asymmetric losses.
Calculation walkthrough
Calculation steps
- 1
Identify the prior
- 2
Calculate class likelihoods
- 3
Multiply them to form joint scores
- 4
Divide by the sum of all class scores
Worked example
Work through the numbers — Calculating a posterior
Suppose P(S)=0.4, p(x|S)=0.3, and p(x)=0.2.
- 1
Numerator
- 2
Normalization
Result: After observation, class S has probability 0.6.
Note: Calculate p(x) by summing p(x|S_c)P(S_c) across classes.
Sanity check
Checks
- Posterior probabilities must sum to one across classes.
- For classification alone, omitting the common denominator p(x) preserves rankings.
Symbols
Symbols used in this equation
| Symbol | Meaning |
|---|---|
| Sum over all specified terms | |
| Event probability | |
| Probability density or conditional probability density | |
| Total class count or a matrix; check context |
Reference-quality follow-up
Explore this calculation further
The source again leaves ?? for simplification using total probability.
Source equation · PDF p. 9
Explanation and calculations 5 calculation steps · Numerical example · Checks included · Formula-specific lesson
The question this equation answers
Which action minimizes mean loss for the current observation?
Key idea
For each action, sum true-class loss times posterior probability, then choose the smallest risk.
Formula-specific lesson
Posterior normalization and Bayes risk
Normalize likelihood times prior by evidence, then use the same posterior to calculate actionwise conditional risks under 0–1 and asymmetric losses.
Calculation walkthrough
Calculation steps
- 1
Choose a candidate action
- 2
List losses for each possible true class
- 3
Multiply each loss by its posterior probability
- 4
Sum across all classes
- 5
Select minimum risk
Worked example
Work through the numbers — Two classes with 0–1 loss
P(S₁|x)=0.7 and P(S₂|x)=0.3.
- 1
Risk of choosing S₁
- 2
Risk of choosing S₂
Result: Since R₁<R₂, choose S₁.
Sanity check
Checks
- Specify the meanings of loss-matrix rows and columns first.
- With asymmetric costs, the most probable class may differ from the minimum-risk decision.
Symbols
Symbols used in this equation
| Symbol | Meaning |
|---|---|
| Total class count or a matrix; check context |
Reference-quality follow-up
Explore this calculation further
When risks are compared, the common p(x) cancels.
Source equation · PDF p. 9
Explanation and calculations 4 calculation steps · Numerical example · Checks included · Formula-specific lesson
The question this equation answers
What is class S's probability after observing x?
Key idea
Multiply the observation's class likelihood by the prior class proportion, then divide by p(x), summing all explanations.
Formula-specific lesson
Posterior normalization and Bayes risk
Normalize likelihood times prior by evidence, then use the same posterior to calculate actionwise conditional risks under 0–1 and asymmetric losses.
Calculation walkthrough
Calculation steps
- 1
Identify the prior
- 2
Calculate class likelihoods
- 3
Multiply them to form joint scores
- 4
Divide by the sum of all class scores
Worked example
Work through the numbers — Calculating a posterior
Suppose P(S)=0.4, p(x|S)=0.3, and p(x)=0.2.
- 1
Numerator
- 2
Normalization
Result: After observation, class S has probability 0.6.
Note: Calculate p(x) by summing p(x|S_c)P(S_c) across classes.
Sanity check
Checks
- Posterior probabilities must sum to one across classes.
- For classification alone, omitting the common denominator p(x) preserves rankings.
Symbols
Symbols used in this equation
| Symbol | Meaning |
|---|---|
| Event probability | |
| Probability density or conditional probability density |
Reference-quality follow-up
Explore this calculation further
The equivalent rule selects the greatest product of class-conditional likelihood and prior.
Source equation · PDF p. 9
Explanation and calculations 4 calculation steps · Numerical example · Checks included · Formula-specific lesson
The question this equation answers
What is class S's probability after observing x?
Key idea
Multiply the observation's class likelihood by the prior class proportion, then divide by p(x), summing all explanations.
Formula-specific lesson
Posterior normalization and Bayes risk
Normalize likelihood times prior by evidence, then use the same posterior to calculate actionwise conditional risks under 0–1 and asymmetric losses.
Calculation walkthrough
Calculation steps
- 1
Identify the prior
- 2
Calculate class likelihoods
- 3
Multiply them to form joint scores
- 4
Divide by the sum of all class scores
Worked example
Work through the numbers — Calculating a posterior
Suppose P(S)=0.4, p(x|S)=0.3, and p(x)=0.2.
- 1
Numerator
- 2
Normalization
Result: After observation, class S has probability 0.6.
Note: Calculate p(x) by summing p(x|S_c)P(S_c) across classes.
Sanity check
Checks
- Posterior probabilities must sum to one across classes.
- For classification alone, omitting the common denominator p(x) preserves rankings.
Symbols
Symbols used in this equation
| Symbol | Meaning |
|---|---|
| Event probability | |
| Probability density or conditional probability density |
Reference-quality follow-up
Explore this calculation further
The discriminant under 0–1 loss is:
Source equation · PDF p. 10 · Eq. (8)
Explanation and calculations 4 calculation steps · Numerical example · Checks included · Formula-specific lesson
The question this equation answers
What is class S's probability after observing x?
Key idea
Multiply the observation's class likelihood by the prior class proportion, then divide by p(x), summing all explanations.
Formula-specific lesson
Posterior normalization and Bayes risk
Normalize likelihood times prior by evidence, then use the same posterior to calculate actionwise conditional risks under 0–1 and asymmetric losses.
Calculation walkthrough
Calculation steps
- 1
Identify the prior
- 2
Calculate class likelihoods
- 3
Multiply them to form joint scores
- 4
Divide by the sum of all class scores
Worked example
Work through the numbers — Calculating a posterior
Suppose P(S)=0.4, p(x|S)=0.3, and p(x)=0.2.
- 1
Numerator
- 2
Normalization
Result: After observation, class S has probability 0.6.
Note: Calculate p(x) by summing p(x|S_c)P(S_c) across classes.
Sanity check
Checks
- Posterior probabilities must sum to one across classes.
- For classification alone, omitting the common denominator p(x) preserves rankings.
Symbols
Symbols used in this equation
| Symbol | Meaning |
|---|---|
| Event probability | |
| Probability density or conditional probability density | |
| Total class count or a matrix; check context |
Reference-quality follow-up
Explore this calculation further
Maximizing this discriminant minimizes mean classification risk. Claiming optimality, however, requires knowing p(x|S_c) and P(S_c).
- Equal class frequencies permit . Otherwise, domain knowledge or sample frequencies can estimate priors.
- Estimating N-dimensional class-conditional density p(x|S_c) is difficult with few class samples or poorly behaved densities. Practical Bayes classifiers therefore often assume analytical density families.
#2.7.2 Gaussian pattern classes
Assuming a class-conditional distribution family reduces learning to estimating its parameters rather than an entire density. The most common assumption is multivariate Gaussian.
Source equation · PDF p. 10 · Eq. (9)
Explanation and calculations 4 calculation steps · Numerical example · Checks included · Formula-specific lesson
The question this equation answers
How plausible is observation x under mean μ and covariance Σ?
Key idea
Calculate a covariance-scaled distance from the mean and a normalization constant to obtain density.
Formula-specific lesson
Gaussian QDA → LDA → minimum-distance
Compare class-specific-covariance QDA, shared-covariance LDA, and identity-covariance/equal-prior minimum distance at one 2D point, keeping the suspect univariate Gaussian separate from its correction.
Calculation walkthrough
Calculation steps
- 1
Calculate the difference from the mean
- 2
Adjust distance using variance or covariance
- 3
Calculate exponential decay
- 4
Divide by the normalization constant
Worked example
Work through the numbers — x=1 under a standard normal
A one-dimensional Gaussian with μ=0 and σ=1.
- 1
Standardized distance
- 2
Exponential term
- 3
Normalization
Result: Density at x=1 is approximately 0.242. A density value is not itself an event probability.
Sanity check
Checks
- Σ must be symmetric positive definite for the inverse and positive density to be stably defined.
- Obtain probabilities through interval integration, distinct from pointwise density.
Symbols
Symbols used in this equation
| Symbol | Meaning |
|---|---|
| Probability density or conditional probability density |
Reference-quality follow-up
Explore this calculation further
A mean vector and covariance matrix fully specify each density.
Source equation · PDF p. 10
Explanation and calculations 4 calculation steps · Numerical example · Checks included · Formula-specific lesson
The question this equation answers
How plausible is observation x under mean μ and covariance Σ?
Key idea
Calculate a covariance-scaled distance from the mean and a normalization constant to obtain density.
Formula-specific lesson
Gaussian QDA → LDA → minimum-distance
Compare class-specific-covariance QDA, shared-covariance LDA, and identity-covariance/equal-prior minimum distance at one 2D point, keeping the suspect univariate Gaussian separate from its correction.
Calculation walkthrough
Calculation steps
- 1
Calculate the difference from the mean
- 2
Adjust distance using variance or covariance
- 3
Calculate exponential decay
- 4
Divide by the normalization constant
Worked example
Work through the numbers — x=1 under a standard normal
A one-dimensional Gaussian with μ=0 and σ=1.
- 1
Standardized distance
- 2
Exponential term
- 3
Normalization
Result: Density at x=1 is approximately 0.242. A density value is not itself an event probability.
Sanity check
Checks
- Σ must be symmetric positive definite for the inverse and positive density to be stably defined.
- Obtain probabilities through interval integration, distinct from pointwise density.
Symbols
Symbols used in this equation
| Symbol | Meaning |
|---|---|
| Expectation: the probability-weighted average of possible values |
Reference-quality follow-up
Explore this calculation further
Source equation · PDF p. 10
Explanation and calculations 4 calculation steps · Numerical example · Checks included · Formula-specific lesson
The question this equation answers
How plausible is observation x under mean μ and covariance Σ?
Key idea
Calculate a covariance-scaled distance from the mean and a normalization constant to obtain density.
Formula-specific lesson
Gaussian QDA → LDA → minimum-distance
Compare class-specific-covariance QDA, shared-covariance LDA, and identity-covariance/equal-prior minimum distance at one 2D point, keeping the suspect univariate Gaussian separate from its correction.
Calculation walkthrough
Calculation steps
- 1
Calculate the difference from the mean
- 2
Adjust distance using variance or covariance
- 3
Calculate exponential decay
- 4
Divide by the normalization constant
Worked example
Work through the numbers — x=1 under a standard normal
A one-dimensional Gaussian with μ=0 and σ=1.
- 1
Standardized distance
- 2
Exponential term
- 3
Normalization
Result: Density at x=1 is approximately 0.242. A density value is not itself an event probability.
Sanity check
Checks
- Σ must be symmetric positive definite for the inverse and positive density to be stably defined.
- Obtain probabilities through interval integration, distinct from pointwise density.
Symbols
Symbols used in this equation
| Symbol | Meaning |
|---|---|
| Expectation: the probability-weighted average of possible values |
Reference-quality follow-up
Explore this calculation further
Approximating expectations by sample averages gives these estimators.
Source equation · PDF p. 10
Explanation and calculations 4 calculation steps · Numerical example · Checks included · Formula-specific lesson
The question this equation answers
How plausible is observation x under mean μ and covariance Σ?
Key idea
Calculate a covariance-scaled distance from the mean and a normalization constant to obtain density.
Formula-specific lesson
Gaussian QDA → LDA → minimum-distance
Compare class-specific-covariance QDA, shared-covariance LDA, and identity-covariance/equal-prior minimum distance at one 2D point, keeping the suspect univariate Gaussian separate from its correction.
Calculation walkthrough
Calculation steps
- 1
Calculate the difference from the mean
- 2
Adjust distance using variance or covariance
- 3
Calculate exponential decay
- 4
Divide by the normalization constant
Worked example
Work through the numbers — x=1 under a standard normal
A one-dimensional Gaussian with μ=0 and σ=1.
- 1
Standardized distance
- 2
Exponential term
- 3
Normalization
Result: Density at x=1 is approximately 0.242. A density value is not itself an event probability.
Sanity check
Checks
- Σ must be symmetric positive definite for the inverse and positive density to be stably defined.
- Obtain probabilities through interval integration, distinct from pointwise density.
Symbols
Symbols used in this equation
| Symbol | Meaning |
|---|---|
| Sum over all specified terms |
Reference-quality follow-up
Explore this calculation further
Source equation · PDF p. 10
Explanation and calculations 4 calculation steps · Numerical example · Checks included · Formula-specific lesson
The question this equation answers
How plausible is observation x under mean μ and covariance Σ?
Key idea
Calculate a covariance-scaled distance from the mean and a normalization constant to obtain density.
Formula-specific lesson
Gaussian QDA → LDA → minimum-distance
Compare class-specific-covariance QDA, shared-covariance LDA, and identity-covariance/equal-prior minimum distance at one 2D point, keeping the suspect univariate Gaussian separate from its correction.
Calculation walkthrough
Calculation steps
- 1
Calculate the difference from the mean
- 2
Adjust distance using variance or covariance
- 3
Calculate exponential decay
- 4
Divide by the normalization constant
Worked example
Work through the numbers — x=1 under a standard normal
A one-dimensional Gaussian with μ=0 and σ=1.
- 1
Standardized distance
- 2
Exponential term
- 3
Normalization
Result: Density at x=1 is approximately 0.242. A density value is not itself an event probability.
Sanity check
Checks
- Σ must be symmetric positive definite for the inverse and positive density to be stably defined.
- Obtain probabilities through interval integration, distinct from pointwise density.
Symbols
Symbols used in this equation
| Symbol | Meaning |
|---|---|
| Sum over all specified terms |
Reference-quality follow-up
Explore this calculation further
The source’s covariance denominator 1/M_c is a maximum-likelihood-style sample moment, distinct from the unbiased estimator’s 1/(M_c−1).
The example uses , class means m₁,m₂, and standard deviations σ₁,σ₂.
The one-dimensional Gaussian discriminant is printed at the source page’s bottom as follows.
Source notation requires review · PDF p. 10
Explanation and calculations 4 calculation steps · Numerical example · Checks included · Formula-specific lesson
The question this equation answers
What is class S's probability after observing x?
Key idea
Multiply the observation's class likelihood by the prior class proportion, then divide by p(x), summing all explanations.
Formula-specific lesson
Gaussian QDA → LDA → minimum-distance
Compare class-specific-covariance QDA, shared-covariance LDA, and identity-covariance/equal-prior minimum distance at one 2D point, keeping the suspect univariate Gaussian separate from its correction.
Calculation walkthrough
Calculation steps
- 1
Identify the prior
- 2
Calculate class likelihoods
- 3
Multiply them to form joint scores
- 4
Divide by the sum of all class scores
Worked example
Work through the numbers — Calculating a posterior
Suppose P(S)=0.4, p(x|S)=0.3, and p(x)=0.2.
- 1
Numerator
- 2
Normalization
Result: After observation, class S has probability 0.6.
Note: Calculate p(x) by summing p(x|S_c)P(S_c) across classes.
Sanity check
Checks
- Posterior probabilities must sum to one across classes.
- For classification alone, omitting the common denominator p(x) preserves rankings.
Symbols
Symbols used in this equation
| Symbol | Meaning |
|---|---|
| Standard deviation or sigmoid notation | |
| Event probability | |
| Probability density or conditional probability density |
Reference-quality follow-up
Explore this calculation further
Source exercise ??: sketch both classes’ one-dimensional densities.
Their boundary is a point x₀ where discriminant values agree.
Source equation · PDF p. 11
Explanation and calculations 4 calculation steps · Numerical example · Checks included · Formula-specific lesson
The question this equation answers
How plausible is observation x under mean μ and covariance Σ?
Key idea
Calculate a covariance-scaled distance from the mean and a normalization constant to obtain density.
Formula-specific lesson
Gaussian QDA → LDA → minimum-distance
Compare class-specific-covariance QDA, shared-covariance LDA, and identity-covariance/equal-prior minimum distance at one 2D point, keeping the suspect univariate Gaussian separate from its correction.
Calculation walkthrough
Calculation steps
- 1
Calculate the difference from the mean
- 2
Adjust distance using variance or covariance
- 3
Calculate exponential decay
- 4
Divide by the normalization constant
Worked example
Work through the numbers — x=1 under a standard normal
A one-dimensional Gaussian with μ=0 and σ=1.
- 1
Standardized distance
- 2
Exponential term
- 3
Normalization
Result: Density at x=1 is approximately 0.242. A density value is not itself an event probability.
Sanity check
Checks
- Σ must be symmetric positive definite for the inverse and positive density to be stably defined.
- Obtain probabilities through interval integration, distinct from pointwise density.
Reference-quality follow-up
Explore this calculation further
For equally frequent classes:
Source equation · PDF p. 11
Explanation and calculations 4 calculation steps · Numerical example · Checks included · Formula-specific lesson
The question this equation answers
What is class S's probability after observing x?
Key idea
Multiply the observation's class likelihood by the prior class proportion, then divide by p(x), summing all explanations.
Formula-specific lesson
Gaussian QDA → LDA → minimum-distance
Compare class-specific-covariance QDA, shared-covariance LDA, and identity-covariance/equal-prior minimum distance at one 2D point, keeping the suspect univariate Gaussian separate from its correction.
Calculation walkthrough
Calculation steps
- 1
Identify the prior
- 2
Calculate class likelihoods
- 3
Multiply them to form joint scores
- 4
Divide by the sum of all class scores
Worked example
Work through the numbers — Calculating a posterior
Suppose P(S)=0.4, p(x|S)=0.3, and p(x)=0.2.
- 1
Numerator
- 2
Normalization
Result: After observation, class S has probability 0.6.
Note: Calculate p(x) by summing p(x|S_c)P(S_c) across classes.
Sanity check
Checks
- Posterior probabilities must sum to one across classes.
- For classification alone, omitting the common denominator p(x) preserves rankings.
Symbols
Symbols used in this equation
| Symbol | Meaning |
|---|---|
| Event probability |
Reference-quality follow-up
Explore this calculation further
The decision boundary lies at the density curves’ intersection.
Source equation · PDF p. 11
Explanation and calculations 4 calculation steps · Numerical example · Checks included · Formula-specific lesson
The question this equation answers
How plausible is observation x under mean μ and covariance Σ?
Key idea
Calculate a covariance-scaled distance from the mean and a normalization constant to obtain density.
Formula-specific lesson
Gaussian QDA → LDA → minimum-distance
Compare class-specific-covariance QDA, shared-covariance LDA, and identity-covariance/equal-prior minimum distance at one 2D point, keeping the suspect univariate Gaussian separate from its correction.
Calculation walkthrough
Calculation steps
- 1
Calculate the difference from the mean
- 2
Adjust distance using variance or covariance
- 3
Calculate exponential decay
- 4
Divide by the normalization constant
Worked example
Work through the numbers — x=1 under a standard normal
A one-dimensional Gaussian with μ=0 and σ=1.
- 1
Standardized distance
- 2
Exponential term
- 3
Normalization
Result: Density at x=1 is approximately 0.242. A density value is not itself an event probability.
Sanity check
Checks
- Σ must be symmetric positive definite for the inverse and positive density to be stably defined.
- Obtain probabilities through interval integration, distinct from pointwise density.
Symbols
Symbols used in this equation
| Symbol | Meaning |
|---|---|
| Probability density or conditional probability density |
Reference-quality follow-up
Explore this calculation further
Taking a monotone increasing logarithm simplifies Gaussian exponentials.
Source equation · PDF p. 11 · Eq. (10)
Explanation and calculations 4 calculation steps · Numerical example · Checks included · Formula-specific lesson
The question this equation answers
What is class S's probability after observing x?
Key idea
Multiply the observation's class likelihood by the prior class proportion, then divide by p(x), summing all explanations.
Formula-specific lesson
Gaussian QDA → LDA → minimum-distance
Compare class-specific-covariance QDA, shared-covariance LDA, and identity-covariance/equal-prior minimum distance at one 2D point, keeping the suspect univariate Gaussian separate from its correction.
Calculation walkthrough
Calculation steps
- 1
Identify the prior
- 2
Calculate class likelihoods
- 3
Multiply them to form joint scores
- 4
Divide by the sum of all class scores
Worked example
Work through the numbers — Calculating a posterior
Suppose P(S)=0.4, p(x|S)=0.3, and p(x)=0.2.
- 1
Numerator
- 2
Normalization
Result: After observation, class S has probability 0.6.
Note: Calculate p(x) by summing p(x|S_c)P(S_c) across classes.
Sanity check
Checks
- Posterior probabilities must sum to one across classes.
- For classification alone, omitting the common denominator p(x) preserves rankings.
Symbols
Symbols used in this equation
| Symbol | Meaning |
|---|---|
| Event probability | |
| Probability density or conditional probability density |
Reference-quality follow-up
Explore this calculation further
Source equation · PDF p. 11
Explanation and calculations 4 calculation steps · Numerical example · Checks included · Formula-specific lesson
The question this equation answers
What is class S's probability after observing x?
Key idea
Multiply the observation's class likelihood by the prior class proportion, then divide by p(x), summing all explanations.
Formula-specific lesson
Gaussian QDA → LDA → minimum-distance
Compare class-specific-covariance QDA, shared-covariance LDA, and identity-covariance/equal-prior minimum distance at one 2D point, keeping the suspect univariate Gaussian separate from its correction.
Calculation walkthrough
Calculation steps
- 1
Identify the prior
- 2
Calculate class likelihoods
- 3
Multiply them to form joint scores
- 4
Divide by the sum of all class scores
Worked example
Work through the numbers — Calculating a posterior
Suppose P(S)=0.4, p(x|S)=0.3, and p(x)=0.2.
- 1
Numerator
- 2
Normalization
Result: After observation, class S has probability 0.6.
Note: Calculate p(x) by summing p(x|S_c)P(S_c) across classes.
Sanity check
Checks
- Posterior probabilities must sum to one across classes.
- For classification alone, omitting the common denominator p(x) preserves rankings.
Symbols
Symbols used in this equation
| Symbol | Meaning |
|---|---|
| Event probability |
Reference-quality follow-up
Explore this calculation further
Removing the class-independent −N/2 ln(2π) term gives the Gaussian discriminant under 0–1 loss.
Source equation · PDF p. 11 · Eq. (11)
Explanation and calculations 4 calculation steps · Numerical example · Checks included · Formula-specific lesson
The question this equation answers
What is class S's probability after observing x?
Key idea
Multiply the observation's class likelihood by the prior class proportion, then divide by p(x), summing all explanations.
Formula-specific lesson
Gaussian QDA → LDA → minimum-distance
Compare class-specific-covariance QDA, shared-covariance LDA, and identity-covariance/equal-prior minimum distance at one 2D point, keeping the suspect univariate Gaussian separate from its correction.
Calculation walkthrough
Calculation steps
- 1
Identify the prior
- 2
Calculate class likelihoods
- 3
Multiply them to form joint scores
- 4
Divide by the sum of all class scores
Worked example
Work through the numbers — Calculating a posterior
Suppose P(S)=0.4, p(x|S)=0.3, and p(x)=0.2.
- 1
Numerator
- 2
Normalization
Result: After observation, class S has probability 0.6.
Note: Calculate p(x) by summing p(x|S_c)P(S_c) across classes.
Sanity check
Checks
- Posterior probabilities must sum to one across classes.
- For classification alone, omitting the common denominator p(x) preserves rankings.
Symbols
Symbols used in this equation
| Symbol | Meaning |
|---|---|
| Event probability | |
| Total class count or a matrix; check context |
Reference-quality follow-up
Explore this calculation further
This is a quadratic function, or hyperquadric, in N-dimensional space. For Gaussian classes, pairwise quadratic decision boundaries achieve the Bayes classifier’s minimum mean risk.
If all covariances agree, , class-independent terms can be removed.
Source equation · PDF p. 11 · Eq. (12)
Explanation and calculations 4 calculation steps · Numerical example · Checks included · Formula-specific lesson
The question this equation answers
What is class S's probability after observing x?
Key idea
Multiply the observation's class likelihood by the prior class proportion, then divide by p(x), summing all explanations.
Formula-specific lesson
Gaussian QDA → LDA → minimum-distance
Compare class-specific-covariance QDA, shared-covariance LDA, and identity-covariance/equal-prior minimum distance at one 2D point, keeping the suspect univariate Gaussian separate from its correction.
Calculation walkthrough
Calculation steps
- 1
Identify the prior
- 2
Calculate class likelihoods
- 3
Multiply them to form joint scores
- 4
Divide by the sum of all class scores
Worked example
Work through the numbers — Calculating a posterior
Suppose P(S)=0.4, p(x|S)=0.3, and p(x)=0.2.
- 1
Numerator
- 2
Normalization
Result: After observation, class S has probability 0.6.
Note: Calculate p(x) by summing p(x|S_c)P(S_c) across classes.
Sanity check
Checks
- Posterior probabilities must sum to one across classes.
- For classification alone, omitting the common denominator p(x) preserves rankings.
Symbols
Symbols used in this equation
| Symbol | Meaning |
|---|---|
| Event probability | |
| Total class count or a matrix; check context |
Reference-quality follow-up
Explore this calculation further
The resulting discriminants and class boundaries are linear hyperplanes.
Further, if and every class has prior , the common prior term disappears too.
Source equation · PDF p. 11
Explanation and calculations 4 calculation steps · Numerical example · Checks included · Formula-specific lesson
The question this equation answers
How plausible is observation x under mean μ and covariance Σ?
Key idea
Calculate a covariance-scaled distance from the mean and a normalization constant to obtain density.
Formula-specific lesson
Gaussian QDA → LDA → minimum-distance
Compare class-specific-covariance QDA, shared-covariance LDA, and identity-covariance/equal-prior minimum distance at one 2D point, keeping the suspect univariate Gaussian separate from its correction.
Calculation walkthrough
Calculation steps
- 1
Calculate the difference from the mean
- 2
Adjust distance using variance or covariance
- 3
Calculate exponential decay
- 4
Divide by the normalization constant
Worked example
Work through the numbers — x=1 under a standard normal
A one-dimensional Gaussian with μ=0 and σ=1.
- 1
Standardized distance
- 2
Exponential term
- 3
Normalization
Result: Density at x=1 is approximately 0.242. A density value is not itself an event probability.
Sanity check
Checks
- Σ must be symmetric positive definite for the inverse and positive density to be stably defined.
- Obtain probabilities through interval integration, distinct from pointwise density.
Symbols
Symbols used in this equation
| Symbol | Meaning |
|---|---|
| Total class count or a matrix; check context |
Reference-quality follow-up
Explore this calculation further
This equals the minimum-distance discriminant in equation (2). Minimum-distance classification is therefore Bayes-optimal for Gaussian classes with identity covariances and equal priors.
These classes form equally shaped spherical clouds in N dimensions, separated by perpendicular-bisector hyperplanes between their centers.
● ● ● ● ●
5 points
●●●●●
●●●●●
●●●●●
●●●●●
●●●●●
25 points
5×5×5 grid
125 points
#2.7.3 Naive Bayes classifier
Assume individual features are conditionally independent given class S_c.
The source writes the resulting posterior relationship as follows.
Source notation requires review · PDF p. 12
Explanation and calculations 5 calculation steps · Numerical example · Checks included · Formula-specific lesson
The question this equation answers
Which class scores highest after observing several features?
Key idea
Multiply class priors by successive conditional feature likelihoods and compare classes.
Formula-specific lesson
When does omitting the prior change naive Bayes?
Calculate conditional feature-likelihood products, then compare MAP scores with and without priors.
Calculation walkthrough
Calculation steps
- 1
Prepare class priors
- 2
Calculate conditional feature likelihoods
- 3
Multiply all terms
- 4
Use sums of logarithms for numerical stability
- 5
Select the highest-scoring class
Worked example
Work through the numbers — Two features and two classes
S₁: prior=.6, likelihoods=.8,.5; S₂: prior=.4, likelihoods=.3,.9.
- 1
S₁ score
- 2
S₂ score
Result: Since 0.24>0.108, select S₁.
Sanity check
Checks
- A general MAP expression includes class prior P(S_c).
- Many multiplied features can underflow, so use log-domain calculations.
Symbols
Symbols used in this equation
| Symbol | Meaning |
|---|---|
| Multiply all specified terms | |
| Probability density or conditional probability density |
Reference-quality follow-up
Explore this calculation further
- Estimate separate univariate conditional densities instead of facing direct multivariate p(x|S_c) estimation.
- Accuracy can remain surprisingly high even when actual feature independence fails.
#2.8 Reinforcement learning
Some algorithms do not encounter only fixed datasets. Reinforcement learning interacts with the environment, creating feedback between experience and policy. The lecture places it outside this course’s scope and refers readers to Sutton–Barto and the DQN paper.
#2.9 The curse of dimensionality
Many learning problems become extremely difficult as data dimension grows: the curse of dimensionality.
The source describes high-dimensional data as having more features than observations, emphasizing the deeper issue of too little data relative to intrinsic dimension.
Source equation · PDF p. 12
Explanation Core explanation · Formula-specific lesson
The question this equation answers
What does this equation define or connect in the article?
Key idea
For equations without an actual calculation or derivation, briefly clarify context and symbols rather than attaching a generic procedure.
Formula-specific lesson
The cost of maintaining resolution as dimension grows
Connect r^N grid growth for r points per axis with MAI-P2-100's feature/observation imbalance.
Reference-quality follow-up
Explore this calculation further
More feature dimensions increase both computation and the training data needed for useful models.
#2.9.1 Dimensionality reduction as a major response
Dimensionality reduction reduces the variables considered, retaining important information while removing redundant or less relevant features.
- Principal component analysis (PCA)
- Linear discriminant analysis (LDA)
- t-distributed stochastic neighbor embedding (t-SNE)
#2.9.2 Does deep learning overcome dimensionality?
The lecture cites practical image-classification experience with deep networks handling inputs as large as 7,500 dimensions. CNNs and Transformers often outperform traditional methods on high-dimensional inputs.
It explicitly describes why deep learning often suffers less from dimensionality as an open question.
- Hypothesis 1: the manifold hypothesis and automatic feature extraction. High-dimensional observations may contain low-dimensional effective structure.
- Hypothesis 2: locality and symmetry. Structural inductive biases reduce the function space to search.
- Hypothesis 3: regularization. Weight decay, dropout, augmentation, and early stopping aid generalization.
The lecture concludes that deep learning mitigates dimensionality in many problems without becoming immune to all high-dimensional limitations.
Data quality, architecture, tuning, and compute still affect performance; some problems need feature engineering or additional tuning.
#References in the original source
- I. Goodfellow, Y. Bengio, A. Courville, Deep Learning, MIT Press, 2016 —
http://www.deeplearningbook.org.
- R. S. Sutton, A. G. Barto, Reinforcement Learning: An Introduction, 2nd ed., MIT Press, 2018.
- V. Mnih et al., “Human-level control through deep reinforcement learning,” Nature, no. 7540, pp. 529–533, Feb. 2015.
#Editorial and mathematical audit
#1. Completing ?? in equation (6)
Completed source placeholder · PDF p. 9 · Eq. (6) completed
Explanation and calculations 4 calculation steps · Numerical example · Checks included · Formula-specific lesson
The question this equation answers
What is class S's probability after observing x?
Key idea
Multiply the observation's class likelihood by the prior class proportion, then divide by p(x), summing all explanations.
Formula-specific lesson
Posterior normalization and Bayes risk
Normalize likelihood times prior by evidence, then use the same posterior to calculate actionwise conditional risks under 0–1 and asymmetric losses.
Calculation walkthrough
Calculation steps
- 1
Identify the prior
- 2
Calculate class likelihoods
- 3
Multiply them to form joint scores
- 4
Divide by the sum of all class scores
Worked example
Work through the numbers — Calculating a posterior
Suppose P(S)=0.4, p(x|S)=0.3, and p(x)=0.2.
- 1
Numerator
- 2
Normalization
Result: After observation, class S has probability 0.6.
Note: Calculate p(x) by summing p(x|S_c)P(S_c) across classes.
Sanity check
Checks
- Posterior probabilities must sum to one across classes.
- For classification alone, omitting the common denominator p(x) preserves rankings.
Symbols
Symbols used in this equation
| Symbol | Meaning |
|---|---|
| Event probability | |
| Probability density or conditional probability density |
Reference-quality follow-up
Explore this calculation further
Divide two factorizations of joint probability by p(x). The original blank is preserved, and this expression is separately registered as editorially-completed.
#2. Completing ?? in 0–1 risk
Completed source placeholder · PDF p. 9
Explanation and calculations 4 calculation steps · Numerical example · Checks included · Formula-specific lesson
The question this equation answers
What is class S's probability after observing x?
Key idea
Multiply the observation's class likelihood by the prior class proportion, then divide by p(x), summing all explanations.
Formula-specific lesson
Posterior normalization and Bayes risk
Normalize likelihood times prior by evidence, then use the same posterior to calculate actionwise conditional risks under 0–1 and asymmetric losses.
Calculation walkthrough
Calculation steps
- 1
Identify the prior
- 2
Calculate class likelihoods
- 3
Multiply them to form joint scores
- 4
Divide by the sum of all class scores
Worked example
Work through the numbers — Calculating a posterior
Suppose P(S)=0.4, p(x|S)=0.3, and p(x)=0.2.
- 1
Numerator
- 2
Normalization
Result: After observation, class S has probability 0.6.
Note: Calculate p(x) by summing p(x|S_c)P(S_c) across classes.
Sanity check
Checks
- Posterior probabilities must sum to one across classes.
- For classification alone, omitting the common denominator p(x) preserves rankings.
Symbols
Symbols used in this equation
| Symbol | Meaning |
|---|---|
| Event probability | |
| Probability density or conditional probability density |
Reference-quality follow-up
Explore this calculation further
The full sum equals p(x); only the c=c′ term is omitted under 0–1 loss, giving this expression.
#3. A missing square in the univariate Gaussian exponent
Mathematically corrected variant · PDF p. 10
Explanation and calculations 4 calculation steps · Numerical example · Checks included · Formula-specific lesson
The question this equation answers
What is class S's probability after observing x?
Key idea
Multiply the observation's class likelihood by the prior class proportion, then divide by p(x), summing all explanations.
Formula-specific lesson
Gaussian QDA → LDA → minimum-distance
Compare class-specific-covariance QDA, shared-covariance LDA, and identity-covariance/equal-prior minimum distance at one 2D point, keeping the suspect univariate Gaussian separate from its correction.
Calculation walkthrough
Calculation steps
- 1
Identify the prior
- 2
Calculate class likelihoods
- 3
Multiply them to form joint scores
- 4
Divide by the sum of all class scores
Worked example
Work through the numbers — Calculating a posterior
Suppose P(S)=0.4, p(x|S)=0.3, and p(x)=0.2.
- 1
Numerator
- 2
Normalization
Result: After observation, class S has probability 0.6.
Note: Calculate p(x) by summing p(x|S_c)P(S_c) across classes.
Sanity check
Checks
- Posterior probabilities must sum to one across classes.
- For classification alone, omitting the common denominator p(x) preserves rankings.
Symbols
Symbols used in this equation
| Symbol | Meaning |
|---|---|
| Standard deviation or sigmoid notation | |
| Event probability | |
| Probability density or conditional probability density |
Reference-quality follow-up
Explore this calculation further
The printed exponent numerator (x-m_c)^2 on PDF p. 10 has no visible square. A corrected variant accompanies it based on multivariate equation (9) and the standard univariate normal density.
#4. Priors in the naive Bayes equation
Mathematically corrected variant · PDF p. 12
Explanation and calculations 4 calculation steps · Numerical example · Checks included · Formula-specific lesson
The question this equation answers
What is class S's probability after observing x?
Key idea
Multiply the observation's class likelihood by the prior class proportion, then divide by p(x), summing all explanations.
Formula-specific lesson
When does omitting the prior change naive Bayes?
Calculate conditional feature-likelihood products, then compare MAP scores with and without priors.
Calculation walkthrough
Calculation steps
- 1
Identify the prior
- 2
Calculate class likelihoods
- 3
Multiply them to form joint scores
- 4
Divide by the sum of all class scores
Worked example
Work through the numbers — Calculating a posterior
Suppose P(S)=0.4, p(x|S)=0.3, and p(x)=0.2.
- 1
Numerator
- 2
Normalization
Result: After observation, class S has probability 0.6.
Note: Calculate p(x) by summing p(x|S_c)P(S_c) across classes.
Sanity check
Checks
- Posterior probabilities must sum to one across classes.
- For classification alone, omitting the common denominator p(x) preserves rankings.
Symbols
Symbols used in this equation
| Symbol | Meaning |
|---|---|
| Multiply all specified terms | |
| Event probability | |
| Probability density or conditional probability density |
Reference-quality follow-up
Explore this calculation further
The source expression applies unchanged only for equal priors or where P(S_c) is absorbed into a proportionality factor. General MAP classification retains the prior.
#5. Conditions for closed-form linear regression
Equation (1) assumes invertible XᵀX. Linear dependence or overparameterization with N>L requires a Moore–Penrose pseudoinverse, minimum-norm solution, or ridge regularization. The source equation itself is unchanged.
#6. Conditional-risk index conventions
The PDF describes R_{c′}(x) as the risk of assigning x to S_{c′} while writing loss L(a_c|S_{c′}) in the sum. Many textbooks reverse action and true-class indices, writing L(a_{c′}|S_c). We preserve the source notation and explicitly state its meaning.
#7. The covariance denominator
The PDF’s 1/M_c corresponds to Gaussian maximum likelihood or a second-moment-style estimator. Common unbiased covariance instead multiplies the centered sum by 1/(M_c−1). Different purposes do not make the source a typographical error.
#8. Scope of regularization
The lecture defines regularization as modifications intended to reduce generalization rather than training error. Modern usage includes augmentation, early stopping, and implicit optimization biases. Actual generalization improvement still depends on data, model, and training procedure.
#9. Destinations of “this link” in figures
Several captions say “this link” or “wiki,” but the PDF retains no active link annotations, so their URIs could not be reliably recovered. Visible source labels remain in the ledger; destinations are not guessed.
#Research update: August 18, 2026
The following is not PDF source material. It tracks extensions of the lecture’s questions through peer-reviewed 2025–2026 papers and official proceedings.
#1. Generalization extends beyond new samples from the same distribution
The i.i.d. framework remains a theoretical reference, but deployment changes sensors, regions, user groups, time, class ratios, and background correlations. Distinguish in-distribution performance, distribution shift, OOD generalization, and OOD detection.
- ICML 2025, peer-reviewed: Qiang et al. analyze how self-supervised learning can acquire spurious correlations and lose OOD generalization, proposing batch construction targeting a causal post-intervention distribution. PMLR paper
- ICML 2025, peer-reviewed: Harun et al. report a layerwise trade-off in which stronger neural collapse can help OOD detection yet hurt OOD generalization. Rejecting unfamiliar inputs and predicting well on them are different objectives. PMLR paper
- UAI 2025, peer-reviewed: Cai et al. distinguish ordinary out-of-sample robustness from OOD robustness with different training and test environments, showing that structural assumptions such as covariate or label shift may be necessary for nontrivial solutions. PMLR paper
Modern test sets should therefore include environment, temporal, group, and difficulty splits specifying anticipated changes, rather than one random holdout alone.
#2. Overparameterized models challenge “zero training error means overfitting”
Classical capacity diagrams suggest worsening test error after fitting training data exactly. Modern research studies double descent, where risk falls again beyond interpolation; benign overfitting, which fits noise yet generalizes; and implicit regularization, through which optimization selects particular solutions.
- ICML 2025, peer-reviewed: Xu and Chen analyze two-layer networks with class-dependent heterogeneous noise, showing how some long-tail noise can aid implicit feature learning. Benign versus harmful overfitting depends on data structure and learning dynamics, not parameter count alone. PMLR paper
- ICML 2025, peer-reviewed: Sakamoto and Sato analyze signal-to-noise conditions under which attention token selection generalizes despite fitting label noise. PMLR paper
- COLT 2026, peer-reviewed extended abstract: Wu et al. compare finite-sample risks of early-stopped GD, ridge, and online SGD instance by instance in linear regression. GD can dominate ridge within constants in some regimes, yet SGD can be polynomially better than optimally stopped GD in benign-overfitting-type problems. No regularizer is always superior. PMLR paper
The capacity diagram remains introductory, but examine function spaces, data spectra, margins, optimization paths, and stopping times too.
#3. Repeatedly reused validation data become training information
Define train/validation/test by information flow, not labels. Repeatedly consulting the same evaluation results during development fits the research process to that set, even without direct model gradients.
- NeurIPS 2025 Datasets & Benchmarks, peer-reviewed: TabArena proposes a living benchmark addressing static-benchmark defects and aging versions. Time budgets, ensembles, and validation choices substantially affect rankings; overrepresentation of some models in cross-model ensembles is linked to validation overfitting. Official proceedings
- NeurIPS 2025 Datasets & Benchmarks, peer-reviewed: The Scientific ML Common Task Framework proposes standardized tasks, realistic noise, limited data, and genuinely hidden tests to reduce weak baselines, reporting bias, and inconsistent evaluation. Official proceedings
- COLT 2026, peer-reviewed: Nachum et al. analyze k-fold CV as a data-reusing risk estimator and give unavoidable minimax MSE lower bounds when fold count grows with sample size. Cross-validation is not an infinitely precise evaluator. PMLR paper
Practical protocols should include group/patient/entity splits, temporal splits, fitting preprocessing and feature selection within folds, nested CV, one final test use, and disclosed seeds/folds.
#4. Accuracy alone does not describe risk: calibration and conformal prediction
Calibration asks whether predictions assigned probability 0.9 are correct about 90% of the time. Good aggregate calibration can still fail for subgroups, OOD inputs, or temporal changes. Conformal prediction provides finite-sample coverage under exchangeability or i.i.d. assumptions, which must be revisited under shift.
- ICML 2025, peer-reviewed: Van der Laan and Alaa extend Venn/Venn–Abers methods to general losses, proposing finite-sample set-valued calibration and subpopulation multicalibration. PMLR paper
- ICML 2025, peer-reviewed: Bashari, Sesia, and Romano analyze partly contaminated reference sets for conformal outlier detection. Under nonadversarial conditions, type-I error remains conservatively controlled while power declines. PMLR paper
- ALT 2026, peer-reviewed: Vovk quantifies efficiency universality of conformal predictors under i.i.d. randomness. This supports their strength, not unconditional validity under shift. PMLR paper
Alongside accuracy/F1, record reliability diagrams, ECE bin dependence, NLL/Brier scores, prediction-set coverage and size, subgroup coverage, and shift-specific performance.
#5. From observed dimension to effective dimension and inductive bias
Handling high-dimensional inputs does not eliminate dimensionality limits. Ask which low-dimensional structures models actually exploit and whether those structures persist in testing.
- ICML 2025, peer-reviewed: Dong et al. analyze weak-to-strong fine-tuning through ridgeless regression, explaining variance reduction through adaptation in a low-intrinsic-dimensional subspace. PMLR paper
- ICML 2025, peer-reviewed: Chen et al. show that low-to-high-dimensional generalization requires suitable inductive bias; architecture and (S)GD must select interpolators aligned with the target. PMLR paper
- COLT 2026, peer-reviewed open problem: Feldman, Kamath, and Srebro formally ask whether deep learning’s advantage over linear models is inherently distribution-dependent. Why deep learning mitigates dimensionality remains open in 2026. PMLR paper
Replace “many pixels, yet DNNs work” with measurements of intrinsic/effective dimension, architectural symmetry, locality, data spectra, and sample-to-dimension ratios.
#6. Classical classifiers remain strong baselines
SVMs, minimum-distance classifiers, LDA/QDA, and naive Bayes are not universal competitors to large foundation models, but remain important for small datasets, interpretability, probabilistic-assumption checks, calibration, and inexpensive deployment.
- Nearest class mean is Gaussian Bayes with shared identity covariance and equal priors.
- LDA gives Gaussian Bayes boundaries with shared covariance; QDA allows class-specific covariances.
- SVM kernels support convex optimization in fixed feature spaces, but kernel-matrix time and memory become bottlenecks at large sample counts.
- Even when independence fails, naive Bayes offers useful low-variance, fast-learning bias with limited data.
#Key terms
| Term | Meaning |
|---|---|
| Generalization | Maintaining low risk on unseen inputs; specify shift/OOD axes as well as i.i.d. evaluation. |
| Capacity and interpolation | Generalization depends on data spectra, margins, optimization paths, and implicit regularization, not just parameter count. |
| Validation leakage | Repeated use of validation/test results in development effectively fits those evaluation sets. |
| Calibration | Agreement between predicted probabilities and observed frequencies, checked by group, OOD condition, and time. |
| Conformal prediction | Set-valued predictions with finite-sample coverage under exchangeability; reassess assumptions and weighting under shift. |
| Intrinsic dimension | Effective degrees of freedom actually used rather than observed dimension; a candidate explanation for high-dimensional generalization. |
#Research questions and next experiments
- Split units in robot vision: how do frame-random, sequence, and subject/site splits change performance and calibration?
- Explaining post-interpolation generalization: when comparing ridge, early-stopped GD, and SGD with matched linear, kernel, and neural features, how do covariance spectra relate to risk curves?
- Shift-aware uncertainty: which layers, representations, and regularizers form a Pareto frontier when seeking ID calibration, OOD detection, and conformal coverage together?
#Recent research references
- Qiang et al., On the Out-of-Distribution Generalization of Self-Supervised Learning, ICML 2025.
- Harun et al., Controlling Neural Collapse Enhances Out-of-Distribution Detection and Transfer Learning, ICML 2025.
- Xu & Chen, Rethinking Benign Overfitting in Two-Layer Neural Networks, ICML 2025.
- Wu et al., Risk Comparisons in Linear Regression: Implicit Regularization Dominates Explicit Regularization, COLT 2026.
- Nachum et al., Minimax Limits of k-Fold Cross-Validation via Majority, COLT 2026.
- Van der Laan & Alaa, Generalized Venn and Venn-Abers Calibration with Applications in Conformal Prediction, ICML 2025.
- Vovk, Universality of Conformal Prediction under the Assumption of Randomness, ALT 2026.
- Dong et al., Discrepancies are Virtue: Weak-to-Strong Generalization through Lens of Intrinsic Dimension, ICML 2025.
- Feldman, Kamath, Srebro, Is the Power of Deep Learning over Linear Models Inherently Distribution Dependent?, COLT 2026.