MATH 134 -- Intensive Calculus for Science 2

Normal probability densities

March 25, 2002

The normal pdf with mean mu and standard deviation 0 < sigma is defined by

p(x) = exp(-(x-mu)^2/(2*sigma^2))/(sigma*sqrt(2*Pi)...

> normaldist:=(mu,sigma,x)->exp(-(x-mu)^2/(2*sigma^2))/(sigma*sqrt(2*Pi)):

The value of mu gives the "center" of the distribution, and the value of sigma describes

how "spread out" it is around the center. Here are some examples. First, mu = 0, sigma = 1

> plot(normaldist(0,1,x),x=-4..4,axes=boxed);

[Maple Plot]

Next, mu = 1, sigma = .2, 1, 2 to illustrate what changes as sigma increases -- the bigger

sigma is, the more spread-out the density is (and the lower the peak at x = mu is):

> plot({normaldist(1,.2,x),normaldist(1,1,x),normaldist(1,2,x)},x=-3..4,axes=boxed);

[Maple Plot]

On the other hand, fixing sigma , but increasing mu just shifts the graph to the right:

> plot({normaldist(1,1,x),normaldist(2,1,x),normaldist(3,1,x)},x=-3..7,axes=boxed);

[Maple Plot]

For every normal density function, the probability Prob( mu <= x <= mu+sigma ) is the same:

> Digits:=20;

Digits := 20

> evalf(Int(normaldist(0,1,x),x=0..1));

.34134474606854294859

> evalf(Int(normaldist(12,.03,x),x=12..12.03));

.34134474606854294857

(up to the error from Maple's numerical integration routines!) This says: The probability

that a normally distributed random variable is between its mean and its mean plus its

standard deviation is just a bit more than .34 (or 34%).