Chapter 23. Inference About Means. Copyright 2010 Pearson Education, Inc.

Similar documents
STA Module 9 Confidence Intervals for One Population Mean

Chapter 19. Confidence Intervals for Proportions. Copyright 2010 Pearson Education, Inc.

Chapter 19. Confidence Intervals for Proportions. Copyright 2010, 2007, 2004 Pearson Education, Inc.

Applied Statistical Analysis EDUC 6050 Week 4

Chapter 25. Paired Samples and Blocks. Copyright 2010 Pearson Education, Inc.

Module 28 - Estimating a Population Mean (1 of 3)

The Confidence Interval. Finally, we can start making decisions!

Objectives. Quantifying the quality of hypothesis tests. Type I and II errors. Power of a test. Cautions about significance tests

Chapter 8: Estimating with Confidence

Inferential Statistics

appstats26.notebook April 17, 2015

Still important ideas

Business Statistics Probability

10.1 Estimating with Confidence. Chapter 10 Introduction to Inference

Unit 1 Exploring and Understanding Data

Readings: Textbook readings: OpenStax - Chapters 1 13 (emphasis on Chapter 12) Online readings: Appendix D, E & F

Chapter 8 Estimating with Confidence

Previously, when making inferences about the population mean,, we were assuming the following simple conditions:

CHAPTER OBJECTIVES - STUDENTS SHOULD BE ABLE TO:

Describe what is meant by a placebo Contrast the double-blind procedure with the single-blind procedure Review the structure for organizing a memo

Lec 02: Estimation & Hypothesis Testing in Animal Ecology

Still important ideas

STA Learning Objectives. What is Population Proportion? Module 7 Confidence Intervals for Proportions

STA Module 7 Confidence Intervals for Proportions

Readings: Textbook readings: OpenStax - Chapters 1 11 Online readings: Appendix D, E & F Plous Chapters 10, 11, 12 and 14

Describe what is meant by a placebo Contrast the double-blind procedure with the single-blind procedure Review the structure for organizing a memo

Chapter 1: Exploring Data

Describe what is meant by a placebo Contrast the double-blind procedure with the single-blind procedure Review the structure for organizing a memo

Analysis of Variance (ANOVA)

15.301/310, Managerial Psychology Prof. Dan Ariely Recitation 8: T test and ANOVA

Chapter 13. Experiments and Observational Studies. Copyright 2012, 2008, 2005 Pearson Education, Inc.

2.75: 84% 2.5: 80% 2.25: 78% 2: 74% 1.75: 70% 1.5: 66% 1.25: 64% 1.0: 60% 0.5: 50% 0.25: 25% 0: 0%

The following command was executed on their calculator: mean(randnorm(m,20,16))

The t-test: Answers the question: is the difference between the two conditions in my experiment "real" or due to chance?

WDHS Curriculum Map Probability and Statistics. What is Statistics and how does it relate to you?

Making Inferences from Experiments

Chapter 8 Estimating with Confidence. Lesson 2: Estimating a Population Proportion

Population. Sample. AP Statistics Notes for Chapter 1 Section 1.0 Making Sense of Data. Statistics: Data Analysis:

Chapter 8: Estimating with Confidence

Chapter 8 Estimating with Confidence. Lesson 2: Estimating a Population Proportion

Study Guide for the Final Exam

Unit 2: Probability and distributions Lecture 3: Normal distribution

USING STATCRUNCH TO CONSTRUCT CONFIDENCE INTERVALS and CALCULATE SAMPLE SIZE

CHAPTER 8 Estimating with Confidence

Bayesian and Frequentist Approaches

Name AP Statistics UNIT 1 Summer Work Section II: Notes Analyzing Categorical Data

Sheila Barron Statistics Outreach Center 2/8/2011

Statistics for Psychology

Chapter 11. Inference for Means. Inference For Means: 11.1" The t # Distribution 11.1" Inference for a Mean 11.2" Comparing Two Means

Appendix B Statistical Methods

Chapter 7: Descriptive Statistics

Patrick Breheny. January 28

Review Statistics review 2: Samples and populations Elise Whitley* and Jonathan Ball

Risk Aversion in Games of Chance

Standard Deviation and Standard Error Tutorial. This is significantly important. Get your AP Equations and Formulas sheet

Probability Models for Sampling

Gage R&R. Variation. Allow us to explain with a simple diagram.

Student Performance Q&A:

Reflection Questions for Math 58B

9. Interpret a Confidence level: "To say that we are 95% confident is shorthand for..

Missy Wittenzellner Big Brother Big Sister Project

STATISTICS 8 CHAPTERS 1 TO 6, SAMPLE MULTIPLE CHOICE QUESTIONS

