Econ 325: Introduction to Empirical Economics

Similar documents
Statistics for Managers Using Microsoft Excel/SPSS Chapter 8 Fundamentals of Hypothesis Testing: One-Sample Tests

What is a Hypothesis?

Chapter 3 Multiple Regression Complete Example

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

ECO220Y Review and Introduction to Hypothesis Testing Readings: Chapter 12

Hypothesis Testing. ECE 3530 Spring Antonio Paiva

Preliminary Statistics Lecture 5: Hypothesis Testing (Outline)

INTERVAL ESTIMATION AND HYPOTHESES TESTING

Econ 325: Introduction to Empirical Economics

STAT Chapter 8: Hypothesis Tests

With our knowledge of interval estimation, we can consider hypothesis tests

LECTURE 5. Introduction to Econometrics. Hypothesis testing

Unit 19 Formulating Hypotheses and Making Decisions

Preliminary Statistics. Lecture 5: Hypothesis Testing

CHAPTER 9, 10. Similar to a courtroom trial. In trying a person for a crime, the jury needs to decide between one of two possibilities:

Chapter Three. Hypothesis Testing

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.

Chapter 5: HYPOTHESIS TESTING

Harvard University. Rigorous Research in Engineering Education

CH.9 Tests of Hypotheses for a Single Sample

Mathematical Statistics

Inferences About Two Population Proportions

Statistics for Business and Economics

23. MORE HYPOTHESIS TESTING

Announcements. Unit 3: Foundations for inference Lecture 3: Decision errors, significance levels, sample size, and power.

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

Hypothesis for Means and Proportions

Quantitative Introduction ro Risk and Uncertainty in Business Module 5: Hypothesis Testing

Quantitative Analysis and Empirical Methods

8.1-4 Test of Hypotheses Based on a Single Sample

Mathematical Notation Math Introduction to Applied Statistics

14.30 Introduction to Statistical Methods in Economics Spring 2009

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

University of Chicago Graduate School of Business. Business 41000: Business Statistics

POLI 443 Applied Political Research

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

First we look at some terms to be used in this section.

Homework Exercises. 1. You want to conduct a test of significance for p the population proportion.

The Purpose of Hypothesis Testing

Chapter 9 Inferences from Two Samples

Tables Table A Table B Table C Table D Table E 675

Unit 9: Inferences for Proportions and Count Data

Inference for Proportions, Variance and Standard Deviation

Statistics 251: Statistical Methods

Institute of Actuaries of India

Hypothesis tests

Unit 9: Inferences for Proportions and Count Data

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

MATH 240. Chapter 8 Outlines of Hypothesis Tests

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

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

Introduction to Statistics

ECO220Y Hypothesis Testing: Type I and Type II Errors and Power Readings: Chapter 12,

Chapter 12: Inference about One Population

Exam 2 (KEY) July 20, 2009

Contingency Tables. Safety equipment in use Fatal Non-fatal Total. None 1, , ,128 Seat belt , ,878

79 Wyner Math Academy I Spring 2016

Testing Hypothesis. Maura Mezzetti. Department of Economics and Finance Università Tor Vergata

Interpretation of results through confidence intervals

Sampling Distributions: Central Limit Theorem

1 Hypothesis testing for a single mean

PHP2510: Principles of Biostatistics & Data Analysis. Lecture X: Hypothesis testing. PHP 2510 Lec 10: Hypothesis testing 1

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

POLI 443 Applied Political Research

COVENANT UNIVERSITY NIGERIA TUTORIAL KIT OMEGA SEMESTER PROGRAMME: ECONOMICS

F79SM STATISTICAL METHODS

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

Chapter 10. Chapter 10. Multinomial Experiments and. Multinomial Experiments and Contingency Tables. Contingency Tables.

1 Descriptive statistics. 2 Scores and probability distributions. 3 Hypothesis testing and one-sample t-test. 4 More on t-tests

Statistics for IT Managers

LECTURE 12 CONFIDENCE INTERVAL AND HYPOTHESIS TESTING

