Class : More Formulas for Derivative and their …€¦ · Web view(Using Class 18.ppt) What is...

41
Class 18: Variance(Dispersion) and Standard Deviation Why dispersion is important? Random variable-variable taking numerical values determined by the outcome of a random phenomenon. Discrete Random Variable: Example 1 from Text from Variance Section(Using Class 18.ppt) 1. What is similar and what is different about the two random variables, X and Y in the text Example 1? Similar Both X & Y random variables have 2,3,4,5,6 as possible out comes Both have the same mean Different Y random variable has 1,7 as possible out comes The probability for X is concentrated near the middle of the plot, while the probability for Y is spread out in board 2. What is the mean of each random variable, X and Y? m X = 4 and m Y = 4 3. Looking at the values of X and Y, which random variable has the larger variance? Recall the standard deviation “the average distance of the data from the averageBut we know variance=(standard deviation) 2 Therefore the random variable with the larger standard variance will have the larger variance When you compare the compare the shapes of the two histograms, the random variable Y has a higher standard deviation because there is more dispersion of the data. More dispersion in Y means that more data points are away from the average ->Y random variable has the larger variance 4. From the tables, what is the variance of X? And of Y? V ( X )=0.7 V ( Y )=3.3 5. From the tables, what is the standard deviation of X? And of Y? 6. Look at the calculation of the variance of X and Y (see PowerPoint). From this, write down the formula for the variance of a discrete random variable. 1 σ X =V ( X )=0.70 0.84 σ Y =V ( Y )=3.301.82 . V ( X )= all x ( xμ X ) 2 f X ( x )

Transcript of Class : More Formulas for Derivative and their …€¦ · Web view(Using Class 18.ppt) What is...

Page 1: Class : More Formulas for Derivative and their …€¦ · Web view(Using Class 18.ppt) What is similar and what is different about the two random variables, X and Y in the text Example

Class 18: Variance(Dispersion) and Standard Deviation

Why dispersion is important? Random variable-variable taking numerical values determined by the outcome of a random phenomenon. Discrete Random Variable: Example 1 from Text from Variance Section(Using Class 18.ppt)1. What is similar and what is different about the two random variables, X and Y in the text Example 1?

Similar Both X & Y random variables have 2,3,4,5,6 as possible out comes Both have the same mean

Different Y random variable has 1,7 as possible out comes The probability for X is concentrated near the middle of the plot, while the probability for Y is spread out in board

2. What is the mean of each random variable, X and Y? mX = 4 and mY = 4

3. Looking at the values of X and Y, which random variable has the larger variance?Recall the standard deviation “the average distance of the data from the average”

But we know variance=(standard deviation)2

Therefore the random variable with the larger standard variance will have the larger variance

When you compare the compare the shapes of the two histograms, the random variable Y has a higher standard deviation because there is more dispersion of the data.

More dispersion in Y means that more data points are away from the average ->Y random variable has the larger variance

4. From the tables, what is the variance of X? And of Y?

V ( X )=0 . 7V (Y )=3 .35. From the tables, what is the standard deviation of X? And of Y?

6. Look at the calculation of the variance of X and Y (see PowerPoint). From this, write down the formula for the variance of a discrete random variable.

Continuous Random Variable: Example 4 from Text from Variance SectionThe random variable giving the time between computer breakdowns is an exponential random variable with α = 16.8.7. What is the formula for the pdf of this random variable?

1

σ X=√V ( X )=√0 .70≃0 . 84

σ Y=√V (Y )=√3 .30≃1. 82 .

V ( X )=∑all x

(x−μX )2⋅f X( x )

