muchen 牧辰

Normal Distribution

Updated 2017-10-11

Standard Normal

Standard Normal Random Variable is denoted by Z. The notation Z ~ N(0,1) means that “Z is a normal random variable mean of 0 and variance of 1”.

Density Function

The standard normal density is given by

φ(z)=12πe(z22),<z<

Distribution Function

The standard normal distribution function is given by

Φ(z)=zφ(t)dt

Note: Φ(z) cannot be calculated in close form

Therefore, it is usually better to use the standard normal table or the function pnorm(z).

Due to the symmetry of the distribution function

Φ(z)=1Φ(z)

Mean

The mean, or expected value is given by (as always):

E(Z)=zφ(z)dz=0

Notice the expected value for standard normal is at 0 since the standard normal centers around 0.

Variance

Var(Z)=z2φ(z)dz=1

Example: concrete mix

A machine fills 10-pound bags of dry concrete mix. The actual weight of the mix put into the bag is a normal random variable with standard deviation σ=0.1 pound. The mean can be set by the machine operator

a. is the mean at which the machine should be set if at most 10% of the bags can be underweight?

Let XNorm(μ,σ2) where X is the actual weight. Thus we can express the following.

P(X<10)0.1

Which means the probability of weight less than 10 pounds is 0.1.

P(xμσ<10μσ)0.1P(z<10μ0.1)0.1Φ(10μ0.1)0.110μ0.1Φ1(0.1)μ100.1Φ1(0.1) P(xμσ<10μσ)0.1P(z<10μ0.1)0.1Φ(10μ0.1)0.110μ0.1Φ1(0.1)μ100.1Φ1(0.1)

Standard Deviation

Since the variance equals to 1, standard deviation also equals to 1: σ=1.

Measurement Error Model

Suppose we have:

Then we can model the errors as follows.

Xi=μ+σZi,i=1,2,,n

Using this equation, we can find the error of the individual measurement to be

Zi=Xiμσ,i=1,2,,n

General Normal Random Variables

This applies to any normal random variables that aren’t standardized. These random variables are denoted as XNorm(μ,σ2), which stands for “X is a normal random variable with a mean of μ and a variance of σ2”.

Manipulating the mean (μ) shifts the distribution left and right. Manipulating the variance (σ2) changes the amplitude and thickness of the distribution.

Mean and Variance

Recall that X=μ+σZ and ZNorm(0,1)Z=Xμσ , we can substitute Z into X and find the expected value and variance functions.

E(X)=E(μ+σZ)=μ+σE(Z)0E(X)=μ Var(X)=Var(μ+σZ)=σ2Var(Z)1=σ2

Distribution Function

First, start with the definition of distribution function.

F(x)=P(Xx)

Next, we subtract μ and divide σ on both sides of the inner inequality.

=P(Xμσxμσ)

Recall that Z=Xμσ, we plug it in.

=P(Zxμσ)

Notice that this is the standard normal distribution function. Thus,

F(x)=Φ(xμσ)

Density Function

Recall that F(X)=f(x)and Φ(z)=φ(z)=12πe12z2, the density function is simply as follows.

f(x)=F(x)=1σφ(xμσ)f(x)=1σ2πe12(xμσ)2

Example:

Let ZNorm(0,1), calculate:

  • P(0.1Z0.35)
    P(0.10Z0.35)=Φ(0.35)Φ(0.10)=0.0970

    Note that Φ(x) can be calculated in R using the pnorm(x) function.

  • P(Z>1.25)
    P(Z>1.25)=1P(Z1.25)=1Φ(1.25)=0.1056
  • P(Z>1.20)
    P(Z>1.20)=1P(Z1.20)=1Φ(1.20)=1(1Φ(1.20))=Φ(1.2)=0.8849
  • Find such that P(Z>c)=0.05

    1Φ(c)=0.05Φ(c)=0.95c=Φ1(0.95)

    Note that the inverse of standard normal CDF function can be calculated in R using qnorm(0.95)

  • Find c such that P(|Z|<c)=0.95

    P(|Z|>c)=P(c<Z<c)=Φ(c)Φ(c)=Φ(c)(1Φ(c))0.95=2Φ(c)1

    Rearrange the terms we can find Φ(c). Once again, we can use the qnorm(c) function in R to find c.

    Φ(c)=1.952=0.975=Φ1(0.975)=1.96

Example:

Let XNorm(3,25), calculate:

  • P(X>4)
    P(X>4)=1P(X<4)=1Φ(435)=1Φ(0.2)0.421
  • P(2<X<4)
    P(2<X<4)=F(4)F(2)=Φ(435)Φ(235)=Φ(0.20)Φ(0.20)=2Φ(0.20)1=0.159
  • P(X<1)
    P(X<1)=F(1)=Φ(135)=Φ(0.40)=1Φ(0.40)=0.345
  • c such that P(X>c)=0.10

    P(X>c)=0.101F(c)=0.101Φ(c35)=0.10Φ(c35)=0.90c35=Φ1(0.90)c=Φ1(0.90)×5+3