You are on page 1of 23

PubHlth 540

The Normal Distribution

Page 1 of 23

Unit 5. The Normal Distribution

Topics

1. Introduction .... 2. Definition of the Normal Distribution 3. The Sample Average is Often Normally Distributed Introduction to the Central Limit Theorem . 4. A Feel for the Normal Distribution ... 5. The Relevance of the Normal Distribution . 6. Calculation of Probabilities for the Normal(0,1) 7. From Normal( , 2 ) to Normal(0,1) The Z-Score . 8. From Normal(0,1) to Normal( , 2 )

3 4 7 10 12 13 19 22

PubHlth 540

The Normal Distribution

Page 2 of 23

1. Introduction Much of statistical inference is based on the normal distribution. The pattern of occurrence of many phenomena in nature happens to be described well using a normal distribution model. Even when the phenomena in a sample distribution are not described well by the normal distribution, the sampling distribution of sample averages obtained by repeated sampling from the parent distribution is often described well by the normal distribution (Central limit theory). You may have noticed in your professional work (especially in reading the literature for your field) that, often, researchers choose to report the average when he/she wishes to summarize the information in a sample of data. The normal distribution is appropriate for continuous random variables only. Recall that, in theory, a continuous random variable can assume any of an infinite number of values.

Therefore, well have to refine our definition of a probability model to accommodate the continuous variable setting. Pr[ X = x ] , the calculation of a point probability, is meaningless in the continuous variable setting. In its place, we calculate Pr [ a < X < b], the probability of an interval of values of X. For the above reason,

Pr [ X = x] is also without meaning.

PubHlth 540

The Normal Distribution

Page 3 of 23

Following is the extension of the ideas of a probability distribution for a discrete random variable to the ideas underlying the meaning of a probability distribution for a continuous random variable. The ideas of calculus (sorry!) helps us out. Discrete Random Variable E.g. 1, 2, 3, 4, , N Continuous Random Variable List range E.g. - to + 0 to + Point probability probability density Probability density of X , written fX(x) Unit total
x = min

1st: List of all possible values that exhaust all possibilities 2nd: Accompanying probabilities of each value

Pr [ X = x ]

Total must be 1

Pr[ X = x] = 1

max

unit integral
f X ( x )dx = 1

PubHlth 540

The Normal Distribution

Page 4 of 23

2. Definition of the Normal Distribution Definition of the normal probability distribution density function. The concept probability of X=x is replaced by the probability density function fx ( ) evaluated at X=x A picture of this function with X=x plotted on the horizontal and fx ( ) evaluated at X=x plotted on the vertical is the familiar bell shaped (Gaussian) curve fX(x)
.4

.3

.2

.1

0 -2 -1 0 x 1 2

X=x

fX (X=x) = x = Value of X

1 2
2

L a x f OP exp M N 2 Q
2 2

where

Range of possible values of X: - to + Exp = e = Eulers constant = 2.71828 = mathematical constant = 3.14
note: e =
1 1 1 1 1 + + + + + ... 0! 1! 2! 3! 4!

note: = (circumference/diameter) for any circle.

= Expected value of X (the long run average) 2 = Variance of X. Recall this is the expected value of [ X- ]2

PubHlth 540

The Normal Distribution

Page 5 of 23

The Standard Normal Distribution is a particular normal distribution. It is the one for which =0 and 2=1. It is an especially important tool in analysis of epidemiological data.
It is the one for which =0 and 2=1. Tabulations of probabilities for this distribution are available. A random variable whose pattern of values is distributed standard normal has the special name: z-score, or normal deviate By convention, it is usually written as Z, rather than X.

fZ (Z=z) =

1 z2 exp 2 2

LM OP N Q

Introduction to the Z-Score: A tool to compute probabilities of intervals of values for X distributed Normal(,2).
Of interest is a probability calculation for a random variable X that is distributed Normal(, 2) However, tabulated normal probability calculations are available only for the Normal Distribution with = 0 and 2=1. We solve our problem by exploiting an equivalence argument. Standardization expresses the desired calculation for X as an equivalent calculation for Z where Z is distributed standard normal, Normal(0,1).

pr a X b = pr

LMF a I Z F b I OP NH K H K Q
X

. Thus,

Z-score =

Note - The technique of standardization of X involves centering (by subtraction of the mean of X which is ) followed by rescaling (using the multiplier 1/)

PubHlth 540

