LESSON 20: HYPOTHESIS TESTING

Similar documents
Common Large/Small Sample Tests 1/55

University of California, Los Angeles Department of Statistics. Hypothesis testing

Overview. p 2. Chapter 9. Pooled Estimate of. q = 1 p. Notation for Two Proportions. Inferences about Two Proportions. Assumptions

- E < p. ˆ p q ˆ E = q ˆ = 1 - p ˆ = sample proportion of x failures in a sample size of n. where. x n sample proportion. population proportion

MOST PEOPLE WOULD RATHER LIVE WITH A PROBLEM THEY CAN'T SOLVE, THAN ACCEPT A SOLUTION THEY CAN'T UNDERSTAND.

1036: Probability & Statistics

Section 9.2. Tests About a Population Proportion 12/17/2014. Carrying Out a Significance Test H A N T. Parameters & Hypothesis

HYPOTHESIS TESTS FOR ONE POPULATION MEAN WORKSHEET MTH 1210, FALL 2018

Final Examination Solutions 17/6/2010

Chapter 22: What is a Test of Significance?

Chapter 13, Part A Analysis of Variance and Experimental Design

If, for instance, we were required to test whether the population mean μ could be equal to a certain value μ

Chapter 4 Tests of Hypothesis

Class 23. Daniel B. Rowe, Ph.D. Department of Mathematics, Statistics, and Computer Science. Marquette University MATH 1700

Introduction to Econometrics (3 rd Updated Edition) Solutions to Odd- Numbered End- of- Chapter Exercises: Chapter 3

Hypothesis Testing (2) Barrow, Statistics for Economics, Accounting and Business Studies, 4 th edition Pearson Education Limited 2006

2 1. The r.s., of size n2, from population 2 will be. 2 and 2. 2) The two populations are independent. This implies that all of the n1 n2

Chapter 5: Hypothesis testing

BIOS 4110: Introduction to Biostatistics. Breheny. Lab #9

MA238 Assignment 4 Solutions (part a)

Successful HE applicants. Information sheet A Number of applicants. Gender Applicants Accepts Applicants Accepts. Age. Domicile

Inferential Statistics. Inference Process. Inferential Statistics and Probability a Holistic Approach. Inference Process.

PSYCHOLOGICAL RESEARCH (PYC 304-C) Lecture 9

This chapter focuses on two experimental designs that are crucial to comparative studies: (1) independent samples and (2) matched pair samples.

Power and Type II Error

April 18, 2017 CONFIDENCE INTERVALS AND HYPOTHESIS TESTING, UNDERGRADUATE MATH 526 STYLE

FACULTY OF MATHEMATICAL STUDIES MATHEMATICS FOR PART I ENGINEERING. Lectures

Day 8-3. Prakash Balachandran Department of Mathematics & Statistics Boston University. Friday, October 28, 2011

Comparing Two Populations. Topic 15 - Two Sample Inference I. Comparing Two Means. Comparing Two Pop Means. Background Reading

Data Analysis and Statistical Methods Statistics 651

Comparing your lab results with the others by one-way ANOVA

Chapter 1 (Definitions)

Math 152. Rumbos Fall Solutions to Review Problems for Exam #2. Number of Heads Frequency

Frequentist Inference

Recall the study where we estimated the difference between mean systolic blood pressure levels of users of oral contraceptives and non-users, x - y.

This is an introductory course in Analysis of Variance and Design of Experiments.

Interval Estimation (Confidence Interval = C.I.): An interval estimate of some population parameter is an interval of the form (, ),

7-1. Chapter 4. Part I. Sampling Distributions and Confidence Intervals

Econ 325 Notes on Point Estimator and Confidence Interval 1 By Hiro Kasahara

Chapter 13: Tests of Hypothesis Section 13.1 Introduction

Notes on Hypothesis Testing, Type I and Type II Errors

Statistics. Chapter 10 Two-Sample Tests. Copyright 2013 Pearson Education, Inc. publishing as Prentice Hall. Chap 10-1

Chapter 6 Sampling Distributions

6 Sample Size Calculations

Properties and Hypothesis Testing

A Statistical hypothesis is a conjecture about a population parameter. This conjecture may or may not be true. The null hypothesis, symbolized by H

Because it tests for differences between multiple pairs of means in one test, it is called an omnibus test.

STATISTICAL INFERENCE

Sampling Distributions, Z-Tests, Power

Chapter 8: Estimating with Confidence