6.4 Type I and Type II Errors

EXAM 3 Math 1342 Elementary Statistics 6-7

Mathematical Notation Math Introduction to Applied Statistics

Final Exam Review STAT 212

Carolyn Anderson & YoungShil Paek (Slide contributors: Shuai Wang, Yi Zheng, Michael Culbertson, & Haiyan Li)

Final Exam STAT On a Pareto chart, the frequency should be represented on the A) X-axis B) regression C) Y-axis D) none of the above

Hypotheses Test Procedures. Is the claim wrong?

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

13.1 Categorical Data and the Multinomial Experiment

4 Hypothesis testing. 4.1 Types of hypothesis and types of error 4 HYPOTHESIS TESTING 49

Lecture 7: Hypothesis Testing and ANOVA

Mathematical statistics

Single Sample Means. SOCY601 Alan Neustadtl

Chapter Eight: Assessment of Relationships 1/42

Self-study Notes Module 7 (Optional Material)

Polling and sampling. Clement de Chaisemartin and Douglas G. Steigerwald UCSB

Salt Lake Community College MATH 1040 Final Exam Fall Semester 2011 Form E

Section 5.4: Hypothesis testing for μ

Basic Concepts of Inference

20 Hypothesis Testing, Part I

A proportion is the fraction of individuals having a particular attribute. Can range from 0 to 1!

Summary of Chapters 7-9

CONTINUOUS RANDOM VARIABLES

5.2 Tests of Significance

Formulas and Tables. for Elementary Statistics, Tenth Edition, by Mario F. Triola Copyright 2006 Pearson Education, Inc. ˆp E p ˆp E Proportion

CENTRAL LIMIT THEOREM (CLT)

Problem Set 4 - Solutions

Hypothesis Testing The basic ingredients of a hypothesis test are

Lectures 5 & 6: Hypothesis Testing

Transcription:

Econ 325: Introduction to Empirical Economics Chapter 9 Hypothesis Testing: Single Population Ch. 9-1

9.1 What is a Hypothesis? A hypothesis is a claim (assumption) about a population parameter: population mean Example: The mean monthly cell phone bill of this city is μ = $42 population proportion Example: The proportion of voters who support Trump is p.50 Ch. 9-2

The Null Hypothesis, H 0 The assumption to be tested in population parameter Example: the population fraction of voters who support Donald Trump is greater than or equal to 0.5 : 0.5 : 0.5 Ch. 9-3

The Null Hypothesis, H 0 Begin with the assumption that the null hypothesis is true Similar to the notion of innocent until proven guilty Refers to the status quo Always contains =, or sign (continued) Ch. 9-4

The Alternative Hypothesis, H 1 Is the opposite of the null hypothesis e.g., The population fraction of voters who support Trump is smaller than 0.5 (H 1 : p<0.5 ) Challenges the status quo Never contains the =, or sign Is generally the hypothesis that the researcher is trying to support Ch. 9-5

Example US presidential election: Trump vs. Clinton = population fraction of Clinton supporters You would like to provide evidence that Clinton will win. : 0.5 Rejecting : 0.5 gives evidence for >0.5 Ch. 7-6

Hypothesis Testing Process Is Claim: the population mean age is 50. (Null Hypothesis: H 0 : μ = 50 ) X=20 likely if μ = 50? If not likely, REJECT Null Hypothesis Suppose the sample mean age is 20: X = 20 Population Now select a random sample Sample Ch. 9-7

Reason for Rejecting H 0 Sampling Distribution of X 20 If it is unlikely that we would get a sample mean of this value... μ = 50 If H 0 is true... if in fact this were the population mean X... then we reject the null hypothesis that μ = 50. Ch. 9-8

Example On Oct 24 of 2016, the survey was conducted in Florida after the final presidential debate. = population fraction of Clinton supporters Among =1166 likely registered voters, there are 602 Clinton voters and 564 Trump voters so that =0.516 Does this provide strong evidence against the null hypothesis : 0.5? Ch. 9-9