The Normal Distribution

Page 6 of 23

Sometimes, we might want to know the values of selected percentiles of a Normal(,2) distribution. To do this, we work the standardization technique in the other direction. For example, we might want to know the median of a normal distribution of gross income We have only percentile values tabulated for Z distributed Normal(0,1) The inverse of Standardization relates the percentile for X to that for Z.

ptile

= Z

ptile

The z-score and its relatives the t-score, chi square and F statistics are central to the methods of hypothesis testing.

PubHlth 540

The Normal Distribution

Page 7 of 23

3. The Sample Average is Often Normally Distributed Introduction to the Central Limit Theorem

Recall, our focus is on the behavior of the average, X n , of a sample. It is the Central Limit Theorem that gives us what we need. The Central Limit Theorem IF 1) We have an independent random sample of n observations X1 Xn 2) The X1 Xn are all from the same distribution, whatever that is. 3) This distribution has mean = and variance = 2 THEN as n the sampling distribution of

Normal with mean = and variance = 2/n

LM X OP = MN n PQ
n i =1 i

is eventually

In words: In the long run, averages have distributions that are well approximated by the Normal 2 The sampling distribution of X n , upon repeated sampling, is eventually Normal , n Later (Section 7) well learn how to compute probabilities of intervals of values for distributed Normal(,2/n) by using the z-score technique. a- b- pr a X b =pr Z . Thus, n n Z-score =

X - E(X) X = n se(X)

PubHlth 540

The Normal Distribution

Page 8 of 23

A variety of wordings of the central limit theorem give a feel for its significance! 1. " .... according to a certain theorem in mathematical statistics called the central limit theorem, the probability distribution of the sum of observations from any population corresponds more and more to that of a normal distribution as the number of observations increases; ie - if the sample size is large enough, the sum of observations from any distribution is approximately normally distributed. Since many of the test statistics and estimating functions which are used in advanced statistical methods can be represented as just such a sum, it follows that their approximate normal distributions can be used to calculate probabilities when nothing more exact is possible." Matthews DE and Farewell VT. Using and Understanding Medical Statistics, 2nd, revised edition. New York: Karger, 1988. page 93. 2. "With measurement data, many investigations have as their purpose the estimation of averages - the average life of a battery, the average income of plumbers, and so on. Even if the distribution in the original population is far from normal, the distribution of sample averages tends to become normal, under a wide variety of conditions, as the size of the sample increases. This is perhaps the single most important reason for the use of the normal". Snedecor GW and Cochran WG. Statistical Methods, sixth edition. Ames: The Iowa State University Press, 1967. page 35. 3. "If a random sample of n observations is drawn from some population of any shape, where the mean is a number and the standard deviation is a number , then the theoretical sampling distribution of X n , the mean of the random sample, is (nearly) a normal distribution with a mean of and a standard deviation of sample size, is 'large'". Moses LE. Think and Explain with Statistics. Reading: Addison-Wesley Publishing Company, 1986. page 91.
n if n, the

PubHlth 540

The Normal Distribution

Page 9 of 23

4. "It should be emphasized that the theorem applies almost regardless of the nature of the parent population, that is, almost regardless of the distribution from which X1, ..., Xn are a random sample. ... How large n must be to have a "good" approximation does depend, however, upon the shape of the parent population." Anderson TW and Sclove SL. Introductory Statistical Analysis. Boston: Houghton Mifflin Company, 1974. page 295.

PubHlth 540

The Normal Distribution

Page 10 of 23

4. A Feel for the Normal Distribution What does the normal distribution look like? (1) a smooth curve defined everywhere on the real axis that is (2) bell shaped and (3) symmetric about the mean value. note Because of symmetry, we know that the mean = median.

.4

General shape of a Normal Distribution

.3

.2

This normal distribution has mean and median = 0

.1

0 -2 -1 0 x 1 2

Some Features of the Normal Distribution: (1) Look again at the definition of the normal probability density function on page 4. Notice that it includes only two population parameters, the mean and variance 2 Notice that there are no other population parameters present. This allows us to say that the normal probability density function is completely specified by the mean and variance. This feature is very useful in the calculation of event probabilities which will be described later.

PubHlth 540

The Normal Distribution

Page 11 of 23

