Kaijing Ma

Paper Notes

Deep Learning

Paper Notes

Ian Goodfellow, Yoshua Bengio, Aaron Courville

MIT Press, 2016 · Chapter 5 Part 2 only: 5.4 to 5.6, printed p. 120 at heading 5.4 through p. 137 before heading 5.7; Algorithm 5.1 on p. 121 excluded; official online edition checked October 30, 2026; no explicit web revision identifier

Official Chapter 5 HTML, limited to the stated scope

Chapter 5 Part 2: estimation and uncertainty in 5.4 to 5.6

This unit fully covers 5.4, 5.5 and 5.6, including 5.4.1 to 5.4.5, 5.5.1 to 5.5.2 and 5.6.1. It begins at the 5.4 heading on printed p. 120 and ends immediately before the 5.7 heading on p. 137. The floated Algorithm 5.1 on p. 121 belongs to the previous unit and is excluded here. The rest of Chapter 5, the whole book and the user’s reading passes remain incomplete.

The central question is how finite data support judgments about an unknown distribution. A point estimate summarizes data with a value or function. Bias and variance describe its behavior over repeated samples. Maximum likelihood provides a principle for constructing estimators. Bayesian prediction retains parameter uncertainty. MAP compresses the posterior back to a point.

Scope and argument map. This is an original note table, not an experimental table from the book.
LayerSource locationAnalytical question
Estimator properties5.4, pp. 120 to 129Where does randomness enter, and how does error decompose?
Maximum likelihood5.5, pp. 129 to 133When do log likelihood, cross entropy and MSE have the same optimum?
Bayesian inference and MAP5.6, pp. 133 to 137What do a prior, posterior integration and regularization each change?

The source is the official online Chapter 5 of the 2016 MIT Press edition. These are original explanations and derivations. Source definitions, equation numbers, pages and Figure 5.6 are identified. Additional proofs, numerical examples and technical conditions are marked as note analysis. The external works cited by the book were not each read independently, and no experiment was replicated.

1 / 26Chapter 5 Part 2 only: 5.4 to 5.6, printed p. 120 at heading 5.4 through p. 137 before heading 5.7; Algorithm 5.1 on p. 121 excluded; official online edition checked October 30, 2026; no explicit web revision identifier

Point estimates and the sampling distribution of an estimator

Section 5.4.1, pp. 120 to 122, separates the true parameter θ from its estimator θ̂ₘ. The frequentist model treats θ as fixed but unknown and the training set D as random. Once D is observed, the computed value is fixed. Across possible training sets, g(D) is a random variable. The definition alone guarantees neither accuracy nor a valid parameter value.

D=(x⁽¹⁾,…,x⁽ᵐ⁾), x⁽ⁱ⁾ i.i.d.; θ̂ₘ=g(D).

Source Eq. 5.19, printed p. 121; data notation added by the note.

Function estimation is also point estimation. At a fixed input x, a random training set produces a random value f̂_D(x). The book writes y=f(x)+ε for the unpredictable component. Note qualification: under squared loss, choosing f(x)=E[y|x] gives E[ε|x]=0. An arbitrary f need not be the optimal squared loss predictor.

2 / 26Chapter 5 Part 2 only: 5.4 to 5.6, printed p. 120 at heading 5.4 through p. 137 before heading 5.7; Algorithm 5.1 on p. 121 excluded; official online edition checked October 30, 2026; no explicit web revision identifier

Bias: the right average does not ensure an accurate individual estimate

Section 5.4.2, p. 122, defines bias as the difference between the sampling expectation and the true parameter. Unbiasedness describes the estimation procedure. It does not say that an observed estimate has zero error. Asymptotic unbiasedness only requires bias to vanish with m. It does not directly restrict dispersion.

bias(θ̂ₘ)=E_D[θ̂ₘ]−θ; unbiased: E_D[θ̂ₘ]=θ; asymptotically unbiased: limₘ→∞ E_D[θ̂ₘ]=θ.

Source Eq. 5.20 and following definitions, printed p. 122.

The Bernoulli and Gaussian mean examples use the same mechanism: linearity of expectation. Each sample has the same mean, so the sample mean is unbiased. Independence matters for the later variance calculation. This unbiasedness proof only needs a common finite mean. Equations 5.21 to 5.28 give the Bernoulli case. Equations 5.29 to 5.35 give the Gaussian density and mean calculation.

P(x;θ)=θˣ(1−θ)¹⁻ˣ, x∈{0,1}; θ̂ₘ=(1/m)Σᵢx⁽ⁱ⁾; E[θ̂ₘ]=(1/m)ΣᵢE[x⁽ⁱ⁾]=θ.

Source Eqs. 5.21 to 5.28, printed p. 123; intermediate equalities compressed.

p(x;μ,σ²)=(2πσ²)⁻¹ᐟ² exp(−(x−μ)²/(2σ²)); μ̂ₘ=(1/m)Σᵢx⁽ⁱ⁾; E[μ̂ₘ]=μ.

Source Eqs. 5.29 to 5.35, printed pp. 123 to 124; intermediate equalities compressed.

3 / 26Chapter 5 Part 2 only: 5.4 to 5.6, printed p. 120 at heading 5.4 through p. 137 before heading 5.7; Algorithm 5.1 on p. 121 excluded; official online edition checked October 30, 2026; no explicit web revision identifier

