Chapter 9 Hypothesis Testing.

Slides:



Advertisements
Similar presentations
Tests of Hypotheses Based on a Single Sample
Advertisements

Copyright (c) 2004 Brooks/Cole, a division of Thomson Learning, Inc. Chapter 9 Inferences Based on Two Samples.
Statistical Techniques I
Hypothesis testing Another judgment method of sampling data.
Lecture (11,12) Parameter Estimation of PDF and Fitting a Distribution Function.
Hypothesis Testing Steps in Hypothesis Testing:
1 1 Slide © 2008 Thomson South-Western. All Rights Reserved Chapter 9 Hypothesis Testing Developing Null and Alternative Hypotheses Developing Null and.
9-1 Hypothesis Testing Statistical Hypotheses Statistical hypothesis testing and confidence interval estimation of parameters are the fundamental.
1/55 EF 507 QUANTITATIVE METHODS FOR ECONOMICS AND FINANCE FALL 2008 Chapter 10 Hypothesis Testing.
Business Statistics: A Decision-Making Approach, 6e © 2005 Prentice-Hall, Inc. Chap 8-1 Business Statistics: A Decision-Making Approach 6 th Edition Chapter.
Basic Business Statistics, 10e © 2006 Prentice-Hall, Inc. Chap 9-1 Chapter 9 Fundamentals of Hypothesis Testing: One-Sample Tests Basic Business Statistics.
Copyright © 2010 Pearson Education, Inc. Publishing as Prentice Hall Statistics for Business and Economics 7 th Edition Chapter 9 Hypothesis Testing: Single.
Aaker, Kumar, Day Seventh Edition Instructor’s Presentation Slides
Inferences About Process Quality
Chapter 9 Hypothesis Testing.
Chapter 8 Introduction to Hypothesis Testing
Copyright (c) 2004 Brooks/Cole, a division of Thomson Learning, Inc. Chapter 8 Tests of Hypotheses Based on a Single Sample.
Hypothesis Testing and T-Tests. Hypothesis Tests Related to Differences Copyright © 2009 Pearson Education, Inc. Chapter Tests of Differences One.
Chapter 9 Title and Outline 1 9 Tests of Hypotheses for a Single Sample 9-1 Hypothesis Testing Statistical Hypotheses Tests of Statistical.
AM Recitation 2/10/11.
Aaker, Kumar, Day Ninth Edition Instructor’s Presentation Slides
McGraw-Hill/IrwinCopyright © 2009 by The McGraw-Hill Companies, Inc. All Rights Reserved. Chapter 9 Hypothesis Testing.
Chapter 10 Hypothesis Testing
Confidence Intervals and Hypothesis Testing - II
1 © Lecture note 3 Hypothesis Testing MAKE HYPOTHESIS ©
Chapter 8 Inferences Based on a Single Sample: Tests of Hypothesis.
Fundamentals of Hypothesis Testing: One-Sample Tests
Business Statistics: A Decision-Making Approach, 6e © 2005 Prentice-Hall, Inc. Chap th Lesson Introduction to Hypothesis Testing.
Chapter 9.3 (323) A Test of the Mean of a Normal Distribution: Population Variance Unknown Given a random sample of n observations from a normal population.
McGraw-Hill/Irwin Copyright © 2007 by The McGraw-Hill Companies, Inc. All rights reserved. Statistical Inferences Based on Two Samples Chapter 9.
Population All members of a set which have a given characteristic. Population Data Data associated with a certain population. Population Parameter A measure.
1 Introduction to Hypothesis Testing. 2 What is a Hypothesis? A hypothesis is a claim A hypothesis is a claim (assumption) about a population parameter:
Mid-Term Review Final Review Statistical for Business (1)(2)
9-1 Hypothesis Testing Statistical Hypotheses Definition Statistical hypothesis testing and confidence interval estimation of parameters are.
Statistical Decision Making. Almost all problems in statistics can be formulated as a problem of making a decision. That is given some data observed from.
Chapter 8 Introduction to Hypothesis Testing ©. Chapter 8 - Chapter Outcomes After studying the material in this chapter, you should be able to: 4 Formulate.
McGraw-Hill/Irwin Copyright © 2007 by The McGraw-Hill Companies, Inc. All rights reserved. Chapter 8 Hypothesis Testing.
Chap 8-1 A Course In Business Statistics, 4th © 2006 Prentice-Hall, Inc. A Course In Business Statistics 4 th Edition Chapter 8 Introduction to Hypothesis.
Interval Estimation and Hypothesis Testing Prepared by Vera Tabakova, East Carolina University.
1 9 Tests of Hypotheses for a Single Sample. © John Wiley & Sons, Inc. Applied Statistics and Probability for Engineers, by Montgomery and Runger. 9-1.
Copyright ©2013 Pearson Education, Inc. publishing as Prentice Hall 9-1 σ σ.
Chap 8-1 Fundamentals of Hypothesis Testing: One-Sample Tests.
© Copyright McGraw-Hill 2004
Statistical Inference Statistical inference is concerned with the use of sample data to make inferences about unknown population parameters. For example,
Chapter 8 Estimation ©. Estimator and Estimate estimator estimate An estimator of a population parameter is a random variable that depends on the sample.
Copyright © 2013 Pearson Education, Inc. Publishing as Prentice Hall Statistics for Business and Economics 8 th Edition Chapter 9 Hypothesis Testing: Single.
Copyright (c) 2004 Brooks/Cole, a division of Thomson Learning, Inc. Chapter 7 Inferences Concerning Means.
Chapter 9 Hypothesis Testing Understanding Basic Statistics Fifth Edition By Brase and Brase Prepared by Jon Booze.
Statistical Decision Making. Almost all problems in statistics can be formulated as a problem of making a decision. That is given some data observed from.
Chapter Nine Hypothesis Testing.
Chapter 8: Inferences Based on a Single Sample: Tests of Hypotheses
Sampling and Sampling Distributions
More on Inference.
Chapter 9 Hypothesis Testing.
Two-Sample Hypothesis Testing
3. The X and Y samples are independent of one another.
Chapter 4. Inference about Process Quality
8-1 of 23.
Chapter 11 Hypothesis Testing II
Hypothesis Testing: Hypotheses
CONCEPTS OF HYPOTHESIS TESTING
More on Inference.
Data Mining 2016/2017 Fall MIS 331 Chapter 2 Sampliing Distribution
9 Tests of Hypotheses for a Single Sample CHAPTER OUTLINE
Chapter 9 Hypothesis Testing.
Interval Estimation and Hypothesis Testing
Nonparametric Statistics
Chapter 9 Hypothesis Testing: Single Population
Chapter 8 Estimation.
Chapter 9 Estimation: Additional Topics
Presentation transcript:

Chapter 9 Hypothesis Testing

Null Hypothesis The null hypothesis is a statement about the population value that will be tested. The null hypothesis is held true unless sufficient evidence to the contrary is obtained.

Alternative Hypothesis The alternative hypothesis is the hypothesis that includes all population values not covered by the null hypothesis. The alternative hypothesis is held true if the null hypothesis is rejected or held false.

Simple and Composite Hypotheses A simple hypothesis is one that specifies a single value for the population parameter of interest. A composite hypothesis is one that specifies a range of values for the population parameter.

One-Sided and Two-Sided Alternatives A one-sided alternative is an alternative hypothesis involving all possible values of a population parameter on either one side or the other of the value specified by the null hypothesis. A two-sided alternative is an alternative hypothesis involving all possible values of a population parameter other than the value specified by a simple null hypothesis

States of Nature and Decisions on Null Hypothesis (Table 9.1) Null Hypothesis is True Null Hypothesis is False Accept (Fail to Reject) Correct Decision Probability = 1 -  Type II Error Probability =  Reject Type I Error Probability =  ( is called the significance level) Probability = 1 -  ((1 - ) is called power)

Type I and Type II Errors A Type I Error is the rejection of a true null hypothesis. A Type II Error is the acceptance of a false hypothesis.

Significance Level The significance level is the probability of rejecting a null hypothesis that is true. This is sometimes expressed as a percentage, so a test of significance level  is referred to as a 100 % - level test.