(2) The mean tells you about location Increase - Location shifts right Decrease Location shifts left Shape is unchanged (3) The variance 2 tells you about narrowness or flatness of the bell Increase 2 - Bell flattens. Extreme values are more likely Decrease 2 - Bell narrows. Extreme values are less likely Location is unchanged (4) Very Useful Tool for Research Data: If you are exploring some data, lets say it is a sample of data X that is distributed normal with mean and variance 2 , then roughly (i) 68% of the distribution of X lies in an interval of (1)( ) about its mean value . (ii) 95% of the distribution of X lies in an interval of (1.96)( ) about its mean value . (iii) 99% of the distribution of X lies in an interval of (2.576)( ) about its mean value . (5) Most often, this seat of the pants rule is applied to the distribution of the sample mean X . Roughly (i) 68% of the distribution of X lies in an interval of (1)( its mean value . (ii) 95% of the distribution of X lies in an interval of (1.96)( its mean value . (iii) 99% of the distribution of X lies in an interval of (2.576)( its mean value .
n ) about

n ) about

n ) about

PubHlth 540

The Normal Distribution

Page 12 of 23

5. Relevance of the Normal Distribution What Data Follow the Normal Distribution? There are two kinds of data that follow a normal probability distribution. First Type Nature gives us this. Nature includes many continuous phenomena yielding sample data for which the normal probability model is a good description. For example,

Heights of men Weights of women Systolic blood pressure of children Blood cholesterol in adults aged 20 to 100 years

Second Type Repeated sampling and the Central Limit Theorem gives this. If we repeat our research study over and over again so as to produce the sampling distribution of the sample mean X , this distribution is well described by a normal distribution model by virtue of the Central Limit Theorem. This second class is particularly useful in research since, often, the focus of interest is in the behavior (reproducibility and variability) of sample means rather than individual values.

Average response among persons randomized to treatment in a clinical trial

PubHlth 540

The Normal Distribution

Page 13 of 23

6. Calculation of Probabilities for the Normal (0,1) With respect to studies of any normal distribution, it eventually boils down to knowing how to work with one particular distribution, the Normal(0,1), also called the standard normal or standard gaussian distribution. A random variable Z is said to follow the standard normal distribution if it is distributed normal with mean=0 and variance=1. Recall again the probability density function for this distribution:

fZ (Z=z) =

1 z2 exp 2 2

LM OP N Q

Recall also

For a continuous random variable, we cannot compute point probabilities such as Probability [ Z=z ] What we calculate, instead, are probabilities of intervals of values, such as Probability [ a < Z < b ] for some choice of a and b
A Probability of an Interval such as Probability [ Z < z ] is called a cumulative probability

Tables for the Normal(0,1) distribution typically provide values of cumulative probabilities of this form. Sometimes, more is provided.
Fortunately, we dont actually have to do these calculations

Such calculations are exercises in calculus and involve the integral of the probability density function. Values of Probability [ a < Z < b ] can be found by utilizing statistical tables for the Normal(0,1). They can also be gotten from the computer (either software or web).

PubHlth 540

The Normal Distribution

Page 14 of 23

Some Useful Tips for Using the Statistical Tables for the Normal(0,1) (Tip 1) Symmetry of the Normal(0,1) distribution about its mean value 0 has useful implications with respect to the calculation of probabilities. Recalling the notation "Z" to denote the random variable Z and "z" to denote a possible actual value, symmetry of the standard normal distribution about =0 means:

Pr [ Z -z ] = Pr [Z +z ]

(Tip 2) Because the integral of a continuous probability distribution (you can think of this as the sum of the probabilities associated with all possible outcomes when the distribution is discrete) must total exactly one,

Pr [ Z < z ] + Pr [Z +z ] =1

Pr [ Z < z ] = 1 - Pr [Z z ]

Pr [ Z z ] = 1 - Pr [Z < z ]

(Tip 3) The facts of symmetry of the Normal(0,1) distribution about =0 and its integral equaling one gives us

Pr [Z 0 ] =.5

Pr [ Z 0 ] = .5

PubHlth 540

The Normal Distribution

Page 15 of 23

(Tip 4) Some tables for the Normal distribution provide values ONLY of the type Pr [ Z < z ]. If you want to calculate Pr(Z > a) Pr(Z < -a) Pr(a < Z < b) Then use the table this way Pr(Z > a) = 1 - Pr(Z <= a) Pr(Z < -a) = 1 - Pr(Z < +a) Pr(a < Z < b) = Pr(Z < b) - Pr(Z < a)

