CH.9 Tests of Hypotheses for a Single Sample

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

Practice Problems Section Problems

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

STAT 515 fa 2016 Lec Statistical inference - hypothesis testing

Statistical Process Control (contd... )

Multiple comparisons - subsequent inferences for two-way ANOVA

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

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

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

Econ 325: Introduction to Empirical Economics

Tests about a population mean

T.I.H.E. IT 233 Statistics and Probability: Sem. 1: 2013 ESTIMATION AND HYPOTHESIS TESTING OF TWO POPULATIONS

Single Sample Means. SOCY601 Alan Neustadtl

Review: General Approach to Hypothesis Testing. 1. Define the research question and formulate the appropriate null and alternative hypotheses.

The legacy of Sir Ronald A. Fisher. Fisher s three fundamental principles: local control, replication, and randomization.

Section 10.1 (Part 2 of 2) Significance Tests: Power of a Test

Visual interpretation with normal approximation

The Purpose of Hypothesis Testing

Review. December 4 th, Review

Section 9.5. Testing the Difference Between Two Variances. Bluman, Chapter 9 1

Mathematical Statistics

Hypothesis for Means and Proportions

Study Ch. 9.3, #47 53 (45 51), 55 61, (55 59)

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

EC2001 Econometrics 1 Dr. Jose Olmo Room D309

INTERVAL ESTIMATION AND HYPOTHESES TESTING

STAT Chapter 8: Hypothesis Tests

Sociology 6Z03 Review II

Chapter 9 Inferences from Two Samples

Lecture 2: Basic Concepts and Simple Comparative Experiments Montgomery: Chapter 2

Chapter 7 Comparison of two independent samples

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

Statistical Inference

Dover- Sherborn High School Mathematics Curriculum Probability and Statistics

EXAM 3 Math 1342 Elementary Statistics 6-7

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

y ˆ i = ˆ " T u i ( i th fitted value or i th fit)

VTU Edusat Programme 16

Hypothesis Testing: One Sample

Chapter Seven: Multi-Sample Methods 1/52

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

41.2. Tests Concerning a Single Sample. Introduction. Prerequisites. Learning Outcomes

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

Design of Engineering Experiments

BINF702 SPRING 2015 Chapter 7 Hypothesis Testing: One-Sample Inference

Math 2000 Practice Final Exam: Homework problems to review. Problem numbers

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

Political Science 236 Hypothesis Testing: Review and Bootstrapping

BIO5312 Biostatistics Lecture 6: Statistical hypothesis testings

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

Statistics: CI, Tolerance Intervals, Exceedance, and Hypothesis Testing. Confidence intervals on mean. CL = x ± t * CL1- = exp

1 Statistical inference for a population mean

1; (f) H 0 : = 55 db, H 1 : < 55.

Mathematical statistics

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

Introduction to Statistical Hypothesis Testing

Lectures 5 & 6: Hypothesis Testing

Statistical Analysis for QBIC Genetics Adapted by Ellen G. Dow 2017

HYPOTHESIS TESTING. Hypothesis Testing

An inferential procedure to use sample data to understand a population Procedures

LECTURE 5. Introduction to Econometrics. Hypothesis testing

Background to Statistics

Hypothesis testing. Data to decisions

8.1-4 Test of Hypotheses Based on a Single Sample

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

Testing Research and Statistical Hypotheses

Chapter 8 of Devore , H 1 :

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

Statistical Inference

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:

Normal (Gaussian) distribution The normal distribution is often relevant because of the Central Limit Theorem (CLT):

TUTORIAL 8 SOLUTIONS #


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

Chapter 7: Hypothesis Testing

Basic Statistics. 1. Gross error analyst makes a gross mistake (misread balance or entered wrong value into calculation).

Ch 2: Simple Linear Regression

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

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

Summary of Chapters 7-9

LAB 2. HYPOTHESIS TESTING IN THE BIOLOGICAL SCIENCES- Part 2

Solution: First note that the power function of the test is given as follows,

Dr. Maddah ENMG 617 EM Statistics 10/12/12. Nonparametric Statistics (Chapter 16, Hines)

Introductory Econometrics

Statistical Inference. Hypothesis Testing

LECTURE 12 CONFIDENCE INTERVAL AND HYPOTHESIS TESTING

Logistic Regression Analysis

23. MORE HYPOTHESIS TESTING

Purposes of Data Analysis. Variables and Samples. Parameters and Statistics. Part 1: Probability Distributions

Systems of Linear Equations

Mathematical statistics

MATH 728 Homework 3. Oleksandr Pavlenko

Bios 6649: Clinical Trials - Statistical Design and Monitoring

