Examples of continuous probability distributions:

73
Examples of continuous probability distributions: The normal and standard normal

description

Examples of continuous probability distributions:. The normal and standard normal. The Normal Distribution. f(X). Changing μ shifts the distribution left or right. Changing σ increases or decreases the spread. σ. μ. X. - PowerPoint PPT Presentation

Transcript of Examples of continuous probability distributions:

Page 1: Examples of continuous probability distributions:

Examples of continuous probability distributions:

The normal and standard normal

Page 2: Examples of continuous probability distributions:

The Normal Distribution

X

f(X)

μ

σ

Changing μ shifts the distribution left or right.

Changing σ increases or decreases the spread.

Page 3: Examples of continuous probability distributions:

The Normal Distribution:as mathematical function (pdf)

2)(21

21)( σ

μ

σ

x

exf

Note constants:=3.14159e=2.71828

This is a bell shaped curve with different centers and spreads depending on μ and σ

Page 4: Examples of continuous probability distributions:

The Normal PDF

12

1 2)(21

dxexσμ

σ

It’s a probability function, so no matter what the values of μ and σ, must integrate to 1!

Page 5: Examples of continuous probability distributions:

Normal distribution is defined by its mean and standard dev. E(X)=μ =

Var(X)=σ2 =

Standard Deviation(X)=σ

dxexx

2)(

21

21 σ

μ

σ

2)(21

2 )2

1(2

μσ

σμ

dxexx

Page 6: Examples of continuous probability distributions:

**The beauty of the normal curve:

No matter what μ and σ are, the area between μ-σ and μ+σ is about 68%; the area between μ-2σ and μ+2σ is about 95%; and the area between μ-3σ and μ+3σ is about 99.7%. Almost all values fall within 3 standard deviations.

Page 7: Examples of continuous probability distributions:

68-95-99.7 Rule

68% of the data

95% of the data

99.7% of the data

Page 8: Examples of continuous probability distributions:

68-95-99.7 Rulein Math terms…

997.2

1

95.2

1

68.2

1

3

3

)(21

2

2

)(21

)(21

2

2

2

σμ

σμ

σμ

σμ

σμ

σμ

σμ

σμ

σμ

σ

σ

σ

dxe

dxe

dxe

x

x

x

Page 9: Examples of continuous probability distributions:

How good is rule for real data?

Check some example data:The mean of the weight of the women = 127.8The standard deviation (SD) = 15.5

Page 10: Examples of continuous probability distributions:

80 90 100 110 120 130 140 150 160 0

5

10

15

20

25

P e r c e n t

POUNDS

127.8 143.3112.3

68% of 120 = .68x120 = ~ 82 runners

In fact, 79 runners fall within 1-SD (15.5 lbs) of the mean.

Page 11: Examples of continuous probability distributions:

80 90 100 110 120 130 140 150 160 0

5

10

15

20

25

P e r c e n t

POUNDS

127.896.8

95% of 120 = .95 x 120 = ~ 114 runners

In fact, 115 runners fall within 2-SD’s of the mean.

158.8

Page 12: Examples of continuous probability distributions:

80 90 100 110 120 130 140 150 160 0

5

10

15

20

25

P e r c e n t

POUNDS

127.881.3

99.7% of 120 = .997 x 120 = 119.6 runners

In fact, all 120 runners fall within 3-SD’s of the mean.

174.3

Page 13: Examples of continuous probability distributions:

Example Suppose SAT scores roughly follows a normal

distribution in the U.S. population of college-bound students (with range restricted to 200-800), and the average math SAT is 500 with a standard deviation of 50, then: 68% of students will have scores between 450 and

550 95% will be between 400 and 600 99.7% will be between 350 and 650

Page 14: Examples of continuous probability distributions:

Example BUT… What if you wanted to know the math SAT

score corresponding to the 90th percentile (=90% of students are lower)?

P(X≤Q) = .90

90.2)50(

1

200

)50500

(21 2

Q x

dxe

Solve for Q?….Yikes!

Page 15: Examples of continuous probability distributions:

The Standard Normal (Z):“Universal Currency”The formula for the standardized normal

probability density function is

22 )(21)