(Tip 5) Inequalities Pr(Z <= z) versus Pr(Z < z) or Pr(Z >= z) versus Pr(Z > z) can seem confusing at first. The key is to know that because Z is continuous when it is distributed Normal(0,1), point probabilities are meaningless. That means

Pr [Z z ] =Pr [Z > z ]

Pr [ Z z ] = Pr [ Z < z ]
Beware Be careful not to make this assumption when you are working with discrete variables!! Notation With apology, it is nevertheless useful to know the notation involved in the calculation of probabilities. Here it is for the setting of probability calculations for the standard normal, Normal(0,1).

FZ (z) is called the cumulative probability density function. It is the integral of the probability density function f Z ( z ) that was introduced on page 5. Often, the letter Z is used to refer to a random variable distributed Normal(0,1) Prob[Normal(0,1) variable < z ] = Prob[Z z]=FZ (z)

PubHlth 540

The Normal Distribution

Page 16 of 23

Example If Z is distributed standard normal, what is the probability that Z is at most 1.82?
Suggestion to 2008 class Have a look at Rosner (6th Edition), table 3. Before following the examples here, look at the pictures on the top of page 825 so that you know what probabilities (area under the curve) are being reported in each column - carol

Solution = 0.9656 Step 1: Translate the "words" into an event. "Z is at most 1.82" is equivalent to the event (Z <= 1.82). The required probability is therefore Pr(Z <= 1.82)=? Step 2: Use the normal probability table to solve for probability of interest. If we use the table in Rosner (6th edition), the required table is Table 3 which begins on page 825. Thus, our value z=1.82 can be found as z=1.82 on page 827 Looking at the entry for column A, read Pr(Z<= 1.82) = 0.9656

Example What is the probability that a standard normal random variable exceeds the value 2.38? Solution = 0.0087 step 1: Translate the "words" into an event. "Z exceeds 2.38" is equivalent to the event (Z > 2.38). The required probability is therefore Pr(Z > 2.38) =? step 2: Using the table in Rosner (6th edition) on page 827 the correct column is B. Pr(Z > 2.38) = 0.0087

PubHlth 540

The Normal Distribution

Page 17 of 23

Alternative Solution Using URL on the Internet: Visit http://www-stat.stanford.edu/%7Enaras/jsm/FindProbability.html Type in 2.38 and click on RIGHT The answer = 0.00865 appears at bottom.

Example How likely is it that a standard normal random variable will assume a value in the interval [-2.58, +0.58]? Solution = 0.714 step 1: Translate the "words" into an event. Z assuming a value in the interval [-2.58, +0.58] is equivalent to Pr[-2.58 <= Z <= +0.58] = ?

PubHlth 540

The Normal Distribution

Page 18 of 23

step 2: If you are using the table in Rosner (6th Edition), re-express event of interest into a form that uses the event type Z < z and use column A. Or a form that uses the event of type Z > z and use column B. Its the same either way! Pr[-2.58 <= Z <= +0.58] = Pr[Z >= -2.58] Pr[Z > +0.58].

Notice now that Pr[Z > -2.58] is not available in the table. We can get around this by using Tip #1 which gives us. Pr[Z > -2.58] = 1 - Pr[Z < -2.58] = 1 Pr[Z > +2.58] Thus, Pr[-2.58 <= Z <= +0.58] = Pr[Z > -2.58] - Pr[Z > +0.58] = { 1 Pr[Z>+2.58] } Pr[Z>+0.58] = 1 - Pr[Z > +2.58] - Pr[Z < +0.58] step 3: We have what we need to use Table 3 of Rosner (6th edition). Locate 2.58 on page 828. Read from column B that Pr(Z >= 2.58) = 0.0049 Locate 0.58 on page 825. Read that Pr(Z >= 0.58) = 0.2810 step 4: Put this information back into the translation obtained in step 2. Pr[-2.58 <= Z <= +0.58] = Pr[Z > -2.58] - Pr[Z > +0.58] = { 1 Pr[Z>+2.58] } Pr[Z>+0.58] = 1 - Pr[Z > +2.58] - Pr[Z > +0.58] = 1 0.0049 0.2810 = 0.7141

PubHlth 540

The Normal Distribution

Page 19 of 23

7. From Normal (, 2) to the Standardized Normal (0,1) The Z Score Seen already are two z-score transformations. From these, a useful generalization is also seen. 1. If X is distributed Normal (, 2)