f X( x )=[0 if x<0

116 .8

⋅e−x /16 .8 if 0≤x

Page 2: Class : More Formulas for Derivative and their …€¦ · Web view(Using Class 18.ppt) What is similar and what is different about the two random variables, X and Y in the text Example

8. What is the formula for the mean of this random variable? E(X) = a9. Find the mean using Integrating.xls.

.)()(

dxxfxXE XXm

=x*(1/16.8)*EXP(-x/16.8)

10. What is the formula for the variance of this random variable?

V ( X )=0

(x−16 .8 )2∗ 116 .8

e− x/16. 8 dx (When using Excel)

V ( X )=α 2

11. Find the variance.

2

Page 3: Class : More Formulas for Derivative and their …€¦ · Web view(Using Class 18.ppt) What is similar and what is different about the two random variables, X and Y in the text Example

V ( X )=(16. 8 )2=282.2412. What is the standard deviation of this random variable?

13. Sketch a graph of the pdf of this random variable.

=IF(x<0,0,(1/16.8*EXP(-x/16.8)))

Definition Computation Plot Interval ConstantsFormula for f(x) x f(x) a b s  

 0.05952

4  0.05952

4 -10 100 t  

u  v  w  

3

σ X=√V ( X )=√α 2=α=16 .8

Page 4: Class : More Formulas for Derivative and their …€¦ · Web view(Using Class 18.ppt) What is similar and what is different about the two random variables, X and Y in the text Example

14. Guess the standard deviation of a general exponential random variable.

Uniform DistributionA uniformly distributed random variable has a pdf with the same value for all values of the variable. Suppose X is uniform random variable taking all values between 0 and 8.15. Sketch a graph of the pdf..

16. What must be true of the area under the graph?1

17. What is the formula for the pdf?

18. What is the mean of the random variable X? (Excel not needed.)

4

σ X=√V ( X )=√α 2=α

f X( x )=¿

[0 if x<0

[ 18

if 0≤x≤8

[0 if 8<x

[

Page 5: Class : More Formulas for Derivative and their …€¦ · Web view(Using Class 18.ppt) What is similar and what is different about the two random variables, X and Y in the text Example

(0+8)/2=4

19. Find the variance of X. (Excel needed.)

(8-0)2 /12=5.33

20. Find the standard deviation of X.

2.309

5

Page 6: Class : More Formulas for Derivative and their …€¦ · Web view(Using Class 18.ppt) What is similar and what is different about the two random variables, X and Y in the text Example

Class 19: Variance of Distributions; Sample StatisticsVariance of Binomial Distribution: Use BionomialVariance.xls1. The Excel file contains the calculation to find the expected value, variance, and standard deviation of the Binomial distribution

with n = 28 and p = 0.2. Note down the answers.

2. Now adapt the file to find the expected value, variance, and standard deviation for n = 50 and p = 0.2. Note down the answers.

6

Page 7: Class : More Formulas for Derivative and their …€¦ · Web view(Using Class 18.ppt) What is similar and what is different about the two random variables, X and Y in the text Example

3. Adapt the file again for n = 50 and p = 0.4. Write down the expected value, variance, and standard deviation.Similar to 2

4. In some order, the formulas for the expected value, variance, and standard deviation of the Binomial distribution with n trial and probability p are the following: √np (1− p ) ; np (1− p); np. Match them up by checking the formulas against the values you found in Questions #1-3.

Binomial Distribution

Expected valuenp

Variance np (1−p)

Standard deviation √np (1− p )

What if we have a sample instead of a whole distribution? (Think about the errors of the historical signals; these are a sample.) How do you find the mean, variance and standard deviation of the sample? We need new formulas, which follow:For a Sample: Mean Variance Standard deviation

.1

1

n

iix

nx

=average(…..) =var(….) =stdev(…..) 5. Example8 from text: Let X be the number of days that a heart transplant recipient stays in the hospital after a transplant . An

insurance executive wanted to estimate the mean, mX, and standard deviation, sX. To do this, she took a random sample of 12 transplant recipients. The numbers of days for which these people were hospitalized are. 8, 7, 9, 10, 9, 10, 6, 7, 6, 8, 10, 8 (Use Excel)

7

s2= 1n−1

⋅∑i=1

n

(x i−x )2 . s=√ 1n−1

⋅∑i=1

n

( xi−x )2 .

Page 8: Class : More Formulas for Derivative and their …€¦ · Web view(Using Class 18.ppt) What is similar and what is different about the two random variables, X and Y in the text Example

6. Find the mean of your team’s proven values. $229.8M

7. What does the mean of the proven values tell you?Class project===========The typical value of the proven value of a lease is $229.8M

8

Page 9: Class : More Formulas for Derivative and their …€¦ · Web view(Using Class 18.ppt) What is similar and what is different about the two random variables, X and Y in the text Example

8. Find the variance and standard deviation of your team’s proven values.

9. What does the standard deviation of the proven values tell you?The average distance of the proven values from the average of $229.8M is $38.73M

10. Find the mean of your team’s errors.

11. What does the mean of the errors tell you?

The typical value of the error is $0.13M

12. Find the variance and standard deviation of your team’s errors.See table under problem 30

13. What does the standard deviation of your team’s errors tell you?The average distance of the error from the average of $0.13M is $13.53M

14. What assumptions does the project make that relate to the errors? Restate these assumptions explicitly in terms of the errors.

9

Page 10: Class : More Formulas for Derivative and their …€¦ · Web view(Using Class 18.ppt) What is similar and what is different about the two random variables, X and Y in the text Example

Mean error ->very small->zero->This means geologist are equally expert and can estimate the correct value of the leases

15. How do your answers reflect those assumptions? Mean error ->very small->zero->This means geologist are equally expert and can estimate the correct value of the leases

What can we learn from a sample? We often take a sample to learn about the whole population. (For example, the test market sales in the Marketing project were samples.)

In Variance.xls, Random Variables page, look at the samples from X and Y. Press F9 to regenerate.16. The sample mean, x, is it itself a random variable. Why?

Created from a random variable

17. The error is the magnitude of the difference between the true mean, which is 4 for both X and Y, and the sample mean. Compare the errors for X and Y. What do you notice?

Errors for Y is larger than X

18. Explain how you could have predicted whether X or Y would have the largest error.Y, Y is spread out more than X

19. What do you think will be the average of all the sample means, for many samples from X?

4, some sample means will be below 4, some sample means will be above 4

20. What do you think is the value of E ¿)? 4

Variance.xls, Simulation page, shows samples from a Binomial distribution with n = 10 and p = 0.4.21. What are the expected value, variance, and standard deviation of the original Binomial distribution?

10

Page 11: Class : More Formulas for Derivative and their …€¦ · Web view(Using Class 18.ppt) What is similar and what is different about the two random variables, X and Y in the text Example

Now we look at the distribution of the sample means.

22. What is mean of all the sample means? 4

23. How does your answer to #22 relate to the mean of the original distribution?They are equal to each other

24. What is the standard deviation of all the sample means?0.774

25. How does your answer to #24 relate to the standard deviation of the original distribution and the sample size, 4?11

Page 12: Class : More Formulas for Derivative and their …€¦ · Web view(Using Class 18.ppt) What is similar and what is different about the two random variables, X and Y in the text Example

Standard deviation of Original distribution= Standard deviation of all sample means*(sample saize)1/2

Class 20: Central Limit Theorem: How Does the Mean of a Sample Vary as the Sample Varies?

Purpose of this class: In the future we want to learn about a whole population from a sample. For example, if you sample shoppers to see how much they will pay for a new item, what can you conclude? In order to draw conclusions from the sample (referred to as “making a statistical inference”), we have to know how the mean of a sample varies as we take new samples. This is what the Central Limit Theorem tells us and this is what we will do today.

At the end of last time, we talked about samples drawn from X and Y in Variance.xls, Random Variables page. Andrew correctly saw that the means of samples from Y would vary more than the means of the samples from X because Y had a larger standard deviation. 1. With a partner, find the means of 10 samples of X and the means of 10 samples of Y. Record them in a spreadsheet. Note that you

get a new sample by pressing F9.2. What calculation can you do to see if the means of the Y samples are more spread out than the means of the X samples? Do it!

Find the sample mean of each sample & find the error3. What do you think will be the average of all the sample means for many samples from X? 4

The average of the sample means for many samples from Y? 4

12

Page 13: Class : More Formulas for Derivative and their …€¦ · Web view(Using Class 18.ppt) What is similar and what is different about the two random variables, X and Y in the text Example

4. Summarize your results by filling in the following table:X Y

E ¿) = Write a number =4 E ¿) = Write a number=4

σ ¿) is Choose big or small=small σ ¿) is Choose big or small=big