Chapter 5: HYPOTHESIS TESTING

Chapter 23. Inference About Means

1 Hypothesis testing for a single mean

Business Statistics. Lecture 10: Course Review

Preliminary Statistics. Lecture 5: Hypothesis Testing

IMP 2 September &October: Solve It

Multiple Regression Analysis

Transcription:

CH.9 Tests of Hypotheses for a Single Sample Hypotheses testing Tests on the mean of a normal distributionvariance known Tests on the mean of a normal distributionvariance unknown Tests on the variance and standard deviation of a normal distribution Tests on a population proportion Testing for goodness of fit 1

9-1 Hypothesis Testing 9-1.1 Statistical Hypotheses Statistical inference may be divided into two major areas: Parameter estimation Hypothesis testing Statistical hypothesis testing and confidence interval estimation of parameters are the fundamental methods used at the data analysis stage of a comparative experiment, in which the engineer is interested, for example, in comparing the mean of a population to a specified value. 2

9-1 Hypothesis Testing 9-1.1 Statistical Hypotheses For example, suppose that we are interested in the burning rate of a solid propellant used to power aircrew escape systems. Now burning rate is a random variable that can be described by a probability distribution. Suppose that our interest focuses on the mean burning rate (a parameter of this distribution). Specifically, we are interested in deciding whether or not the mean burning rate is 50 centimeters per second. 3

9-1 Hypothesis Testing 9-1.1 Statistical Hypotheses Two-sided Alternative Hypothesis null hypothesis alternative hypothesis One-sided Alternative Hypotheses 4

9-1 Hypothesis Testing 9-1.1 Statistical Hypotheses Test of a Hypothesis Hypotheses are statements about population or distribution under study. A procedure leading to a decision about a particular hypothesis Hypothesis-testing procedures rely on using the information in a random sample from the population of interest. If this information is consistent with the hypothesis, then we will conclude that the hypothesis is true (fail to reject hypothesis); if this information is inconsistent with the hypothesis, we will conclude that the hypothesis is false (reject hypothesis). 5

9-1 Hypothesis Testing 9-1.2 Tests of Statistical Hypotheses Decision criteria for testing H 0 :μ = 50 cm/s versus H 1 :μ 50 cm/s. 6

9-1 Hypothesis Testing 9-1.2 Tests of Statistical Hypotheses Critical Region Acceptance Region Critical Region critical values Decision criteria for testing H 0 :μ = 50 cm/s versus H 1 :μ 50 cm/s. 7

9-1 Hypothesis Testing 9-1.2 Tests of Statistical Hypotheses Two wrong conclusions are possible: Type I Error Type II Error 8

9-1 Hypothesis Testing 9-1.2 Tests of Statistical Hypotheses Sometimes the type I error probability is called the significance level, or the α-error, or the size of the test. 9

9-1 Hypothesis Testing 9-1.2 Tests of Statistical Hypotheses Ex: σ =2.5 n=10 Standard deviation of the sample mean: σ 2.5 σ = = = X n 10 0.79 μ x σ X 10

9-1 Hypothesis Testing Critical Region for H0 : μ = 50 H1: μ 50 Probability distribution of X Corresponding probability distribution of Z -1.90 0 1.90 Z 11

9-1 Hypothesis Testing How can we reduce α? - by widening acceptance region (if take critical values 48 and 52, α =0.0114, Verify!) - by increasing sample size (if take n=16, α =0.0164 Verify!) 12

9-1 Hypothesis Testing The probability of type II error when μ = 52 and n = 10. 13

9-1 Hypothesis Testing 14

9-1 Hypothesis Testing The probability of type II error when μ = 50.5 and n = 10. 15

9-1 Hypothesis Testing 16

9-1 Hypothesis Testing The probability of type II error when μ = 52 and n = 16. 17

9-1 Hypothesis Testing 18

9-1 Hypothesis Testing Generally α is controlable when critical values are selected. Thus, rejection of null hypothesis H 0 is a strong conclusion. β is not constant but depends on the true value of the parameter and sample size. Accepting H 0 is a weak conclusion unless β is acceptably small. Prefer the terminology fail to reject H 0 ratherthan accept H 0 Fail to reject H 0 implies we have not found sufficient evidence to reject H 0. does not necessarily mean there is a high probability that H 0 is true. means more data are required to reach a strong conclusion. 19

9-1 Hypothesis Testing Power The power is computed as 1 - β, and power can be interpreted as the probability of correctly rejecting a false null hypothesis. We often compare statistical tests by comparing their power properties. For example, consider the propellant burning rate problem when we are testing H 0 : μ = 50 cm/s against H 1 : μ not equal 50 cm/s. Suppose that the true value of the mean is μ = 52. When n = 10, we found that β = 0.2643, so the power of this test is 1 - β = 1-0.2643 = 0.7357 when μ = 52. 20

