Kaijing Ma

Paper Notes

Deep Learning

Paper Notes

Ian Goodfellow, Yoshua Bengio, Aaron Courville

MIT Press, 2016 · Chapter 3 Probability and Information Theory only, printed pp. 51 to 77; official online HTML retrieved October 27, 2026; no explicit web revision identifier

Official complete Chapter 3 HTML

Scope and the representation of uncertainty

This unit covers the complete official online Chapter 3, Probability and Information Theory, printed pages 51 to 77, sections 3.1 to 3.14 and equations 3.1 to 3.56. It is one chapter of the book. Later chapters and externally cited works are outside this full reading.

The organizing question is how a model represents unresolved states and changes that representation after receiving information. A distribution weights possible states. Marginalization removes variables from the question. Conditioning changes the available information. Information theory measures uncertainty and mismatch. Graphical models organize a joint distribution into local factors.

An analytical organization of the three sources on pages 52 to 54. The qualifications are note commentary.
Source of uncertainty in section 3.1Example and interpretationWhat does not follow
Stochastic dynamicsThe generating mechanism is modeled as randomEvery unknown phenomenon is intrinsically random
Incomplete observationVariables determining the outcome are hiddenRepeated observation necessarily removes all uncertainty
Incomplete modelingDiscretization or compression discards observed detailProbability applies only to stochastic physical systems

A frequency interpretation relates probability to repeated outcomes. A Bayesian interpretation applies it to belief given information. Both use the same normalization and conditioning rules. An application still needs to identify the event, information and model. Coherent probability calculations do not certify the assumptions supplied to them.

Section 3.2 on page 54 separates a random variable from a realized value. These notes use uppercase X for a variable and lowercase x for a value. This avoids relying on subtle font differences. Source definitions retain their references. Added proofs, examples and arithmetic are original commentary. They are neither book experiments nor a chapter translation.

Source references: sections 3.1 and 3.2, printed pages 51 to 54.

1 / 19Chapter 3 Probability and Information Theory only, printed pp. 51 to 77; official online HTML retrieved October 27, 2026; no explicit web revision identifier

Probability mass and density use different normalization

Section 3.3 on pages 54 to 56 starts with the state space. Discrete states may be labels and may form a countably infinite set. A PMF assigns probability directly to each state. The finite uniform formula 1/k assumes exactly k states and a positive integer k.

P(X=x)≥0; ΣₓP(X=x)=1. For k finite states: P(X=xᵢ)=1/k, Σᵢ₌₁ᵏ1/k=1.

A density is defined relative to a volume unit. Its value may exceed one. A set probability remains at most one because it is an integral. A continuous variable with an ordinary density gives each individual point zero probability. Such a point can still lie in its support. Zero probability is therefore distinct from logical impossibility.

p(x)≥0; ∫p(x)dx=1; P(X∈S)=∫ₛp(x)dx. X∼U(a,b), b>a: p(x)=1/(b−a) on [a,b], and 0 elsewhere.
An original exact integration example, not source data.
QuantityOriginal example X∼U(0,1/4)Meaning
p(1/8)4Density per unit length
P(X=1/8)0Point probability
P(0≤X≤1/8)1/2Mass in an interval
∫p(x)dx1Total mass

The semicolon in p(x;θ) separates a parameter from a random state. Density values also change with coordinate units. Comparing peaks expressed in different units does not directly compare probabilities. This anticipates the Jacobian correction in section 3.12. A contracted coordinate interval needs greater density to preserve its mass.

Source references: sections 3.3, 3.3.1 and 3.3.2, printed pages 54 to 56. The source equation labels are 3.1 to 3.2.

2 / 19Chapter 3 Probability and Information Theory only, printed pp. 51 to 77; official online HTML retrieved October 27, 2026; no explicit web revision identifier

Marginalization, conditioning and the chain rule

Marginalization in section 3.4 on pages 56 to 57 sums or integrates over a variable. It does not set that variable to a chosen value. Discrete event conditioning in section 3.5 renormalizes the joint probability inside a known event. The two operations answer different questions.

P(X=x)=ΣᵧP(X=x,Y=y); pₓ(x)=∫pₓᵧ(x,y)dy. P(Y=y|X=x)=P(X=x,Y=y)/P(X=x), P(X=x)>0.
An original normalized joint distribution. Its four joint cells sum to 1. The last row and column separately show marginal probabilities.
Joint probabilityB=1B=0P(A)
A=10.20.30.5
A=00.10.40.5
P(B)0.30.71

The table gives P(B=1|A=1)=0.4 and P(A=1|B=1)=2/3. Their reference populations differ. The marginal P(B=1)=0.3 mixes both values of A. A conditional probability alone generally does not determine the reversed conditional.