Estimating population variance and the missing degree of freedom

Pages 124 to 125 compare two variance estimators. Fitting the mean on the same data reduces the residual sum of squares. Dividing by m underestimates σ² on average. Dividing by m−1 gives an unbiased estimator. Here m>1, the samples are i.i.d., and the second moment is finite.

σ̂²ₘ=(1/m)Σᵢ(x⁽ⁱ⁾−μ̂ₘ)²; E[σ̂²ₘ]=((m−1)/m)σ²; bias(σ̂²ₘ)=−σ²/m. σ̃²ₘ=(1/(m−1))Σᵢ(x⁽ⁱ⁾−μ̂ₘ)²; E[σ̃²ₘ]=σ².

Source Eqs. 5.36 to 5.44, printed pp. 124 to 125.

The following note derivation fills in the omitted algebra. Expanding around the true mean and using Σᵢ(x⁽ⁱ⁾−μ)=m(μ̂ₘ−μ) yields a subtraction of m(μ̂ₘ−μ)². The two expected terms are mσ² and σ². This proof does not need a Gaussian distribution. Gaussian assumptions matter for the exact distribution and MSE comparison later.

Σᵢ(x⁽ⁱ⁾−μ̂ₘ)²=Σᵢ(x⁽ⁱ⁾−μ)²−m(μ̂ₘ−μ)²; E[Σᵢ(x⁽ⁱ⁾−μ̂ₘ)²]=mσ²−m(σ²/m)=(m−1)σ².

Original note derivation of source Eq. 5.39, printed p. 124.

4 / 26Chapter 5 Part 2 only: 5.4 to 5.6, printed p. 120 at heading 5.4 through p. 137 before heading 5.7; Algorithm 5.1 on p. 121 excluded; official online edition checked October 30, 2026; no explicit web revision identifier

Standard error measures estimator variation

Section 5.4.3 defines estimator variance and standard error through repeated sampling of the entire dataset. For i.i.d. samples, the mean has variance σ²/m and standard error σ/√m. The observations still have standard deviation σ. Increasing sample size by a factor of 4 halves the standard error of the mean. This is a formula consequence, not an experimental result.

SE(θ̂ₘ)=√Var_D(θ̂ₘ); Var(μ̂ₘ)=σ²/m; SE(μ̂ₘ)=σ/√m. For Bernoulli data: Var(θ̂ₘ)=θ(1−θ)/m.

Source Eqs. 5.45 to 5.46 and 5.48 to 5.52, printed pp. 125 to 127.

Note analysis: independence removes covariance terms between observations. Time series, repeated subjects and overlapping data splits often violate this condition. Substituting their record count for m can understate uncertainty. The book also notes that taking the square root of an unbiased variance estimate still tends to underestimate the standard deviation. The square root is concave, so unbiasedness does not survive this nonlinear transformation.

Var(μ̂ₘ)=(1/m²)[ΣᵢVar(x⁽ⁱ⁾)+2Σᵢ<ⱼCov(x⁽ⁱ⁾,x⁽ʲ⁾)]. E[√σ̃²ₘ]≤√E[σ̃²ₘ]=σ.

Original covariance expansion and Jensen explanation of source discussion, printed p. 126.

5 / 26Chapter 5 Part 2 only: 5.4 to 5.6, printed p. 120 at heading 5.4 through p. 137 before heading 5.7; Algorithm 5.1 on p. 121 excluded; official online edition checked October 30, 2026; no explicit web revision identifier

The 95% interval and repeated sampling coverage

Page 126 uses a normal approximation from the central limit theorem and the factor 1.96. The frequentist 95% refers to repeated datasets: about 95% of the constructed intervals cover the fixed true value. Whether one computed interval covers that value is already determined. Coverage is not automatically a posterior probability. The usual approximation here assumes i.i.d. samples, finite nonzero variance and a sufficiently large sample. Small samples or heavy tailed losses can make it unreliable.

CI₉₅≈(μ̂ₘ−1.96 SE(μ̂ₘ), μ̂ₘ+1.96 SE(μ̂ₘ)).

Source Eq. 5.47, printed p. 126; approximation sign makes the CLT condition explicit.

For a fixed classifier on an independent test set, an error indicator is Bernoulli. This interval measures test sampling error and excludes variation from retraining or model selection. The following hypothetical note example substitutes the observed rate into the standard error formula. It reports no real model performance. The rate stays fixed while interval precision changes with m.

Original hypothetical arithmetic: SE=√(0.10×0.90/m), with endpoints computed using 1.96.
Assumed error ratemPlug in SEApproximate 95% interval
0.101000.030(0.0412, 0.1588)
0.104000.015(0.0706, 0.1294)

The book describes nonoverlapping 95% intervals as a common comparison practice. This is not a universal test. Note analysis: losses from two models on the same test examples are paired, and the standard error of their difference depends on covariance. Repeated model selection changes the inference. Overlapping training sets in cross validation also prevent fold errors from being independent repetitions.

6 / 26Chapter 5 Part 2 only: 5.4 to 5.6, printed p. 120 at heading 5.4 through p. 137 before heading 5.7; Algorithm 5.1 on p. 121 excluded; official online edition checked October 30, 2026; no explicit web revision identifier

The MSE decomposition permits a biased estimator to win