9-1 Hypothesis Testing 9-1.3 One-Sided and Two-Sided Hypotheses Two-Sided Test: One-Sided Tests: 21

9-1 Hypothesis Testing Example 9-1 Suppose if the propellant burning rate is less than 50 cm/s Want to show this with a strong conclusion CLAIM Hypotheses should be stated as H 0 : μ = 50 cm/s H 1 : μ < 50 cm/s Since the rejection of H 0 is always a strong conclusion, this statement of the hypotheses will produce the desired outcome if H 0 is rejected. Although H 0 is stated with an equal sign, it is understood to include any value of μ not specified by H 1. Failing to reject H 0 does not mean μ = 50 cm/s exactly. Failing to reject H 0 means we do not have strong evidence in support of H 1. 22

9-1 Hypothesis Testing The bottler wants to be sure that the bottles meet the specification on mean internal pressure or bursting strength, which for 10-ounce bottles is a minimum strength of 200 psi. The bottler has decided to formulate the decision procedure for a specific lot of bottles as a hypothesis testing problem. There are two possible formulations for this problem: either or Which is correct? Depends on the objective of the analysis. 23

9-1 Hypothesis Testing 9-1.4 P-Values in Hypothesis Tests When H 0 is rejected at a specified α level, this gives no idea about whether the computed value of the test statistic is just barely in the rejection region or it is very far into this region. Thus, P-value has been adopted widely in practice 24

9-1 Hypothesis Testing 9-1.4 P-Values in Hypothesis Tests Consider the two-sided hypothesis test for burning rate: H 0 : μ = 50 cm/s H 1 : μ 50 cm/s n=16, σ=2.5, P-value? x = 51.3 25

9-1 Hypothesis Testing 9-1.5 Connection between Hypothesis Tests and Confidence Intervals Close relation between hypothesis tests and confidence intervals H 0 : μ = 50 cm/s n=16, σ=2.5, α=0.05, H 1 : μ 50 cm/s x = 51.3 Critical z values are z α/2 =z 0.025 =1.96 and z 0.025 =-1.96 which corresponds to Critical values 2.5 50 ± 1.96 = [48.775 ; 51.225] 16 x = 51.3 is not in the acceptance region [48.775 ; 51.225]. So reject null hypothesis. Confidence interval for μ at α=0.05 is That is 50.075 μ 52.525 2.5 51.3± 1.96 16 same conclusion! μ=50 is not in the confidence interval [50.075 ; 52.525]. So reject null hypothesis. 26

9-1 Hypothesis Testing 9-1.5 Connection between Hypothesis Tests and Confidence Intervals 27

9-1 Hypothesis Testing 9-1.6 General Procedure for Hypothesis Tests 1. From the problem context, identify the parameter of interest. 2. State the null hypothesis, H 0. 3. Specify an appropriate alternative hypothesis, H 1. 4. Choose a significance level, α. 5. Determine an appropriate test statistic. 6. State the rejection region for the statistic. 7. Compute any necessary sample quantities, substitute these into the equation for the test statistic, and compute that value. 8. Decide whether or not H 0 should be rejected and report that in the problem context. 28

9-2 Tests on the Mean of a Normal Distribution, Variance Known 9-2.1 Hypothesis Tests on the Mean We wish to test: The test statistic is: 29

9-2 Tests on the Mean of a Normal Distribution, Variance Known 9-2.1 Hypothesis Tests on the Mean Reject H 0 if the observed value of the test statistic z 0 is either: Fail to reject H 0 if z 0 > z α/2 or z 0 < -z α/2 -z α/2 < z 0 < z α/2 30

9-2 Tests on the Mean of a Normal Distribution, Variance Known Example 9-2 31

9-2 Tests on the Mean of a Normal Distribution, Variance Known Example 9-2 32

9-2 Tests on the Mean of a Normal Distribution, Variance Known Example 9-2 33

9-2 Tests on the Mean of a Normal Distribution, Variance Known 9-2.1 Hypothesis Tests on the Mean 34

9-2 Tests on the Mean of a Normal Distribution, Variance Known 9-2.1 Hypothesis Tests on the Mean (Continued) 35

9-2 Tests on the Mean of a Normal Distribution, Variance Known 36

9-2 Tests on the Mean of a Normal Distribution, Variance Known 9-2.1 Hypothesis Tests on the Mean (Continued) 37

9-2 Tests on the Mean of a Normal Distribution, Variance Known P-Values in Hypothesis Tests 38

