1 / 30

The Right Questions about Statistics: How confidence intervals work Maths Learning Centre

The Right Questions about Statistics: How confidence intervals work Maths Learning Centre The University of Adelaide. A confidence interval is designed to give a RANGE of possible answers for a “ WHAT’S THE NUMBER? ” question, using DATA from a sample.

fritzi
Télécharger la présentation

The Right Questions about Statistics: How confidence intervals work Maths Learning Centre

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. The Right Questions about Statistics: How confidence intervals work Maths Learning Centre The University of Adelaide A confidence interval is designed to give a RANGE of possible answers for a “WHAT’S THE NUMBER?” question, using DATA from a sample. You calculate which numbers could have been likely to produce your data.

  2. What isthe median number of chapters in a novel? Randomly choose 12 books

  3. Which possible medians might be likely to produce this data? For each particular median, we could do a hypothesis test to answer the question (in this case it’s called the sign test) … 10 11 12 13 14 15 16 17 18 19 20 21 22 23

  4. Is the median for all books 10? SIGN TEST P-value = 0.0005 Under 0.05, so NO, the median is not 10. 10 11 12 13 14 15 16 17 18 19 20 21 22 23 ?

  5. Is the median for all books 11? SIGN TEST P-value = 0.0005 Under 0.05, so NO, the median is not 11. 10 11 12 13 14 15 16 17 18 19 20 21 22 23 ?

  6. Is the median for all books 12? SIGN TEST P-value = 0.0005 Under 0.05, so NO, the median is not 12. 10 11 12 13 14 15 16 17 18 19 20 21 22 23 ?

  7. Is the median for all books 13? SIGN TEST P-value = 0.001 Under 0.05, so NO, the median is not 13. 10 11 12 13 14 15 16 17 18 19 20 21 22 23 ?

  8. Is the median for all books 14? SIGN TEST P-value = 0.02 Under 0.05, so NO, the median is not 14. 10 11 12 13 14 15 16 17 18 19 20 21 22 23 ?

  9. Is the median for all books 15? SIGN TEST P-value = 0.23 Over 0.05, so YES, the median could be 15. 10 11 12 13 14 15 16 17 18 19 20 21 22 23 ?

  10. Is the median for all books 16? SIGN TEST P-value = 0.75 Over 0.05, so YES, the median could be 16. 10 11 12 13 14 15 16 17 18 19 20 21 22 23 ?

  11. Is the median for all books 17? SIGN TEST P-value = 1.0 Over 0.05, so YES, the median could be 17. 10 11 12 13 14 15 16 17 18 19 20 21 22 23 ?

  12. Is the median for all books 18? SIGN TEST P-value = 0.56 Over 0.05, so YES, the median could be 18. 10 11 12 13 14 15 16 17 18 19 20 21 22 23 ?

  13. Is the median for all books 19? SIGN TEST P-value = 0.11 Over 0.05, so YES, the median could be 19. 10 11 12 13 14 15 16 17 18 19 20 21 22 23 ?

  14. Is the median for all books 20? SIGN TEST P-value = 0.01 Under 0.05, so NO, the median is not 20. 10 11 12 13 14 15 16 17 18 19 20 21 22 23 ?

  15. Is the median for all books 21? SIGN TEST P-value = 0.001 Under 0.05, so NO, the median is not 21. 10 11 12 13 14 15 16 17 18 19 20 21 22 23 ?

  16. Is the median for all books 22? SIGN TEST P-value = 0.0005 Under 0.05, so NO, the median is not 22. 10 11 12 13 14 15 16 17 18 19 20 21 22 23 ?

  17. Is the median for all books 23? SIGN TEST P-value = 0.0005 Under 0.05, so NO, the median is not 23. 10 11 12 13 14 15 16 17 18 19 20 21 22 23 ?

  18. This is the (95%)confidence interval It shows all the medians that could be true based on hypothesis tests at the 5% level of significance. That is, all the medians that would give a p-value of over 0.05. You could say it’s the medians I am “happy to believe” based on my data. 10 11 12 13 14 15 16 17 18 19 20 21 22 23 “95% confidence interval”

  19. Another example... What isthe mean weightin a novel? Randomly choose 12 books

  20. Another example... Which possible means might be likely to produce this data? For each particular mean, we could do a hypothesis test to answer the question (in this case it’s called the t-test) … 200 250 300 350 400

  21. Is the mean for all books 200? T-TEST P-value = 0.00007 Under 0.05, so NO, the mean is not 200. ? 200 250 300 350 400

  22. Is the mean for all books 201? T-TEST P-value = 0.00008 Under 0.05, so NO, the mean is not 201. ? 200 250 300 350 400

  23. Is the mean for all books 202? T-TEST P-value = 0.00009 Under 0.05, so NO, the mean is not 202. ? 200 250 300 350 400

  24. And so on... 200 250 300 350 400

  25. This is the (95%)confidence interval It shows all the means that could be true based on hypothesis tests at the 5% level of significance. That is, all the means that would give a p-value of over 0.05. You could say it’s the means I am “happy to believe” based on my data. “95% confidence interval” 200 250 300 350 400

  26. BUT you don’t have to go through all this to find a confidence interval! You just have to figure out where the ends are. These ends would have given exactly 0.05 in the hypothesis test. So you find them by doing the hypothesis test calculation backwards... “95% confidence interval” 200 250 300 350 400

  27. HYPOTHESIS TEST 95% confidence interval is between these. 95% CI is from 269 to 347 Assume mean is 300 Use assumed mean and data to calculate a test statistic Use critical values to get two means. CI ends = mean ± t* × std. Error = 269 & 347 t = mean – 300 std. Error = 0.46 Use test statistic to get p-value. Use p-value to get “critical” test statistics. t* = ± 2.20 p = 0.65 More than 0.05, so the mean could be 300. Assume P-value is 0.05 Compare p-value to 0.05 to decide. CONFIDENCE INTERVAL 200 250 300 350 400 -2.0 -1.0 0.0 1.0 2.0

  28. Let’s go over that again… What isthe mean weight in a novel? Randomly choose 12 books Choose a hypothesis test, and a significance level. T-Test, 0.05 t* = ± 2.20 Find the critical values of the test statistic. CI ends = mean ± t* × std. Error = 269 & 347 Use critical values and your data to calculate the two ends. The 95% CI is from 269g to 347g. State the answer. -2.0 -1.0 0.0 1.0 2.0

  29. So this is how to find a confidence interval: • Have a “what’s the number?” question. • Collect data. • Choose a matching hypothesis test. • Work backwards to calculate two ends. • The confidence interval is between these two values.

  30. And this is what aconfidence interval means: • The values in the CI would be retained with a matching hypothesis test. • The values in the CI have a high chance of producing data like yours. • The values in the CI are those you are “happy to believe” based on your data.

More Related