How confidence intervals work

Slides:



Advertisements
Similar presentations
“Students” t-test.
Advertisements

The Right Questions about Statistics: How regression works Maths Learning Centre The University of Adelaide Regression is a method designed to create a.
The Right Questions about Statistics: How hypothesis testing works Maths Learning Centre The University of Adelaide A hypothesis test is designed to DECIDE.
The Right Questions about Statistics: How confidence intervals work Maths Learning Centre The University of Adelaide A confidence interval is designed.
Chapter 10, part D. IV. Inferences about differences between two population proportions You will have two population proportions, p1 and p2. The true.
CHAPTER 21 Inferential Statistical Analysis. Understanding probability The idea of probability is central to inferential statistics. It means the chance.
Chapter 9 Hypothesis Tests. The logic behind a confidence interval is that if we build an interval around a sample value there is a high likelihood that.
Statistical Concepts (continued) Concepts to cover or review today: –Population parameter –Sample statistics –Mean –Standard deviation –Coefficient of.
Chapter 9 Hypothesis Testing.
Comparing Means.  Comparing two means is not very different from comparing two proportions.  This time the parameter of interest is the difference between.
Comparing Two Groups’ Means or Proportions
Ch 8 Estimating with Confidence. Today’s Objectives ✓ I can interpret a confidence level. ✓ I can interpret a confidence interval in context. ✓ I can.
Ch 8 Estimating with Confidence. Today’s Objectives ✓ I can interpret a confidence level. ✓ I can interpret a confidence interval in context. ✓ I can.
Learning Objectives In this chapter you will learn about the t-test and its distribution t-test for related samples t-test for independent samples hypothesis.
From the Data at Hand to the World at Large
Chapter 19: Confidence Intervals with Proportions.
1 ConceptsDescriptionHypothesis TheoryLawsModel organizesurprise validate formalize The Scientific Method.
1 CHAPTER 4 CHAPTER 4 WHAT IS A CONFIDENCE INTERVAL? WHAT IS A CONFIDENCE INTERVAL? confidence interval A confidence interval estimates a population parameter.
Ex St 801 Statistical Methods Inference about a Single Population Mean (CI)
Chapter 12 Inference for Proportions AP Statistics 12.2 – Comparing Two Population Proportions.
Statistical Inference for the Mean Objectives: (Chapter 8&9, DeCoursey) -To understand the terms variance and standard error of a sample mean, Null Hypothesis,
More about tests and intervals CHAPTER 21. Do not state your claim as the null hypothesis, instead make what you’re trying to prove the alternative. The.
Inference about a Population Mean
Hypothesis Testing Hypothesis testing is an inferential process
More on Inference.
CHAPTER 8 Estimating with Confidence
As in the books, not you personally!
How hypothesis testing works
How regression works The Right Questions about Statistics:
CHAPTER 10 Comparing Two Populations or Groups
Tests of Significance The reasoning of significance tests
Testing Hypotheses about Proportions
Inference: Conclusion with Confidence
Testing Hypotheses About Proportions
CHAPTER 10 Estimating with Confidence
Chapter 5 STATISTICS (PART 2).
Tests of significance: The basics
Inferential Statistics
CONCEPTS OF HYPOTHESIS TESTING
AP Biology Intro to Statistics
Confidence Intervals for Proportions
More on Inference.
Making Data-Based Decisions
Testing Hypotheses about Proportions
Problem Set 2: Review and Key for Q 1-5
CHAPTER 22: Inference about a Population Proportion
Chapter Nine Part 1 (Sections 9.1 & 9.2) Hypothesis Testing
EXAMPLE: The weight of a can of Coca Cola is supposed to have mean = 12 oz with std. dev.= 0.82 oz. The product is declared underweight if it weighs.
CHAPTER 10 Comparing Two Populations or Groups
Testing Hypotheses About Proportions
Confidence Intervals Accelerated Math 3.