For continuous variables, dividing two zero point probabilities does not define a conditional density. When a joint density exists, p(y|x)=p(x,y)/pₓ(x) is available where pₓ(x)>0. Integrating over y gives conditional event probabilities. Versions on marginal null sets need not be unique. Continuous conditioning remains meaningful.

p(y|x)=p(x,y)/pₓ(x), pₓ(x)>0. p(x₁,…,xₙ)=p(x₁)∏ᵢ₌₂ⁿp(xᵢ|x₁,…,xᵢ₋₁).

The chain rule on pages 57 to 58 follows by repeated conditioning. It does not require independence. Different orders give different descriptions of the same joint distribution. Removing conditioning variables needs additional independence assumptions. Section 3.5 also distinguishes observation from intervention. Observing a language skill and teaching that skill are different operations.

Source references: sections 3.4 to 3.6, printed pages 56 to 58. The source equation labels are 3.3 to 3.6.

3 / 19Chapter 3 Probability and Information Theory only, printed pp. 51 to 77; official online HTML retrieved October 27, 2026; no explicit web revision identifier

Independence constrains distributions; expectation averages values

Section 3.7 on page 58 defines independence by a product factorization. Conditional independence applies that factorization after information is given. Density identities are understood almost everywhere where appropriate. Discrete conditioning uses states of positive probability. Marginal independence and conditional independence do not automatically imply one another.

X⊥Y ⇔ p(x,y)=pₓ(x)pᵧ(y). X⊥Y|Z ⇔ p(x,y|z)=p(x|z)p(y|z).
An original example makes A and B independent within each Z branch. Marginally P(A=1,B=1)=0.34, which differs from 0.5×0.5.
ZP(Z)P(A=1|Z)P(B=1|Z)P(A=1,B=1|Z)
00.50.20.20.04
10.50.80.80.64

A shared latent state can make conditionally independent variables dependent after marginalization. Conversely, two independent fair binary variables constrain one another after their exclusive OR is observed. Conditioning can remove dependence or introduce it. The conditioning set is part of the claim.

E[f(X)]=ΣₓP(x)f(x) or ∫p(x)f(x)dx. E[αf(X)+βg(X)]=αE[f(X)]+βE[g(X)] for constant α,β.

The expectation in section 3.8 on pages 58 to 59 requires the relevant integral or series to exist. Linearity does not require independence. Factoring an expectation of a product generally needs independence or another specific condition. For the earlier binary table, E[A]=0.5, E[B]=0.3 and E[AB]=0.2. The last quantity differs from 0.15.

Source references: sections 3.7 and 3.8, printed pages 58 to 59. The source equation labels are 3.7 to 3.11.

4 / 19Chapter 3 Probability and Information Theory only, printed pp. 51 to 77; official online HTML retrieved October 27, 2026; no explicit web revision identifier

Variance, covariance and nonlinear dependence

Var(X)=E[(X−E[X])²]=E[X²]−E[X]². Cov(X,Y)=E[(X−E[X])(Y−E[Y])]=E[XY]−E[X]E[Y].

The second order quantities on pages 59 to 60 require finite second moments. Independence then implies zero covariance. The converse is generally false. Covariance also changes with units. A larger magnitude across different problems need not mean a stronger dimensionless relationship. Correlation divides by both standard deviations when these are nonzero.

Var(aX+bY)=a²Var(X)+b²Var(Y)+2abCov(X,Y). Σ=E[(X−μ)(X−μ)ᵀ]; Σᵢⱼ=Cov(Xᵢ,Xⱼ); Σᵢᵢ=Var(Xᵢ).

The matrix identity gives vᵀΣv=Var(vᵀX)≥0. A covariance matrix is therefore symmetric and positive semidefinite. It need not be positive definite. The earlier joint table with P(A=1,B=1)=0.2, P(A=1,B=0)=0.3 and P(A=0,B=1)=0.1 gives variances 0.25 and 0.21 and covariance 0.05. Thus Σ=[[0.25,0.05],[0.05,0.21]]. These are exact population moments, not an unbiased sample estimate.

The chapter counterexample draws X∼U(−1,1), an independent fair sign S and Y=SX. Since E[S]=0, Cov(X,Y)=0. Yet |Y|=|X|, so the variables remain dependent. The following fourth moment test is an original derivation for that source example.

E[X²]=E[Y²]=1/3; E[X²Y²]=E[X⁴]=1/5 ≠ E[X²]E[Y²]=1/9. E[XY]=E[S]E[X²]=0.

A jointly Gaussian distribution is an important special case. Zero cross covariance then implies independence of the corresponding subvectors. This conclusion uses the joint Gaussian structure. Separate Gaussian marginals are insufficient. A linear correlation check alone does not supply that structure.

Source references: sections 3.8, printed pages 59 to 60. The source equation labels are 3.12 to 3.15.

