how confident are we that our sample means make sense? confidence intervals

19
How confident are we that our sample means make sense? Confidence intervals

Upload: marshall-dominick-dorsey

Post on 22-Dec-2015

218 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: How confident are we that our sample means make sense? Confidence intervals

How confident are we that our sample means make sense?

Confidence intervals

Page 2: How confident are we that our sample means make sense? Confidence intervals

Maybe not

Page 3: How confident are we that our sample means make sense? Confidence intervals

Confidence intervals

1. Find a confidence interval for the population mean using a sample from a normal distribution with known variance.

2. Find a confidence interval for the population mean using a sample from any distribution with known or unknown variance

3. Make inference from confidence intervals.

Page 4: How confident are we that our sample means make sense? Confidence intervals

Point estimate

• A single number that estimates a population parameter is called a point estimate

Page 5: How confident are we that our sample means make sense? Confidence intervals

How confident we are about an estimate depends on two factors:

• The size of the sample – the larger the size of the sample, the closer the estimate is likely to be to the true population mean

• The variance of the population – if readings are generally more varied the estimate will be less reliable

From previous lesson• :

standard error

where is the populationstandard deviation

n

Page 6: How confident are we that our sample means make sense? Confidence intervals

When comparing two estimates of the same or a similar parameters.

Point estimateGiven two samples:1. Get each of their unbiased estimator of mean

(point estimate)

2. Calculate their standard errors

3. Rule of thumb the one with the smallest standard error, is more likely to have an estimated mean nearer to the population true mean.

Page 7: How confident are we that our sample means make sense? Confidence intervals

Task

• Exercise A (page 111)

Page 8: How confident are we that our sample means make sense? Confidence intervals

Difficulty using point estimate

• In complex situations the choice of an estimate of a population parameter is not always clear. Statisticians may find that they have no idea how to use the sample data to estimate the population parameter of interest, or they may in fact have several equally plausible competing estimates to select from.

• Point estimates do not inform us about how much the estimate is likely to be in error.

Page 9: How confident are we that our sample means make sense? Confidence intervals

NORMAL DISTRIBUTION SAMPLE MEANS

Confidence Interval

6.00

9.00

9090%

100

Page 10: How confident are we that our sample means make sense? Confidence intervals

Confidence Intervals

• A point estimate is the middle point of the interval and the endpoints of the interval communicate the size of the error associated with the estimate and how ‘confident’ we are that the population parameter is in the interval

6.00

9.00

Page 11: How confident are we that our sample means make sense? Confidence intervals

Confidence Interval Calculation• Typical confidence levels used in practice for confidence

intervals are 90%, 95% or 99% with 95% occurring most frequently

• Find 90% from the percentage pointstable p=0.95 and the valuez=1.6449 ≈ 1.645

Confidence interval= 1.645xn

Page 12: How confident are we that our sample means make sense? Confidence intervals

Confidence Interval

The higher the level of confidence, the wider the confidence interval needs to be.

90% and 95% confidence intervals are given by:

90% find p=0.95 z=1.6449 1.64595% find p=0.975 z=1.96

1.645 , 1.645 90% interval

1.96 , 1.96 95% interval

x xn n

x xn n

Page 13: How confident are we that our sample means make sense? Confidence intervals

Task

• Exercise B Page 116

Page 14: How confident are we that our sample means make sense? Confidence intervals

All the questions that you have done so far have been from populations that

have been normally distributed.

CLT states that if sample sizes are large enough then the mean of any distribution is approximately normally distributed with a standard error

therefore, any random sample where n is big enough will have a 95% confidence interval given by:

n

1.96 , 1.96x xn n

Page 15: How confident are we that our sample means make sense? Confidence intervals

Using an estimated variance

• When the σ² is not known but n ≥ 30 an unbiased estimate of the variance S2 can be calculated using

• So when the variance or standard deviation are not known replace σ² with S2 and σ with S

2

22

2

1 1i

xxx x nS

n n

Page 16: How confident are we that our sample means make sense? Confidence intervals

Task

• Read examples 4 & 5• Exercise D page 120

Page 17: How confident are we that our sample means make sense? Confidence intervals

Key points

• A 95% confidence interval tells us that there is a probability of 0.95 that the interval contains the population μ

• If the sample is taken from a normal population then a 95% confidence interval is given by

• If the sample is taken from any distribution and n is large enough, then a 95% confidence interval is given by

• If the population is not know then replace σ² with S2 and σ with S and 95% can by given by:

1.96 , 1.96x xn n

1.96 , 1.96x xn n

1.96 , 1.96S S

x xn n

Page 18: How confident are we that our sample means make sense? Confidence intervals

Task

• Mixed questions – page 122

• Homework or now– Test yourself page 122

Page 19: How confident are we that our sample means make sense? Confidence intervals

Confidence intervals

1. Find a confidence interval for the population mean using a sample from a normal distribution with known variance.

2. Find a confidence interval for the population mean using a sample from any distribution with known or unknown variance

3. Make inference from confidence intervals.