Hypothesis Testing. Test of hypothesis - Test whether a population parameter is less than, equal to, or greater than a specified value. Remember an inference.

Slides:



Advertisements
Similar presentations
Chapter 12 Tests of Hypotheses Means 12.1 Tests of Hypotheses 12.2 Significance of Tests 12.3 Tests concerning Means 12.4 Tests concerning Means(unknown.
Advertisements

1 Chapter 9 Hypothesis Testing Developing Null and Alternative Hypotheses Type I and Type II Errors One-Tailed Tests About a Population Mean: Large-Sample.
Copyright © 2014 by McGraw-Hill Higher Education. All rights reserved.
Hypothesis Testing Developing Null and Alternative Hypotheses Developing Null and Alternative Hypotheses Type I and Type II Errors Type I and Type II Errors.
1 1 Slide STATISTICS FOR BUSINESS AND ECONOMICS Seventh Edition AndersonSweeneyWilliams Slides Prepared by John Loucks © 1999 ITP/South-Western College.
1 1 Slide © 2008 Thomson South-Western. All Rights Reserved Chapter 9 Hypothesis Testing Developing Null and Alternative Hypotheses Developing Null and.
STATISTICAL INFERENCE PART V
Significance Testing Chapter 13 Victor Katch Kinesiology.
1/55 EF 507 QUANTITATIVE METHODS FOR ECONOMICS AND FINANCE FALL 2008 Chapter 10 Hypothesis Testing.
Business Statistics: A Decision-Making Approach, 7e © 2008 Prentice-Hall, Inc. Chap 9-1 Business Statistics: A Decision-Making Approach 7 th Edition Chapter.
Statistics for Managers Using Microsoft Excel, 5e © 2008 Pearson Prentice-Hall, Inc.Chap 9-1 Statistics for Managers Using Microsoft® Excel 5th Edition.
Basic Business Statistics, 10e © 2006 Prentice-Hall, Inc. Chap 9-1 Chapter 9 Fundamentals of Hypothesis Testing: One-Sample Tests Basic Business Statistics.
BCOR 1020 Business Statistics Lecture 21 – April 8, 2008.
Copyright © 2010 Pearson Education, Inc. Publishing as Prentice Hall Statistics for Business and Economics 7 th Edition Chapter 9 Hypothesis Testing: Single.
Chapter 8: Inferences Based on a Single Sample: Tests of Hypotheses Statistics.
Inferences About Process Quality
BCOR 1020 Business Statistics Lecture 18 – March 20, 2008.
BCOR 1020 Business Statistics Lecture 20 – April 3, 2008.
Chapter 8 Introduction to Hypothesis Testing
BCOR 1020 Business Statistics
Statistics for Managers Using Microsoft® Excel 5th Edition
© 2011 Pearson Education, Inc
©2006 Thomson/South-Western 1 Chapter 10 – Hypothesis Testing for the Mean of a Population Slides prepared by Jeff Heyl Lincoln University ©2006 Thomson/South-Western.
Copyright © 2005 Brooks/Cole, a division of Thomson Learning, Inc Chapter 11 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.
McGraw-Hill/IrwinCopyright © 2009 by The McGraw-Hill Companies, Inc. All Rights Reserved. Chapter 9 Hypothesis Testing.
1 Economics 173 Business Statistics Lectures 3 & 4 Summer, 2001 Professor J. Petry.
Chapter 10 Hypothesis Testing
Overview Definition Hypothesis
Confidence Intervals and Hypothesis Testing - II
1 CHAPTER 8 Homework:1,3,7,17,23,26,31,33,39,41,47,49,55,61, 67,69,100,107,109ab Sec 8.1: Elements of a hypothesis Testing: (1) Set up hypotheses A hypothesis.
Business Statistics, A First Course (4e) © 2006 Prentice-Hall, Inc. Chap 9-1 Chapter 9 Fundamentals of Hypothesis Testing: One-Sample Tests Business Statistics,
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.
4.1Introduction The field of statistical inference consist of those methods used to make decisions or to draw conclusions about a population. These methods.
More About Significance Tests
Adapted by Peter Au, George Brown College McGraw-Hill Ryerson Copyright © 2011 McGraw-Hill Ryerson Limited.
1 Today Null and alternative hypotheses 1- and 2-tailed tests Regions of rejection Sampling distributions The Central Limit Theorem Standard errors z-tests.
Chapter 10 Hypothesis Testing
Statistics for Business and Economics Chapter 7 Inferences Based on a Single Sample: Tests of Hypotheses.
Chapter 9 Tests of Hypothesis Single Sample Tests The Beginnings – concepts and techniques Chapter 9A.
Sta220 - Statistics Mr. Smith Room 310 Class #18.
Chapter 7 Inferences Based on a Single Sample: Tests of Hypotheses.
1 Chapter 9 Hypothesis Testing. 2 Chapter Outline  Developing Null and Alternative Hypothesis  Type I and Type II Errors  Population Mean: Known 
Statistics for Managers Using Microsoft Excel, 4e © 2004 Prentice-Hall, Inc. Chap 8-1 Chapter 8 Fundamentals of Hypothesis Testing: One-Sample Tests Statistics.
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.
Lecture 9 Chap 9-1 Chapter 2b Fundamentals of Hypothesis Testing: One-Sample Tests.
Copyright ©2013 Pearson Education, Inc. publishing as Prentice Hall 9-1 σ σ.
Chap 8-1 Fundamentals of Hypothesis Testing: One-Sample Tests.
Ex St 801 Statistical Methods Inference about a Single Population Mean.
© Copyright McGraw-Hill 2004
Formulating the Hypothesis null hypothesis 4 The null hypothesis is a statement about the population value that will be tested. null hypothesis 4 The null.
Statistical Inference Statistical inference is concerned with the use of sample data to make inferences about unknown population parameters. For example,
Understanding Basic Statistics Fourth Edition By Brase and Brase Prepared by: Lynn Smith Gloucester County College Chapter Nine Hypothesis Testing.
Chapter 12 Tests of Hypotheses Means 12.1 Tests of Hypotheses 12.2 Significance of Tests 12.3 Tests concerning Means 12.4 Tests concerning Means(unknown.
Hypothesis Tests u Structure of hypothesis tests 1. choose the appropriate test »based on: data characteristics, study objectives »parametric or nonparametric.
Copyright © 2013 Pearson Education, Inc. Publishing as Prentice Hall Statistics for Business and Economics 8 th Edition Chapter 9 Hypothesis Testing: Single.
Statistical Inference for the Mean Objectives: (Chapter 8&9, DeCoursey) -To understand the terms variance and standard error of a sample mean, Null Hypothesis,
Copyright © 2013, 2009, and 2007, Pearson Education, Inc. 1 FINAL EXAMINATION STUDY MATERIAL III A ADDITIONAL READING MATERIAL – INTRO STATS 3 RD EDITION.
Chapter 9 Hypothesis Testing Understanding Basic Statistics Fifth Edition By Brase and Brase Prepared by Jon Booze.
4-1 Statistical Inference Statistical inference is to make decisions or draw conclusions about a population using the information contained in a sample.
Statistics for Business and Economics
Chapter 8: Inferences Based on a Single Sample: Tests of Hypotheses
Statistics for Managers Using Microsoft® Excel 5th Edition
Chapter 8: Inferences Based on a Single Sample: Tests of Hypotheses
Hypothesis Tests for 1-Sample Proportion
Chapter 9 Hypothesis Testing.
Ch 11 實習 (2).
Presentation transcript:

Hypothesis Testing

Test of hypothesis - Test whether a population parameter is less than, equal to, or greater than a specified value. Remember an inference without a measure of reliability is little more than a guess.

Example A contract between a city and a road construction company called for an asphalt road with an average thickness of 10 inches. The county thought that the construction company had defrauded the city by making the road less than 10 inches thick. The city then took 100 core samples 1 inch in diameter. The mean thickness of the samples was 9.5 inches. Did fraud occur?

Example Suppose building specifications for a city require that the average breaking strength of residential sewer pipe to be more than 2,400 lbs per foot of length. To sell pipe in the city a manufacturer must demonstrate that its product meets the specifications. Here we are interested not so much in the value of  than we are in testing a hypothesis about its value. In other words, we are interested in whether the mean breaking strength of the pipe exceeds 2,400 lbs per foot.

Hypotheses Statements Two hypotheses: –Null hypothesis (H 0 ) - status quo to the party performing the experiment. The hypothesis will not be rejected unless the data provide convincing evidence that it is false. –Alternative or research hypothesis (H a ) - which will be accepted only if the data provide convincing evidence of its truth.

Hypotheses Statements Examples For pipe example: –(H0) (the pipe does not meet specifications) –(Ha) (the pipe meets specifications) How can the city decide when enough evidence exists to conclude the pipe meets specifications? –When the sample mean convincingly indicates that the population mean exceeds 2,400 lbs per foot.

Evidence “Convincing” evidence in favor of the alternative exists when the value of exceeds 2,400 by an amount that cannot be readily attributed to sampling variability. We need to compute a “test statistic” which will be the z-value that measures the distance between the values of and the value of specified in the null hypothesis.

Example The test statistic is: A value of z=1 means that x-bar is 1 standard error above A value of z=1.5 means that x-bar is 1.5 standard errors above

Two Types of Errors: Type I Error Deciding that the null hypothesis is false when in fact it is true is called a Type I error. The probability of making a Type I error is only: =P(Type 1 error) =P(reject H0 when in fact H0 is true) =P(z > when in fact )=0.05

The Test Itself Null and alternative hypothesis: Test statistic: Rejection region: for Example: assume What is your decision?

Judicial Analogy 11

Two Types of Errors: Type II Error Not rejecting the null hypothesis when in fact it is false is called a Type II error. We denote the probability of committing a Type II error by. Usually difficult to determine so we simply say that the sample evidence is insufficient to reject the null hypothesis at the confidence level.

Decisions and Consequences for a Test of Hypothesis A Type I error has a probability of. A Type II error has a probability of.

Elements of a Test of Hypothesis 1.Null Hypothesis 2. Alternative Hypothesis 3. Test Statistic 4.Rejection Region 5.Assumptions 6.Sample and Calculate Test Statistic 7.Conclusion

Statistical Hypothesis Test 15

Steps for Selecting the Null and Alternative Hypotheses 1. Select the alternative hypothesis - 3 types: One-tailed, upper tail H a : One-tailed, lower tail H a : Two-tailedH a : 2.Select the null hypothesis as the status quo, which will be presumed true unless the sample evidence conclusively establishes the alternative hypothesis: H o :

Large-Sample Test of Hypothesis about a Mean Use the z-statistic. Example - A farmer hypothesizes that the mean yield of soybeans per acre is greater than 520 bushels. A sample of 36 1-acre plots results in a sample mean value of 543 with a standard deviation of 124. At a.025 level, can we conclude that the mean yield is above 520?

Small-Sample Test of Hypothesis about a Mean If n is small, we cannot assume that the sample standard deviation will provide a good approximation of the population standard deviation. We must use the t-distribution rather than the z-distribution to make inferences about the population mean. Test Statistic:

Example A tire company guarantees that a particular tire has a mean useful lifetime of 42,000 miles or more. A consumer testing agency, wishing to verify this claim, observed n=10 tires on a test wheel that simulated normal road conditions. The lifetimes (in thousands of miles) were as follows: 42, 36, 46, 43, 41, 35, 43, 45, 40, 39. Use these data to determine whether there is sufficient evidence to contradict the manufacturers claim at the.05 level.

P-Values For all the hypothesis testing examples so far, the value of  and thus the rejection region are selected prior to conducting the test. A second method is to report the extent to which the statistic disagrees with the null hypothesis and letting the reader decide whether to reject the null hypothesis. This measure of disagreement is called the p-value.

Steps for Calculating the p- value Choose the maximum level of α you are willing to tolerate. Determine the value of the test statistic z from the sample data. Look up the z-statistic and find the corresponding probability: –One-tailed test - the p-value = tail area beyond z in the same direction as the alternative hypothesis. –Two-tailed test - the p-value= 2 times the tail area beyond the z value in the direction of the sign of z. Reject the null hypothesis if the observed p-value is less than .

Example According to a national survey, the price of a new family home averages $115,000. You hypothesize that the average price in your city exceeds the national average. To test your belief, you record the prices of 20 new homes in your city and find the sample mean to equal $120,000 with a sample standard deviation of $30,000. If  =.05, does the data support your belief? What is the p-value? What would be the result if the sample was 100 homes with the same mean and standard deviation above? What is the p-value?

Large Sample Test of Hypothesis about a Binomial Probability Inferences about proportions (or percentages) are often made in the context of the probability, p, of “success” for a binomial distribution. Previously we have calculated a confidence interval for p. For hypothesis tests on proportions, do not use the sample proportion to calculate the standard deviation. Instead, use the standard deviation based on the value of the null hypothesis.

Hypothesis Test H 0 : H a : Test statistic: Rejection region:

Where

Example A rating service for local radio stations claims that 40% of the prime drive-time audience listens to WXIX. You are the advertising manager of a competing radio station and you doubt that WXIX’s market share is that large. Formulate and test the appropriate hypothesis at the 5% significance level if 380 people out of 1,000 surveyed say that they listen to WXIX. What is the p-value?

The Relationship Between Confidence Intervals and Hypothesis Tests A Confidence Interval is really a two-tailed Hypothesis Test (at the same  -level): –For a confidence interval, we are (1-  )% sure that the true value of the population parameter is between the lower confidence level (LCL) and the upper confidence level (UCL). We are  % sure that the true value of the population parameter is not in this range. –For a hypothesis test, we either (1) fail to reject H0 at the (1-  )% level effectively creating a confidence interval or (2) reject H0 in favor of Ha which is the area outside of the confidence interval.

Example Our previous farmer example: –A farmer hypothesizes that the mean yield of soybeans per acre is not equal to 520 bushels. Sampling info of 36 one-acre plots finds a sample mean of 543 with a standard deviation of 124. –At a 0.10 level, can we conclude that the mean yield is not equal to 520? –Construct a 90% confidence interval using the above information.

Two Population Means,  1 and  2 Independent Samples: –Mean income of households in two different neighborhoods in Fairfax County, VA: Incomes in one neighborhood are unrelated (independent) to incomes in the other neighborhood. Dependent Samples: –Mean daily sales of two restaurants located on the same block in New York City: Is there a difference in daily sales volume between the two restaurants?

Independent Sampling Consider the Sampling Distribution of –The Mean of the sampling distribution of is –Since the two samples are independent, the standard deviation of the sampling distribution (standard error of ) is: –The sampling distribution of is approximately normal for large samples (Central Limit Theorem) so use a z-statistic.

Large Sample Hypothesis Test for (  1 -  2 ) - Independent Sampling One-tailed Test: –H 0 : (  1 -  2 ) = D 0 (or 0) vs Ha: (  1 -  2 ) > D 0 (or 0) –H 0 : (  1 -  2 ) = D 0 (or 0) vs Ha: (  1 -  2 ) < D 0 (or 0) Two-tailed Test: –H 0 : (  1 -  2 ) = D 0 (or 0) vs Ha: (  1 -  2 ) not equal to D 0 (or 0) Test statistic:

Small Sample Confidence Interval for (  1 -  2 ) - Independent Sampling Both populations must be approximately normally distributed with equal variances (these variances are usually unknown):

Small Sample Hypothesis Test for (  1 -  2 ) - Independent Sampling One-tailed Test: –H 0 : (  1 -  2 ) = D 0 (or 0) vs Ha: (  1 -  2 ) > D 0 (or 0) –H 0 : (  1 -  2 ) = D 0 (or 0) vs Ha: (  1 -  2 ) < D 0 (or 0) Two-tailed Test: –H 0 : (  1 -  2 ) = D 0 (or 0) vs Ha: (  1 -  2 ) not equal to D 0 (or 0) Test statistic:

Dependent Sampling We are unable to use the two-sample (  1 -  2 ) method for performing hypothesis tests and calculating confidence intervals if the samples are dependent on some external factor. Instead, use Paired Difference method which takes sample dependence into account when performing hypothesis tests and calculating confidence intervals.

Paired Difference Method The test statistic becomes: –Assumptions: The distribution of differences is approximately normally distributed. The sample differences are random.

Paired Difference Hypothesis Test One-tailed Test: –H0: (  1 -  2) = D0 (or 0) vs Ha: (  1 -  2) > D0 (or 0)  D = D0 (or 0)  D > D0 (or 0) –H0: (  1 -  2) = D0 (or 0) vs Ha: (  1 -  2) < D0 (or 0)  D = D0 (or 0)  D < D0 (or 0) Two-tailed Test: –H0: (  1 -  2) = D0 (or 0) vs Ha: (  1 -  2) not equal to D0 (or 0)  D = D0 (or 0)  D not equal to D0 (or 0) Test statistic: where t has (n D -1) degrees of freedom

Hypothesis Testing using Excel