Clicker Question 9.1 Among =1166 voters, there are 602 Clinton voters and 564 Trump voters so that = 0.516. Does this provide strong evidence against : 0.5? A). Yes, it provides strong evidence against : 0.5. B). No, it does not provide strong evidence against : 0.5. Ch. 9-10

Testing the Null Hypothesis Step 1: Find the distribution of if the null hypothesis of =0.5 is true. Step 2: Define the values of that are unlikely to happen if : 0.5 is true. Step 3: Look at the realized value of and check if the realized value of is likely or not if : 0.5 is true. Step 4: If you find that the realized value of is unlikely when : =0.5 is true, reject : 0.5. Ch. 9-11

Step 1 The distribution of when =0.5 and =1166: 0.5 = 0.5 0.5(1 0.5) 1166 0.015 ~ (0,1) so that ~ (0.5,(0.015) ) Ch. 9-12

Step 2 We define the value of that are not likely to happen when : =0.5 is true by finding a constant C (critical value) such that P > =0.05 (significance level) Because. >1.64 =0.05,. 0.5 0.015 =1.64 =0.5+1.64 0.015=0.525 Ch. 9-13

Steps 3 and 4 Therefore, the range of values called Rejection region =[0.525, ) happens with probability less than or equal to 0.05 when : =0.5 is true. =0.516 does not fall in 0.525,. Therefore, there is not strong enough evidence against : =0.5. Therefore, we do not reject : =0.5. Ch. 9-14

Level of Significance, α Defines how strong the evidence against the null hypothesis should be for a researcher to reject the null hypothesis. Is designated by α, (level of significance) Typical values are.01,.05, or.10 Provides the critical value(s) of the test Ch. 9-15

Level of Significance and the Rejection Region Level of significance = α H 0 : p = 0.5 H 1 : p 0.5 H 0 : p 0.5 H 1 : p > 0.5 H 0 : p 0.5 H 1 : p < 0.5 Two-tail test Upper-tail test Lower-tail test α α/2 0.5 0.5 0.5 α /2 α Represents critical value Rejection region is shaded Ch. 9-16

Example In this example, Significance level is =0.05 Rejection region is 0.525, Critical value is 0.525 The null hypothesis was not rejected because =0.516 was outside of rejection region 0.525,. Ch. 9-17

Worksheet Question On Oct 24 of 2016, the survey was conducted in Florida after the final presidential debate. = population fraction of Clinton supporters Among =1166 likely registered voters, there are 602 Clinton voters and 564 Trump voters so that =0.516 Test :. at the significance level =. Ch. 9-18

Testing the Null Hypothesis Step 1: Find the distribution of if the null hypothesis of =0.5 is true. Step 2: Define the values of that are unlikely to happen if : 0.5 is true. Step 3: Look at the realized value of and check if the realized value of is likely or not if : 0.5 is true. Step 4: If you find that the realized value of is unlikely when : =0.5 is true, reject : 0.5. Ch. 9-19

Example If we use the significance level of =0.10 instead, we do not reject the null hypothesis of : 0.5 in the previous example: Rejection region: 0.5192, =0.516 not in 0.5192, Do not reject : 0.5 Ch. 9-20

Clicker Question 9.2 In this example, we did not reject : 0.5, where = population fraction of Clinton voters. This means: A). Clinton will not win Florida for sure. B). Trump will not win Florida for sure. C). There is no strong evidence that Clinton will win Florida; the evidence is inconclusive. Ch. 9-21

Example What if the significance level is =.? Because. >0.84 =0.20,. 0.5 0.015 =0.84 =0.5+0.84 0.015=0.512 =0.516 is in 0.512, Reject : 0.5 Ch. 9-22

Clicker Question 9.3 In this example, we rejected : 0.5, where = population fraction of Clinton voters. This means: A). Clinton will win Florida for sure. B). Trump will win Florida for sure. C). There is evidence that Clinton will win Florida but, in reality, Clinton could lose Florida with a small probability. Ch. 9-23