Topic 18: Composite Hypotheses

1 Inferential Methods for Correlation and Regression Analysis

Continuous Data that can take on any real number (time/length) based on sample data. Categorical data can only be named or categorised

A statistical method to determine sample size to estimate characteristic value of soil parameters

Statistical Hypothesis A statistical hypothesis is an assertion or conjecture concerning one or more populations.

A Confidence Interval for μ

Chapter two: Hypothesis testing

5. A formulae page and two tables are provided at the end of Part A of the examination PART A

Last Lecture. Wald Test

A quick activity - Central Limit Theorem and Proportions. Lecture 21: Testing Proportions. Results from the GSS. Statistics and the General Population

Agreement of CI and HT. Lecture 13 - Tests of Proportions. Example - Waiting Times

STAT 350 Handout 19 Sampling Distribution, Central Limit Theorem (6.6)

Sample Size Determination (Two or More Samples)

Economics Spring 2015

Stat 319 Theory of Statistics (2) Exercises

(6) Fundamental Sampling Distribution and Data Discription

MBACATÓLICA. Quantitative Methods. Faculdade de Ciências Económicas e Empresariais UNIVERSIDADE CATÓLICA PORTUGUESA 9. SAMPLING DISTRIBUTIONS

Expectation and Variance of a random variable

STA Learning Objectives. Population Proportions. Module 10 Comparing Two Proportions. Upon completing this module, you should be able to:

Lecture 5: Parametric Hypothesis Testing: Comparing Means. GENOME 560, Spring 2016 Doug Fowler, GS

Math 140 Introductory Statistics

Chapter 22. Comparing Two Proportions. Copyright 2010, 2007, 2004 Pearson Education, Inc.

5. Likelihood Ratio Tests

INSTRUCTIONS (A) 1.22 (B) 0.74 (C) 4.93 (D) 1.18 (E) 2.43

Problem Set 4 Due Oct, 12

SOLUTIONS y n. n 1 = 605, y 1 = 351. y1. p y n. n 2 = 195, y 2 = 41. y p H 0 : p 1 = p 2 vs. H 1 : p 1 p 2.

Statistical inference: example 1. Inferential Statistics

1 Constructing and Interpreting a Confidence Interval

Statistical Inference (Chapter 10) Statistical inference = learn about a population based on the information provided by a sample.

MIT : Quantitative Reasoning and Statistical Methods for Planning I

Chapter 8: STATISTICAL INTERVALS FOR A SINGLE SAMPLE. Part 3: Summary of CI for µ Confidence Interval for a Population Proportion p

The Hong Kong University of Science & Technology ISOM551 Introductory Statistics for Business Assignment 3 Suggested Solution

ENGI 4421 Confidence Intervals (Two Samples) Page 12-01

Sample questions. 8. Let X denote a continuous random variable with probability density function f(x) = 4x 3 /15 for

independence of the random sample measurements, we have U = Z i ~ χ 2 (n) with σ / n 1. Now let W = σ 2. We then have σ 2 (x i µ + µ x ) 2 i =1 ( )

( θ. sup θ Θ f X (x θ) = L. sup Pr (Λ (X) < c) = α. x : Λ (x) = sup θ H 0. sup θ Θ f X (x θ) = ) < c. NH : θ 1 = θ 2 against AH : θ 1 θ 2

Chapter 23: Inferences About Means

1 Constructing and Interpreting a Confidence Interval

Y i n. i=1. = 1 [number of successes] number of successes = n

Confidence Intervals for the Population Proportion p

Lecture 5. Materials Covered: Chapter 6 Suggested Exercises: 6.7, 6.9, 6.17, 6.20, 6.21, 6.41, 6.49, 6.52, 6.53, 6.62, 6.63.

Chapter 9. Key Ideas Hypothesis Test (Two Populations)

UNIVERSITY OF TORONTO Faculty of Arts and Science APRIL/MAY 2009 EXAMINATIONS ECO220Y1Y PART 1 OF 2 SOLUTIONS

Mathematical Notation Math Introduction to Applied Statistics

Statistical Inference About Means and Proportions With Two Populations

Chapter 20. Comparing Two Proportions. BPS - 5th Ed. Chapter 20 1

Estimating the Population Mean - when a sample average is calculated we can create an interval centered on this average

Statistical Intervals for a Single Sample

Module 1 Fundamentals in statistics

MATH/STAT 352: Lecture 15