Section 5.4.4, p. 127, uses parameter MSE to combine bias and variance. The decomposition below assumes a finite estimator second moment. With a=E_D[θ̂ₘ], the error becomes (θ̂ₘ−a)+(a−θ). The cross term has zero expectation because E_D[θ̂ₘ−a]=0. This derives Equations 5.53 to 5.54.

MSE(θ̂ₘ)=E_D[(θ̂ₘ−θ)²]=Var_D(θ̂ₘ)+(E_D[θ̂ₘ]−θ)².

Source Eqs. 5.53 to 5.54, printed p. 127.

This parameter MSE has no extra observation noise term. The prediction version below is note analysis. It assumes an independent new observation y=f(x)+ε, E[ε|x]=0 and noise independent of the training set given x. At a fixed x, prediction MSE adds squared model bias, variance across training sets and irreducible noise variance. Overall risk also averages over the input distribution.

E_D,ε[(f̂_D(x)−y)²|x]=(E_D[f̂_D(x)]−f(x))²+Var_D(f̂_D(x))+Var(ε|x).

Original note derivation extending source Eqs. 5.53 to 5.54; the noise conditions are stated in the adjacent paragraph.

On p. 127, the book identifies cross validation as a common practical way to negotiate the bias and variance tradeoff. Parameter MSE depends on unknown θ and a repeated sampling expectation, so one dataset usually cannot reveal it directly. Note qualification: cross validation estimates prediction loss on examples excluded from each fit and helps compare learning procedures. It does not directly measure parameter bias and variance separately. Prediction loss also need not equal parameter MSE.

7 / 26Chapter 5 Part 2 only: 5.4 to 5.6, printed p. 120 at heading 5.4 through p. 137 before heading 5.7; Algorithm 5.1 on p. 121 excluded; official online edition checked October 30, 2026; no explicit web revision identifier

Original example: unbiased variance estimation can have larger MSE

The book explains that unbiasedness does not guarantee the best estimator. The following note derivation quantifies this for its Gaussian example. For m independent Gaussian samples, the residual sum of squares divided by σ² has a χ² distribution with m−1 degrees of freedom. This gives exact variances and MSEs for both variance estimators. Here σ⁴ means (σ²)².

Q=Σᵢ(x⁽ⁱ⁾−μ̂ₘ)²/σ² ∼ χ²ₘ₋₁; E[Q]=m−1; Var(Q)=2(m−1). MSE(σ̂²ₘ)=(2m−1)σ⁴/m²; MSE(σ̃²ₘ)=2σ⁴/(m−1).

Original note derivation for Gaussian samples; source estimators are Eqs. 5.36 and 5.40. The χ² result is a mathematical addition, not a book experiment.

Original arithmetic, without simulation or measurement. Gaussian assumptions give the exact MSE. The comparison does not claim that denominator m is optimal among all estimators.
Estimator with m=5Bias/σ²Variance/σ⁴MSE/σ⁴
Denominator m−0.200.320.36
Denominator m−100.500.50

The biased estimator adds 0.04σ⁴ in squared bias and removes 0.18σ⁴ in variance. Its total MSE is lower by 0.14σ⁴. The example shows why the criterion matters. A requirement for unbiased reporting defines a different objective. Under squared error, unbiasedness is one property to balance.

8 / 26Chapter 5 Part 2 only: 5.4 to 5.6, printed p. 120 at heading 5.4 through p. 137 before heading 5.7; Algorithm 5.1 on p. 121 excluded; official online edition checked October 30, 2026; no explicit web revision identifier

Figure 5.6: a schematic relationship between capacity, bias and variance

On p. 128, the book connects estimation error to underfitting and overfitting. As capacity varies along one direction, bias often decreases while estimator variance increases. Risk may then be lowest at an intermediate capacity. The figure is schematic. It provides no dataset, numerical coordinates, training protocol or measurement error.

Source Figure 5.6。 The blue, green and red curves show conceptual trends for bias, variance and generalization error. Optimal capacity depends on the task, sample size, model family and training procedure. The figure supplies no reproducible numerical values and does not establish a universal U shape for all modern models. Ian Goodfellow, Yoshua Bengio and Aaron Courville, Deep Learning, MIT Press, 2016, Figure 5.6, printed p. 128, official online edition. Official Chapter 5. CC BY-NC-ND 4.0. Surrounding prose is excluded. Figure content and original English labels are unchanged.

Note interpretation: the bias trend is not a theorem for every ordering of model capacity. Actual error also depends on optimization, regularization and the data distribution. This unit includes no new deep learning experiment. The schematic therefore supports no claim about a particular network width, sample threshold or current performance.

9 / 26Chapter 5 Part 2 only: 5.4 to 5.6, printed p. 120 at heading 5.4 through p. 137 before heading 5.7; Algorithm 5.1 on p. 121 excluded; official online edition checked October 30, 2026; no explicit web revision identifier

Consistency makes the probability of a fixed estimation error vanish

Section 5.4.5, pp. 128 to 129, defines weak consistency as convergence in probability. For every fixed tolerance ε>0, the probability of an error larger than ε tends to zero as m grows. Strong consistency requires almost sure convergence. Both describe a sequence of procedures, rather than the empirical score from one dataset.

θ̂ₘ →ₚ θ ⇔ for every ε>0, P(|θ̂ₘ−θ|>ε)→0. Strong consistency: P(limₘ→∞ θ̂ₘ=θ)=1.

