Chapter 7 Notes - Inference for Single Samples. You know already for a large sample, you can invoke the CLT so:



Similar documents
Hypothesis Testing for Beginners

Lecture 8. Confidence intervals and the central limit theorem

HYPOTHESIS TESTING: POWER OF THE TEST

Simple Linear Regression Inference

Section 7.1. Introduction to Hypothesis Testing. Schrodinger s cat quantum mechanics thought experiment (1935)

Independent t- Test (Comparing Two Means)

Stat 411/511 THE RANDOMIZATION TEST. Charlotte Wickham. stat511.cwick.co.nz. Oct

12.5: CHI-SQUARE GOODNESS OF FIT TESTS

HYPOTHESIS TESTING (ONE SAMPLE) - CHAPTER 7 1. used confidence intervals to answer questions such as...

Chapter 2. Hypothesis testing in one population

Two-Sample T-Tests Assuming Equal Variance (Enter Means)

Two-Sample T-Tests Allowing Unequal Variance (Enter Difference)

LAB 4 INSTRUCTIONS CONFIDENCE INTERVALS AND HYPOTHESIS TESTING

Comparing Means in Two Populations

Confidence Intervals for the Difference Between Two Means

Lesson 1: Comparison of Population Means Part c: Comparison of Two- Means

Confidence Intervals for Cp

Section 13, Part 1 ANOVA. Analysis Of Variance

Estimation of σ 2, the variance of ɛ

Calculating P-Values. Parkland College. Isela Guerra Parkland College. Recommended Citation

Tests for Two Proportions

Introduction. Hypothesis Testing. Hypothesis Testing. Significance Testing

Stats Review Chapters 9-10

3.4 Statistical inference for 2 populations based on two samples

HYPOTHESIS TESTING (ONE SAMPLE) - CHAPTER 7 1. used confidence intervals to answer questions such as...

Hypothesis Testing. Hypothesis Testing

Principles of Hypothesis Testing for Public Health

BA 275 Review Problems - Week 5 (10/23/06-10/27/06) CD Lessons: 48, 49, 50, 51, 52 Textbook: pp

How To Test For Significance On A Data Set

Need for Sampling. Very large populations Destructive testing Continuous production process

Introduction to Hypothesis Testing. Hypothesis Testing. Step 1: State the Hypotheses

Online 12 - Sections 9.1 and 9.2-Doug Ensley

Two-sample hypothesis testing, II /16/2004

Class 19: Two Way Tables, Conditional Distributions, Chi-Square (Text: Sections 2.5; 9.1)

Chapter 8 Hypothesis Testing Chapter 8 Hypothesis Testing 8-1 Overview 8-2 Basics of Hypothesis Testing

Practice problems for Homework 12 - confidence intervals and hypothesis testing. Open the Homework Assignment 12 and solve the problems.

An Introduction to Statistics Course (ECOE 1302) Spring Semester 2011 Chapter 10- TWO-SAMPLE TESTS

Consider a study in which. How many subjects? The importance of sample size calculations. An insignificant effect: two possibilities.

Variables Control Charts

Name: (b) Find the minimum sample size you should use in order for your estimate to be within 0.03 of p when the confidence level is 95%.

BA 275 Review Problems - Week 6 (10/30/06-11/3/06) CD Lessons: 53, 54, 55, 56 Textbook: pp , ,

Chapter 4 Statistical Inference in Quality Control and Improvement. Statistical Quality Control (D. C. Montgomery)

Descriptive Statistics

Chapter 4: Statistical Hypothesis Testing

Math 151. Rumbos Spring Solutions to Assignment #22

Introduction to Hypothesis Testing OPRE 6301

Odds ratio, Odds ratio test for independence, chi-squared statistic.

Comparison of frequentist and Bayesian inference. Class 20, 18.05, Spring 2014 Jeremy Orloff and Jonathan Bloom

THE FIRST SET OF EXAMPLES USE SUMMARY DATA... EXAMPLE 7.2, PAGE 227 DESCRIBES A PROBLEM AND A HYPOTHESIS TEST IS PERFORMED IN EXAMPLE 7.

The Normal distribution

Chi-square test Fisher s Exact test

Two-sample inference: Continuous data