Significance level Decision and Survey in Florida: =1166 and =0.516 Testing : 0.5 =. : =0.516 not in 0.5192, Do not reject : 0.5 =. : =0.516 is in 0.512, Reject : 0.5 Ch. 9-24

Errors in Making Decisions Type I Error Reject a true null hypothesis Considered a serious type of error The probability of Type I Error is α Called level of significance of the test Set by researcher in advance Ch. 9-25

Errors in Making Decisions Type II Error Fail to reject a false null hypothesis (continued) The probability of Type II Error is denoted by β. Ch. 9-26

Outcomes and Probabilities Possible Hypothesis Test Outcomes Outcome (Probability) Decision Do Not Reject H 0 Reject H 0 Actual Situation H 0 True No Error (1 - ) α Type I Error ( ) α H 0 False Type II Error ( β ) No Error ( 1 -β) Ch. 9-27

Criminal Trial ``Innocent until proven guilty H 0 : not guilty Verdict Actual Situation H 0 : not guilty H 1 : guilty Outcome (Probability) Not Guilty Guilty No Error (1 - ) α Type I Error ( ) α Type II Error ( β ) No Error ( 1 -β) ``Beyond a reasonable doubt α Ch. 9-28

Presidential election = population fraction of Clinton voters : 0.5 (Trump wins) Outcome (Probability) Decision Do Not Reject H 0 Reject H 0 Actual Situation H 0 : 0.5 No Error (1 - ) α Type I Error ( ) α H 1 : >0.5 Type II Error ( β ) No Error ( 1 -β) Ch. 9-29

Example of Type I error Using the survey of voters from Florida, the null hypothesis of : 0.5 was rejected at the significance level of =0.20. This suggests that Clinton would won Florida. In reality, Florida was won by Donald Trump. Type I error happens with the probability =0.2. Ch. 9-30

Example of Type II error Using the survey of voters from Minnesota, the null hypothesis of : 0.5 was not rejected at the significance level of =0.05. This suggests that there is not strong enough evidence that Clinton would win Minnesota. In other words, survey evidence was inconclusive. In reality, Minnesota was won by Hilary Clinton. Ch. 9-31

Type I & II Error Relationship Type I and Type II errors can not happen at the same time Type I error can only occur if H 0 is true Type II error can only occur if H 0 is false If Type I error probability ( α ), then Type II error probability ( β ) Ch. 9-32

Type I & II Error in criminal trial Criminal Trial: α less evidence is required to give guilty verdict. More innocent person will go to jail with false guilty verdict by mistake. β convicting criminals is easier. Less criminals will be set free with non-guilty verdict by mistake. In criminal trial, α is set to a small value. Ch. 9-33

Factors Affecting Type II Error All else equal, β when the difference between hypothesized parameter and its true value β when α β when σ β when n Ch. 9-34

Power of the Test The power of a test is the probability of correctly rejecting a false null hypothesis: Power = P(Reject H 0 H 1 is true) = 1 β Power of the test increases as the sample size increases Ch. 9-35

Example = population fraction of Clinton supporters. Suppose we test the null hypothesis of : 0.5 at significant level =0.10 using the random sample of =921 voters. In Virginia, among voters who support either Clinton or Trump, 52.9 percent of voters voted for Clinton so that =0.529. What is the power of the test? Ch. 9-36

How to compute the power Step 1: Find the distribution of if the null hypothesis of =0.5 is true and compute the critical value and rejection region. Step 2: Find the distribution of if =0.529 (i.e., the true value of ). Step 3: Power is computed as the probability of falls into the rejection region under the distribution of when =0.529. Ch. 9-37

Example The rejection region is given by 0.521, In survey of Oct 30, 2017, =0.533. Power is computed as >0.521 =0.529 = 0.529 0.0164 >0.521 0.529 0.0164 = > 0.488 =0.6879 : 0.5 will be correctly rejected with 0.6879 probability. Ch. 9-38