Source Eq. 5.55 and adjacent weak and strong consistency definitions, printed pp. 128 to 129.

The book’s counterexample estimates a Gaussian mean using only the first sample. It is unbiased for every m, but its variance remains σ². More data never change the estimate. The sample mean instead has variance σ²/m. Chebyshev’s inequality then proves consistency. This added proof assumes i.i.d. samples and finite variance.

θ̂ₘ=x⁽¹⁾: E[θ̂ₘ]=μ, Var(θ̂ₘ)=σ². μ̂ₘ=(1/m)Σᵢx⁽ⁱ⁾: P(|μ̂ₘ−μ|>ε)≤σ²/(mε²)→0.

Source first sample counterexample, printed p. 129; Chebyshev bound is original note analysis.

10 / 26Chapter 5 Part 2 only: 5.4 to 5.6, printed p. 120 at heading 5.4 through p. 137 before heading 5.7; Algorithm 5.1 on p. 121 excluded; official online edition checked October 30, 2026; no explicit web revision identifier

A technical qualification: consistency alone does not imply convergence of expectations

Page 129 states that consistency makes bias vanish. This is reasonable for many common estimators with controlled moments, but it is not an unconditional theorem. Convergence in probability controls the probability of large errors. Rare outputs with very large magnitudes can still dominate the expectation. Convergence of expectations needs an additional condition such as uniform integrability.

The following mathematical counterexample is note analysis. A data variable U has distribution Uniform(0,1), the target is 0, and Tₘ=m·1{U≤1/m}. Then Tₘ converges in probability to 0 while its expectation stays at 1. This is a logical counterexample, not a proposed learning algorithm. Uniform boundedness excludes this tail problem, as it does for a Bernoulli sample mean in [0,1].

Tₘ=m·1{U≤1/m}; P(|Tₘ|>ε)=1/m for m>ε; E[Tₘ]=m(1/m)=1. Sufficient condition: E[(θ̂ₘ−θ)²]→0 ⇒ θ̂ₘ→ₚθ and E[θ̂ₘ]→θ.

Original counterexample and sufficient condition qualifying the prose on printed p. 129.

11 / 26Chapter 5 Part 2 only: 5.4 to 5.6, printed p. 120 at heading 5.4 through p. 137 before heading 5.7; Algorithm 5.1 on p. 121 excluded; official online edition checked October 30, 2026; no explicit web revision identifier

Maximum likelihood compares parameters with the data held fixed

Section 5.5, pp. 129 to 130, chooses parameters that make the observed data most likely. A likelihood holds X fixed and varies θ. It is not a probability distribution over θ. Independent samples factor the joint likelihood into a product. The monotone logarithm preserves the optimum, avoids underflow from multiplying many small numbers, and converts the product to a sum.

θ_ML=argmax_θ p_model(X;θ)=argmax_θ ∏ᵢp_model(x⁽ⁱ⁾;θ)=argmax_θ Σᵢlog p_model(x⁽ⁱ⁾;θ)=argmax_θ Eₓ∼p̂_data[log p_model(x;θ)].

Source Eqs. 5.56 to 5.59, printed pp. 129 to 130; the last expectation divides the sum by m.

Note derivation: for Bernoulli data, k=Σᵢx⁽ⁱ⁾ counts the successes. An interior optimum satisfies k/θ−(m−k)/(1−θ)=0, giving θ̂=k/m. If k=0 or k=m, the optimum lies at an endpoint of [0,1]. Restricting the domain to (0,1) leaves a supremum that may not be attained. The argmax notation therefore has an existence condition.

ℓ(θ)=k log θ+(m−k)log(1−θ); ℓ′(θ)=k/θ−(m−k)/(1−θ); θ̂_ML=k/m for 0<k<m.

Original Bernoulli MLE derivation from source Eqs. 5.21 and 5.56 to 5.58.

12 / 26Chapter 5 Part 2 only: 5.4 to 5.6, printed p. 120 at heading 5.4 through p. 137 before heading 5.7; Algorithm 5.1 on p. 121 excluded; official online edition checked October 30, 2026; no explicit web revision identifier

KL divergence, cross entropy and NLL share an optimum under stated conditions

For discrete distributions with compatible support, the decomposition on p. 130 is direct. The empirical distribution is fixed, so E log p̂_data does not vary with θ. Minimizing KL therefore minimizes average NLL. Cross entropy is not specific to Bernoulli or softmax models. It is defined relative to distributions and a logarithmic score. Assigning zero probability to an observed event gives infinite NLL.

D_KL(p̂_data∥p_θ)=E_p̂[log p̂_data]−E_p̂[log p_θ]; H(p̂_data,p_θ)=−E_p̂[log p_θ]=H(p̂_data)+D_KL(p̂_data∥p_θ).

Source Eqs. 5.60 to 5.61, printed p. 130; the entropy identity is note notation for the discrete case.

Continuous data need a qualification. An atomic empirical measure is generally singular relative to a continuous model measure. Its literal KL is not a finite quantity available for this subtraction. The book’s expression is a common formal interpretation in that setting. Evaluating log p_θ(x) at observed points and averaging is still well defined. For population densities with a common base measure and finite expectations, the population cross entropy and KL identity also holds.