BUSINESS MATHEMATICS & STATISTICS.
Intro to Confidence Intervals Introduction to Inference
More on Testing 500 randomly selected U.S. adults were asked the question: “Would you be willing to pay much higher taxes in order to protect the environment?”
Final Project Survey Will the dolphins ever go to the super bowl?
CHAPTER 10 Comparing Two Populations or Groups
CHAPTER 10 Comparing Two Populations or Groups
Chapter 12 Inference for Proportions
CHAPTER 10 Comparing Two Populations or Groups
CHAPTER 10 Comparing Two Populations or Groups
Chapter 8: Confidence Intervals
AP STATISTICS LESSON 10 – 4 (DAY 2)
Section 11.1: Significance Tests: Basics
CHAPTER 10 Comparing Two Populations or Groups
CHAPTER 10 Comparing Two Populations or Groups
CHAPTER 10 Comparing Two Populations or Groups
Warm Up Find the following: Mean ± 1 Std Deviation =
Confidence Intervals Usually set at 95 % What does that mean ?
Presentation transcript:

How confidence intervals work 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.

What is the median number of chapters in a novel? Book # Chapters 1 21 2 16 3 14 4 18 5 6 7 19 8 15 9 17 10 13 11 12 20 What is the median number of chapters in a novel? Randomly choose 12 books

Which possible medians might be likely to produce this data? Book # Chapters 1 21 2 16 3 14 4 18 5 6 7 19 8 15 9 17 10 13 11 12 20 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) … 12 14 16 20 18 10 11 13 15 17 19 21 22 23

Book # Chapters 1 21 2 16 3 14 4 18 5 6 7 19 8 15 9 17 10 13 11 12 20 Is the median for all books 10? SIGN TEST P-value = 0.0005 Under 0.05, so NO, the median is not 10. ? 12 14 16 20 18 10 11 13 15 17 19 21 22 23

Book # Chapters 1 21 2 16 3 14 4 18 5 6 7 19 8 15 9 17 10 13 11 12 20 Is the median for all books 11? SIGN TEST P-value = 0.0005 Under 0.05, so NO, the median is not 11. ? 12 14 16 20 18 10 11 13 15 17 19 21 22 23

Book # Chapters 1 21 2 16 3 14 4 18 5 6 7 19 8 15 9 17 10 13 11 12 20 Is the median for all books 12? SIGN TEST P-value = 0.0005 Under 0.05, so NO, the median is not 12. ? 12 14 16 20 18 10 11 13 15 17 19 21 22 23

Book # Chapters 1 21 2 16 3 14 4 18 5 6 7 19 8 15 9 17 10 13 11 12 20 Is the median for all books 13? SIGN TEST P-value = 0.001 Under 0.05, so NO, the median is not 13. ? 12 14 16 20 18 10 11 13 15 17 19 21 22 23

Book # Chapters 1 21 2 16 3 14 4 18 5 6 7 19 8 15 9 17 10 13 11 12 20 Is the median for all books 14? SIGN TEST P-value = 0.02 Under 0.05, so NO, the median is not 14. ? 12 14 16 20 18 10 11 13 15 17 19 21 22 23

Book # Chapters 1 21 2 16 3 14 4 18 5 6 7 19 8 15 9 17 10 13 11 12 20 Is the median for all books 15? SIGN TEST P-value = 0.23 Over 0.05, so YES, the median could be 15. ? 12 14 16 20 18 10 11 13 15 17 19 21 22 23

Book # Chapters 1 21 2 16 3 14 4 18 5 6 7 19 8 15 9 17 10 13 11 12 20 Is the median for all books 16? SIGN TEST P-value = 0.75 Over 0.05, so YES, the median could be 16. ? 12 14 16 20 18 10 11 13 15 17 19 21 22 23

Book # Chapters 1 21 2 16 3 14 4 18 5 6 7 19 8 15 9 17 10 13 11 12 20 Is the median for all books 17? SIGN TEST P-value = 1.0 Over 0.05, so YES, the median could be 17. ? 12 14 16 20 18 10 11 13 15 17 19 21 22 23

Book # Chapters 1 21 2 16 3 14 4 18 5 6 7 19 8 15 9 17 10 13 11 12 20 Is the median for all books 18? SIGN TEST P-value = 0.56 Over 0.05, so YES, the median could be 18. ? 12 14 16 20 18 10 11 13 15 17 19 21 22 23