9.2 Test of Hypothesis for the Mean (σ Known) Convert sample result ( x) to a z value Hypothesis Tests for µ σ Known Consider the test H 0 : µ = µ 0 H 1 : µ > µ 0 (Assume the population is normal) σ Unknown The decision rule is: Reject H 0 if z = x µ 0 σ / n z α Ch. 9-39

Decision Rule H 0 : μ =μ 0 Reject H 0 if z = x µ 0 σ / n z α H 1 : μ > μ 0 Alternate rule: Reject H 0 if x µ 0 + Z α σ / n α Z x Do not reject H 0 0 μ 0 z α μ + 0 zα Reject H 0 σ n Critical value C Ch. 9-40

p-value Approach to Testing p-value: Probability of obtaining a test statistic more extreme ( or ) than the observed sample value given H 0 is true Also called observed level of significance Smallest value of α for which H 0 can be rejected Ch. 9-41

p-value Approach to Testing Convert sample result (e.g., ) to test statistic (e.g., z statistic ) x (continued) Obtain the p-value For an upper p-value = P(z tail test: = P(z x µ 0 σ / n, given that H 0 is true) x µ 0 σ / n µ = µ 0 ) Decision rule: compare the p-value to α If p-value α, reject H 0 If p-value > α, do not reject H 0 Ch. 9-42

Example: Upper-Tail Z Test for Mean (σ Known) A phone industry manager thinks that customer monthly cell phone bill have increased, and now average over $52 per month. The company wishes to test this claim. (Assume σ = 10 is known) Form hypothesis test: H 0 : μ 52 the average is not over $52 per month H 1 : μ > 52 the average is greater than $52 per month (i.e., sufficient evidence exists to support the manager s claim) Ch. 9-43

Example: Find Rejection Region Suppose that α =.10 is chosen for this test (continued) Find the rejection region: Reject H 0 α =.10 Do not reject H 0 0 1.28 Reject H 0 Reject H 0 if z = x µ 0 σ / n 1.28 Ch. 9-44

Example: Sample Results Obtain sample and compute the test statistic Suppose a sample is taken with the following results: n = 64, x = 53.1 (σ = 10 was assumed known) Using the sample results, x μ0 53.1 52 z = = = 0.88 σ 10 n 64 (continued) Ch. 9-45

Example: Decision Reach a decision and interpret the result: Reject H 0 (continued) α =.10 Do not reject H 0 0 z = 0.88 1.28 Reject H 0 Do not reject H 0 since z = 0.88 < 1.28 i.e.: there is not sufficient evidence that the mean bill is over $52 Ch. 9-46

Example: p-value Solution Calculate the p-value and compare to α (assuming that μ = 52.0) p-value =.1894 (continued) P(x 53.1 μ = 52.0) Reject H 0 α =.10 0 Do not reject H 0 1.28 Z =.88 Reject H 0 = P z = P(z 0.88) = 1.8106 =.1894 53.1 52.0 10/ 64 Do not reject H 0 since p-value =.1894 > α =.10 Ch. 9-47

Worksheet Question On Oct 24 of 2016, the survey was conducted in Florida after the final presidential debate. = population fraction of Clinton supporters Among =1166 likely registered voters, there are 602 Clinton voters and 564 Trump voters so that =0.516 What is the p-value of testing : 0.5? Ch. 9-48

Answer The distribution of when =0.5 and =1166: 0.5 = 0.5 0.5(1 0.5) 1166 0.015 ~ (0,1) The realized value is =0.516. > 0.516 0.5 0.015 = >1.07 =0.1423 Ch. 9-49

One-Tail Tests In many cases, the alternative hypothesis focuses on one particular direction H 0 : μ 3 H 1 : μ > 3 H 0 : μ 3 H 1 : μ < 3 This is an upper-tail test since the alternative hypothesis is focused on the upper tail above the mean of 3 This is a lower-tail test since the alternative hypothesis is focused on the lower tail below the mean of 3 Ch. 9-50