z-score =

is distributed Normal(0,1)

2.

If X is distributed Normal (, 2/n)

z-score =

X is distributed Normal(0,1) n
Y-E(Y) is distributed Normal(0,1) var(Y)

3.

If a generic random variable Y is distributed Normal with

z-score =

Y = E(Y) 2 Y = Var(Y)
Note To appreciate the third row, notice that in #1, the choice is Y=X. In #2, the choice is Y= X

It is the z-score transformation that allows us to obtain interval probabilities for ANY Normal Distribution.

PubHlth 540

The Normal Distribution

Page 20 of 23

Example The Massachusetts State Lottery averages, on a weekly basis, a profit of 10.0 million dollars. The variability, as measured by the variance statistic is 6.25 million dollars squared. If it is known that the weekly profits is distributed normal, what are the chances that, in a given week, the profits will be between 8 and 10.5 million dollars? Solution = .367 step 1: Translate the "words" into an event. Since we're no longer dealing with a standard normal random variable, it is convenient to use X to denote the random variable defined as the profit earned in a given week. X assuming a value in the interval [8,10.5] is equivalent to Pr[8 <= X <= 10.5] = ? step 2: Re-express the event of interest into a form that uses the event type X < x. Pr[8 <= X <= 10.5] = Pr[X >= 8] - Pr[X >= 10.5] step 3: Before using the transformation formula, solve for the variance of the normal distribution of X. To see that this is correct, look at the 3rd row of the chart on the previous page (page 19). This is the standard deviation of the normal distribution of X. If 2 = 6.25 Then = 6.25=2.5

PubHlth 540

The Normal Distribution

Page 21 of 23

step 4: Apply the z-score transformation formula. Pr[X > 8] - Pr[X > 10.5] for the random variable X distributed Normal(=10, 2=6.25)
X- X 8-10 X- X 10.5-10 = Pr -Pr 2.5 X 2.5 X

= Pr[Z >= -0.80] - Pr[Z > 0.20] for the random variable Z distributed Normal(0,1) = 1 - Pr[Z >= +0.80] - Pr[Z > +0.20] step 5: Use the normal probability table to solve for probabilities of interest. Using the Table in Rosner (6th edition), pages 825-6 reveals Pr(Z >= +0.80) = 0.2119 Pr(Z >= +0.20) = 0.4207 step 6: Put this information back into the translation obtained in step 2. Pr[ 8 <= X <= 10.5] = 1 - Pr[Z >= +0.80] - Pr[Z > +0.20] = 1 0.2119 0.4207 = 0.3674

PubHlth 540

The Normal Distribution

Page 22 of 23

9. From Normal (0,1) to Normal (, 2) Sometimes we will want to work the z-score transformation backwards

We might want to know values of selected percentiles of a Normal distribution (e.g. median cholesterol value) Knowledge of how to work this transformation backwards will be useful in confidence interval construction

1.

If Z is distributed Normal(0,1)

Then X=Z + distributed Normal(, 2)

2. 3.

If Z is distributed Normal(0,1) If Z is distributed Normal(0,1)

Z+ is Normal (, 2/n) Then X= n

generic Y =

var(Y) Z+E(Y) is Normal

Y = E(Y) 2 = Var(Y) Y

PubHlth 540

The Normal Distribution

Page 23 of 23

Example Suppose it is known that survival time following a diagnosis of mesothelioma is normally distributed with =2.3 years and variance 2=7.2 years squared. What is the 75th percentile, the elapsed time during which 75% of such cases are expected to die? Solution = 4.11 years step 1: The first step is to recognize that a percentile references a left tail probability. Using the table in Rosner (6th edition), column A, read that Prob [ Z < 0.67] = .7486 Prob [ Z < 0.68] = .7517 Thus, approximately (crude interpolation) Prob [Z < 0.675] = .75 Thus, the 75th percentile of a Normal (0,1) is Z.75 = 0.675 , approximately step 2: Let X represent the random variable for the normal distribution of survival times. This normal distribution has mean X = 2.3 and variance 2 =7.2 X step 3: Work the z-score transformation formula backwards.

X.75 = X Z.75 + X

7.2 (.675) + 2.3

= 4.11 years
Thus, it is expected that 75% of persons newly diagnosed with mesothelioma will have died within 4.11 years. This is the same as saying that there is an expected 25% chance of surviving beyond 4.11 years.

You might also like