5 / 19Chapter 3 Probability and Information Theory only, printed pp. 51 to 77; official online HTML retrieved October 27, 2026; no explicit web revision identifier

Binary and categorical distributions

The Bernoulli variable in section 3.9.1 on page 60 has numerical states 0 and 1. Its parameter φ=P(X=1) lies in [0,1]. Since X²=X, its mean and variance follow directly. The endpoints are deterministic distributions. The compact power formula at these endpoints uses its limiting or piecewise interpretation.

P(X=1)=φ; P(X=0)=1−φ; P(X=x)=φˣ(1−φ)¹⁻ˣ, x∈{0,1}. E[X]=φ; Var(X)=φ(1−φ).

The multinoulli distribution in section 3.9.2 on pages 60 to 61 is also called categorical. It describes one choice among k categories. The chapter uses k−1 free parameters. An equivalent representation uses k nonnegative probabilities summing to one. Category labels are not numerical magnitudes. Averaging arbitrary labels generally has no invariant meaning.

πᵢ≥0; Σᵢ₌₁ᵏπᵢ=1; P(C=i)=πᵢ. For one-hot Z: E[Z]=π, Cov(Z)=diag(π)−ππᵀ.
An original categorical example. Mutually exclusive indicators have covariance −πᵢπⱼ. Red and blue give −0.06.
CategoryProbabilityVariance of its indicator
Red0.20.16
Blue0.30.21
Green0.50.25

The indicator coordinates always sum to one, so their covariance matrix is singular. A multinomial instead counts categories across n draws. It reduces to a multinoulli when n=1. Finite categorical probabilities can be enumerated completely. A continuous density described by few parameters imposes stronger structure. This motivates the distinction between a single Gaussian and a mixture.

Source references: sections 3.9.1 and 3.9.2, printed pages 60 to 61. The source equation labels are 3.16 to 3.20.

6 / 19Chapter 3 Probability and Information Theory only, printed pp. 51 to 77; official online HTML retrieved October 27, 2026; no explicit web revision identifier

A univariate Gaussian separates location from scale

The Gaussian on pages 61 to 62 uses mean μ and standard deviation σ>0. Its second displayed parameter is the variance σ². The denominator contains the standard deviation rather than the variance. Precision is β=1/σ², not 1/σ. These conventions determine both normalization and the units of the exponent.

N(x;μ,σ²)=[1/(√(2π)σ)]exp[−(x−μ)²/(2σ²)], μ∈ℝ, σ>0. β=σ⁻²>0; N(x;μ,β⁻¹)=√(β/(2π)) exp[−β(x−μ)²/2].

Standardization Z=(X−μ)/σ separates location and scale. An original example uses μ=2, σ=3 and x=5. The standardized value is 1. Its density is exp(−1/2)/(3√(2π))≈0.080657. Substituting variance 9 where the formula expects standard deviation changes both scale and normalization.

The chapter motivates Gaussians through a central limit argument and maximum uncertainty. Conditions matter. The classical standardized sum assumes independent identically distributed variables with finite nonzero variance. Independence alone is insufficient. A Gaussian maximizes differential entropy at fixed mean and variance. This does not make a single symmetric peak suitable for every dataset.

Source references: sections 3.9.3, printed pages 61 to 62. The source equation labels are 3.21 to 3.22.

7 / 19Chapter 3 Probability and Information Theory only, printed pp. 51 to 77; official online HTML retrieved October 27, 2026; no explicit web revision identifier

A multivariate Gaussian makes covariance assumptions explicit

N(x;μ,Σ)=(2π)⁻ⁿᐟ² det(Σ)⁻¹ᐟ² exp[−½(x−μ)ᵀΣ⁻¹(x−μ)], Σ=Σᵀ≻0.
B=Σ⁻¹≻0; N(x;μ,B⁻¹)=(2π)⁻ⁿᐟ² det(B)¹ᐟ² exp[−½(x−μ)ᵀB(x−μ)].

The ordinary n dimensional density on pages 62 to 63 requires a symmetric positive definite Σ. A semidefinite covariance can define a degenerate Gaussian measure. It may be concentrated on a lower dimensional affine space. The full space density with det(Σ) and Σ⁻¹ then does not apply. B denotes the precision matrix here.

Original parameter accounting. The mean contributes n additional parameters. A positive diagonal covariance is also full rank.
StructureFree covariance parametersGeometric constraint
Isotropic s²I1Equal variance in every direction
Diagonal diag(v)nPrincipal axes fixed to coordinate axes
General symmetric positive definite matrixn(n+1)/2An arbitrary orthogonal set of principal axes

An original example uses Σ=[[4,1],[1,1]]. Its determinant is 3 and its inverse is [[1,−1],[−1,4]]/3. For μ=0 and x=(2,1)ᵀ, the quadratic form is 4/3. The density is exp(−2/3)/(2π√3). Distance from the mean is measured in covariance geometry rather than ordinary Euclidean length alone.