Upper-Tail Tests There is only one critical value, since the rejection area is in only one tail H 0 : μ 3 H 1 : μ > 3 α Z x Do not reject H 0 0 μ z α Reject H 0 Critical value x c Ch. 9-51

Lower-Tail Tests There is only one critical value, since the rejection area is in only one tail α H 0 : μ 3 H 1 : μ < 3 Reject H 0 Do not reject H 0 -z α 0 μ Z x Critical value x c Ch. 9-52

Two-Tail Tests In some settings, the alternative hypothesis does not specify a unique direction H 0 : μ = 3 H 1 : μ 3 There are two critical values, defining the two regions of rejection α/2 Reject H 0 Do not reject H 0 Reject H 0 -z α/2 0 +z α/2 Lower critical value 3 α/2 x z Upper critical value Ch. 9-53

Confidence Interval and Hypothesis Test Suppose the 95 percent confidence interval for is given by 3.5,6.9, i.e., (3.5 6.9)=0.95 Then, is likely to lie above 3.5, providing the evidence against : =3 at =0.05. The 95 percent confidence interval for Two-tail test of : =3at =0.05. Ch. 9-54

Clicker Question 9.4 Suppose that the 95 percent confidence interval for is given by 3.5,6.9, i.e., Then, (3.5 6.9)=0.95 A). We always reject : =3(two tail test) both at =0.05 and at =0.01 B). We always reject : =3(two tail test) both at =0.05 and at =0.10 Ch. 9-55

Clicker Question 9.5 The null hypothesis : 3(upper tail test) at significant level =0.05 is rejected if and only if A). The 95 percent confidence interval for lies above 3. B). The 90 percent confidence interval for lies above 3. C). The 97.5 percent confidence interval for lies above 3. Ch. 9-56

Hypothesis Testing Example Test the claim that the true mean # of TV sets in US homes is not equal to 3. (Assume σ = 0.8) State the appropriate null and alternative hypotheses H 0 : μ = 3, H 1 : μ 3 (This is a two tailed test) Specify the desired level of significance Suppose that α =.05 is chosen for this test Choose a sample size Suppose a sample of size n = 100 is selected Ch. 9-57

Hypothesis Testing Example Determine the appropriate technique σ is known so this is a z test Set up the critical values For α =.05 the critical z values are ±1.96 Collect the data and compute the test statistic Suppose the sample results are n = 100, x = 2.84 (σ = 0.8 is assumed known) So the test statistic is: X μ0 2.84 3.16 z = = = = 2.0 σ 0.8.08 n 100 (continued) Ch. 9-58

Hypothesis Testing Example Is the test statistic in the rejection region? (continued) Reject H 0 if z -1.96 or z 1.96; otherwise do not reject H 0 α =.05/2 Reject H 0 Do not reject H 0 -z = -1.96 0 α =.05/2 Reject H 0 +z = +1.96 Here, z = -2.0 < -1.96, so the test statistic is in the rejection region Ch. 9-59

Hypothesis Testing Example Reach a decision and interpret the result (continued) α =.05/2 α =.05/2 Reject H 0 Do not reject H 0 Reject H 0 -z = -1.96 0-2.0 +z = +1.96 Since z = -2.0 < -1.96, we reject the null hypothesis and conclude that there is sufficient evidence that the mean number of TVs in US homes is not equal to 3 Ch. 9-60

Confidence Interval In this example, the 95 percent confidence interval for is given by 3.5,6.9, i.e., 2.84 ±1.96 0.08= 2.683,2.997 μ = 3 is not in the 95 percent confidence interval. We reject : =3(two tail) at =.. We reject : 3(one tail) at =.. Ch. 9-61

Example: p-value Example: How likely is it to see a sample mean of 2.84 (or something further from the mean, in either direction) if the true mean is µ = 3.0? x = 2.84 is translated to a z score of z = -2.0 P(z < 2.0) =.0228 α/2 =.025 α/2 =.025 P(z > 2.0) =.0228.0228.0228 p-value =.0228 +.0228 =.0456-1.96 0 1.96 Z -2.0 2.0 Ch. 9-62