5.Does your table support our belief? Yes. Y, Y is spread out more than X, Errors for Y is larger than X

Distribution of Sample Means: Central Limit Theorem Look at SampleMeans.xls, Continuous page, the left hand graph. This graph shows the distribution of means of samples of size n. The samples are from a uniform distribution on the interval [0, 10], which has mean μ = 5 and standard deviation σ = 2.9. Look at samples of size 30, by setting n = 30. 6. In words, describe the shape of the pdf of the sample means. (Left hand graph.)

13

Page 14: Class : More Formulas for Derivative and their …€¦ · Web view(Using Class 18.ppt) What is similar and what is different about the two random variables, X and Y in the text Example

7. What does this graph suggest is the expected value of the mean? 5

8. What is the actual mean of the means of the 1000 samples? (Read from file.)5.021

9. What is the actual standard deviation of the means of the 1000 samples? (Read from file.).539

14

Page 15: Class : More Formulas for Derivative and their …€¦ · Web view(Using Class 18.ppt) What is similar and what is different about the two random variables, X and Y in the text Example

Central Limit Theorem says that as sample size, n, gets larger, the distribution of sample means is approximately

-Normal, and has-Same mean as original distribution; that is, Mean = μ-Standard deviation = original standard deviation over square root sample size; that is, Standard