Within a jointly Gaussian model, diagonal covariance makes the density a product of univariate densities. The coordinates are then independent. This is the special exception to the earlier covariance warning. Precision is another parameterization. Numerical evaluation may also use factorizations for linear solves and log determinants rather than constructing an explicit inverse. Here the Cholesky factorization is Σ=LLᵀ. L is lower triangular with positive diagonal entries.

Σ=LLᵀ, Lᵢⱼ=0 (j>i), Lᵢᵢ>0 ⇒ (x−μ)ᵀΣ⁻¹(x−μ)=‖L⁻¹(x−μ)‖₂²; log detΣ=2Σᵢlog Lᵢᵢ.

This is an original operation count analysis. Dense covariance in n dimensions needs O(n³) arithmetic operations for Cholesky setup. With the factor and log determinant fixed, each subsequent log density uses a triangular solve and quadratic norm in O(n²). A diagonal covariance gives O(n) setup and evaluation. These are algorithmic orders, not measured timings or book experiment results.

Source references: sections 3.9.3, printed pages 62 to 63. The source equation labels are 3.23 to 3.24.

8 / 19Chapter 3 Probability and Information Theory only, printed pp. 51 to 77; official online HTML retrieved October 27, 2026; no explicit web revision identifier

Sharp densities, point masses and empirical measures

Section 3.9.4 on page 63 gives exponential and Laplace distributions. The exponential parameter λ is a positive rate and its support is nonnegative. The Laplace parameter γ is a positive scale and μ is a location. A sharp density peak still assigns zero probability to an individual point. It differs from a Dirac point mass.

pExp(x;λ)=λ exp(−λx)1{x≥0}, λ>0. pLaplace(x;μ,γ)=(1/(2γ))exp(−|x−μ|/γ), μ∈ℝ, γ>0.
Means and variances follow by direct integration of these densities. The final column omits normalization constants independent of x.
DistributionMeanVarianceTerm in negative log density depending on x
Exponential(λ)1/λ1/λ²λx, x≥0
Laplace(μ,γ)μ2γ²|x−μ|/γ

The δ in section 3.9.5 on pages 63 to 64 is not an ordinary finite valued function. Its meaning is specified through integration. A point mass at μ returns f(μ) for a suitable test function f. This brings a deterministic state into probability notation. It does not provide a finite value δ(0) for direct use in a density loss.

∫f(x)δ(x−μ)dx=f(μ). p̂=(1/m)Σᵢ₌₁ᵐδ(x−x⁽ⁱ⁾); Eₚ̂[f(X)]=(1/m)Σᵢ₌₁ᵐf(x⁽ⁱ⁾).

The empirical distribution places mass 1/m on each sample index. Repeated observations accumulate mass. Data {a,a,b} gives P̂(a)=2/3 and P̂(b)=1/3. For continuous observations it is an atomic measure rather than an ordinary PDF relative to volume. It exactly describes resampling the training set. It does not automatically describe a smooth population density.

The chapter connects the empirical distribution to maximum likelihood. The model class matters. On a finite discrete support, empirical frequencies maximize an unrestricted categorical likelihood. Over unrestricted ordinary continuous densities, narrowing peaks around observations can make likelihood unbounded. A Dirac measure is not a regular density solution to that problem. Chapter 5 is not part of this reading.

Source references: sections 3.9.4 and 3.9.5, printed pages 63 to 64. The source equation labels are 3.25 to 3.28.

9 / 19Chapter 3 Probability and Information Theory only, printed pp. 51 to 77; official online HTML retrieved October 27, 2026; no explicit web revision identifier

Mixture distributions arise by marginalizing a latent choice

P(C=i)=αᵢ≥0; Σᵢαᵢ=1; p(x,c=i)=αᵢp(x|i); p(x)=Σᵢαᵢp(x|i).

The mixture in section 3.9.6 on pages 64 to 66 has two sampling steps. It selects a component C and then draws X from that component. C may be latent. Its weight α is a prior before X is observed. The posterior also uses the component likelihood. A mixture density does not average independently drawn component samples point by point.