Normal Distribution. Many variables are nearly normal, but none are exactly normal Not perfect, but still useful for a variety of problems.

Chapter 13 Summary Experiments and Observational Studies

SPRING GROVE AREA SCHOOL DISTRICT. Course Description. Instructional Strategies, Learning Practices, Activities, and Experiences.

AP Statistics. Semester One Review Part 1 Chapters 1-5

CHAPTER III METHODOLOGY

Confidence Intervals. Chapter 10

Chapter 9: Comparing two means

Lessons in biostatistics

CHAPTER ONE CORRELATION

To open a CMA file > Download and Save file Start CMA Open file from within CMA

12.1 Inference for Linear Regression. Introduction

UNIT 4 ALGEBRA II TEMPLATE CREATED BY REGION 1 ESA UNIT 4

MULTIPLE CHOICE. Choose the one alternative that best completes the statement or answers the question.

***SECTION 10.1*** Confidence Intervals: The Basics

Pooling Subjective Confidence Intervals

Creative Commons Attribution-NonCommercial-Share Alike License

Statistics Spring Study Guide

Chapter 12. The One- Sample

Chapter 1: Introduction to Statistics

CHAPTER 8 Estimating with Confidence

EXERCISE: HOW TO DO POWER CALCULATIONS IN OPTIMAL DESIGN SOFTWARE

Comparing multiple proportions

OCW Epidemiology and Biostatistics, 2010 David Tybor, MS, MPH and Kenneth Chui, PhD Tufts University School of Medicine October 27, 2010

Something to think about. What happens, however, when we have a sample with less than 30 items?

Chapter 5: Field experimental designs in agriculture

Research Methods in Forest Sciences: Learning Diary. Yoko Lu December Research process

AP Stats Chap 27 Inferences for Regression

Research Questions, Variables, and Hypotheses: Part 2. Review. Hypotheses RCS /7/04. What are research questions? What are variables?

The normal curve and standardisation. Percentiles, z-scores

Research Methods 1 Handouts, Graham Hole,COGS - version 1.0, September 2000: Page 1:

Inferential Statistics: An Introduction. What We Will Cover in This Section. General Model. Population. Sample

Kepler tried to record the paths of planets in the sky, Harvey to measure the flow of blood in the circulatory system, and chemists tried to produce

THIS PROBLEM HAS BEEN SOLVED BY USING THE CALCULATOR. A 90% CONFIDENCE INTERVAL IS ALSO SHOWN. ALL QUESTIONS ARE LISTED BELOW THE RESULTS.

Independent Variables Variables (factors) that are manipulated to measure their effect Typically select specific levels of each variable to test

Methodological skills

Enumerative and Analytic Studies. Description versus prediction

Statistics: Interpreting Data and Making Predictions. Interpreting Data 1/50

Comparison of two means

Transcription:

Chapter 23 Inference About Means Copyright 2010 Pearson Education, Inc.

Getting Started Now that we know how to create confidence intervals and test hypotheses about proportions, it d be nice to be able to do the same for means. Just as we did before, we will base both our confidence interval and our hypothesis test on the sampling distribution model. The Central Limit Theorem told us that the sampling distribution model for means is Normal with mean μ and standard deviation SD y n Copyright 2010 Pearson Education, Inc. Slide 23-3

Getting Started (cont.) All we need is a random sample of quantitative data. And the true population standard deviation, σ. Well, that s a problem Copyright 2010 Pearson Education, Inc. Slide 23-4

Getting Started (cont.) Proportions have a link between the proportion value and the standard deviation of the sample proportion. This is not the case with means knowing the sample mean tells us nothing about SD( y) We ll do the best we can: estimate the population parameter σ with the sample statistic s. Our resulting standard error is SE y s n Copyright 2010 Pearson Education, Inc. Slide 23-5

Getting Started (cont.) We now have extra variation in our standard error from s, the sample standard deviation. We need to allow for the extra variation so that it does not mess up the margin of error and P-value, especially for a small sample. And, the shape of the sampling model changes the model is no longer Normal. So, what is the sampling model? Copyright 2010 Pearson Education, Inc. Slide 23-6

Gosset s t William S. Gosset, an employee of the Guinness Brewery in Dublin, Ireland, worked long and hard to find out what the sampling model was. The sampling model that Gosset found has been known as Student s t. The Student s t-models form a whole family of related distributions that depend on a parameter known as degrees of freedom. We often denote degrees of freedom as df, and the model as t df. Copyright 2010 Pearson Education, Inc. Slide 23-7