Transcription:

LESSN 20: YPTESIS TESTING utlie ypothesis testig Tests for the mea Tests for the proportio 1 YPTESIS TESTING TE CNTEXT Example 1: supervisor of a productio lie wats to determie if the productio time of a critical part is the same as its desig time, say 100 secods. radom sample of parts is take ad their productio times are measured. Does the sample iformatio provide eough evidece that the productio time of the part is 100 secods? f course, both of the followig are importat The productio times sampled ad The size of the sample I the above cotext, hypothesis testig provides a techique to coclude if the productio time of the part is 100 secods. 2 1

YPTESIS TESTING TE CNTEXT Example 2: Suppose that a maager wats to produce a ew product if more tha 10% potetial customers buy the product. radom sample of potetial customers is asked whether they would buy the product. Does the sample iformatio provide eough evidece that more tha 10% potetial customers will buy the ew product? f course, both of the followig are importat The yes/o aswers provided by the respodets ad The size of the sample I the above cotext, hypothesis testig provides a techique to coclude if more tha 10% potetial customers will buy the ew product. 3 YPTESIS TESTING TE CNTEXT Example 3: Suppose that a quality cotrol ispector wats to determie if less tha 2% items are defective. radom sample of items are checked ad ispected. Does the sample iformatio provide eough evidece that less tha 2% items are defective? f course, both of the followig are importat The proportio defectives observed i the sample ad The size of the sample I the above cotext, hypothesis testig provides a techique to coclude if less tha 2% items are defective. 4 2

YPTESIS TESTING SME TERMS Null ypothesis, The ull hypothesis always specifies a sigle value. For example, suppose that it is required to determie if the populatio mea is 10. The, the ull hypothesis is : µ =100 Note that sice the ull hypothesis always specifies a sigle value, oe of the below may be a ull hypothesis : µ < 100 : µ 100 : µ > 100 : 80 < µ < 120 5 YPTESIS TESTING SME TERMS lterative ypothesis, The alterative hypothesis is very importat because the coclusio of the hypothesis testig is stated i terms of alterative hypothesis ypothesis testig provides a techique to determie if there is eough statistical evidece that the alterative hypothesis is true. There are three forms of alterative hypothesis: Two-tail test : µ = 100 : µ 100 e-tail (right-tail) test : p = 0.10 : p > 0.10 e-tail (left-tail) test : p = 0.02 : p < 0.02 Example 1 Example 2 Example 3 6 3

YPTESIS TESTING SME TERMS lterative ypothesis, (e- ad Two-Tail Tests) It is very importat to choose the right form of the alterative hypothesis. The form depeds o the cotext. I Example I, the supervisor wats to kow if the mea is 100 or differet from 100. Both the too large ad too small values are equally udesirable. It is appropriate to reject the claim if the sample mea is much differet from 100. So, the most appropriate test is the two-tail test. I Examples 2 ad 3 too small ad too large observatios do ot lead to the same actio. Whe this happes, a oe-tail test is used. 7 YPTESIS TESTING SME TERMS lterative ypothesis, (Left- ad Right-Tail Tests) Choose betwee the left- ad right-tail tests carefully. I Example 2 the maager wats to kow if the proportio is more tha 0.10. So, : p > 0.10 ad the most appropriate test is a right-tail test. I Example 3 the ispector wats to kow if the proportio is less tha 0.02. So, : p < 0.02 ad the most appropriate test is a left-tail test. 8 4

YPTESIS TESTING SME TERMS Test Statistic ad Rejectio Regio The test statistic is computed from the sample data. The test statistic is differet for differet tests. For example, the test statistic for the z-test of mea is X µ z = / The test statistic is the same for both oe-tail ad twotail tests. The rejectio regios for oe-tail ad two-tail tests are differet. If the test statistic lies i the rejectio regio, the ull hypothesis is rejected, else the ull hypothesis is ot rejected (Beware: ot rejected accepted) 9 YPTESIS TESTING SME TERMS Rejectio Regio ad Level of Sigificace, a Coclusio draw from sample measuremets are usually expected to cotai some errors Type I error To reject the ull hypothesis whe it s actually true! Type II error To accept the ull hypothesis whe it s actually false! Level of sigificace, α specifies a limit o the probability of committig Type I error Rejectio regio is differet for a differet value of α 10 5