A continuous density can exceed 1, so NLL can be negative, as the book notes. For example, a note calculation gives density about 3.989 for N(0,0.01) at x=0, with single point NLL about −1.384. Interval probabilities still lie in [0,1] because they integrate the density. Density values and their NLL depend on measurement units. KL remains invariant under the same invertible change of variables for both distributions.

13 / 26Chapter 5 Part 2 only: 5.4 to 5.6, printed p. 120 at heading 5.4 through p. 137 before heading 5.7; Algorithm 5.1 on p. 121 excluded; official online edition checked October 30, 2026; no explicit web revision identifier

When a conditional Gaussian likelihood is equivalent to MSE

Section 5.5.1, pp. 131 to 132, applies the principle to p(y|x;θ). The book chooses a conditional Gaussian with the linear prediction as its mean and a fixed positive variance σ². With independent examples, only the residual sum of squares depends on w. Its coefficient is fixed and positive, so maximum likelihood and minimum MSE give the same w.

θ_ML=argmax_θ P(Y|X;θ)=argmax_θ Σᵢlog P(y⁽ⁱ⁾|x⁽ⁱ⁾;θ). p(y|x;w)=N(y;ŷ(x;w),σ²), σ²>0 fixed.

Source Eqs. 5.62 to 5.63 and Gaussian model definition, printed p. 131.

ℓ(w)=−m log σ−(m/2)log(2π)−(1/(2σ²))Σᵢ(ŷ⁽ⁱ⁾−y⁽ⁱ⁾)²; MSE_train=(1/m)Σᵢ(ŷ⁽ⁱ⁾−y⁽ⁱ⁾)². NLL(w)=C+(m/(2σ²))MSE_train(w).

Source Eqs. 5.64 to 5.66, printed pp. 131 to 132; the final affine relation is note algebra.

The objective values differ while their optima agree. The argument does not require a mean function that is linear in raw x. A nonlinear mean with fixed Gaussian variance also yields squared loss. Note analysis: known variances that differ by example produce weighted squared error. Learning the variance requires retaining the log σ term. A Laplace or Bernoulli noise model produces a different loss.

14 / 26Chapter 5 Part 2 only: 5.4 to 5.6, printed p. 120 at heading 5.4 through p. 137 before heading 5.7; Algorithm 5.1 on p. 121 excluded; official online edition checked October 30, 2026; no explicit web revision identifier

MLE consistency depends on specification and identifiability

Section 5.5.2, p. 132, identifies two key conditions: the model family contains the true distribution, and exactly one parameter value represents it. These are correct specification and identifiability. If several θ values give the same distribution, recovering that distribution does not uniquely recover its generating parameter.

Note qualification: these two conditions are not a complete sufficient set for every model. Suitable continuity, integrability, parameter space or extremum conditions and convergence of the empirical criterion are also needed. An optimizer that returns a local stationary point need not return the global MLE. Under misspecification, an existing limit usually optimizes the population log score within the family. It need not recover the true distribution.

Note analysis of the source conditions. No finite sample fitted model is declared consistent from this table.
IssuePotentially recovered objectLimit
Correct specification and identifiabilityUnique θTechnical conditions for consistency still apply
Correct distribution without identifiabilityp_θθ may remain nonunique
MisspecificationBest population log score in the familyp_data is generally unrecoverable
15 / 26Chapter 5 Part 2 only: 5.4 to 5.6, printed p. 120 at heading 5.4 through p. 137 before heading 5.7; Algorithm 5.1 on p. 121 excluded; official online edition checked October 30, 2026; no explicit web revision identifier

Asymptotic efficiency needs regularity and does not settle finite sample risk

Pages 132 to 133 motivate MLE through statistical efficiency. The note restricts this claim to regular, identifiable, correctly specified finite dimensional models. With nonsingular per observation Fisher information I(θ) and suitable smoothness and moment conditions, the MLE is often asymptotically normal with covariance proportional to 1/m. This describes a limit rather than an exact distribution at every sample size.

√m(θ̂_ML−θ) ⇒ N(0,I(θ)⁻¹); Cov(θ̂_ML)≈I(θ)⁻¹/m. I(θ)=E_θ[(∇_θ log p_θ(x))(∇_θ log p_θ(x))ᵀ].

Original regular model formulation qualifying source discussion, printed pp. 132 to 133; not a numbered book formula.

The book summarizes the Cramér Rao argument as excluding a lower MSE for any consistent estimator. That statement needs qualification. The classical finite sample bound first concerns unbiased estimators under its assumptions. Asymptotic efficiency comparisons also restrict the estimator class, for example to regular estimators. Consistency alone does not exclude constructions that are superefficient at special parameter values. MLE is therefore not universally optimal across all models, parameter points and losses.

The book then returns to finite data. Regularization can accept bias to reduce variance. An asymptotic result cannot decide whether that trade is useful at a particular m. The answer depends on the loss, sampling conditions, prior assumptions and validation. The source provides no sample size threshold or performance table here.

16 / 26Chapter 5 Part 2 only: 5.4 to 5.6, printed p. 120 at heading 5.4 through p. 137 before heading 5.7; Algorithm 5.1 on p. 121 excluded; official online edition checked October 30, 2026; no explicit web revision identifier

Two uncertainty distributions: sampling variation and a parameter posterior