A Confidence Interval for Means? A practical sampling distribution model for means When the conditions are met, the standardized sample mean t y SE y follows a Student s t-model with n 1 degrees of freedom. s We estimate the standard error with SE y n Copyright 2010 Pearson Education, Inc. Slide 23-8

A Confidence Interval for Means? (cont.) When Gosset corrected the model for the extra uncertainty, the margin of error got bigger. Your confidence intervals will be just a bit wider and your P-values just a bit larger than they were with the Normal model. By using the t-model, you ve compensated for the extra variability in precisely the right way. Copyright 2010 Pearson Education, Inc. Slide 23-9

A Confidence Interval for Means? (cont.) One-sample t-interval for the mean When the conditions are met, we are ready to find the confidence interval for the population mean, μ. The confidence interval is y t SE y n 1 where the standard error of the mean is SE y t The critical value * depends on the particular confidence n 1 level, C, that you specify and on the number of degrees of freedom, n 1, which we get from the sample size. s n Copyright 2010 Pearson Education, Inc. Slide 23-10

A Confidence Interval for Means? (cont.) Student s t-models are unimodal, symmetric, and bell shaped, just like the Normal. But t-models with only a few degrees of freedom have much fatter tails than the Normal. (That s what makes the margin of error bigger.) Copyright 2010 Pearson Education, Inc. Slide 23-11

A Confidence Interval for Means? (cont.) As the degrees of freedom increase, the t-models look more and more like the Normal. In fact, the t-model with infinite degrees of freedom is exactly Normal. Copyright 2010 Pearson Education, Inc. Slide 23-12

Assumptions and Conditions Gosset found the t-model by simulation. Years later, when Sir Ronald A. Fisher showed mathematically that Gosset was right, he needed to make some assumptions to make the proof work. We will use these assumptions when working with Student s t. Copyright 2010 Pearson Education, Inc. Slide 23-13

Assumptions and Conditions (cont.) Independence Assumption: Independence Assumption. The data values should be independent. Randomization Condition: The data arise from a random sample or suitably randomized experiment. Randomly sampled data (particularly from an SRS) are ideal. 10% Condition: When a sample is drawn without replacement, the sample should be no more than 10% of the population. Copyright 2010 Pearson Education, Inc. Slide 23-14

Assumptions and Conditions (cont.) Normal Population Assumption: We can never be certain that the data are from a population that follows a Normal model, but we can check the Nearly Normal Condition: The data come from a distribution that is unimodal and symmetric. Check this condition by making a histogram or Normal probability plot. Copyright 2010 Pearson Education, Inc. Slide 23-15

Assumptions and Conditions (cont.) Nearly Normal Condition: The smaller the sample size (n < 15 or so), the more closely the data should follow a Normal model. For moderate sample sizes (n between 15 and 40 or so), the t works well as long as the data are unimodal and reasonably symmetric. For larger sample sizes, the t methods are safe to use unless the data are extremely skewed. Copyright 2010 Pearson Education, Inc. Slide 23-16

Finding t-values By Hand The Student s t-model is different for each value of degrees of freedom. Because of this, Statistics books usually have one table of t-model critical values for selected confidence levels. Copyright 2010 Pearson Education, Inc. Slide 23-17

Finding t-values By Hand (cont.) Alternatively, we could use technology to find t critical values for any number of degrees of freedom and any confidence level you need. What technology could we use? The Appendix of ActivStats on the CD Any graphing calculator or statistics program Copyright 2010 Pearson Education, Inc. Slide 23-18

More Cautions About Interpreting Confidence Intervals Remember that interpretation of your confidence interval is key. What NOT to say: 90% of all the vehicles on Triphammer Road drive at a speed between 29.5 and 32.5 mph. The confidence interval is about the mean not the individual values. We are 90% confident that a randomly selected vehicle will have a speed between 29.5 and 32.5 mph. Again, the confidence interval is about the mean not the individual values. Copyright 2010 Pearson Education, Inc. Slide 23-19

More Cautions About Interpreting Confidence Intervals (cont.) What NOT to say: The mean speed of the vehicles is 31.0 mph 90% of the time. The true mean does not vary it s the confidence interval that would be different had we gotten a different sample. 90% of all samples will have mean speeds between 29.5 and 32.5 mph. The interval we calculate does not set a standard for every other interval it is no more (or less) likely to be correct than any other interval. Copyright 2010 Pearson Education, Inc. Slide 23-20

More Cautions About Interpreting Confidence Intervals (cont.) DO SAY: 90% of intervals that could be found in this way would cover the true value. Or make it more personal and say, I am 90% confident that the true mean is between 29.5 and 32.5 mph. Copyright 2010 Pearson Education, Inc. Slide 23-21