Book # Chapters 1 21 2 16 3 14 4 18 5 6 7 19 8 15 9 17 10 13 11 12 20 Is the median for all books 19? SIGN TEST P-value = 0.11 Over 0.05, so YES, the median could be 19. ? 12 14 16 20 18 10 11 13 15 17 19 21 22 23

Book # Chapters 1 21 2 16 3 14 4 18 5 6 7 19 8 15 9 17 10 13 11 12 20 Is the median for all books 20? SIGN TEST P-value = 0.01 Under 0.05, so NO, the median is not 20. ? 12 14 16 20 18 10 11 13 15 17 19 21 22 23

Book # Chapters 1 21 2 16 3 14 4 18 5 6 7 19 8 15 9 17 10 13 11 12 20 Is the median for all books 21? SIGN TEST P-value = 0.001 Under 0.05, so NO, the median is not 21. ? 12 14 16 20 18 10 11 13 15 17 19 21 22 23

Book # Chapters 1 21 2 16 3 14 4 18 5 6 7 19 8 15 9 17 10 13 11 12 20 Is the median for all books 22? SIGN TEST P-value = 0.0005 Under 0.05, so NO, the median is not 22. ? 12 14 16 20 18 10 11 13 15 17 19 21 22 23

Book # Chapters 1 21 2 16 3 14 4 18 5 6 7 19 8 15 9 17 10 13 11 12 20 Is the median for all books 23? SIGN TEST P-value = 0.0005 Under 0.05, so NO, the median is not 23. ? 12 14 16 20 18 10 11 13 15 17 19 21 22 23

This is the (95%) confidence interval Book # Chapters 1 21 2 16 3 14 4 18 5 6 7 19 8 15 9 17 10 13 11 12 20 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. “95% confidence interval” 12 14 16 20 18 10 11 13 15 17 19 21 22 23

What is the mean weight in a novel? Another example... Book Weight (g) 1 242 2 366 3 424 4 312 5 307 6 238 7 317 8 265 9 10 314 11 217 12 379 What is the mean weight in a novel? Randomly choose 12 books

Which possible means might be likely to produce this data? Another example... Book Weight (g) 1 242 2 366 3 424 4 312 5 307 6 238 7 317 8 265 9 10 314 11 217 12 379 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

Book Weight (g) 1 242 2 366 3 424 4 312 5 307 6 238 7 317 8 265 9 10 314 11 217 12 379 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

Book Weight (g) 1 242 2 366 3 424 4 312 5 307 6 238 7 317 8 265 9 10 314 11 217 12 379 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

Book Weight (g) 1 242 2 366 3 424 4 312 5 307 6 238 7 317 8 265 9 10 314 11 217 12 379 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

Book Weight (g) 1 242 2 366 3 424 4 312 5 307 6 238 7 317 8 265 9 10 314 11 217 12 379 And so on... 200 250 300 350 400

This is the (95%) confidence interval Book Weight (g) 1 242 2 366 3 424 4 312 5 307 6 238 7 317 8 265 9 10 314 11 217 12 379 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

You just have to figure out where the ends are. Book Weight (g) 1 242 2 366 3 424 4 312 5 307 6 238 7 317 8 265 9 10 314 11 217 12 379 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” 250 300 350 200 400

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

Let’s go over that again… Book Weight (g) 1 242 2 366 3 424 4 312 5 307 6 238 7 317 8 265 9 10 314 11 217 12 379 What is the mean weight in a novel? Randomly choose 12 books Choose a hypothesis test, and a significance level. T-Test, 0.05 Find the critical values of the test statistic. t* = ± 2.20 Use critical values and your data to calculate the two ends. CI ends = mean ± t* × std. Error = 269 & 347 State the answer. The 95% CI is from 269g to 347g. -2.0 -1.0 0.0 1.0 2.0

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.

And this is what a confidence interval means: The numbers in the CI would have been retained with a matching hypothesis test asking, “Is this number equal to this value?” The values in the CI have a high chance of producing data like yours. The values in the CI appear to be consistent with your data. OUTSIDE NOT CONSISTENT WITH DATA   INSIDE APPEARS CONSISTENT WITH DATA