Power The power of a test is the probability of rejecting a null hypothesis that is false.

Consequences of Fixing the Significance Level of a Test (Figure 9.1) Investigator chooses significance level (Probability of a Type I error) Decision Rule is Established Probability of Type II error follows

A Test of the Mean of a Normal Population: Population Variance Known Given that we have a random sample of n observations from a normal population with mean  and known variance 2. If the observed sample mean is X, the test with significance level  of the null hypothesis against the alternative is obtained from the decision rule Or equivalently where Z is the number for which and Z is the standard normal random variable.

Interpretation of the Probability value or p-value The probability value or p-value is the smallest significance level at which the null hypothesis can be rejected. Consider a random sample of size n observations from a population that has a normal distribution with mean  and standard deviation , and the resulting computed sample mean, X. We are asked to test the null hypothesis against the alternative hypothesis The p-value for the test is where Zp is the standard normal random value associated with the smallest significance level at which the null hypothesis can be rejected. The p-value is regularly computed by most statistical computer programs and provides more information about the test, based on the observed sample mean.

A Test of the Mean of a Normal Population (Variance Known): Composite Null and Alternative Hypothesis The appropriate procedure for testing, at significance level , the null hypothesis against the alternative hypothesis is precisely the same as when the null hypothesis is H0:  = 0. In addition, the p-values are also computed in exactly the same way.

A Test of the Mean of a Normal Distribution (Variance Known): Composite or Simple Null and Alternative Hypothesis The appropriate procedure for testing, at significance level , the null hypothesis against the alternative uses the decision rule Or equivalently where -Z is the number for which and Z is the standard normal random variable. In addition the p-values can also be computed by using the lower tail probabilities.

A Test of the Mean of a Normal Distribution Against Two-Sided Alternative:  Known The appropriate procedure for testing, at significance level , the null hypothesis against the alternative hypothesis is obtained from the decision rule equivalently

A Test of the Mean of a Normal Distribution Against Two-Sided Alternative:  Know (continued) In addition the p-values can be computed by noting that the corresponding tail probability would be doubled to reflect a p-value that refers to the sum of the upper and lower tail probabilities for the positive and negative values of Z. The p-value for the two-tailed test is where Zp/2 is the standard normal value associated with the smallest probability of rejecting the null hypothesis at either tail of the probability distribution.

A Test of the Mean of a Normal Distribution: Population Variance Unknown Given a random sample of n observations from a normal population with mean . Using the sample mean and standard deviation X and s we can use the following test with significance level , (i) To test either null hypothesis against the alternative the decision rule is Or equivalently

A Test of the Mean of a Normal Distribution: Population Variance Unknown (continued) (ii) To test either null hypothesis against the alternative the decision rule is Or equivalently

A Test of the Mean of a Normal Distribution: Population Variance Unknown (continued) (iii) To test the null hypothesis against the alternative the decision rule is equivalently where tn-1,/2 is the student t-value for n – 1 degrees of freedom and upper tail probability /2. The p-values for these tests are computed in the same way as we did for tests with known variance except that the student t value is substituted for the normal Z value.

Tests of the Population Proportion (Large Sample Size) We begin by assuming a random sample of n observations from a population that has a proportion  whose members possess a particular attribute. If (1 - ) > 9 and the sample proportion is p the following tests have significance level : (i) To test either null hypothesis against the alternative the decision rule is

Tests of the Population Proportion (Large Sample Size) (Continued) (ii) To test either null hypothesis against the alternative the decision rule is

Tests of the Population Proportion (Large Sample Size) (Continued) (iii) To test the null hypothesis against the two-sided alternative the decision rule is For all of these tests the p-value is the smallest significance level at which the null hypothesis can be rejected.