P(C=i|X=x)=αᵢp(x|i)/(Σⱼαⱼp(x|j)), p(x)>0. E[X]=Σᵢαᵢμᵢ; Var(X)=Σᵢαᵢσᵢ²+Σᵢαᵢ(μᵢ−E[X])².
Book Figure 3.2, page 66。 The three source components illustrate isotropic, diagonal and generally oriented covariance. The third adds off diagonal freedom. Full rank is also possible in the first two classes. These are the book's illustrative samples. No parameter values or clustering accuracy are inferred from the scatter. Ian Goodfellow, Yoshua Bengio and Aaron Courville, MIT Press, 2016, Figure 3.2, p. 66. Official complete chapter. CC BY-NC-ND 4.0. Faithful rendering of the original diagram. Internal curves, axes, labels and legends are unchanged. Only surrounding page material is removed.
Original arithmetic for two Gaussian components. Total variance includes different component means.
QuantityExact value in an original example
(α₁,α₂)(1/4,3/4)
(μ₁,μ₂)(−1,2)
(σ₁²,σ₂²)(1,4)
E[X]5/4
Within component variance13/4
Between component variance27/16
Var(X)79/16
P(C=1|X=0)2/5

The posterior row has an exact derivation. At x=0, both components are one standard deviation from their mean. The first density is twice the second because its scale is half as large. The posterior is therefore (1/4×2)/(1/4×2+3/4)=2/5. Observation increases the weight of the less frequent prior component.

The chapter describes broad density approximation with enough Gaussian components. A fixed small mixture cannot represent every density. Expressive capacity does not guarantee that learning finds the needed parameters. Shared, diagonal or isotropic covariance imposes further restrictions. A latent component does not automatically correspond to a meaningful real world category.

Source references: sections 3.9.6, printed pages 64 to 66. The source equation labels are 3.29.

10 / 19Chapter 3 Probability and Information Theory only, printed pp. 51 to 77; official online HTML retrieved October 27, 2026; no explicit web revision identifier

Sigmoid and softplus encode parameter constraints

The sigmoid in section 3.10 on pages 65 to 68 maps finite real values to (0,1). It can parameterize a Bernoulli probability. Softplus maps them to (0,∞), which can parameterize a positive scale or precision. The choice between scale and precision remains a modeling decision. The function does not make these meanings interchangeable.

σ(x)=1/(1+e⁻ˣ)=eˣ/(eˣ+1); ζ(x)=log(1+eˣ); x⁺=max(0,x).
σ′(x)=σ(x)(1−σ(x)); 1−σ(x)=σ(−x); logσ(x)=−ζ(−x); ζ′(x)=σ(x).
σ⁻¹(u)=log(u/(1−u)), 0<u<1. ζ⁻¹(v)=log(eᵛ−1), v>0. ζ(x)=∫₋∞ˣσ(t)dt; ζ(x)−ζ(−x)=x.

These identities follow from the same exponential expression. The softplus integral uses its zero limit at negative infinity to fix the constant. The difference identity follows from log[(1+eˣ)/(1+e⁻ˣ)]=x. The inverse domains are open. Probabilities zero and one correspond to infinite logits rather than finite inputs.

Source references: sections 3.10, printed pages 65 to 68. The source equation labels are 3.30 to 3.41.

11 / 19Chapter 3 Probability and Information Theory only, printed pp. 51 to 77; official online HTML retrieved October 27, 2026; no explicit web revision identifier

Equivalent identities can have different numerical behavior

This page is an original computational analysis of the section 3.10 identities. It is not a book experiment. Direct exp(x) can overflow for large positive x. Taking the complement or logarithm of a sigmoid already rounded near one can also lose information. Algebraic equivalence does not imply identical floating point error.

ζ(x)=max(x,0)+log1p(exp(−|x|)). logσ(x)=−ζ(−x).
σ(x)={1/(1+e⁻ˣ), x≥0; eˣ/(1+eˣ), x<0}. ζ⁻¹(v)=v+log(−expm1(−v)), v>0.
Independent evaluations of the formulas, rounded decimals rather than a training or hardware benchmark.
xσ(x)ζ(x)σ′(x)
−100.0000453980.0000453990.000045396
00.50.6931471810.25
100.99995460210.0000453990.000045396

The branch keeps the exponential argument nonpositive. Finite precision can still round a tiny result to zero or a value near one to one. A positive mathematical range does not supply a numerical floor. Adding a minimum variance changes the parameterization and needs an explicit statement.

ℓ(z,y)=−y logσ(z)−(1−y)log(1−σ(z))=ζ(z)−yz; ∂ℓ/∂z=σ(z)−y, y∈{0,1}.

The final derivative distinguishes an intermediate sigmoid from the composed logit loss. The sigmoid derivative saturates, but the loss gradient need not vanish for a confident wrong prediction. This scalar derivation does not guarantee stable gradients throughout a deep network. Other layers, parameterizations and the full chain still matter.

Source references: sections 3.10, printed pages 65 to 68. The stable evaluation forms and numerical table are original note analysis.

12 / 19Chapter 3 Probability and Information Theory only, printed pp. 51 to 77; official online HTML retrieved October 27, 2026; no explicit web revision identifier

Bayes' rule separates prior, likelihood and evidence

