Presentation is loading. Please wait.

Presentation is loading. Please wait.

Confidence intervals: The basics BPS chapter 14 © 2006 W.H. Freeman and Company.

Similar presentations


Presentation on theme: "Confidence intervals: The basics BPS chapter 14 © 2006 W.H. Freeman and Company."— Presentation transcript:

1 Confidence intervals: The basics BPS chapter 14 © 2006 W.H. Freeman and Company

2 Objectives (BPS chapter 14) Confidence intervals: the basics  Estimating with confidence  Confidence intervals for the mean   How confidence intervals behave  Choosing the sample size

3 Estimating with confidence Although the sample mean x Bar is a unique number for any particular sample, if you pick a different sample, you will probably get a different sample mean. In fact, you could get many different values for the sample mean, and virtually none of them would actually equal the true population mean, .

4 But the sampling distribution is narrower than the population distribution, by a factor of √n. Thus, the estimates gained from our samples are highly likely to be close to the population parameter µ. n Sample means, n subjects  Population, x individual subjects If the population is normally distributed N(µ,σ), then the sampling distribution is N(µ,σ/√n). How can we quantify this?

5  Suppose we want to estimate the mean SATM score, , for all California high school seniors.  We take SRS of 500 California seniors, and give them SATM.  Our sample mean SATM score turns out to be x Bar = 461.  Suppose we somehow know (past experience?) that  = 100 is a reasonable estimate of the standard deviation of the SATM score among all CA seniors.  We’d like to know , the true (population) mean SATM score among all CA seniors.  How well does the sample mean x Bar = 461 estimate the (unknown) parameter  ? Start by reminding yourself of the basics Example: CA SATM scores

6 Population: Sample: Population variable: Sample mean: Distribution of sample mean: All CA high-school seniors The n = 500 CA high-school seniors that we tested X = SATM score = mean of the 500 sample SATM scores ( = 461)

7 Example: CA SATM scores Question: how likely is it that is within z * = 2 standard deviations of the (unknown) mean  ? Answer: by the Empirical rule, the liklihood is about 95%! Note: how much does 2 standard deviations amount to in this case? So: we are 95% confident that the true (but unknown) mean  differs from by no more than 9 points. Lingo: The 95% confidence interval for  is (452, 470)! This is called the margin of error m

8  We have just computed a 95% confidence interval for   The endpoints of the interval (452, 470) depended on three values:  The point estimate x Bar for μ.  The level of confidence C, which determined how many standard deviations of x Bar to use.  The standard deviation of the point estimate, which also depends on the sample size, n.  The interval also depended on the fact that we knew that the sampling distribution of x Bar is normal (or at least approximately normal, since n is large)! Example: CA SATM scores

9 What Does It Mean?: Suppose we took another sample of 500 CA high-school seniors, gave them the SATM test, and computed the sample average In all liklihood we’d get a different sample mean. Say we found that If we re-did the confidence interval calculation, we’d still get the same margin of error m = 9. The new 95% confidence interval would be (459, 477). Every sample would result in a different confidence interval. But we know that 95% of these confidence intervals would contain the true (but unknown) mean . We don’t know that our particular interval containes . But we’re 95% confident that it does!

10 We are 95% confident that the true population mean is contained in the confidence interval. WHY? Because according to the Central Limit Theorem, there is a 95% chance that the estimate of the population mean (i.e. the sample mean), will be within 2 standard deviations (of the sampling distribution!) of the true population mean. Let’s try playing with the “Confidence Interval” applet on the stats portal…. Page 347

11 Implications We don’t need to take lots of random samples to “rebuild” the sampling distribution and find  at its center. n n Sample Population  All we need is one SRS of size n, and relying on the properties of the sampling distribution of the sample mean to infer the population mean .

12 Confidence interval (page 346) A level C confidence interval for x Bar has 2 parts:  An interval calculated from the data, usually of the form x Bar  margin of error  A confidence level C, which gives the probability that the interval will capture the true parameter value in repeated samples, or the success rate for the method.

13 Changing the Confidence Level Suppose we wanted an 80% confidence interval. (C = 0.80) Then the distance between xBar and  must be within the margin of error 80% of the time (i.e. for 80% of all samples xBar)  + m   m  m 80% in here z*  z* Standard normal density  80% in here 10% in here Go to the standard normal…. So z* = invNorm(0.90) = 1.282 !

14 Changing the Confidence Level Suppose we wanted a level C confidence interval. Then the distance between xBar and  must be within the margin of error C% of the time (i.e. for C% of all samples xBar)  + m   m  m C% in here z*  z* Standard normal density  C% in here (1-C)/2% in here Go to the standard normal…. So in general z* = invNorm((1+C)/2) ! The book calls z* a critical value

15 From z* to the margin of error m z* is the number of standard deviations of xBar needed to obtain the confidence level C. So the margin of error is z* times the standard deviation of xBar. where Population variable

16 Let’s find z * for various C -levels. (see page 349) Standard Normal Density Curve C - Level Value of 99%2.576 95%1.960 90%1.645 85%1.440 TI8x command: z * = invNorm((C+1)/2) ?? Percentile = (1-C)/2 + C = (1+C)/2

17 Example: CA SATM scores (continued) What if we needed a 98% confidence interval for , the true mean SATM score for all CA high-school seniors? z* = invNorm(1.98/2) = invNorm(0.99) = 2.326 (rounded) C = 0.98 Margin of Error Confidence Level 98% Confidence Interval

18 Link between confidence level and margin of error The confidence level C determines the value of z* (in Table C). The margin of error also depends on z*. C Z*Z*−Z*−Z* m Higher confidence C implies a larger margin of error m A lower confidence level C produces a smaller margin of error m

19 Impact of sample size The spread in the sampling distribution of the mean is a function of the number of individuals per sample.  The larger the sample size, the smaller the standard deviation (spread) of the sample mean distribution.  But the spread only decreases at a rate equal to √n. Sample size n Standard error  ⁄ √n

20  Goals for Estimating Population Parameters:  High Confidence  Low Margin of Error  How to Reduce the Margin of Error  Change C-Level?  Change Sample Size?  Change Population Standard Deviation? Lower C-Level Results in Smaller Value of. Larger n will reduce m since you will divide by a larger value. Smaller will reduce m. This is usually not be possible to do.

21 Suppose we want a certain margin of error for our confidence interval for a population mean. What sample size will be needed to get the desired result? (Assume we know the population standard deviation.) Let’s solve this equation for n!! Page 355

22 Example: CA SATM scores (continued) How large a sample size would we need in order to reduce the margin of error for the 98% confidence interval to plus or minus 4 SATM points? What we know: m = 4, z * = 2.326 (for C = 0.98)  = 100 Find n : So we need 3383 samples.

23 Sample size and experimental design You may need a certain margin of error (e.g., drug trial, manufacturing specs). In many cases, the population variability (  is fixed, but we can choose the number of measurements (n). So plan ahead what sample size to use to achieve that margin of error. Remember, though, that sample size is not always stretchable at will. There are typically costs and constraints associated with large samples. The best approach is to use the smallest sample size that can give you useful results.


Download ppt "Confidence intervals: The basics BPS chapter 14 © 2006 W.H. Freeman and Company."

Similar presentations


Ads by Google