Tests of Variance of a Normal Population Given a random sample of n observations from a normally distributed population with variance 2. If we observe the sample variance sx2, then the following tests have significance level : (i) To test either the null hypothesis against the alternative the decision rule is

Tests of Variance of a Normal Population (continued) (ii) To test either null hypothesis against the alternative the decision rule is

Tests of Variance of a Normal Population (continued) (iii) To test the null hypothesis against the alternative the decision rule is Where 2n-1 is a chi-square random variable and P(2n-1 > 2n-1,) = . The p-value for these tests is the smallest significance level at which the null hypothesis can be rejected given the sample variance.

Some Probabilities for the Chi-Square Distribution (Figure 9.5) f(2v) /2 1 -  /2 2v,1-/2 2v,/2

Tests of the Difference Between Population Means: Matched Pairs Suppose that we have a random sample of n matched pairs of observations from distributions with means X and Y . Let D and sd denote the observed sample mean and standard deviation for the n differences Di = (xi – yi) . If the population distribution of the differences is a normal distribution, then the following tests have significance level . (i) To test either null hypothesis against the alternative the decision rule is

Tests of the Difference Between Population Means: Matched Pairs (continued) (ii) To test either null hypothesis against the alternative the decision rule is

Tests of the Difference Between Population Means: Matched Pairs (continued) (iii) To test the null hypothesis against the two-sided alternative the decision rule is Here tn-1, is the number for which P(tn-1 > tn-1, ) =  where the random variable tn-1 follows a Student’s t distribution with (n – 1) degrees of freedom. When we want to test the null hypothesis that the two population means are equal, we set D0 = 0 in the formulas. P-values for all of these tests are interpreted as the smallest significance level at which the null hypothesis can be rejected given the test statistic.

Tests of the Difference Between Population Means: Independent Samples (Known Variances) Suppose that we have two independent random samples of nx and ny observations from normal distributions with means X and Y and variances 2x and 2y . If the observed sample means are X and Y, then the following tests have significance level . (i) To test either null hypothesis against the alternative the decision rule is

Tests of the Difference Between Population Means: Independent Samples (Known Variances) (continued) (ii) To test either null hypothesis against the alternative the decision rule is

Tests of the Difference Between Population Means: Independent Samples (Known Variances) (continued) (iii) To test the null hypothesis against the alternative the decision rule is If the sample sizes are large (n > 100) then a good approximation at significance level  can be made if the population variances are replaced by the sample variances. In addition the central limit leads to good approximations even if the populations are not normally distributed. P-values for all these tests are interpreted as the smallest significance level at which the null hypothesis can be rejected given the test statistic.

Tests of the Difference Between Population Means: Population Variances Unknown and Equal These tests assume that we have two independent random samples of nx and ny observations from normally distributed populations with means X and Y and a common variance. The sample variances sx2 and sy2 are used to compute a pooled variance estimator Then using the observed sample means are X and Y, the following tests have significance level : (i) To test either null hypothesis against the alternative the decision rule is

Tests of the Difference Between Population Means: Population Variances Unknown and Equal (continued) (ii) To test either null hypothesis against the alternative the decision rule is

Tests of the Difference Between Population Means: Population Variances Unknown and Equal (continued) (iii) To test the null hypothesis against the alternative the decision rule is Here tnx+ny-2, is the number for which P(tnx+ny-2, > tnx+ny-2, ) = . P-values for all these tests are interpreted as the smallest significance level at which the null hypothesis can be rejected given the test statistic.

Tests of the Difference Between Population Means: Population Variances Unknown and Not Equal These tests assume that we have two independent random samples of nx and ny observations from normal populations with means X and Y and a common variance. The sample variances sx2 and sy2 are used. The degrees of freedom, v, for the student t statistic is given by Then using the observed sample means are X and Y, the following tests have significance level : (i) To test either null hypothesis against the alternative the decision rule is

