154. Gaussian

154.1. Gaussian (Normal) distribution

𝑓(𝑥|𝜇,𝜎2)=12𝜋𝜎2𝑒(𝑥𝜇)22𝜎2

154.1.1. Derivative

We want 𝑓(𝑥)=dd𝑥𝑓(𝑥), treating 𝜇,𝜎 as constants.

The constant factor pulls out, leaving the exponential:

𝑓(𝑥)=12𝜋𝜎2dd𝑥exp((𝑥𝜇)22𝜎2)

Chain rule. Let 𝑢(𝑥)=(𝑥𝜇)22𝜎2, so the exponential is exp(𝑢(𝑥)) and

dd𝑥exp(𝑢(𝑥))=exp(𝑢(𝑥))𝑢(𝑥)

Differentiate 𝑢. Pull out 12𝜎2, then chain-rule (𝑥𝜇)2:

𝑢(𝑥)=12𝜎22(𝑥𝜇)=𝑥𝜇𝜎2

Assemble. The last two factors reconstruct 𝑓(𝑥) itself:

𝑓(𝑥)=12𝜋𝜎2exp((𝑥𝜇)22𝜎2)𝑓(𝑥)(𝑥𝜇𝜎2)𝑓(𝑥)=𝑥𝜇𝜎2𝑓(𝑥)

Setting 𝜇=0, 𝜎=1 collapses 𝑓 to the standard normal 𝜙:

DistributionDerivative
General normal 𝑓(𝑥)𝑓(𝑥)=𝑥𝜇𝜎2𝑓(𝑥)
Standard normal 𝜙(𝑧)𝜙(𝑧)=𝑧𝜙(𝑧)