1 / 44

CONFIDENCE INTERVALS

CONFIDENCE INTERVALS. Confidence intervals for means and proportions: Section 6.1 Section 7.1 ( pages 450 – 453 ) Section 8.1 ( pages 536 - 540 ) Topics: Point Estimates vs. Interval Estimates Context / Notation eight cases CI’s with z* assumptions

temple
Download Presentation

CONFIDENCE INTERVALS

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. CONFIDENCE INTERVALS • Confidence intervals for means and proportions: • Section 6.1 • Section 7.1 ( pages 450 – 453 ) • Section 8.1 ( pages 536 - 540 ) • Topics: • Point Estimates vs. Interval Estimates • Context / Notation • eight cases • CI’s with z* • assumptions • interpretations • tradeoffs • choosing the right n • CI’s with t* ( thanks to W. S. Gosset ) • CI’s for proportions • THE COOKBOOK

  2. THIS ISN’T HARD • Engineers measured the distance between two buildings. • n = number of estimates = 100 • x = mean of estimates = 310 m • s = st.dev. of estimates = 0.05 m • They reported their results this way. • The true distance is in the range • 309.990 m to 310.010 m • with 95% confidence.

  3. THIS ISN’T HARD • How they got these numbers: • Lower limit • Upper limit • More often than not, your confidence intervals will use exactly this formula. But not always!

  4. Point Estimates vs. Interval Estimates • We want to know . • Point-estimate approach: • “I estimate that  is 310.000.” • The SE is about 0.05. • 95% of the time, my error is less than 1.96 SE’s. • Interval-estimate approach: • “I estimate that  is in the range 309.990-310.010.” • 95% of the time, my ranges contain the true value.

  5. Interval estimates • Two things you want to know about an interval estimate: • (a) the interval, of course • (b) the CONFIDENCE LEVEL, or • CONTAINMENT PROBABILITY. • What fraction of intervals constructed in this way contain the true value?

  6. Confidence Levels • We’ll construct interval estimates to achieve pre-selected confidence levels. • Notation: • C = “Confidence level” •  = “Significance level” • Always: C = 1 - , and  = 1 – C. • For example: C = 0.95 and  = 0.05.

  7. Context • There’s a population distribution. • PARAMETERS •  = population mean (we don’t know this) •  = population SD (maybe we know this) • We take a sample with these results: • STATISTICS • n = sample size • x = sample mean (or ) • s = sample SD (using n-1) (or )

  8. At least 8 cases • n large vs. n small • known vs.  unknown population roughly normal vs. non-normal or unknown (and we’ll consider proportions, too)

  9. Words • You can describe a confidence interval in terms of its endpoints… • [ 0.61, 0.67 ] • or in terms of its center and radius: • 0.64  0.03. • MARGIN of ERROR = RADIUS = HALF-WIDTH  beware, ambiguous!

  10. Notation for the Interval • Write the interval this way: • [ 309.990 , 310.010 ] or • ( 309.990 , 310.010 ) (low end always first) • [ x – MOE, x + MOE ] • MOE = margin of error (text uses “m”) • [ x – z* SE, x + z* SE ] • SE = standard error • (or SEE, “standard error of the estimate”) • (or “standard error of the mean”) • z* = “critical value” (1.96 in the example) • Thus: • MOE = z* times SE

  11. Standard error • SE = if you know  • or if you have to use s for . • It’s always better to use the population  if you can, but you usually don’t know it.

  12. Critical value depends on C • Critical value: z* = z*/2 • z* is chosen so that /2 of the standard normal values • fall ABOVE z*. • C 0.90 0.95 0.99 • z* 1.645 1.960 2.576 • In the big table: Find (1 - /2) in the (z) table; • use corresponding z • In Excel: z*/2 = NORMSINV (1 - /2)

  13. Summary Critical value from table Or use s if you must

  14. What did we assume? • All this assumes that we really do have a simple random sample. • -- Observations must be independent • (2) The sampling distribution of x must be normal. • -- EITHER n is large (15? 30?) • OR the population is roughly normal • (3) Outliers? • (4) Do we know  ?

  15. Tradeoffs • Things we want: • SMALL INTERVAL HIGH CONFIDENCE • Unfortunately there’s a tradeoff. • UNLESS we increase n.

  16. Tradeoffs • CHEAP • (low n) • PRECISE CORRECT • (low MOE) (high C) • CHOOSE TWO.

  17. How large does n have to be? • We’re testing a cholesterol drug. • The average score in the target population (and in the very large control group) is 220, with a standard deviation of 40. • We think our drug will decrease the average score to 210. We don’t think it will change the standard deviation. • WHEN WE ESTIMATE THE AVERAGE IN OUR TEST GROUP, WE HAD BETTER HAVE AN MOE OF LESS THAN 10. • How large does n have to be?

  18. How large does n have to be? • MOE = z* times (  / sqrt(n) ) • 10 = 1.96 times ( 40 / sqrt(n) ) • So… n must be at least 64. • In general: • n must be at least .

  19. C. I. Cookbook (the z* case) • 1. Make sure this method is applicable. • Are the cases independent? • Is n large, OR the population normal (so that • the sampling distribution is normal)? • Are outliers an issue? • Do we know  ? • 2. Determine n, x, s • Calculate SE =  / sqrt(n) • (use s for  if necessary)

  20. C. I. Cookbook (the z* case) • Decide on the confidence level, C. • Write  = 1 – C. • Determine the critical value z*. • C 0.90 0.95 0.99 • z* 1.645 1.960 2.576 • MOE = z* times SE • Confidence interval is [ x – MOE, x + MOE ].

  21. Interpretation •  is 310.000.

  22. Interpretation •  is 310.000. • probably  is 310.000.

  23. Interpretation •  is 310.000. • probably  is 310.000. •  is between 309.990 and 310.010.

  24. Interpretation •  is 310.000. • probably  is 310.000. •  is between 309.990 and 310.010. • probably  is between 309.990 and 310.010.

  25. Interpretation •  is 310.000. • probably  is 310.000. •  is between 309.990 and 310.010. • probably  is between 309.990 and 310.010. • We have confidence 95% that  is between 309.990 and 310.010.

  26. Interpretation •  is 310.000. • probably  is 310.000. •  is between 309.990 and 310.010. • probably  is between 309.990 and 310.010. • We have confidence 95% that  is between 309.990 and 310.010. • CONFIDENCE good. PROBABILITY bad.  superstition

  27. Interpretation •  is 310.000. • probably  is 310.000. •  is between 309.990 and 310.010. • probably  is between 309.990 and 310.010. • We have confidence 95% that  is between 309.990 and 310.010. • CONFIDENCE good. PROBABILITY bad.  superstition

  28. t distributions • Everything we have done so far assumes that the sampling distribution is normal. • W. S. Gosset made the same assumption at the Guinness Brewing Company, but he kept getting bad results. His population distribution was roughly normal, but his sample sizes were small. And, like most people, he had to use s for .

  29. W. S. Gosset • “A. Student”

  30. t distributions • Correct theory: • has a standard normal distribution. • But: • has a different distribution, which • depends on n. Gosset worked it • out, and called it the t distribution.

  31. t distributions • Specifically, • has a “t distribution with • n-1 degrees of freedom.” • Number of “degrees of freedom” = n-1

  32. t distributions • When n is large (30 or more?) the t distributions are very close to normal. Otherwise…

  33. t distributions • This means that when we’re using s for , we need different critical values. • t*/2, n-1 = value such that /2 of values lie above t*, • if the values are distributed according to • the t distribution with n-1 degrees of freedom. • Use Table D, inside back cover of text. • In Excel: t*/2, n-1 = TINV (, n-1 ) • (Yes, Excel wants both tails in the argument.)

  34. CI’s with t distributions • Use z* with , t* with s: • MOE = z* times (/sqrt(n)) • OR • t* times (s/sqrt(n)) • If n is large enough (say, 30 or more) it doesn’t matter which you use, but it’s still good to observe the above distinction. • NOTE: Gosset’s theory requires that the population be roughly normal. But even if this isn’t true, if you’re using s for , it’s better to use the t* critical values.

  35. C. I. Cookbook (z* and t*) • 1. Make sure this method is applicable. • Are the cases independent? • Is n large, OR the population normal (so that • the sampling distribution is normal)? • Are outliers an issue? • 2. Decide whether you know . • 3. Determine n, x, s.

  36. C. I. Cookbook (z* and t*) • Decide on the confidence level, C. • Write  = 1 – C. • Determine the critical value, z* OR t* • MOE = z*/2 times (  / sqrt(n) ) • OR • MOE = t* /2, n-1 times ( s / sqrt(n) ) • Confidence interval is [ x – MOE, x + MOE ].

  37. What about proportions? • Suppose that the population contains all 0’s and 1’s • (“hits and misses”, “succeses and failures”) • PARAMETER: • p = Success rate in population (=fraction of 1’s) • STATISTICS • n = Sample size • k = Number of “hits” in sample • p = k / n = Success rate is sample

  38. What about proportions? • STANDARD ERROR: • SE = • But you don’t know p. So you have two practical choices: • (If you’re a pollster) • SE = (because 0.5 is an upper bound) • (For most scientific applications) • SE =

  39. Various ways to write SE • These are all the same thing.

  40. Another choice for SE • The Wilson method • (our text calls it the “plus four” method) • Write: • SE = • where . • Why would anyone do this? It only matters when p is close to 0 or 1; in this case the usual SE is too small. The Wilson method makes it larger. • This is NOT standard.

  41. CI’s for proportions • MOE = z* times SE • (always use z* for proportions; it depends on C) • Confidence interval: • [ - MOE, + MOE ] .

  42. Proportions are really just means • If the population consists of 0’s and 1’s, then • p, the fraction of 1’s, • is the same as the population mean, . • The population standard deviation (usually called ) • is equal to . • So, SE’s for proportions are just like SE’s for means.

  43. The “Quick Method” • 95% CI for p: • (We’re using z*  2.00 and using 0.5 for )

  44. Cookbook: CI’s for proportions • Decide whether method applies • Observations independent? • Each with same (unknown) probability? • At least 5 hits and 5 misses? • n large enough? (15? 30?) • SE = (or one of the alternatives) • MOE = z* times SE • CI = [ p – MOE, p + MOE ]

More Related