Chapter 7: Hypothesis Testing - Solutions

Similar documents
Problem of the Day. 7.3 Hypothesis Testing for Mean (Small Samples n<30) Objective(s): Find critical values in a t-distribution

Sampling distribution of t. 2. Sampling distribution of t. 3. Example: Gas mileage investigation. II. Inferential Statistics (8) t =

Hypothesis Tests and Estimation for Population Variances. Copyright 2014 Pearson Education, Inc.

Tests about a population mean

ME3620. Theory of Engineering Experimentation. Spring Chapter IV. Decision Making for a Single Sample. Chapter IV

9-7: THE POWER OF A TEST

CIVL /8904 T R A F F I C F L O W T H E O R Y L E C T U R E - 8

Hypothesis testing for µ:

Mathematical statistics

SMAM 314 Exam 3d Name

HYPOTHESIS TESTING. Hypothesis Testing

hypotheses. P-value Test for a 2 Sample z-test (Large Independent Samples) n > 30 P-value Test for a 2 Sample t-test (Small Samples) n < 30 Identify α

EXAM 3 Math 1342 Elementary Statistics 6-7

8.1-4 Test of Hypotheses Based on a Single Sample

Chapter 5: HYPOTHESIS TESTING

Statistics 251: Statistical Methods

Single Sample Means. SOCY601 Alan Neustadtl

Hypothesis for Means and Proportions

Exam 2 (KEY) July 20, 2009

Math 101: Elementary Statistics Tests of Hypothesis

CHAPTER 9: HYPOTHESIS TESTING

Sections 6.1 and 6.2: The Normal Distribution and its Applications

Chapter 7: Hypothesis Testing

Chapter 9. Hypothesis testing. 9.1 Introduction

[ z = 1.48 ; accept H 0 ]

POLI 443 Applied Political Research

CHAPTER 10 ONE-WAY ANALYSIS OF VARIANCE. It would be very unusual for all the research one might conduct to be restricted to

LECTURE 12 CONFIDENCE INTERVAL AND HYPOTHESIS TESTING

Statistics 301: Probability and Statistics 1-sample Hypothesis Tests Module

Hypotheses Test Procedures. Is the claim wrong?

PSY 305. Module 3. Page Title. Introduction to Hypothesis Testing Z-tests. Five steps in hypothesis testing

1 Binomial Probability [15 points]

Chapter 9 Inferences from Two Samples

STAT Chapter 8: Hypothesis Tests

Hypothesis tests for two means

Lecture Slides. Elementary Statistics. by Mario F. Triola. and the Triola Statistics Series

Hypothesis Testing. ECE 3530 Spring Antonio Paiva

WISE Power Tutorial Answer Sheet

Section 6.2 Hypothesis Testing

hypothesis a claim about the value of some parameter (like p)

Business Statistics: Lecture 8: Introduction to Estimation & Hypothesis Testing

ST Introduction to Statistics for Engineers. Solutions to Sample Midterm for 2002

Chapter IR:VIII. VIII. Evaluation. Laboratory Experiments Performance Measures Training and Testing Logging

Introduction to Business Statistics QM 220 Chapter 12

AMS7: WEEK 7. CLASS 1. More on Hypothesis Testing Monday May 11th, 2015

Introduction to Statistics

Chapter 12: Inference about One Population

Introductory Econometrics. Review of statistics (Part II: Inference)

Solutions to Additional Questions on Normal Distributions

One- and Two-Sample Tests of Hypotheses

example: An observation X comes from a normal distribution with

Estimating a Population Mean

MAT 2377C FINAL EXAM PRACTICE

Page 312, Exercise 50

(8 One-and Two-Sample Test Of Hypothesis)

5.2 Tests of Significance

Classroom Activity 7 Math 113 Name : 10 pts Intro to Applied Stats

Sampling, Confidence Interval and Hypothesis Testing

Mathematical statistics

Discrete and continuous