Section 5.6, p. 133, changes the interpretation of uncertainty. Frequentist analysis fixes θ and studies the estimator distribution induced by random D. Bayesian inference conditions on observed D and uses a distribution over θ to express uncertainty in knowledge. This does not require the physical process to redraw θ before every measurement.

Original comparison table. Confidence and credible intervals condition on different objects.
DistributionWhat variesQuestion answered
Sampling distributionRepeated D and g(D)How does the procedure behave across samples?
Prior p(θ)Uncertainty about θ before the current dataWhat preferences are already expressed?
Posterior p(θ|D)Uncertainty about θ after DWhich parameters agree with the data and prior?
Posterior predictive p(x_new|D)A future observationHow does parameter uncertainty affect prediction?

The book discusses broad uniform or Gaussian priors and preferences for small weights or smooth functions. Note analysis: broad does not mean uninformative. A uniform prior depends on coordinates. A Gaussian parameter prior also induces function preferences through the parameterization. Its meaning depends on input scale, parameter interpretation and the likelihood.

17 / 26Chapter 5 Part 2 only: 5.4 to 5.6, printed p. 120 at heading 5.4 through p. 137 before heading 5.7; Algorithm 5.1 on p. 121 excluded; official online edition checked October 30, 2026; no explicit web revision identifier

Bayes’ rule and posterior prediction average distributions

Given a prior and likelihood, Bayes’ rule on p. 133 multiplies them and normalizes by the evidence p(D). The denominator must be finite and positive. The posterior predictive on p. 134 integrates over parameters with posterior weights. Plugging the posterior mean parameter into a model generally differs from integrating its full predictive distribution.

p(θ|D)=p(D|θ)p(θ)/p(D); p(D)=∫p(D|θ)p(θ)dθ. p(x_new|D)=∫p(x_new|θ)p(θ|D)dθ.

Source Eqs. 5.67 to 5.68, printed pp. 133 to 134; evidence integral is explicit note notation.

Integration carries remaining parameter uncertainty into future observations. The prior shifts mass toward preferred regions. The book describes small data generalization benefits and large data computational costs as broad experience, without a benchmark here. These are not guarantees for every prior, model or dataset size. A poor prior or likelihood can also produce overconfidence.

The book says data usually concentrate the posterior. This common pattern does not mean every possible dataset must reduce differential entropy. Note analysis: a posterior can be multimodal, and its scale or tails can change. The model family, prior, data and computational approximation jointly determine the result.

18 / 26Chapter 5 Part 2 only: 5.4 to 5.6, printed p. 120 at heading 5.4 through p. 137 before heading 5.7; Algorithm 5.1 on p. 121 excluded; official online edition checked October 30, 2026; no explicit web revision identifier

Bayesian linear regression separates covariance from precision

The example on p. 135 has x∈Rⁿ, w∈Rⁿ, scalar y and a design matrix X∈Rᵐˣⁿ. The book fixes observation noise variance at 1, so the likelihood covariance is the m×m identity. The prior is N(μ₀,Λ₀). Here Λ₀ is a covariance, and Λ₀⁻¹ is a precision. Other texts may use the same symbol differently.

ŷ=wᵀx; ŷ_train=Xw; p(y|X,w)=N(y;Xw,Iₘ) ∝ exp(−(1/2)(y−Xw)ᵀ(y−Xw)).

Source Eqs. 5.69 to 5.72, printed p. 135.

p(w)=N(w;μ₀,Λ₀) ∝ exp(−(1/2)(w−μ₀)ᵀΛ₀⁻¹(w−μ₀)); Λ₀ positive definite. p(w|X,y)∝p(y|X,w)p(w).

Source Eqs. 5.73 to 5.74, printed p. 135; positive definiteness states the ordinary Gaussian inverse condition.

The footnote says a diagonal Λ₀=diag(λ₀) is common without a reason for another covariance structure. A diagonal prior does not guarantee a diagonal posterior. The likelihood introduces feature coupling through XᵀX. A positive definite prior also makes posterior precision invertible when X lacks full column rank.

19 / 26Chapter 5 Part 2 only: 5.4 to 5.6, printed p. 120 at heading 5.4 through p. 137 before heading 5.7; Algorithm 5.1 on p. 121 excluded; official online edition checked October 30, 2026; no explicit web revision identifier

Completing the square adds data and prior precision

Page 136 collects the quadratic and linear terms in w. Expanding the likelihood residual and prior distance gives −1/2[wᵀAw−2bᵀw], up to terms independent of w. Positive definite A permits completion of the square around A⁻¹b. Constants may be dropped for this unnormalized posterior. Evidence calculations still need the normalization factors.

A=XᵀX+Λ₀⁻¹; b=Xᵀy+Λ₀⁻¹μ₀. log p(w|X,y)=−(1/2)[wᵀAw−2bᵀw]+C.

Source Eqs. 5.75 to 5.76, printed p. 136; A and b are note abbreviations.

Λₘ=(XᵀX+Λ₀⁻¹)⁻¹; μₘ=Λₘ(Xᵀy+Λ₀⁻¹μ₀). p(w|X,y)∝exp(−(1/2)(w−μₘ)ᵀΛₘ⁻¹(w−μₘ)); normalized: p(w|X,y)=N(w;μₘ,Λₘ).

Source unnumbered definitions and Eqs. 5.77 to 5.78, printed p. 136; the normalized equality is explicit note notation.