Example: p-value Compare the p-value with α (continued) If p-value α, reject H 0 If p-value > α, do not reject H 0 Here: p-value =.0456 α =.05 Since.0456 <.05, we reject the null hypothesis α/2 =.025.0228-1.96 0-2.0 α/2 =.025.0228 1.96 Z 2.0 Ch. 9-63

t Test of Hypothesis for the Mean (σ Unknown) For a two-tailed test: Consider the test H 0 :μ= μ 0 H :μ 1 μ 0 (Assume the population is normal, and the population variance is unknown) (continued) The decision rule is: Reject H 0 if t = x µ 0 s / n t n-1, α /2 or if t = x µ 0 s / n t n-1, α /2 Ch. 9-64

Example: Two-Tail Test (σ Unknown) The average cost of a hotel room in Chicago is said to be $168 per night. A random sample of 25 hotels resulted in x = $172.50 and s = $15.40. Test at the α = 0.05 level. (Assume the population distribution is normal) H 0 : μ = 168 H 1 : μ 168 Ch. 9-65

Example Solution: Two-Tail Test H 0 : μ = 168 H 1 : μ 168 α/2=.025 α/2=.025 α = 0.05 n = 25 σ is unknown, so use a t statistic Critical Value: t 24,.025 = ± 2.0639 Reject H 0 -t n-1,α/2 Do not reject H 0 Reject H t 0 n-1,α/2 Do not reject H 0 : not sufficient evidence that true mean cost is different than $168 0-2.0639 2.0639 1.46 x μ s n 172.50 168 15.40 t n 1 = = = 25 1.46 Ch. 9-66

9.4 Tests of the Population Proportion Involves categorical variables Two possible outcomes Success (a certain characteristic is present) Failure (the characteristic is not present) Fraction or proportion of the population in the success category is denoted by p Assume sample size is large Ch. 9-67

Proportions (continued) Sample proportion in the success category is denoted by pˆ ˆp = number of successes in sample sample size When sample size is large, can be approximated by a normal distribution with mean and standard deviation µ ˆp = p σ ˆp = pˆ p(1 p) n Ch. 9-68

Hypothesis Tests for Proportions The sampling distribution of pˆ is approximately normal, so the test statistic is a z value: Large sample Hypothesis Tests for p Small sample z = ˆp p 0 p 0 (1 p 0 ) n Not discussed in this chapter Ch. 9-69

Example: Z Test for Proportion A marketing company claims that it receives 8% responses from its mailing. To test this claim, a random sample of 500 were surveyed with 25 responses. Test at the α =.05 significance level. Ch. 9-70

Z Test for Proportion: Solution H 0 : p =.08 H 1 : p.08 α =.05 n = 500, =.05 Critical Values: ± 1.96 Reject.025-2.47 pˆ -1.96 0 Reject 1.96 z =.025 z Test Statistic: ˆp p 0 p 0 (1 p 0 ) n = Decision:.05.08.08(1.08) 500 Reject H 0 at α =.05 Conclusion: There is sufficient evidence to reject the company s claim of 8% response rate. = 2.47 Ch. 9-71

p-value Solution Calculate the p-value and compare to α (For a two sided test the p-value is always two sided) (continued) Do not reject H 0 Reject H 0 Reject H 0 α/2 =.025 α/2 =.025.0068-1.96 0.0068 1.96 p-value =.0136: P(Z 2.47) + P(Z = 2(.0068) = 0.0136 2.47) Z = -2.47 Z = 2.47 Reject H 0 since p-value =.0136 < α =.05 Ch. 9-72

9.5 Power of the Test Recall the possible hypothesis test outcomes: Actual Situation Key: Outcome (Probability) Decision Do Not Reject H 0 H 0 True No error (1 - α ) H 0 False Type II Error ( β ) Reject H 0 Type I Error ( ) α No Error ( 1 -β) β denotes the probability of Type II Error 1 βis defined as the power of the test Power = 1 β= the probability that a false null hypothesis is rejected Ch. 9-73