Deviation =σ√n

10. What does the Central Limit Theorem tell you about the expected value of the mean? (Compare with your answer to #8) equal to the mean of the original distribution(5)

11. What does the Central Limit Theorem tell you about the standard deviation of the mean? Compare with your answer to #9)σ√n

= 2.9√30

=.529

12. The shape of this distribution of sample means is called normal. Draw a graph of the exact distribution using Graphing.xls and = NORMDIST(x, μ, σ, false) and the interval [0,10]. Use μ, σ, from #10, #11. (Sketch graph here.)

13. Does your graph agree with the graph in Sample Means.xls? YES. 14. Use SampleMeans.xls to make a table about the distribution of sample means for n = 10, 15,25, 30:

15

Page 16: Class : More Formulas for Derivative and their …€¦ · Web view(Using Class 18.ppt) What is similar and what is different about the two random variables, X and Y in the text Example

Sample size, n Mean from CLT Mean from Samples Std Dev from CLT Std Dev from Samples

105 4.959 2.9

√10=0.917

0.882

155 5.019 2.9

√15=0.748

.728

205 4.992 2.9

√20=0.648

.652

255 4.980 2.9

√25=0.58

.584

305 4.999 2.9

√30=0.529

.519

15. What do you observe about the mean and standard deviation as n gets larger? The two methods give the same valuesDoes this confirm the Central Limit Theorem? YES

The Normal Distribution16. Using = NORMDIST(x, μ, σ, false), graph the pdf for σ = 1 and μ = 0, 1, 2, 3, --1, Use the interval [--5, 5].Mean 0 Mean 2

17. What does the value of μ tell you? What does changing μ do?

The x-value of the peak(Typical value), The location peak changes

Mean 1Mean -1

16

Page 17: Class : More Formulas for Derivative and their …€¦ · Web view(Using Class 18.ppt) What is similar and what is different about the two random variables, X and Y in the text Example

18. Using = NORMDIST(x, μ, σ, false), graph the pdf for σ = 1 and μ = 0 and σ = 1, 2, 3, 0.5, Use the interval [--5, 5].

17

Page 18: Class : More Formulas for Derivative and their …€¦ · Web view(Using Class 18.ppt) What is similar and what is different about the two random variables, X and Y in the text Example

19. What does the value of σ tell you? The average distance from the average value What does changing σ do? When it is larger the graph gets wider

20. Standard normal distribution has mean of zero and standard deviation of 1. Which is its graph

18

Page 19: Class : More Formulas for Derivative and their …€¦ · Web view(Using Class 18.ppt) What is similar and what is different about the two random variables, X and Y in the text Example

Class 22: The Normal Distribution1. Match the following graphs of normal pdfs with the one of the value of the parameters µ and σ. You will not use all the values of

the parameters.µ, σ. (0.1) (1,0) (1, 1) (2,1) (-1,1) (0, 2) (0, 0.5) (10, 1) (10,3) (10,10)

answers d none e a b c f g h none

(a) (b)

(c) (d)

(e) (f)

19

Page 20: Class : More Formulas for Derivative and their …€¦ · Web view(Using Class 18.ppt) What is similar and what is different about the two random variables, X and Y in the text Example

g) (h)

The normal distribution with mean µ and standard deviation σ has pdf

f X ( x )= 1σ √2 π

e−( x−μ )2/(2 σ 2)