P(X=x|Y=y)=P(X=x)P(Y=y|X=x)/P(Y=y); P(Y=y)=ΣₓP(Y=y|X=x)P(X=x)>0.

Section 3.11 on pages 68 to 69 derives Bayes' rule from two factorizations of the joint probability. The prior weights X before y is observed. The likelihood compares how different x values explain y. Evidence normalizes across those possibilities. A likelihood viewed as a function of x is generally not a normalized distribution over x.

Original probability arithmetic: prior fault rate 0.01, alarm probability 0.9 if faulty and 0.05 otherwise. These are not observed detection data.
Hypothetical 10000 itemsAlarmNo alarmTotal
Faulty9010100
Not faulty49594059900
Total585941510000

The posterior fault probability after an alarm is 90/585=2/13≈0.153846, not 0.9. The many more nonfaulty items contribute 495 false alarms. The numerator of 90 true alarms must be normalized against them. This is a consequence of the assumed population and mechanism. Different assumptions change the result.

The continuous version replaces masses and sums with densities and integrals where the evidence density is positive. Bayesian updating describes belief after observation. It does not automatically identify intervention effects or establish calibration of a likelihood. The alarm table is a synthetic conditional event rather than advice for a real decision.

Posterior odds = prior odds × likelihood ratio. P(F|A)/P(¬F|A)=[P(F)/P(¬F)]·[P(A|F)/P(A|¬F)].

Source references: sections 3.11, printed pages 68 to 69. The source equation labels are 3.42.

13 / 19Chapter 3 Probability and Information Theory only, printed pp. 51 to 77; official online HTML retrieved October 27, 2026; no explicit web revision identifier

Continuous variables require measures and volume corrections

Section 3.12 on pages 69 to 70 restricts probability to measurable sets in a chosen sigma algebra. These notes do not redevelop measure theory. A fractal or irregular boundary is not automatically nonmeasurable. Almost everywhere is relative to a specified measure. Densities equal almost everywhere relative to volume define the same distribution.

Under an ordinary continuous density, a volume null set has zero probability. An atomic distribution need not have that property. A point has zero length but can carry all of a Dirac probability measure. This connects the technical discussion to empirical distributions and makes the reference measure essential.

Y=g(X): pᵧ(y)=pₓ(g⁻¹(y))·|d g⁻¹(y)/dy|. Equivalently pₓ(x)=pᵧ(g(x))·|g′(x)|.

The scalar formula uses a differentiable invertible transformation with the appropriate nonzero derivative conditions on the relevant region. It can be interpreted almost everywhere. Corresponding small intervals carry equal mass, rather than equal density values. The absolute value prevents a reversal of orientation from creating negative density.

X∼U(0,1), Y=X/2: pᵧ(y)=2 on (0,1/2), ∫₀¹ᐟ²2dy=1. Omitting the Jacobian gives ∫₀¹ᐟ²1dy=1/2.

The displayed scaling example is the book's Y=X/2 on page 70. It is not Y=X². A separate original example with Y=X² and X∼U(0,1) gives pᵧ(y)=1/(2√y) for 0<y<1. Its integral is one. If X can be negative, multiple inverse branches may contribute and must be summed.

pᵧ(y)=pₓ(g⁻¹(y))|det Dg⁻¹(y)|; pₓ(x)=pᵧ(g(x))|det Dg(x)|. For Y=AX+b, detA≠0: pᵧ(y)=pₓ(A⁻¹(y−b))/|detA|.

For vectors, the Jacobian determinant measures local volume change. It is neither an elementwise absolute value nor a trace. Forward and inverse derivatives have different positions in the formula. A singular linear map collapses support to a lower dimension and lies outside the nonsingular density formula.

Source references: sections 3.12, printed pages 69 to 71. The source equation labels are 3.43 to 3.47.

14 / 19Chapter 3 Probability and Information Theory only, printed pp. 51 to 77; official online HTML retrieved October 27, 2026; no explicit web revision identifier

Information and entropy depend on distributions and units

Section 3.13 on pages 71 to 73 uses a negative logarithm to turn multiplication of independent event probabilities into addition of information. Natural logarithms give nats. Base two gives bits. One bit equals ln(2) nats. The equations use ln where this avoids ambiguity.

I(x)=−ln P(x); H(P)=Eₚ[I(X)]=−ΣₓP(x)lnP(x). Ibits=Inats/ln2; 0 ln0:=0.

Self information concerns one outcome. Entropy averages it under the generating distribution. Rare outcomes are more surprising, but their contribution is weighted by their probability. For k finite states, 0≤H≤ln k, with equality at the upper end for a uniform distribution. The support size is part of that bound.