10(

21

21

2)1(1)(

ZZ

eeZp

Page 16: Examples of continuous probability distributions:

The Standard Normal Distribution (Z) All normal distributions can be converted into

the standard normal curve by subtracting the mean and dividing by the standard deviation:

σμ

XZ

Somebody calculated all the integrals for the standard normal and put them in a table! So we never have to integrate!

Even better, computers now do all the integration.

Page 17: Examples of continuous probability distributions:

Comparing X and Z units

Z100

2.00200 X (μ = 100, σ = 50)

(μ = 0, σ = 1)

Page 18: Examples of continuous probability distributions:

Example For example: What’s the probability of getting a math SAT score of 575 or less, μ=500 and σ=50?

5.150

500575

Z

i.e., A score of 575 is 1.5 standard deviations above the mean

5.121575

200

)50500(

21 22

21

2)50(1)575( dzedxeXP

Zx

Yikes! But to look up Z= 1.5 in standard normal chart (or enter into SAS) no problem! = .9332

Page 19: Examples of continuous probability distributions:

Looking up probabilities in the standard normal table

What is the area to the left of Z=1.50 in a standard normal curve?

Z=1.50

Z=1.50

Area is 93.32%

Page 20: Examples of continuous probability distributions:

Looking up probabilities in the standard normal table

What is the area to the left of Z=1.51 in a standard normal curve?

Z=1.51

Z=1.51

Area is 93.45%

Page 21: Examples of continuous probability distributions:

Probit function: the inverse  (area)= Z: gives the Z-value that goes with

the probability you want  For example, recall SAT math scores

example. What’s the score that corresponds to the 90th percentile?

In the Table, find the Z-value that corresponds to an area of 90%...

Page 22: Examples of continuous probability distributions:

90% area corresponds to a Z score of about 1.28.

Page 23: Examples of continuous probability distributions:

Probit function: the inverseZ=1.28; convert back to raw SAT score 1.28 = X – 500 =1.28 (50) X=1.28(50) + 500 = 564 (1.28 standard deviations

above the mean!)

Page 24: Examples of continuous probability distributions:

Practice problem

If birth weights in a population are normally distributed with a mean of 109 oz and a standard deviation of 13 oz,

a. What is the chance of obtaining a birth weight of 141 oz or heavier when sampling birth records at random?

b. What is the chance of obtaining a birth weight of 120 or lighter?

Page 25: Examples of continuous probability distributions:

Answer

a. What is the chance of obtaining a birth weight of 141 oz or heavier when sampling birth records at random?

46.213

109141

Z

Page 26: Examples of continuous probability distributions:

Area to the right of 2.46 is: 1-.9931 = .0069 or .69%

Area to the left of Z=2.46 is .9931

Page 27: Examples of continuous probability distributions:

Answer

b. What is the chance of obtaining a birth weight of 120 or lighter?

85.13

109120

Z

Page 28: Examples of continuous probability distributions:

Area to the left of Z=0.85 is .8023 or 80.23%.

Page 29: Examples of continuous probability distributions:

Practice problem 2: DSST (a measure of cognitive function) is a normally distributed trait…

Normally distributedMean = 28 pointsStandard deviation = 10 points

Page 30: Examples of continuous probability distributions:

Practice problem 2 a. What percent of people have

values of DSST above 38? b. What percent of people have

values of DSST below 8?

Page 31: Examples of continuous probability distributions:

Answers a. What percent of people have

values of DSST above 38?

0.110

2838

Z

Thus, 16% of people have DSST’s above 38.

Page 32: Examples of continuous probability distributions:

Answers b. What percent of people have

values of DSST below 8?

0.210

288

Z

Thus, 2.5% of people have DSST’s below 8.

Page 33: Examples of continuous probability distributions:

Review question 1The probability that a standardized normal variable Z is positive is ____.

a. 100%b. 50%c. 10%d. 0%

Page 34: Examples of continuous probability distributions:

Review question 2The probability that Z is between -2 and -1 is _____.

a. 50%b. 34%c. 25.5%d. 13.5%

Page 35: Examples of continuous probability distributions:

Review question 3The probability that Z values are larger than _____ is 0.6985.

a. Z=1b. Z=0c. Z=-.5d. Z=+.5

Page 36: Examples of continuous probability distributions:

Review question 427% of Z values are smaller than ____.

a. Z=0b. Z=1c. Z=-.6d. Z=+.6

Page 37: Examples of continuous probability distributions:

Are my data “normal”? Not all continuous random

variables are normally distributed!! It is important to evaluate how well

the data are approximated by a normal distribution

Page 38: Examples of continuous probability distributions:

Are my data normally distributed?

1. Look at the histogram! Does it appear bell shaped?

2. Compute descriptive summary measures—are mean, median, and mode similar?

3. Do 2/3 of observations lie within 1 std dev of the mean? Do 95% of observations lie within 2 std dev of the mean?

4. Look at a normal probability plot—is it approximately linear?

5. Run tests of normality (such as Kolmogorov-Smirnov). But, be cautious, highly influenced by sample size!

Page 39: Examples of continuous probability distributions:

Data from our class…Median = 8Mean = 8.8Mode = 0

SD = 8.3Range = 0 to 32(= 4 σ)

Page 40: Examples of continuous probability distributions:

Data from our class…Median = 45Mean = 41Mode = 6

SD = 23Range = 0 to 83 (~ 3.5 σ

Page 41: Examples of continuous probability distributions:

Data from our class…Median = 4Mean = 3.7Mode = 4

SD = 1.8Range = 0.5 to 7 (~ 3.5 σ

Page 42: Examples of continuous probability distributions:

Data from our class…Median = 18Mean = 20Mode = 20

SD = 16Range = 2 to 70(~4 σ

Page 43: Examples of continuous probability distributions:

Data from our class…8.8 +/- 8.3 =0.5 – 17.10.5 17.1

Page 44: Examples of continuous probability distributions:

Data from our class…8.8 +/- 2*8.3 =0 – 25.4

Page 45: Examples of continuous probability distributions:

Data from our class…8.8 +/- 3*8.3 =0 – 33.7

Page 46: Examples of continuous probability distributions:

Data from our class…41 +/- 23 =18 – 64

18 64

Page 47: Examples of continuous probability distributions:

Data from our class…41 +/- 2*23 =0 – 87

0 87

Page 48: Examples of continuous probability distributions:

Data from our class…41 +/- 3*23 =0– 100

0 100

Page 49: Examples of continuous probability distributions:

Data from our class…

3.7 +/- 1.8=1.9 – 5.5

1.9 5.5

Page 50: Examples of continuous probability distributions:

Data from our class…

3.7 +/- 2*1.8=

0.1 – 7.3

0.1 7.3

Page 51: Examples of continuous probability distributions:

Data from our class…

3.7 +/- 3*1.8=

0 – 9.1

0 9.1

Page 52: Examples of continuous probability distributions:

Data from our class…

20 +/- 16 =4– 36

4 36

Page 53: Examples of continuous probability distributions:

Data from our class…

20 +/- 2*16 =

0– 52

052

Page 54: Examples of continuous probability distributions:

Data from our class…

20 +/- 3*16 =

0– 68

068

Outlier!

Page 55: Examples of continuous probability distributions:

The Normal Probability Plot Normal probability plot

Order the data. Find corresponding standardized normal

quantile values:

Plot the observed data values against normal quantile values.

Evaluate the plot for evidence of linearity.

area tail-left particular a toscorrespondthat value Z thegives which function,probit theis where

)1n

i( quantile

thi

Page 56: Examples of continuous probability distributions:

Normal probability plot coffee…

Right-Skewed!(concave up)

Page 57: Examples of continuous probability distributions:

Normal probability plot love of writing…

A wiggly line!

Page 58: Examples of continuous probability distributions:

Norm prob. plot Exercise…

Mostly a straight line!

Page 59: Examples of continuous probability distributions:

Norm prob. plot Wake up time

Right-Skewed!(concave up)

Page 60: Examples of continuous probability distributions:

Formal tests for normality Results: Coffee: Moderate evidence of non-

normality (p=.008 to p=.11) Writing love: No evidence of non-

normality (all p>.15) Exercise: No evidence of non-normality

(all p>.15) Homework: Strong evidence of non-

normality (all p<.01)

Page 61: Examples of continuous probability distributions:

Review question 5Which of the following does NOT support the conclusion that your data are normally distributed:

a. The histogram is bell-shaped.b. The normal probability plot is

approximately a straight line.c. The mean and the median are far apart.d. Formal tests of normality (with fancy

Russian names) yield high p-values.

Page 62: Examples of continuous probability distributions:

Normal approximation to the binomial

When you have a binomial distribution where the expected value is greater than 5 (np>5), then the binomial starts to look like a normal distribution

 Recall: What is the probability of being a

smoker among a group of cases with lung cancer is .6, what’s the probability that in a group of 8 cases you have less than 2 smokers?

Page 63: Examples of continuous probability distributions:

Normal approximation to the binomial

When you have a binomial distribution where n is large and p isn’t too small (rule of thumb: mean>5), then the binomial starts to look like a normal distribution  

Recall: smoking example…

1 4 52 3 6 7 80

.27 Starting to have a normal shape even with fairly small n. You can imagine that if n got larger, the bars would get thinner and thinner and this would look more and more like a continuous function, with a bell curve shape. Here np=4.8.

Page 64: Examples of continuous probability distributions:

Normal approximation to binomial

1 4 52 3 6 7 80

.27

What is the probability of fewer than 2 smokers?

 Normal approximation probability:μ=4.8 σ=1.39

239.1

8.239.1

)8.4(2

Z

Exact binomial probability (from before) = .00065 + .008 = .00865

P(Z<2)=.022

Page 65: Examples of continuous probability distributions:

A little off, but in the right ballpark… we could also use the value to the left of 1.5 (as we really wanted to know less than but not including 2; called the “continuity correction”)…

37.239.1

3.339.1

)8.4(5.1

Z

P(Z≤-2.37) =.0069 A fairly good approximation of the exact probability, .00865.

Page 66: Examples of continuous probability distributions:

Practice problem1. You are performing a cohort study. If the

probability of developing disease in the exposed group is .25 for the study duration, then if you sample (randomly) 500 exposed people, What’s the probability that at most 120 people develop the disease?

Page 67: Examples of continuous probability distributions:

Answer

 P(Z<-.52)= .301552.68.9125120

Z

5000500

0)75(.)25(.

4991

500

1)75(.)25(.

4982

500

2)75(.)25(.

380120

500

120)75(.)25(.

+ + + …

By hand (yikes!):

 P(X≤120) = P(X=0) + P(X=1) + P(X=2) + P(X=3) + P(X=4)+….+ P(X=120)=

OR use, normal approximation: μ=np=500(.25)=125 and σ2=np(1-p)=93.75; σ=9.68

Page 68: Examples of continuous probability distributions:

Review question 6If you flip a coin 1600 times, what is the approximate probability that you will get fewer than 860 heads?

a. 25%b. 2.5%c. 0.5%d. 0.005%

Page 69: Examples of continuous probability distributions:

Review Problem 7

Which of the following about the normal distribution is NOT true?

a. Theoretically, the mean, median, and mode are the same.

b. About 2/3 of the observations fall within 1 standard deviation from the mean.

c. It is a discrete probability distribution. d. Its parameters are the mean, μ , and standard

deviation, σ.

Page 70: Examples of continuous probability distributions:

Proportions… The binomial distribution forms the basis

of statistics for proportions. A proportion is just a binomial count

divided by n. For example, if we sample 200 cases and find

60 smokers, X=60 but the observed proportion=.30.

Statistics for proportions are similar to binomial counts, but differ by a factor of n.

Page 71: Examples of continuous probability distributions:

Stats for proportionsFor binomial:

)1(

)1(2

pnp

pnp

np

x

x

x

σ

σ

μ

For proportion:

npp

npp

npnp

p

p

p

p

)1(

)1()1(

ˆ

22

ˆ

ˆ

σ

σ

μ

P-hat stands for “sample proportion.”

Differs by a factor of n.

Differs by a factor of n.

Page 72: Examples of continuous probability distributions:

It all comes back to Z… Statistics for proportions are based

on a normal distribution, because the binomial can be approximated as normal if np>5

Page 73: Examples of continuous probability distributions:

Homework Problem Set 3 Reading: Vickers 10-15 Journal article/article review sheet