9-2 Tests on the Mean of a Normal Distribution, Variance Known 9-2.2 Type II Error and Choice of Sample Size Finding the Probability of Type II Error β 39

9-2 Tests on the Mean of a Normal Distribution, Variance Known 9-2.2 Type II Error and Choice of Sample Size Finding the Probability of Type II Error β The distribution of Z 0 under H 0 and H 1 40

9-2 Tests on the Mean of a Normal Distribution, Variance Known 9-2.2 Type II Error and Choice of Sample Size Finding the Probability of Type II Error β 0 if δ>0 Let z β be the 100β upper percentile of the standard normal distr. β = Φ(-z β ) z β z α/2 δ n σ 41

9-2 Tests on the Mean of a Normal Distribution, Variance Known 9-2.2 Type II Error and Choice of Sample Size Sample Size Formulas For a two-sided alternative hypothesis: 42

9-2 Tests on the Mean of a Normal Distribution, Variance Known 9-2.2 Type II Error and Choice of Sample Size Sample Size Formulas For a one-sided alternative hypothesis: 43

9-2 Tests on the Mean of a Normal Distribution, Variance Known Example 9-3 H 0 : µ=50 H 1 : µ 50 σ=2 α=0.05 n=25 If true µ=49, β=? Under H 1 : µ 50 Under H 0 : µ=50 z 0.025 =1.96 Critical points are: 50 ± z 0.025 σ/ n = 50 ± 1.96*2/5 49.216 and 50.784 49 50 49.216 50.784 44

9-2 Tests on the Mean of a Normal Distribution, Variance Known Example 9-3 Under H 1 : µ 50 Under H 0 : µ=50 H 0 : µ=50 H 1 : µ 50 σ=2 α=0.05 n=25 If true µ=49, β=? 49 49.216 50 50.784 β = P(49.216 X 50.784 when μ=49) 49.216 49 50.784 49 β = P Z 2 / 25 2 / 25 β = P 0.54 4.46 = 0.295 ( Z ) z = z = β 0.295 0.54 45

9-2 Tests on the Mean of a Normal Distribution, Variance Known Example 9-3 Standardize the normal graphs N(-2.5,1) Under H 1 : µ 50 Under H 0 : µ=50 N(0,1) δ = 1 δ n 1* 25 = = 2.5 σ 2 With standard normal graph: -2.5-1.96 0 1.96 With the formula: β = P( 1.96 X 1.96 when μ = -2.5) 1.96 + 2.5 1.96 + 2.5 β = P Z 1 1 β = P 0.54 4.46 = 0.295 ( Z ) 1* 25 1* 25 β =Φ 1.96 1.96 2 Φ 2 β =Φ(4.46) Φ (0.54) = 0.295 46

9-2 Tests on the Mean of a Normal Distribution, Variance Known Example 9-3 47

9-2 Tests on the Mean of a Normal Distribution, Variance Known 9-2.2 Type II Error and Choice of Sample Size Using Operating Characteristic Curves I I 48

9-2 Tests on the Mean of a Normal Distribution, Variance Known Example 9-4 49

9-2 Tests on the Mean of a Normal Distribution, Variance Known 9-2.3 Large Sample Test If the distribution of the population is not known, but n>40 sample standard deviation s can be substituted for σ and test procedures in Section 9.2 are valid. 50

9-3 Tests on the Mean of a Normal Distribution, Variance Unknown 9-3.1 Hypothesis Tests on the Mean One-Sample t-test 51

9-3 Tests on the Mean of a Normal Distribution, Variance Unknown 9-3.1 Hypothesis Tests on the Mean The reference distribution for H 0 : μ = μ 0 with critical region for (a) H 1 : μ μ 0, (b) H 1 : μ > μ 0, and (c) H 1 : μ < μ 0. 52

9-3 Tests on the Mean of a Normal Distribution, Variance Unknown Example 9-6 53

9-3 Tests on the Mean of a Normal Distribution, Variance Unknown Example 9-6 54

9-3 Tests on the Mean of a Normal Distribution, Variance Unknown Example 9-6 Normal probability plot of the coefficient of restitution data from Example 9-6. 55

9-3 Tests on the Mean of a Normal Distribution, Variance Unknown Example 9-6 56

9-3 Tests on the Mean of a Normal Distribution, Variance Unknown 9-3.2 P-value for a t-test The P-value for a t-test is just the smallest level of significance at which the null hypothesis would be rejected. t 0 = 2.72, this is between two tabulated values, 2.624 and 2.977. Therefore, the P-value must be between 0.01 and 0.005. 0.005<P-value<0.01. Suppose t 0 = 2.72 for a two-sided test, then 0.005*2<P-value<0.01*2 0.01<P-value<0.02 57