hB(p)=−p ln p−(1−p)ln(1−p). hB′(p)=ln((1−p)/p); hB″(p)=−1/p−1/(1−p)<0, 0<p<1.
Independent evaluation explains the symmetry and maximum at p=0.5 in source Figure 3.5. It does not redraw the source figure.
pBinary entropy, nats
00
0.10.325082973
0.50.693147181
0.90.325082973
10

The negative second derivative establishes strict concavity in the interior. Endpoint values use limits. The coding interpretation concerns average lengths in an appropriate discrete code. An arbitrary real valued density is not a point event probability for that interpretation.

h(X)=−∫p(x)lnp(x)dx. X∼U(a,b): h(X)=ln(b−a). h(aX+b)=h(X)+ln|a|, a≠0.

Differential entropy can be negative and changes under scaling. The original U(0,1/4) example has entropy −ln4 while all event probabilities remain valid. The scale identity follows from change of variables when the entropies exist. Differential entropy is therefore not an absolute coordinate independent uncertainty scale.

Source references: sections 3.13, printed pages 71 to 73. The source equation labels are 3.48 to 3.49.

15 / 19Chapter 3 Probability and Information Theory only, printed pp. 51 to 77; official online HTML retrieved October 27, 2026; no explicit web revision identifier

KL divergence and cross entropy use the reference distribution

Dₖₗ(P∥Q)=Eₚ[ln(P(X)/Q(X))]; H(P,Q)=−EₚlnQ(X)=H(P)+Dₖₗ(P∥Q).

The KL on pages 72 to 73 weights the log ratio by P. If Q assigns zero probability to an event with positive P probability, KL is infinite. Continuous versions require the corresponding absolute continuity conditions. The convention 0 ln 0=0 does not remove a positive mass divided by zero. Entropy identities also need well defined quantities rather than arbitrary subtraction of infinities.

Dₖₗ(P∥Q)=−Eₚln(Q/P) ≥ −ln(Σₓ:P(x)>0Q(x)) ≥ 0.

This is an original discrete Jensen argument. It first assumes positive Q on P's support and the required expectations. A zero denominator is handled by an infinite divergence. Equality requires Q=P, with no extra Q mass outside P's support. For densities, equality means equality almost everywhere rather than identical displayed values at every point.

An original two state calculation. Reversing KL changes its value.
Quantity, P=(0.8,0.2), Q=(0.5,0.5)nats
H(P)0.500402424
H(Q)0.693147181
H(P,Q)0.693147181
Dₖₗ(P∥Q)0.192744757
H(Q,P)0.916290732
Dₖₗ(Q∥P)0.223143551

When P is fixed and Q is optimized, H(P) is constant. Cross entropy and forward KL then have the same minimizers. The argument does not carry over unchanged when P also changes. An empirical cross entropy is a sample average. It does not by itself establish low population KL, calibration, correct reasoning or causal interpretation.

KL is nonnegative but asymmetric and is not generally a metric. Applying the same invertible coordinate transformation to P and Q cancels the Jacobian in the density ratio. KL is invariant under that shared transformation. Differential entropy retains a scale term from a single density and generally changes.

Source references: sections 3.13, printed pages 72 to 73. The source equation labels are 3.50 to 3.51.

16 / 19Chapter 3 Probability and Information Theory only, printed pp. 51 to 77; official online HTML retrieved October 27, 2026; no explicit web revision identifier

The shape effect of KL direction depends on the approximation family

Book Figure 3.6, page 74。 The source compares a bimodal p with a single Gaussian q. The left approximation covers both peaks. The right favors one when the valley is sufficiently deep. This depends on the single Gaussian family and mode separation. Reverse KL does not universally select one mode. The figure is not a performance benchmark or a universal ranking of objectives. Ian Goodfellow, Yoshua Bengio and Aaron Courville, MIT Press, 2016, Figure 3.6, p. 74. Official complete chapter. CC BY-NC-ND 4.0. Faithful rendering of the original diagram. Internal content and original labels are unchanged. Only surrounding page material is removed.

D(P∥Q) penalizes low Q density where P commonly generates samples. D(Q∥P) evaluates the cost where Q places its own mass, penalizing regions where P is small. This difference explains the source illustration. Support, model family and optimization still matter to the resulting shape.

q=N(μ,v), v>0: H(P,q)=½ln(2πv)+Eₚ[(X−μ)²]/(2v). At its finite-variance optimum: μ*=Eₚ[X], v*=Varₚ(X)>0.

The formula is an original derivation for the forward KL projection onto a single Gaussian. Differentiating first in μ matches the mean. Differentiating in v matches the variance. The target needs finite positive variance and a well defined objective. A balanced mixture of N(−m,s²) and N(m,s²) gives μ*=0 and v*=s²+m².

The reverse objective generally has no equivalent moment matching solution. The illustrated symmetric choices depend on the low density valley between components. Closer modes or a multimodal Q can change the result. Choosing a direction expresses a mismatch cost. Neither direction is mathematically more true in every application.