Confidence Intervals for One Standard Deviation Using Standard Deviation

Non-Inferiority Tests for Two Means using Differences

1. What is the critical value for this 95% confidence interval? CV = z.025 = invnorm(0.025) = 1.96

Elements of statistics (MATH0487-1)

Hypothesis testing. c 2014, Jeffrey S. Simonoff 1

Outline. Topic 4 - Analysis of Variance Approach to Regression. Partitioning Sums of Squares. Total Sum of Squares. Partitioning sums of squares

Hypothesis Testing --- One Mean

Exact Confidence Intervals

Multivariate normal distribution and testing for means (see MKB Ch 3)

NCSS Statistical Software. One-Sample T-Test

Introduction. Statistics Toolbox

NCSS Statistical Software

Once saved, if the file was zipped you will need to unzip it. For the files that I will be posting you need to change the preferences.

Lecture 8: More Continuous Random Variables

Tests of Hypotheses Using Statistics

Experimental Design. Power and Sample Size Determination. Proportions. Proportions. Confidence Interval for p. The Binomial Test

Chapter 23 Inferences About Means

Chicago Booth BUSINESS STATISTICS Final Exam Fall 2011

Study Guide for the Final Exam

Lecture Notes Module 1

5.1 Identifying the Target Parameter

Unit 31 A Hypothesis Test about Correlation and Slope in a Simple Linear Regression

4. Continuous Random Variables, the Pareto and Normal Distributions

CONTENTS OF DAY 2. II. Why Random Sampling is Important 9 A myth, an urban legend, and the real reason NOTES FOR SUMMER STATISTICS INSTITUTE COURSE

Bowerman, O'Connell, Aitken Schermer, & Adcock, Business Statistics in Practice, Canadian edition

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

Summary of Formulas and Concepts. Descriptive Statistics (Ch. 1-4)

2 Sample t-test (unequal sample sizes and unequal variances)

" Y. Notation and Equations for Regression Lecture 11/4. Notation:

Review #2. Statistics

2 Precision-based sample size calculations

Hypothesis testing - Steps

Topic 8. Chi Square Tests

Nonparametric Statistics

Two Related Samples t Test

6.4 Normal Distribution

Difference of Means and ANOVA Problems

KSTAT MINI-MANUAL. Decision Sciences 434 Kellogg Graduate School of Management

Simulation Exercises to Reinforce the Foundations of Statistical Thinking in Online Classes

1 Nonparametric Statistics

Section 12 Part 2. Chi-square test

Testing Hypotheses About Proportions

Understand the role that hypothesis testing plays in an improvement project. Know how to perform a two sample hypothesis test.

statistics Chi-square tests and nonparametric Summary sheet from last time: Hypothesis testing Summary sheet from last time: Confidence intervals

t Tests in Excel The Excel Statistical Master By Mark Harmon Copyright 2011 Mark Harmon

Chapter 7 Section 7.1: Inference for the Mean of a Population

Normality Testing in Excel

Transcription:

Chapter 7 Notes - Inference for Single Samples You know already for a large sample, you can invoke the CLT so: X N(µ, ). Also for a large sample, you can replace an unknown σ by s. You know how to do a hypothesis test for the mean, either: calculate z-statistic x µ 0 z = and compare it with z α or z α/. calculate pvalue and compare with α or α/. calculate CI and see whether µ 0 is within it. Let s add two more calculations. 1) Determine n to achieve a certain width for a -sided confidence interval. Of course, small width large n. Derivation of Sample Size Calculation for CI z α/ σ n = E where E is the half-width of the CI. (Sample Size Calculation) ) Power Calculation For upper 1-sided z-tests: H 0 : µ µ 0 H 1 : µ > µ 0, in fact, we ll take µ = µ 1. The calculation only makes sense if µ 1 > µ 0. We want to know what the power of the test is to detect mean µ 1. We ll compute power as a function of µ 1. Derivation of Power Calculation for Upper 1-sided z-tests µ 1 µ 0 π(µ 1 ) = P (test rejects H 0 in favor of H 1 H 1 ) = Φ z α +. 1