Dimensions help distinguish covariance from precision. A and Λₘ are n×n, while b and μₘ have n entries. Data information XᵀX adds to prior precision before inversion. With noise variance σ², both data terms receive a factor σ⁻². The generalization below is note analysis. The source example uses σ²=1.

Λₘ=(σ⁻²XᵀX+Λ₀⁻¹)⁻¹; μₘ=Λₘ(σ⁻²Xᵀy+Λ₀⁻¹μ₀), σ²>0.

Original noise variance generalization of the source formulas on printed p. 136.

20 / 26Chapter 5 Part 2 only: 5.4 to 5.6, printed p. 120 at heading 5.4 through p. 137 before heading 5.7; Algorithm 5.1 on p. 121 excluded; official online edition checked October 30, 2026; no explicit web revision identifier

Posterior prediction retains uncertainty beyond the mean

The book emphasizes that the Gaussian posterior provides a covariance as well as μₘ. The note applies Equation 5.68 to this model. At a fixed new x_*, predictive mean is x_*ᵀμₘ and predictive variance is observation noise 1 plus parameter uncertainty x_*ᵀΛₘx_*. Plugging μₘ or the MAP point into the likelihood retains only noise variance 1 and loses the latter term.

w|D∼N(μₘ,Λₘ), y_*|w,x_*∼N(x_*ᵀw,1) ⇒ y_*|x_*,D∼N(x_*ᵀμₘ,1+x_*ᵀΛₘx_*).

Original posterior predictive derivation from source Eq. 5.68 and the linear Gaussian model, printed pp. 134 to 136.

With a fixed positive definite prior in this model, one more observation adds the positive semidefinite precision term x_*x_*ᵀ. Posterior covariance therefore cannot increase in the positive semidefinite order. This conclusion belongs to the linear Gaussian case. It does not imply monotone entropy for every model or after every hyperparameter refit.

Page 136 sets μ₀=0 and Λ₀=α⁻¹I to connect the posterior to weight decay. An ordinary proper Gaussian prior needs α>0. Note analysis distinguishes the limit α→0 from α=0. The latter is not a normalized Gaussian prior. A flat improper prior can still yield a proper posterior when X has full column rank, but that needs a separate argument.

21 / 26Chapter 5 Part 2 only: 5.4 to 5.6, printed p. 120 at heading 5.4 through p. 137 before heading 5.7; Algorithm 5.1 on p. 121 excluded; official online edition checked October 30, 2026; no explicit web revision identifier

Original example: one posterior mean and two predictive variances

This scalar example is original arithmetic, not book data. Every input is x=1, noise variance is 1, and w∼N(0,1). Two hypothetical observations y=(1,3) give XᵀX=2 and Xᵀy=4. Posterior precision is 3, variance is 1/3, and mean is 4/3.

Original worked example at x_*=1. No training experiment or performance evaluation is reported.
QuantityExact valueInterpretation
ML mean2(1+3)/2
Posterior mean and MAP4/3Prior precision 1, data precision 2
Posterior parameter variance1/3(2+1)⁻¹
Full predictive variance4/31+1/3
Plug in predictive variance1Observation noise only

The mean shrinks from 2 toward the prior center 0 to give 4/3. This does not prove greater accuracy at an unknown true value. It shows how information combines. Full and plug in predictions have the same center but differ in variance by 1/3. A Gaussian posterior has equal mean and mode. A general posterior can separate MAP, the mean and posterior prediction.

22 / 26Chapter 5 Part 2 only: 5.4 to 5.6, printed p. 120 at heading 5.4 through p. 137 before heading 5.7; Algorithm 5.1 on p. 121 excluded; official online edition checked October 30, 2026; no explicit web revision identifier

MAP turns the prior into a penalty with explicit signs and scaling

Section 5.6.1, pp. 136 to 137, selects a point of maximal posterior density. With D fixed, the evidence does not depend on θ. Maximizing log p(θ|D) therefore maximizes log p(D|θ)+log p(θ). In a minimization objective, the penalty is −log p(θ), with the opposite sign. MAP remains a point estimate and does not integrate the posterior.

θ_MAP=argmax_θ p(θ|D)=argmax_θ[log p(D|θ)+log p(θ)]=argmin_θ[NLL(D;θ)−log p(θ)].

Source Eq. 5.79, printed p. 137; the minimization expression is note algebra.

With fixed noise σ² and a zero mean Gaussian prior covariance α⁻¹I, negative log posterior contains SSE/(2σ²)+α||w||²/2. Multiplication by 2σ² gives SSE+ασ²||w||². Writing the data term as MSE=SSE/m changes the penalty coefficient to ασ²/m. The book calls this weight decay. A numerical coefficient only has meaning with its objective convention.

J_MAP(w)=(1/(2σ²))||y−Xw||²+(α/2)||w||²+C. w_MAP=(XᵀX+ασ²I)⁻¹Xᵀy. MSE+λ||w||² has λ=ασ²/m.

Original exact coefficient derivation from source Gaussian example and Eq. 5.79, printed pp. 135 to 137; α>0, σ²>0.

With fixed α, the likelihood accumulates with sample size while the prior enters once. Keeping λ constant in an average loss therefore differs from keeping the prior fixed. The book describes a trade of bias for lower variance. Its value depends on prior suitability. An arbitrary prior does not guarantee lower error on every task.