χ L = χ R =

The point value of each problem is in the left-hand margin. You must show your work to receive any credit, except on problems 1 & 2. Work neatly.

their contents. If the sample mean is 15.2 oz. and the sample standard deviation is 0.50 oz., find the 95% confidence interval of the true mean.

ax + b < c ax + b c Graphing Inequalities:

Inferences Based on Two Samples

Two Sample Hypothesis Tests

CHAPTER 93 SIGNIFICANCE TESTING

Do not copy, post, or distribute. Independent-Samples t Test and Mann- C h a p t e r 13

CHAPTER EIGHT Linear Regression

SMAM 314 Exam 49 Name. 1.Mark the following statements true or false (10 points-2 each)

Last two weeks: Sample, population and sampling distributions finished with estimation & confidence intervals

CONTINUOUS RANDOM VARIABLES

Chapter. Hypothesis Testing with Two Samples. Copyright 2015, 2012, and 2009 Pearson Education, Inc. 1

Statistical Inference. Hypothesis Testing

Inference About Means and Proportions with Two Populations. Chapter 10

Midterm 2 - Solutions

280 CHAPTER 9 TESTS OF HYPOTHESES FOR A SINGLE SAMPLE Tests of Statistical Hypotheses

Math 628 In-class Exam 2 04/03/2013

Statistical Inference. Why Use Statistical Inference. Point Estimates. Point Estimates. Greg C Elvers

Department of Economics. Business Statistics. Chapter 12 Chi-square test of independence & Analysis of Variance ECON 509. Dr.

Open book and notes. 120 minutes. Covers Chapters 8 through 14 of Montgomery and Runger (fourth edition).

Quantitative Methods for Economics, Finance and Management (A86050 F86050)

Chapter 4: Regression Models

CHAPTER 13: F PROBABILITY DISTRIBUTION

CHAPTER 8. Test Procedures is a rule, based on sample data, for deciding whether to reject H 0 and contains:

Non-parametric Statistics

Section 9.4. Notation. Requirements. Definition. Inferences About Two Means (Matched Pairs) Examples

Hypothesis Testing: One Sample

Last week: Sample, population and sampling distributions finished with estimation & confidence intervals

You may not use your books/notes on this exam. You may use calculator.

10/4/2013. Hypothesis Testing & z-test. Hypothesis Testing. Hypothesis Testing

The Purpose of Hypothesis Testing

MTH U481 : SPRING 2009: PRACTICE PROBLEMS FOR FINAL

MA131 Lecture For a fixed sample size, α and β cannot be lowered simultaneously.

Module 5 Practice problem and Homework answers

Review 6. n 1 = 85 n 2 = 75 x 1 = x 2 = s 1 = 38.7 s 2 = 39.2

While you wait: Enter the following in your calculator. Find the mean and sample variation of each group. Bluman, Chapter 12 1

(right tailed) or minus Z α. (left-tailed). For a two-tailed test the critical Z value is going to be.

Chapter 8 Student Lecture Notes 8-1. Department of Economics. Business Statistics. Chapter 12 Chi-square test of independence & Analysis of Variance

Chapter 24. Comparing Means

Transcription:

Chapter 7: Hypothesis Testing - Solutions 7.1 Introduction to Hypothesis Testing The problem with applying the techniques learned in Chapter 5 is that typically, the population mean (µ) and standard deviation (σ) are not known. In chapter 7, we will be looking at the situation when a simple random sample is taken from a large population with unknown mean and standard deviation. However, the sample mean and sample standard deviation can be calculated. Setup: i) A sample is taken from a population with unknown mean and standard deviation. ii) A claim is made about the true population mean µ. iii) The claim is tested using the method of hypothesis testing, to be explained below. Example: Suppose that an automobile manufacturer advertises that its new hybrid car has a mean gas mileage of 50 miles per gallon. You take a simple random sample of n = 30 hybrid vehicles and test their gas mileage. You find that in this sample, the average is x = 47 miles per gallon with a standard deviation of s = 5.5 miles per gallon. Does this indicate that the advertiser s statement is true or false? Step 1: Rewrite the claim about the population mathematically. This is called the null hypothesis, denoted H 0 : µ = 50 Assume, to start, that the null hypothesis is true. In the end, you may reject it in favor of: Step 2: The alternative (complement) to the null hypothesis is called the alternative hypothesis, denoted H a : µ 50 It is not possible to determine with absolute certainty whether or not H 0 is true, unless the entire population is tested, which is rarely feasible. 1