Tests of the Difference Between Population Means: Population Variances Unknown and Not Equal (continued) (ii) To test either null hypothesis against the alternative the decision rule is

Tests of the Difference Between Population Means: Population Variances Unknown and Not Equal (continued) (iii) To test the null hypothesis against the alternative the decision rule is Here tnx+ny-2, is the number for which P(tnx+ny-2, > tnx+ny-2, ) = . P-values for all these tests are interpreted as the smallest significance level at which the null hypothesis can be rejected given the test statistic.

Testing the Equality of Population Proportions (Large Samples) Given independent random samples of nx and ny with proportion successes px and py. When we assume that the population proportions are equal, an estimate of the common proportion is For large sample sizes - - n(1 - ) > 9 - - the following tests have significance level : (i) To test either null hypothesis against the alternative the decision rule is

Testing the Equality of Population Proportions - Large Samples - (continued) (ii) To test either null hypothesis against the alternative the decision rule is

Testing the Equality of Population Proportions - Large Samples - (continued) (iii) To test the null hypothesis against the alternative the decision rule is It is also possible to compute and interpret the p-values for these tests by calculating the minimum significance level at which the null hypothesis can be rejected.

The F Distribution Given that we have two independent random samples of nx and ny observations from two normal populations with variances 2x and 2y . If the sample variances are sx2 and sy2 then the random variable Has an F distribution with numerator degrees of freedom (nx – 1) and denominator degrees of freedom (ny – 1). An F distribution with numerator degrees of freedom v1 and denominator degrees of freedom v2 will be denoted Fv1, v2 . We denote Fv1, v2,  the number for which We need to emphasize that this test is quite sensitive to the assumption of normality.

Tests for Equality of Variances from Two Normal Populations Let sx2 and sy2 be observed sample variances from independent random samples of size nx and ny from normally distributed populations with variances 2x and 2y . Use s2x to denote the larger variance. Then the following tests have significance level : (i) To test either null hypothesis against the alternative the decision rule is

Tests for Equality of Variances from Two Normal Populations (continued) (ii) To test the null hypothesis against the alternative the decision rule is Where s2x is the larger of the two sample variances. Since either sample variance could be larger this rule is actually based on a two-tailed test and hence we use /2 as the upper tail probability. Here Fnx-1,ny-1 is the number for which Where Fnx-1,ny-1 has an F distribution with (nx – 1) numerator degrees of freedom and (ny – 1) denominator degrees of freedom.

Determining the Probability of a Type II Error Consider the test against the alternative Using a decision rule Using the decision rule determine the values of the sample mean that result in accepting the null hypothesis. Now for any value of the population mean defined by the alternative hypothesis H1 find the probability that the sample mean will be in the acceptance region for the null hypothesis. This is the probability of a Type II error. Thus we consider  = * such that * > 0. Then for * the probability of a Type II error is and Power = 1 - 

Power Function for Test H0:  = 5 against H1:  > 5 ( = 0.05,  =0.1, n = 16) (Figure 9.13) .5 .05 5.00 5.05 5.10 

Key Words Alternative Hypothesis Determining the Probability of Type II Error Equality of Population Proportions F Distribution Hypothesis Testing Methodology Interpretation of the Probability value or p-value Null Hypothesis Power Function States of Nature and Decisions on Null Hypothesis Test of Mean of a Normal Distribution (Variance Known) Composite Null and Alternative Composite or Simple Null and Alternative Hypothesis

Key Words (continued) Testing the Equality of Two Population Proportions (Large Samples) Tests for Difference Between Population Means: Independent Samples Tests for Equality of Variances from Two Normal Populations Tests for the Difference Between Sample Means: Population Variances Unknown and Equal Tests for Differences Between Population Means: Matched Pairs Tests of the Mean of a Normal Distribution: Population Variance Unknown Tests of the Population Proportion (Large Sample Sizes) Tests of Variance of a Normal Population Type I Error Type II Error