9-3 Tests on the Mean of a Normal Distribution, Variance Unknown 9-3.3 Type II Error and Choice of Sample Size The type II error of the two-sided alternative would be Where T 0 denotes the noncentral t random variable. 58

9-3 Tests on the Mean of a Normal Distribution, Variance Unknown Example 9-7 59

9-4 Hypothesis Tests on the Variance and Standard Deviation of a Normal Distribution 9-4.1 Hypothesis Test on the Variance 60

9-4 Hypothesis Tests on the Variance and Standard Deviation of a Normal Distribution 9-4.1 Hypothesis Test on the Variance The same test statistic is used for one-sided alternative hypotheses. For the one-sided hypothesis 61

9-4 Hypothesis Tests on the Variance and Standard Deviation of a Normal Distribution 9-4.1 Hypothesis Test on the Variance 62

9-4 Hypothesis Tests on the Variance and Standard Deviation of a Normal Distribution Example 9-8 63

9-4 Hypothesis Tests on the Variance and Standard Deviation of a Normal Distribution Example 9-8 64

9-4 Hypothesis Tests on the Variance and Standard Deviation of a Normal Distribution 9-4.2 Type II Error and Choice of Sample Size For the two-sided alternative hypothesis: Operating characteristic curves are provided in Charts VIIi and VIIj. 65

9-4 Hypothesis Tests on the Variance and Standard Deviation of a Normal Distribution Example 9-9 66

9-5 Tests on a Population Proportion 9-5.1 Large-Sample Tests on a Proportion Many engineering decision problems include hypothesis testing about p. An appropriate test statistic is 67

9-5 Tests on a Population Proportion Example 9-10 68

9-5 Tests on a Population Proportion Example 9-10 69

9-5 Tests on a Population Proportion Another form of the test statistic Z 0 is obtained by dividing the numerator and denominator by n or 70

9-5 Tests on a Population Proportion 9-5.2 Type II Error and Choice of Sample Size For a two-sided alternative If the alternative is p < p 0 If the alternative is p > p 0 where p is true value of the population proportion 71

9-5 Tests on a Population Proportion 9-5.2 Type II Error and Choice of Sample Size Less complex representation: σ H 1 p(1 p) n σ = H0 Critical values (C 1 and C 2 ) are: C = p z σ C = p + z = p (1 p ) n 0 0 1 o α 2 H 2 o α 2 H Type II error is: β = PC ( < Pˆ < C) σ 0 0 1 2 C μ = P < Z < σ 1 H 2 1 1 ( ) H C μ σ 1 1 C2 μ H C1 μ H =Φ Φ 1 1 σ H σ 1 H1 H H 72

9-5 Tests on a Population Proportion 9-5.3 Type II Error and Choice of Sample Size For a two-sided alternative For a one-sided alternative 73

9-5 Tests on a Population Proportion Example 9-11 0.03(0.97) 0.05(0.95) σ H = = 0.012 σ H = = 0 1 200 200 0.0154 Critical value (C 1 ) is: C1 = po z α σ H = 0.05 1.645(0.0154) = 0.0247 0 β = PC ( < Pˆ ) 1 0.0247 0.03 = P( < Z) 0.012 = 1 Φ 0.44 = 0.67 ( ) 74

9-5 Tests on a Population Proportion Example 9-11 75

9-7 Testing for Goodness of Fit The test is based on the chi-square distribution. Assume there is a sample of size n from a population whose probability distribution is unknown. Let O i be the observed frequency in the ith class interval. Let E i be the expected frequency in the ith class interval. The test statistic has approximately chi-square distribution with k-p-1 degrees of freedom. p: number of parameters of the hypothesized distribution estimated by sample statistics. 76

9-7 Testing for Goodness of Fit Example 9-12 77

9-7 Testing for Goodness of Fit Example 9-12 78

9-7 Testing for Goodness of Fit Example 9-12 79

9-7 Testing for Goodness of Fit Example 9-12 80

9-7 Testing for Goodness of Fit Example 9-12 81

9-7 Testing for Goodness of Fit Example 9-12 82

9-7 Testing for Goodness of Fit Example 9-13 83

9-7 Testing for Goodness of Fit Example 9-13 X=5.04+Z*0.08 Z X -1.15 4.95-0.68 4.99-0.32 5.01 0 5.04 0.32 5.07 0.68 5.09 1.15 5.13 84

9-7 Testing for Goodness of Fit Example 9-13 85

9-7 Testing for Goodness of Fit 86