Step 3: Determine (or use the given) probability threshold for making the decision to reject H 0 when it is true. This probability is called the level of significance, denoted α, often chosen to be 0.05 (or, for example 0.01 or 0.10). Step 4: Calculate the mean and standard deviation for the simple random sample. Step 5: Calculate the P -value, which is the probability of obtaining a sample mean that is as extreme or more extreme than the one obtained from the data (details given in 7.2 and 7.3). Step 6: If P α, make the decision to reject H 0. Otherwise, fail to reject H 0. (Note: Failing to reject H 0 is not the same as accepting it H 0 was assumed to be true from the start. Failing to reject H 0 simply means that there is not enough statistical evidence to reject it.) This table shows all of the possible scenarios that can occur in hypothesis testing: H 0 is true H 0 is false Fail to reject H 0 Correct decision Type II error Reject H 0 Type I error Correct decision In summary, the inputs are: H 0 : null hypothesis H a : alternative hypothesis α : significance level x : sample mean s : sample standard deviation P : P -value The output is a single decision to reject H 0 or not, based on the relationship between P, which you calculate, and the α, which is typically given or determined by you. 2

7.2 Hypothesis Testing for the Mean (Large Samples) In this section, we describe the complete procedure of hypothesis testing when the sample size n 30. Example 1: Suppose that an automobile manufacturer advertises that its new hybrid car has a mean gas mileage of 50 miles per gallon. You take a simple random sample of n = 30 hybrid vehicles and test their gas mileage. You find that in this sample, the average is x = 47 miles per gallon with a standard deviation of s = 5.5 miles per gallon. Is there enough evidence to support the advertised claim using α = 0.05? Inputs: 1. H 0 : µ = 50 2. H a : µ 50 3. α = 0.05 4. x = 47 s = 5.5 Step 5: Calculating the P -value if n 30: i) Find the z-score z = x µ s/ n ii) Find the cumulative area corresponding to the z-score. iii) The P -value depends on the null hypothesis (draw a picture): If H 0 : µ = k, P = 2 (cumulative area) two-tailed test If H 0 : µ k, P = (cumulative area) left-tailed test If H 0 : µ k, P = 1 (cumulative area) right-tailed test Step 6: If P α, make the decision to reject H 0. Otherwise, fail to reject H 0. 3

Example 1: (continued) The z-score is z = x µ s/ n = 47 50 5.5/ 30 3.0 The cumulative area for this z-score is 0.0013. This is a two-tailed test: P = 2(0.0013) = 0.0026. Since P = 0.0026 < 0.05 = α, we make the decision to reject the null hypothesis. This means that there is not enough statistical evidence to support the advertiser s claim of an average of 50 miles per gallon. Example 2: A pit crew claims that its mean pit stop time (for 4 new tires and fuel) during an auto race is less than 13 seconds. A random sample of 32 pit stop times has a sample mean of 12.9 seconds and a standard deviation of 0.19 second. Is there enough evidence to support the claim of the pit crew at α = 0.01? 1. H 0 : µ 13 2. H a : µ < 13 3. α = 0.01 4. x = 12.9 s = 0.19 12.9 13 5. z =.19/ 32 2.98 P = 0.0014 Note: the null hypothesis should have the equality symbol, not the alternate hypothesis. Decision and Interpretation: P = 0.0014 < 0.01 = α. Therefore, we reject the null hypothesis. There is not enough evidence to reject the claim of the pit crew. 4