Source references: sections 3.13, printed pages 73 to 74. The source illustration is Figure 3.6.

17 / 19Chapter 3 Probability and Information Theory only, printed pp. 51 to 77; official online HTML retrieved October 27, 2026; no explicit web revision identifier

Directed graphs construct a joint distribution from conditionals

Section 3.14 on pages 73 to 77 treats graphs as a factorization language. The directed model here uses a directed acyclic graph. Each node is a variable and each conditional is normalized over that variable. A reverse topological summation proves that their product is normalized. Arbitrary cyclic conditionals do not have this guarantee.

A⊥C|B: p(a,b,c)=p(a)p(b|a)p(c|b). DAG G: p(x)=∏ᵢp(xᵢ|PaG(xᵢ)).
Book Figure 3.7, page 76。 Both a and b are parents of c. Node b also parents d, and c parents e. These parent sets determine the conditionals below. Arrows describe a joint factorization here. They do not by themselves identify intervention effects. Missing edges do not imply marginal independence. Ian Goodfellow, Yoshua Bengio and Aaron Courville, MIT Press, 2016, Figure 3.7, p. 76. Official complete chapter. CC BY-NC-ND 4.0. Faithful rendering of the original diagram. Internal content and original labels are unchanged. Only surrounding page material is removed.
p(a,b,c,d,e)=p(a)p(b|a)p(c|a,b)p(d|b)p(e|c).
Original parameter accounting for unrestricted normalized binary conditionals. Fewer parameters also impose independence restrictions.
Representation of five binary variablesFree parameters
Complete joint table2⁵−1=31
p(a)1
p(b|a)2
p(c|a,b)4
p(d|b)2
p(e|c)2
Factorized total11

The factorization gives p(e|a,b,c,d)=p(e|c) where the conditioning event has positive probability. The local factor separates from the remaining terms. Conversely, an edge permits direct dependence but does not force every parameter choice to use it. Representational assumptions differ from statistical conclusions established by data.

Source references: sections 3.14, printed pages 73 to 76. The source equation labels are 3.52 to 3.54.

18 / 19Chapter 3 Probability and Information Theory only, printed pp. 51 to 77; official online HTML retrieved October 27, 2026; no explicit web revision identifier

Undirected potentials need a global normalizer

p(x)=(1/Z)∏ᵢφᵢ(xCᵢ), φᵢ≥0; Z=Σₓ∏ᵢφᵢ(xCᵢ) or ∫∏ᵢφᵢ(xCᵢ)dx; 0<Z<∞.

The undirected model on pages 75 to 77 associates nonnegative potentials with cliques. A potential is not a local probability and need not sum to one. Their product needs a finite positive normalizer. Finite nonnegative potentials on a finite state space suffice if at least one configuration is positive. Infinite supports also require integrability.

Book Figure 3.8, page 77。 The source graph has clique {a,b,c} and edge cliques {b,d} and {c,e}. A joint three variable potential need not split into three pair potentials. The formula retains the chapter's exact scopes. The graph supplies neither causal directions nor learned parameter values. Ian Goodfellow, Yoshua Bengio and Aaron Courville, MIT Press, 2016, Figure 3.8, p. 77. Official complete chapter. CC BY-NC-ND 4.0. Faithful rendering of the original diagram. Internal content and original labels are unchanged. Only surrounding page material is removed.
p(a,b,c,d,e)=(1/Z)φ₁(a,b,c)φ₂(b,d)φ₃(c,e).
An original example assigns potential 2 to equal states and 1 to unequal states. Thus Z=6.
Original binary exampleφ(A,B)P(A,B)
(0,0)21/3
(0,1)11/6
(1,0)11/6
(1,1)21/3
Total61

Both marginals in the example are 0.5, yet the joint is dependent. Cov(A,B)=1/3−1/4=1/12. Multiplying a potential by a positive constant leaves its normalized distribution unchanged because Z scales too. A constant potential on the whole real line instead has infinite Z and defines no uniform probability density.

Directed and undirected are descriptions rather than mutually exclusive worlds of distributions. Dense graphs can describe the same distribution in different ways. Compactness, independence restrictions and computational cost can differ. Small local factors do not guarantee easy marginalization or normalization. Parameter reduction does not make inference free.

This chapter provides probability and information tools rather than an empirical benchmark to replicate. The numerical tables are original arithmetic under explicit assumptions. Reproduced diagrams retain book attribution. The reading unit ends at page 77. Completion of this chapter does not imply completion of later numerical computation material or the whole book.

Source references: sections 3.14, printed pages 75 to 77. The source equation labels are 3.55 to 3.56.

19 / 19Chapter 3 Probability and Information Theory only, printed pp. 51 to 77; official online HTML retrieved October 27, 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.