Now we can consider π(µ 1 ) as a function of µ 1. Again, the alternative hypothesis only make sense if µ 1 > µ 0. As µ 1 increases, what happens to π(µ 1 )? For lower 1-sided tests, ( µ 0 µ ) 1 π(µ 1 ) = Φ z α +. The alternative hypothesis only makes sense when µ 1 < µ 0. As µ 1 increases (and gets closer to a µ 0 ), what happens to π(µ 1 )? For -sided tests, ( ) ( ) σ σ π(µ 1 ) = P X < µ 0 z α/ µ = µ 1 + P X > µ 0 + z α/ µ = µ 1 n n ( ) ( ) µ 0 µ 1 µ 1 µ 0 = Φ z α/ + + Φ z α/ + As µ 1 changes, what happens to π(µ 1 )?

3) Sample size calculation for power. Want to find the n required to guarantee a certain power, 1 β, for an α-level z-test. Let := µ 1 µ 0 so that µ 1 = µ 0 +. For upper 1-sided, we have (look up at the power calculation we did for upper 1-sided): ( ) π(µ 1 ) = π(µ 0 + ) = Φ z α + = 1 β. Since our notation says that z β is defined as the number where Φ(z β ) = 1 β: Now solve that for n: z α + = z β. (z α + z β )σ n =. For lower 1-sided, n is the same by symmetry. For -sided, turns out one of the two terms of π(µ 1 ) can be ignored to get an approximation: (z α/ + z β )σ n. Remember to round up to the next integer when doing sample-size calculations! 3

7. Inferences on Small Samples If n < 30, we often need to use the t-distribution rather than z-distribution N(0, 1) since s doesn t approximate σ very well. Need X 1,..., X n N(µ, ). The bottom line is that we replace: X µ X µ Z = by T = S/ n for a t-test on the mean. Replace z α by t n 1,α. Replace σ by S. There s a chart in your book on page 53 that summarizes this. Note that the power calculation is harder for t-tests, so for this class, just say S σ and use the normal distribution power calculation. You ll get an approximation. 7.3 Inferences on Variances Assume X 1,..., X n N(µ, ). Inferences on variance are very sensitive to this assumption, so inference only with caution! The bottom line is that we replace: X µ (n 1)S Z = by χ = (and test for not µ). Replace z α by χ and/or χ n 1,1 α n 1,α. Hypothesis tests on variance are not quite the same as on the mean. Let s do some of the computations to show you. First, we ll compute the CI. 4

-sided CI for. As usual, start with what we know: ( ) (n 1)S (n 1)S 1 α = P χ χ and remember χ =, n 1,1 α/ n 1,α/ (*1) (*) and we want: 1 α = P (L U) for some L and U. Let s solve it on the left for (*1) and on the right for (*): Putting it together we have: 1 α = P (n 1)S (n 1)S χn 1,1 α/ χ n 1,α/ (n 1)S χ n 1,α/ (n 1)S χ n 1,1 α/ 1 α = P L U. The 100(1 α)% confidence interval for is then Similarly, 1-sided CI s for are: (n 1)s (n 1)s. χ n 1,α/ χ n 1,1 α/ (n 1)s (n 1)s and. χ χ n 1,α n 1,1 α Hypothesis tests on Variance (a chi-square test) To test H = = 0 : 0 vs H 1 : 0, we can either: Compute χ statistic: χ = (n 1)s and reject H 0 when either χ > χ n 1,α/ or χ < χ n 1,1 α/. Compute pvalue: First we calculate the probability to be as extreme in either direction: 0 5

P U = P (χ n 1 χ ) or P L = P (χn 1 χ ) depending on which is smaller (more extreme). The probability to obtain a χ at least as extreme under H 0 is: min(p U, P L ). This accounts for being extreme in either direction. Compute CI (already done) Table 7.6 on page 57 summarizes the chi-square hypothesis test on variance. Note that this is not the most commonly used chi-square test! See Wikipedia: A chi-square test is any statistical hypothesis test in which the sampling distribution of the test statistic is a chi-square distribution when the null hypothesis is true... (n 1)S (In this case, we have normal random variables, so the distribution of the test statistic is chi-square.) 6

MIT OpenCourseWare http://ocw.mit.edu 15.075J / ESD.07J Statistical Thinking and Data Analysis Fall 011 For information about citing these materials or our Terms of Use, visit: http://ocw.mit.edu/terms.