Practice Problem 1: A manufacturer of sprinkler systems designed for fire protection claims that the average activating temperature is at least 135 F. To test this claim, you randomly select a sample of 32 systems and find the mean activation temperature to be 133 F with a standard deviation of 3.3 F. At α = 0.10, do you have enough evidence to reject the manufacturer s claim? 1. H 0 : µ 135 2. H a : µ < 135 3. α = 0.10 4. x = 133 s = 3.3 133 135 5. z = 3.3/ 32 3.43 P = 0.0003 Decision and Interpretation: P = 0.0003 < 0.10 = α. Therefore, we reject the null hypothesis. 5

7.3 Hypothesis Testing for the Mean (Small Samples) In this section, we describe the complete procedure of hypothesis testing when the sample size n < 30 and the population is assumed to be approximately normally distributed. The z-table will not be used for small samples, instead the t-table will be used. Example 3: A used car dealer says that the mean price of a 2008 Honda CR-V is at least $20,500. You suspect this claim is incorrect and find that a random sample of 14 similar vehicles has a mean price of $19,850 and a standard deviation of $1084. Is there enough evidence to reject the dealer s claim at α = 0.05? Assume the population is normally distributed. Inputs: 1. H 0 : µ 20, 500 (left-tailed) 2. H a : µ < 20, 500 3. α = 0.05 4. x = 19, 850 s = 1, 084 New Input: n 1 = 14 1 = 13 the degrees of freedom Step 5: Calculating the P -value is not possible in this case with our tables, as we do not use the z-table, but the t-table. Instead, i) Determine the critical value, t 0 for t using the table and: n 1, α, H 0 : t 0 is negative for a left-tailed test t 0 is positive for a right-tailed test t 0 is negative and positive for a two-tailed test This is a left-tailed test, so t 0 = 1.771. ii) Find the t-score for the sample t = x µ s/ n = 19, 850 20, 500 1, 084 14 2.244 Step 6: The rejection region is drawn based on the critical value t 0. If the calculated t is in the rejection region (draw a picture), make the decision to reject H 0. Otherwise, fail to reject H 0. t = 2.244 is in the rejection region, therefore we reject H 0 : there is enough evidence at the 5% significance level to reject this claim. 6

Example 4: An industrial company claims that the mean ph level of the water in a nearby river is 6.8. You randomly select 19 water samples and measure their ph. The mean and standard deviation are 6.7 and 0.24, respectively. Is there enough evidence to reject the company s claim at a significance level of 0.05? Assume the population is normally distributed. Inputs: 1. H 0 : µ = 6.8 (two-tailed) 2. H a : µ 6.8 3. α = 0.05 4. x = 6.7 s = 0.24 n 1 = 18 5. t 0 = 2.10, 2.10 ( rejection region: t 2.10 and t 2.10) 6.7 6.8 t = 0.24/ 19 1.82 Decision and Interpretation: The t-value 1.82 is not in the rejection region, thus, there is not enough statistical evidence to reject the null hypothesis, that the mean ph of the water is equal to 6.8. We fail to reject H 0. Practice Problem 2: The Internal Revenue Service claims that the mean wait time for callers during a recent tax filing season was at most 7 minutes. A random sample of 11 callers has a mean wait time of 8.7 minutes and a standard deviation of 2.7 minutes. Is there enough evidence to reject the claim at a significance level of 0.10? 1. H 0 : µ 7 (right-tailed) 2. H a : µ > 7 3. α = 0.10 4. x = 8.7 s = 2.7 n 1 = 10 5. t 0 = 1.37 ( rejection region: t 1.372) 8.7 7 t = 2.7/ 11 2.09 Decision and Interpretation: The t-value 2.09 is in the rejection region, thus, there is enough statistical evidence to reject the null hypothesis, that the mean witing time is 7 minutes. 7