Type II Error Assume the population is normal and the population variance is known. Consider the test H :μ μ0 0 = 52 The decision rule is: H :μ < μ0 1 = 52 Reject H 0 if z = x µ 0 σ / n z α or Reject H 0 if x = x c µ 0 + z α σ / n If the null hypothesis is false and the true mean is μ*, then the probability of type II error is β = P(x > x c μ = μ*) = P z > x c μ * σ / n Ch. 9-74

Type II Error Example Type II error is the probability of failing to reject a false H 0 Suppose we fail to reject H 0 : μ 52 when in fact the true mean is μ* = 50 α 50 Reject H 0 : μ 52 x c 52 Do not reject H 0 : μ 52 Ch. 9-75

Type II Error Example (continued) Suppose we do not reject H 0 :μ 52 when in fact the true mean is μ* = 50 This is the true distribution of x if μ = 50 This is the range of x where H 0 is not rejected 50 Reject H 0 : μ 52 x c 52 Do not reject H 0 : μ 52 Ch. 9-76

Type II Error Example (continued) Suppose we do not reject H 0 :μ 52 when in fact the true mean is μ* = 50 Here, β = P( x ) if μ* = 50 x c α β 50 Reject H 0 : μ 52 x c 52 Do not reject H 0 : μ 52 Ch. 9-77

Calculating β Suppose n = 64, σ = 6, and α =.05 σ 6 xc = μ0 zα = 52 1.645 = 50.766 n 64 (for H 0 : μ 52) So β = P( x 50.766 ) if μ* = 50 α 50 50.766 52 Reject H 0 : μ 52 x c Do not reject H 0 : μ 52 Ch. 9-78

Calculating β Suppose n = 64, σ = 6, and α =.05 (continued) 50.766 50 P( x 50.766 μ* = 50) = P z = P(z 1.02) =.5.3461=.1539 6 64 α Probability of type II error: β =.1539 50 Reject H 0 : μ 52 x c 52 Do not reject H 0 : μ 52 Ch. 9-79

Power of the Test Example If the true mean is μ* = 50, The probability of Type II Error = β = 0.1539 The power of the test = 1 β= 1 0.1539 = 0.8461 Key: Outcome (Probability) Decision Do Not Reject H 0 Reject H 0 H 0 True Actual Situation No error 1 - α = 0.95 Type I Error α = 0.05 H 0 False Type II Error β = 0.1539 No Error 1 -β= 0.8461 (The value of β and the power will be different for each μ*) Ch. 9-80

9.6 Hypothesis Tests of one Population Variance Goal: Test hypotheses about the population variance, σ 2 If the population is normally distributed, χ 2 n 1 = (n 1)s 2 σ 2 has a chi-square distribution with (n 1) degrees of freedom Statistics for Business and Economics, 6e 2007 Pearson Education, Inc. Chap 11-81

Hypothesis Tests of one Population Variance (continued) The test statistic for hypothesis tests about one population variance is χ 2 n 1 = (n 1)s σ 2 0 2 Statistics for Business and Economics, 6e 2007 Pearson Education, Inc. Chap 11-82

Decision Rules: Variance Population variance Lower-tail test: H 0 : σ 2 σ 0 2 H 1 : σ 2 < σ 0 2 Upper-tail test: H 0 : σ 2 σ 0 2 H 1 : σ 2 >σ 0 2 Two-tail test: H 0 : σ 2 = σ 0 2 H 1 : σ 2 σ 0 2 α α α/2 α/2 χ 2 n 1,1 α χ 2 n 1, α χ 2 n 1,1 α / 2 χ 2 n 1, α / 2 Reject H 0 if Reject H 0 if Reject H 0 if 2 χ n 1 2 2 χ n 1 χ n 1,1 α 2 2 or χ n 1 2 χ n 1 χ n 1,α 2 χ n 1,α/2 2 χ n 1,1 α/2 Statistics for Business and Economics, 6e 2007 Pearson Education, Inc. Chap 11-83