23 / 26Chapter 5 Part 2 only: 5.4 to 5.6, printed p. 120 at heading 5.4 through p. 137 before heading 5.7; Algorithm 5.1 on p. 121 excluded; official online edition checked October 30, 2026; no explicit web revision identifier

MAP depends on coordinates and a valid prior interpretation

For continuous parameters, MAP maximizes a density. An individual point usually has zero probability. Note analysis: an invertible reparameterization φ=h(θ) introduces a Jacobian factor in the density. The new mode need not be the transformed old mode. The posterior probability measure remains consistent, and full posterior prediction can remain invariant, while the MAP point depends on coordinates.

p_φ(φ|D)=p_θ(h⁻¹(φ)|D)·|det(∂h⁻¹/∂φ)|. In general: argmax_φ p_φ(φ|D) ≠ h(argmax_θ p_θ(θ|D)).

Original change of variables qualification of the density maximization in source Eq. 5.79, printed p. 137.

Page 137 also limits the claim that regularization is MAP. A penalty Ω(θ) needs a normalizable, data independent prior p(θ)∝exp(−Ω(θ)) for an ordinary proper prior interpretation. An arbitrary penalty can be nonintegrable or depend on the same training data. It then cannot simply be called a prior fixed before those data. Empirical Bayes or hierarchical modeling needs its own account of data use.

The book suggests Gaussian mixture priors for richer penalties. This gives an interpretable modeling source without ensuring convexity, a single posterior mode or easy optimization. MAP can cost less than full integration, yet finding a mode can remain difficult. This unit reports no measured runtime, memory use or benchmark cost.

24 / 26Chapter 5 Part 2 only: 5.4 to 5.6, printed p. 120 at heading 5.4 through p. 137 before heading 5.7; Algorithm 5.1 on p. 121 excluded; official online edition checked October 30, 2026; no explicit web revision identifier

Evidence, added derivations and unresolved questions

Evidence boundary table. Worked arithmetic is separated from experimental evidence.
ContentBasis and statusUnsupported conclusion
Mean and variance estimators5.19 to 5.52; definitions and analytic calculationsEvery finite sample estimate is close to truth
MSE and capacity5.53 to 5.55; Figure 5.6 is schematicEvery model follows the same U shape
MLE and MSE5.56 to 5.66; a fixed variance conditional GaussianEquivalence for arbitrary losses or noise models
MLE asymptoticsConditional theoretical discussion in 5.5.2Unconditional finite sample optimality
Gaussian posterior and MAP5.67 to 5.79; an analytic exampleBetter accuracy for every prior, approximation or coordinate system

This unit has no source numerical experiment table. Its tables are original conceptual comparisons, formula comparisons and identified hypothetical arithmetic. The only reused graphic is the complete, unchanged Figure 5.6. The book is the 2016 MIT Press edition. The online chapter provides no explicit revision identifier. The access date records verification rather than a new edition.

Application specific questions remain: whether observations are independent, the model is misspecified, the parameter is identifiable, the prior fits the scale, predictions are calibrated and posterior approximation error is acceptable. These derivations do not supply that evidence. The next scope begins at 5.7. Later supervised and unsupervised algorithms remain unprocessed, and publication does not update the user’s reading passes.

25 / 26Chapter 5 Part 2 only: 5.4 to 5.6, printed p. 120 at heading 5.4 through p. 137 before heading 5.7; Algorithm 5.1 on p. 121 excluded; official online edition checked October 30, 2026; no explicit web revision identifier

Recall checks: from sampling properties to predictive distributions

Original recall table covering source definitions, derivations and identified technical qualifications.
QuestionCheckable answer
Does unbiasedness give zero error on one dataset?No. It constrains the expectation across training sets.
Why use m−1 for variance?Fitting the mean makes expected residual sum of squares equal to (m−1)σ².
How does SE differ from observation standard deviation?The i.i.d. sample mean has SE σ/√m; an observation has standard deviation σ.
Does parameter MSE contain observation noise?No. Prediction MSE for a new observation adds it under the stated conditions.
Does unbiasedness imply consistency?No. The first sample stays unbiased without concentrating.
Does consistency automatically remove bias?No. Expectation convergence needs moment control or uniform integrability.
When do MLE and MSE have the same optimum?For mean parameters with independent conditional Gaussian observations and fixed positive variance.
Can continuous NLL be negative?Yes. A density can exceed 1 while interval probabilities remain valid.
What does Λ mean in this Gaussian example?It is covariance in the book’s notation; Λ⁻¹ is precision.
Is MAP full Bayesian prediction?No. It selects a density mode and omits posterior integration and some uncertainty.
How does a fixed prior enter average loss?The Gaussian case gives λ=ασ²/m, with the loss scaling recorded.
Does this unit complete the chapter or user reading?No. It processes only 5.4 to 5.6. User reading passes are tracked separately.
26 / 26Chapter 5 Part 2 only: 5.4 to 5.6, printed p. 120 at heading 5.4 through p. 137 before heading 5.7; Algorithm 5.1 on p. 121 excluded; official online edition checked October 30, 2026; no explicit web revision identifier

Original figures and source data come from the cited book chapter. Explanations and derivations are reading notes. Added examples are identified separately. Source versions, pages and figure labels appear beside the material.