YPTESIS TESTING SME TERMS Rejectio Regio If the test statistic lies i the rejectio regio, the ull hypothesis is rejected, else the ull hypothesis is ot rejected (ot rejected accepted) The rejectio regios for z-test are show below: Two-tail test: reject the ull hypothesis if Right-tail test: reject the ull hypothesis if Left-tail test: reject the ull hypothesis if z > z α/ 2 z > z α z < z Where z is the test statistic, α is the level of sigificace. Recall that z a is that value of z for which area o the right is a. α 11 YPTESIS TESTING SME TERMS Rejectio Regio for two-tail z-test of mea f(x) Two -tail rejectio regio = x α 2 α 2 z α/2 µ z α / 2 12 6

YPTESIS TESTING SME TERMS Rejectio Regio for oe-tail z-test of mea f(x) Left -tail rejectio regio = x f(x) Right -tail rejectio regio = x α α z α µ µ zα 13 YPTESIS TESTING SME TERMS Type I Error Example: Suppose that a maufacturer of packaged cereals produces cereal boxes. Each box is expected to have a et weight of 100 gm. Periodically, samples are collected ad the average weight of the sample is measured. It is possible that although the system is producig cereal boxes as usual, just because of some radom variatio, a sample may cotai all boxes with weights less tha 100 gm. The, the maufacturer may be tempted to assume some problem with the system, stop the productio ad search for the problem. I this case, the sample data provides a false alarm ad a Type I error is committed. 14 7

YPTESIS TESTING SME TERMS Type II Error Not to reject the ull hypothesis whe the ull hypothesis is false! (the opposite of the Type I error). The probability of committig a Type II error is deoted by β. Example: cosider the maufacturer of the packaged cereal agai. Each cereal box is expected to have a et weight of 100 gm. But, due to some problems i the productio system, the average weight is shifted to 98 gm. Type II error is committed if a sample is collected with average weight early 100 gm. Notice that i such a case, the problem with the productio system will ot be detected by the sample! 15 TESTING TE PPULTIN MEN WEN TE PPULTIN VRINCE IS KNWN z-test is used i the followig cotext: The measuremets are ormally distributed The populatio stadard deviatio is kow, It is desirable to kow if the populatio mea is differet from a give value (two-tail test) less tha a give value (left-tail test) more tha a give value (right-tail test) 16 8

TESTING TE PPULTIN MEN WEN TE PPULTIN VRINCE IS KNWN The test statistic ad rejectio regio for the z-test are: Test statistic: X µ z = / Where, X is the sample mea, µ is the populatio mea stated i the ull hypothesis, is the populatio stadard deviatio ad is the sample size. Rejectio regio: Two-tail test: reject the ull hypothesis if Right-tail test: reject the ull hypothesis if Left-tail test: reject the ull hypothesis if where, α is the level of sigificace. z z > z α z < z > z α/ 2 α 17 TESTING TE PPULTIN MEN WEN TE PPULTIN VRINCE IS KNWN ( N < 10) For small populatio, ad the test statistic for the z-test is: X µ z = N N 1 N N 1 For sigle-decisio procedure the rejectio regios are stated i terms of z-statistic. owever, for recurrig-decisio procedure, the rejectio regios are stated i terms of the actual measuremets, e.g., X, p X = 18 9

TESTING TE PPULTIN MEN WEN TE PPULTIN VRINCE IS KNWN Example 4: machie that produces ball bearigs is set so that the average diameter is 0.60 ich. I a sample of 49 ball bearigs, the mea diameter was foud to be 0.61 ich. ssume that the stadard deviatio is 0.035. Does this statistic provide sufficiet evidece at the 5% sigificace level to ifer that the mea diameter is ot 0.60 ich? : : Test statistic: Rejectio regio: Coclusio: f(x) µ = x 19 YPTESIS TESTING INTERPRETTIN If the ull hypothesis is rejected Coclude that there is eough statistical evidece to ifer that the alterative hypothesis is true If the ull hypothesis is ot rejected Coclude that there is ot eough statistical evidece to ifer that the alterative hypothesis is true 20 10

TESTING TE PPULTIN MEN WEN TE PPULTIN VRINCE IS KNWN Example 5: radom sample of 100 observatios from a ormal populatio whose stadard deviatio is 50 produced a mea of 145. Does this statistic provide sufficiet evidece at the 5% sigificace level to ifer that populatio mea is more tha 140? : : Test statistic: Rejectio regio: Coclusio: f(x) µ = x 21 TESTING TE PPULTIN MEN WEN TE PPULTIN VRINCE IS KNWN Example 6: radom sample of 100 observatios from a ormal populatio whose stadard deviatio is 50 produced a mea of 145. Does this statistic provide sufficiet evidece at the 5% sigificace level to ifer that populatio mea is less tha 150? : : Test statistic: Rejectio regio: Coclusio: f(x) µ = x 22 11