Make a Picture, Make a Picture, Make a Picture Pictures tell us far more about our data set than a list of the data ever could. The only reasonable way to check the Nearly Normal Condition is with graphs of the data. Make a histogram of the data and verify that its distribution is unimodal and symmetric with no outliers. You may also want to make a Normal probability plot to see that it s reasonably straight. Copyright 2010 Pearson Education, Inc. Slide 23-22

A Test for the Mean One-sample t-test for the mean The conditions for the one-sample t-test for the mean are the same as for the one-sample t-interval. We test the hypothesis H 0 : = 0 using the statistic t n 1 The standard error of the sample mean is s SE y n y SE y When the conditions are met and the null hypothesis is true, this statistic follows a Student s t model with n 1 df. We use that model to obtain a P-value. 0 Copyright 2010 Pearson Education, Inc. Slide 23-23

Significance and Importance Remember that statistically significant does not mean actually important or meaningful. Because of this, it s always a good idea when we test a hypothesis to check the confidence interval and think about likely values for the mean. Copyright 2010 Pearson Education, Inc. Slide 23-24

Intervals and Tests Confidence intervals and hypothesis tests are built from the same calculations. In fact, they are complementary ways of looking at the same question. The confidence interval contains all the null hypothesis values we can t reject with these data. Copyright 2010 Pearson Education, Inc. Slide 23-25

Intervals and Tests (cont.) More precisely, a level C confidence interval contains all of the plausible null hypothesis values that would not be rejected by a two-sided hypothesis text at alpha level 1 C. So a 95% confidence interval matches a 0.05 level two-sided test for these data. Confidence intervals are naturally two-sided, so they match exactly with two-sided hypothesis tests. When the hypothesis is one sided, the corresponding alpha level is (1 C)/2. Copyright 2010 Pearson Education, Inc. Slide 23-26

Sample Size To find the sample size needed for a particular confidence level with a particular margin of error (ME), solve this equation for n: ME t n 1 The problem with using the equation above is that we don t know most of the values. We can overcome this: We can use s from a small pilot study. We can use z* in place of the necessary t value. Copyright 2010 Pearson Education, Inc. Slide 23-27 s n

Sample Size (cont.) Sample size calculations are never exact. The margin of error you find after collecting the data won t match exactly the one you used to find n. The sample size formula depends on quantities you won t have until you collect the data, but using it is an important first step. Before you collect data, it s always a good idea to know whether the sample size is large enough to give you a good chance of being able to tell you what you want to know. Copyright 2010 Pearson Education, Inc. Slide 23-28

Degrees of Freedom If only we knew the true population mean, µ, we would find the sample standard deviation as y s ( y ) But, we use instead of µ, though, and that causes a problem. When we use y y 2 instead of y 2 to calculate s, our standard deviation estimate would be too small. The amazing mathematical fact is that we can compensate for the smaller sum exactly by dividing by n 1 which we call the degrees of freedom. n Copyright 2010 Pearson Education, Inc. Slide 23-29 2.

What Can Go Wrong? Don t confuse proportions and means. Ways to Not Be Normal: Beware of multimodality. The Nearly Normal Condition clearly fails if a histogram of the data has two or more modes. Beware of skewed data. If the data are very skewed, try re-expressing the variable. Set outliers aside but remember to report on these outliers individually. Copyright 2010 Pearson Education, Inc. Slide 23-30

What Can Go Wrong? (cont.) And of Course: Watch out for bias we can never overcome the problems of a biased sample. Make sure data are independent. Check for random sampling and the 10% Condition. Make sure that data are from an appropriately randomized sample. Copyright 2010 Pearson Education, Inc. Slide 23-31

What Can Go Wrong? (cont.) And of Course, again: Interpret your confidence interval correctly. Many statements that sound tempting are, in fact, misinterpretations of a confidence interval for a mean. A confidence interval is about the mean of the population, not about the means of samples, individuals in samples, or individuals in the population. Copyright 2010 Pearson Education, Inc. Slide 23-32

What have we learned? Statistical inference for means relies on the same concepts as for proportions only the mechanics and the model have changed. What we say about a population mean is inferred from the data. Student s t family based on degrees of freedom. Ruler for measuring variability is SE. Find ME based on that ruler and a student s t model. Use that ruler to test hypotheses about the population mean. Copyright 2010 Pearson Education, Inc. Slide 23-33

What have we learned? The reasoning of inference, the need to verify that the appropriate assumptions are met, and the proper interpretation of confidence intervals and P-values all remain the same regardless of whether we are investigating means or proportions. Copyright 2010 Pearson Education, Inc. Slide 23-34