though w use = NORMDIST(x, μ , σ , false ¿ for computation. The standard normal has μ=0 , σ=1.

Probabilities and the standard normal distribution. Let X have the standard normal distribution. 2. Using the pdf, write an expression for the probability that X is within one standard deviation of the mean. (Use the formula at the

top of the page.)

P(−1≤ X ≤1)=−1

1

❑ 11√2 π

e−0.5( x−0

1 )2

dx

3. Using the pdf, calculate the probability that X is within one standard deviation of the mean.Using integrating.xls & answer in 2 we get .6827

4. Using the cdf, calculate the probability that X is within one standard deviation of the mean. To find cdf at 1 use NORMDIST(1, 0, 1 ,true ¿

P (−1≤ X ≤ 1 )=F x (1 )−F x (−1 )=0.6827

5. Using the pdf, write an expression for the probability that X is within two standard deviations of the mean. (Use the formula at the top of the page.)

P(−2 ≤ X ≤2)=−2

2

❑ 11√2 π

e−0.5( x−0

1 )2

dx

6. Using the pdf, calculate the probability that X is within two standard deviations of the mean.integrating.xls & answer in 5 we get .9545

7. Using the cdf, calculate the probability that X is within two standard deviations of the mean.P (−2≤ X ≤ 2 )=Fx (2 )−Fx (−2 )=0. 9545

20

Page 21: Class : More Formulas for Derivative and their …€¦ · Web view(Using Class 18.ppt) What is similar and what is different about the two random variables, X and Y in the text Example

8. Using the pdf, write an expression for the probability that X is within three standard deviations of the mean. (Use the formula at the top of the page.)

P(−3 ≤ X ≤3)=−3

3

❑ 11√2π

e−0.5( x−0

1 )2

dx

9. Using the pdf, calculate the probability that X is within three standard deviations of the mean.integrating.xls & answer in 28 we get .9973

10. Using the cdf, calculate the probability that X is within three standard deviations of the mean.P (−3≤ X ≤ 3 )=F x (3 )−Fx (−3 )=0.9973

Probabilities for any normal distribution: “Rule of Thumb”11. The results in #2-10 are true for all normal distributions. Summarize your results in the following table

Distance from Mean in Normal Distribution Probability

Within one standard deviation of mean0.6827

Within two standard deviations of mean.9545

Within three standard deviations of mean.9973

12. A machine filling cereal boxes puts an average of 15.5 oz in each box, with standard deviation 0.3 oz. If the amounts are normally distributed, what fraction of the boxes contain less than 15 oz?

Definition Computation Plot IntervalIntegration

IntervalFormula for f(x) x f(x) A B a b

  0   0 14 16.5 14 15 0.0478

Constantss  t  u  v  w  

13.5 14 14.5 15 15.5 16 16.5 170

0.20.40.60.8

11.21.4

FUNCTION

x

f(x)

dxxfba )(

21

Page 22: Class : More Formulas for Derivative and their …€¦ · Web view(Using Class 18.ppt) What is similar and what is different about the two random variables, X and Y in the text Example

13. Airlines oversell seats on planes because some passengers do not show up. If a plane holds 180 people and the number of people who show up has mean 165 and standard deviation 13 people, what is the probability that the airline will have an oversold plane? (That is, more passengers than seats.)

Definition Computation Plot Interval Integration IntervalFormula for f(x) x f(x) A B a b

 3.2E-

37  3.2E-

37 126 204 180 204 0.1229

Constantss  t  u  v  

120 130 140 150 160 170 180 190 200 2100

0.0050.01

0.0150.02

0.0250.03

0.035

FUNCTION

x

f(x)

dxxfba )(

22

Page 23: Class : More Formulas for Derivative and their …€¦ · Web view(Using Class 18.ppt) What is similar and what is different about the two random variables, X and Y in the text Example

w  

14. How many seats must be added to the plane in to reduce the probability of overselling to below 10%?

Definition Computation Plot Interval Integration IntervalFormula for

f(x) x f(x) A B a b

 3.2E-

37   3.2E-37 126 204 181.561 204 0.1000

Constantss  t  u  v  w  

120 130 140 150 160 170 180 190 200 2100

0.0050.01

0.0150.02

0.0250.03

0.035

FUNCTION

x

f(x)

120 130 140 150 160 170 180 190 200 2100

0.0050.01

0.0150.02

0.0250.03

0.035

FUNCTION

x

f(x)

dxxfba )(

23

Page 24: Class : More Formulas for Derivative and their …€¦ · Web view(Using Class 18.ppt) What is similar and what is different about the two random variables, X and Y in the text Example

Class 23: The Standard Normal Distribution

Standardization of Normal Random Variables. If X is normally distributed, its standardization is

Z= x−μσ

1. What is the distribution of Z? Standard Normal

Suppose that X is normally distributed, with a mean X of 30 and standard deviation of 5. 2. What is the Z-value (that is, the standardized value) of X = 35? 1

3. What is the standardized value of X =40? 2

4. What is the Z-value of X = 25? -1

5. If a value of X is three standard deviations above the mean, what is its Z value? 3 What is the X value? 45

120 130 140 150 160 170 180 190 200 2100

0.0050.01

0.0150.02

0.0250.03

0.035

FUNCTION

x

f(x)

24

Page 25: Class : More Formulas for Derivative and their …€¦ · Web view(Using Class 18.ppt) What is similar and what is different about the two random variables, X and Y in the text Example

6. What is the probability of getting a Z-value that is two standard deviations above the mean?Using standard normal graph(formula sheet)=2.35% , using integrating.xls 2.27%

Definition Computation Plot IntervalIntegration

IntervalFormula for f(x) x f(x) A B a b

 0.3989

4  0.3989

4 -5 5 2 5 0.0227

Constantss  t  u  v  w  

7. What is the probability of getting a Z-value that is more than two standard deviations away from the mean, either above or below?Using standard normal graph(formula sheet)=4.7% , using integrating.xls 4.54% [ sum of the shaded areas-two tails of the two graphs below]

Definition Computation Plot Interval Integration IntervalFormula for f(x) x f(x) A B a b

  0.39894   0.39894 -5 5 -5 -2 0.0227

Constantss  t  u  v  

-6 -4 -2 0 2 4 60

0.050.1

0.150.2

0.250.3

0.350.4

0.45

FUNCTION

x

f(x)

dxxfba )(

-6 -4 -2 0 2 4 60

0.050.1

0.150.2

0.250.3

0.350.4

0.45

FUNCTION

x

f(x)

dxxfba )(

25

Page 26: Class : More Formulas for Derivative and their …€¦ · Web view(Using Class 18.ppt) What is similar and what is different about the two random variables, X and Y in the text Example

w  

Definition Computation Plot Interval Integration Interval

Formula for f(x) x f(x) A B a b

  0.39894   0.39894 -5 5 2 5 0.0227

Constants

s  

t  

u  

v  

w  

-6 -4 -2 0 2 4 60

0.050.1

0.150.2

0.250.3

0.350.4

0.45

FUNCTION

x

f(x)

-6 -4 -2 0 2 4 60

0.050.1

0.150.2

0.250.3

0.350.4

0.45

FUNCTION

x

f(x)

dxxfba )(

26

Page 27: Class : More Formulas for Derivative and their …€¦ · Web view(Using Class 18.ppt) What is similar and what is different about the two random variables, X and Y in the text Example

8. What is the probability of getting a X value that is two standard deviations above the mean?Using standard normal graph(formula sheet)=2.35% , using integrating.xls 2.27%

Definition Computation Plot Interval Integration IntervalFormula for

f(x) x f(x) A B a b

 1.2E-

09  1.2E-

09 10 50 40 50 0.0227

Constantss  t  u  v  w  

9. What is the probability of getting a X value that is more than two standard deviations away from the mean, either above or below?Using standard normal graph(formula sheet)=4.7% , using integrating.xls 4.54%

Finding the Z value corresponding to particular probabilities

5 10 15 20 25 30 35 40 45 50 550

0.010.020.030.040.050.060.070.080.09

FUNCTION

x

f(x)

dxxfba )(

27

Page 28: Class : More Formulas for Derivative and their …€¦ · Web view(Using Class 18.ppt) What is similar and what is different about the two random variables, X and Y in the text Example

10. Using Excel, find the value of z0 such that P (Z<z0 )=0.975 . Give two decimal places. Use NORMDIST and trial and error.1.96

Definition Computation Plot Interval Integration IntervalFormula for f(x) x f(x) A B a b

 0.3989

4  0.3989

4 -5 5 -51.9599

6 0.9750

Constantss  t  u  v  w  

11. Find P (−z0<Z<z0 ), where z0 is as in #10.

0.95

12. Find the value of z0 such that P (−z0<Z<z0 )=0.99 .2.575

-6 -4 -2 0 2 4 60

0.050.1

0.150.2

0.250.3

0.350.4

0.45

FUNCTION

x

f(x)

dxxfba )(

28

Page 29: Class : More Formulas for Derivative and their …€¦ · Web view(Using Class 18.ppt) What is similar and what is different about the two random variables, X and Y in the text Example

Definition Computation Plot Interval Integration IntervalFormula for f(x) x f(x) A B a b

 0.3989

4   0.39894 -5 5 -5 2.57589 0.9950

Constantss  t  u  v  w  

A 50 kg sack of flour contains a weight of flour that is normally distributed with mean 51 kg and standard deviation 2 kg . 13. What is the Z-value of a weight of 50 kg?

-0.5

14. What is the probability of a sack being underweight?0.3085

Standardization of Mean from Samples of Size n . By the Central Limit Theorem, the sample means x is normally distributed with mean µ and standard deviation σ/√n Thus the standardization, has the standard normal distribution, where

Z= x−μσ /√n

This is true no matter what the distribution of X provided the samples are random and n is large enough (usually above 30). (Quite remarkable!)15. A sample of 4 sacks of flour has mean 50 kg. What is the Z-value of this mean?

-1

16. What is the probability of a mean of 50 kg or lower?

0.1587

-6 -4 -2 0 2 4 60

0.050.1

0.150.2

0.250.3

0.350.4

0.45

FUNCTION

x

f(x)

dxxfba )(

29

Page 30: Class : More Formulas for Derivative and their …€¦ · Web view(Using Class 18.ppt) What is similar and what is different about the two random variables, X and Y in the text Example

17. A sample of 25 sacks of flour has mean 50 kg. What is the Z-value of this mean?

-2.5

18. What is the probability of a mean of 50 kg or lower?

0.0062

19. A sample of 100 sacks of flour has mean 50 kg. What is the Z-value of this mean? -5

20. What is the probability of a mean of 50 kg or lower?0

30

Page 31: Class : More Formulas for Derivative and their …€¦ · Web view(Using Class 18.ppt) What is similar and what is different about the two random variables, X and Y in the text Example

Class 24: Confidence Intervals

Last time we showed that P(−1. 96<Z<1 .96 )=0. 95 , where Z is the standard normal variable.

The variable Z represents the standard normal variable.

P(−1.96<Z<1 .96 )=0. 95

1. Represent this on a diagram.

2. Explain what this result means in words.

We are 95 % confident the Z value will fall between -1.96 and 1.96

31

Page 32: Class : More Formulas for Derivative and their …€¦ · Web view(Using Class 18.ppt) What is similar and what is different about the two random variables, X and Y in the text Example

Suppose that X is normally distributed, with a mean X of 30 and standard deviation of 5. Let

Z= x−305

3. What is the value of P(−1.96< x−30

5<1 .96 )

? Illustrate on a diagram.

P(−1. 96< x−305

<1 .96 )=P (−1 . 96<Z<1 . 96 )=0 . 95

4. What is the value of P(30−1.96∗5<x<30+1.96∗5 )? Illustrate on a diagram.

P(30−1.96∗5<x<30+1. 96∗5 )=P(−1. 96<Z<1 .96 )=0.95Same illustration as in part 3.

5. What is the value of P(20 .2< X<39 .8 )? Illustrate on a diagram.This is the same probability; just evaluate the values of X at the end points as in the graph in part 3.

Standardization of Mean from Samples of Size n . By the Central Limit Theorem, for a sample of size n, the sample means x are normally distributed with mean µ and standard deviation σ /√n. Thus the standardization, Z, has the standard normal distribution, where

Z= x−μσ /√n

32

Page 33: Class : More Formulas for Derivative and their …€¦ · Web view(Using Class 18.ppt) What is similar and what is different about the two random variables, X and Y in the text Example

This is true no matter what the distribution of X provided the samples are random and n is large enough (usually above 30). (Quite remarkable!)Continuing the example where the random variable X has a mean 30 and standard deviation 5. Let’s take a sample of 100 and find the mean x6. What is the mean of all the possible xs?

The mean value is still the same, i.e. 30.

7. What is the standard deviation of all the possible xs?

The standard deviation is 5/√100=0. 5

8. What is the value of P(30−1. 96∗0 .5< x<30+1. 96∗0 .5 )? Illustrate on a diagram.This is the 95 % confidence interval. So the probability is 0.95

9. What is the value of P(29 . 02< x<30 . 98 )? Illustrate on a diagram.

Its value is 0.95, just evaluate the endpoints of the interval. We are 95 % sure the values of x will fall between 29.02 and 30.98. The graph is the same as in part 8.

10. What is the interval in which there is a 95% chance of finding an x value?For X, the confidence interval is from 30-1.96*5, to 30+1.96*5. That is 20.2 to 39.8 as illustrated below.

33

Page 34: Class : More Formulas for Derivative and their …€¦ · Web view(Using Class 18.ppt) What is similar and what is different about the two random variables, X and Y in the text Example

11. What is the interval in which there is a 95% chance of finding an x?

The 95% confidence interval for the mean is, by part 8, (29.02, 30.98)

12. Which of the intervals, the one for X or the one for x , is longer? The 95% confidence interval for X is wider than that for the mean. Compare part 10 and 11

13. Give an intuitive explanation of why the interval for x is shorter than the interval for X.

The reason is that there is more concentration around the mean since we are dividing by the square root of the sample size, i.e. by 10.

14. What would happen to the length of the interval if the size of the sample (now 100) was increased? Would it get longer or shorter? Why?

The size of the interval will be squeezed further. It is inversely proportional to the square root of the size of the sample.

Now suppose that the mean of a distribution is NOT known, but that the standard deviation is known. Suppose we take a sample of size n and find that it has mean x . Then it can be shown that there is a 95% chance that the mean of the population lies in the interval given by the formula

(x−1 . 96 σ√n

, x+1 . 96 σ√n )

This is called the 95% confidence interval for the mean.15. A sample of size 100 taken from a population with standard deviation of 5. The mean of the sample is x = 29. What is the 95%

confidence interval?

It is (28.02,29.98)

16. What does your answer to #15 tell you?

We are 95% confident that there are no values of the sample below 28.02 and no values above 29.98

17. If a sample of 500 from the same population has mean x = 29, what is the 95% confidence interval?It would be from 28.56 to 29.44.

34

Page 35: Class : More Formulas for Derivative and their …€¦ · Web view(Using Class 18.ppt) What is similar and what is different about the two random variables, X and Y in the text Example

18. If a sample of 1000 from the same population has mean x = 29, what is the 95% confidence interval?It would be from 28.69 to 29.31.

Example 3, Normal Distributions, slide 155. An administrator samples 50 other administrators’ salaries and find the mean of the sample to be x = $88,989 and the standard deviation of the sample to be s = $22,358. The standard deviation of the sample is a good approximation to σ, the standard deviation of the population.19. Find the 95% confidence interval for the mean of all such administrators’ salaries.

Using

x−1.96σ X

√n, x+1.96

σ X

√n¿

($82,791, $ 95187)

20. What does the interval in #19 tell you?

95% chance that the mean national mean salary for his counter parts is between $82,791 & 95187The reason the administrator took the sample was to show that he was paid less that the mean.21. If the administrator’s own salary is $83,500, can he claim with 95% certainty that he is paid less than the mean? No . Because his salary is within the 95% confidence interval

22. If the administrator’s own salary is $81,500, can he claim with 95% certainty that he is paid less than the mean?Yes . Because his salary is outside the 95% confidence interval

Suppose the sample size had been 100 instead of 50.

The 95% confidence interval is NOW ($84,607, $93371)

23. With a salary of $83,500 would he have been able to claim he was paid less than the mean?

Yes . Because his salary is outside the 95% confidence interval

24. With a salary of $81,500 would he have been able to claim that he was paid less than the mean?

Yes . Because his salary is outside the 95% confidence interval

35

Page 36: Class : More Formulas for Derivative and their …€¦ · Web view(Using Class 18.ppt) What is similar and what is different about the two random variables, X and Y in the text Example

36