TESTING TE PPULTIN MEN WEN TE PPULTIN VRINCE IS KNWN Example 7: The followig hypotheses are to be tested, with µ 0 = 110 : : µ = µ : µ > µ ssume s = 25 ad = 100. The followig decisio rule applies: ccept Reject 0 0 if X 114 if X > 114 0 0 f(x) = x Compute Type I error probability whe µ=110 ad Type II error probability whe µ=115. µ 23 INFERENCE BUT PPULTIN MEN WEN TE PPULTIN VRINCE IS UNKNWN If the populatio variace, is ot kow, we caot compute the z-statistic. owever, we may compute a similar statistic, the t-statistic, that uses the sample stadard deviatio s i place of the populatio stadard deviatio : t = X µ s / t a is that value of t for which the area to its right uder the Studet t-curve equals a. t a,df is that value of t for which the area to its right uder the Studet t-curve for degrees of freedom=dfequals a. The value t a df is obtaied from Table G, ppedix, p. 24 541. 12

INFERENCE BUT PPULTIN MEN WEN TE PPULTIN VRINCE IS UNKNWN Test of ypothesis about a populatio mea whe the populatio variace is ukow: X µ Test statistic: t = or s / Rejectio regio: Two-tail test: t > tα/ 2, 1 t = X µ s N N 1 for small N Right-tail test: t > tα, 1 Left-tail test: t < tα, 1 25 INFERENCE BUT PPULTIN MEN WEN TE PPULTIN VRINCE IS UNKNWN Example 8: Let = 100, N = 500, = 160 : µ = 5,000 : µ > 5,000 Suppose that X will serve as test statistic. (a) ssumig that a sigificace level of a=0.01 is desired, fid the critical value for the sample mea ad determie the decisio rule. (b) Should 0 be accepted or rejected if the computed sample mea turs out to be X = 5,050? 26 13

INFERENCE BUT PPULTIN MEN WEN TE PPULTIN VRINCE IS UNKNWN Example 9: radom sample of 9 observatios were draw from a large populatio. These are: 11,9,5,7,1,2,10,6,3. Test to determie if we ca ifer at the 5% sigificace level that the populatio mea is less tha 10. : : Test statistic: Rejectio regio: Coclusio: swer: 27 INFERENCE BUT PPULTIN PRPRTIN Let p = the populatio proportio p = the sample proportio = the sample size The, The expected umber of successes = p Stadard deviatio of successes = p 1 p The expected sample proportio ( ) p ( ) E p = Stadard deviatio of the sample proportio p( 1 p) = p 28 14

INFERENCE BUT PPULTIN PRPRTIN Test of ypothesis about a populatio proportio: Test statistic: z = π p π ( 1 π )/ Rejectio regio: Two-tail test: Right-tail test: Left-tail test: z > z α / 2 z > z α z < z α 29 Example 10: Test the followig hypothesis: : π = 0.40 : π 0.40 Test statistic: INFERENCE BUT PPULTIN PRPRTIN α = 0.05, = 100, p = 0.35 Rejectio regio: Coclusio: 30 15

INFERENCE BUT PPULTIN PRPRTIN Example 11: I a televisio commercial, the maufacturer of a toothpaste claims that more tha seve out of 10 detists recommed the igrediets i his product. To test the claim, a cosumer protectio group radomly samples 400 detists ad asks each oe whether he or she recommed a toothpaste that cotaied the igrediets. total of 290 detists aswered Yes. t the 5% sigificace level, ca the cosumer group ifer that the claim is true? 31 : : Test statistic: Rejectio regio: Coclusio: swer: 32 16

Example 12: Test the followig hypothesis: : π : π = 0.20 < 0.20 Test statistic: INFERENCE BUT PPULTIN PRPRTIN α = 0.10, = 900, p = 0.18 Rejectio regio: Coclusio: 33 REDING ND EXERCISES Lesso 20 Readig: Sectio 11-1 to 11-3, pp. 344-389 Exercises: 11-4, 11-12, 11-14, 11-23, 11-31 34 17