REVIEW Hypothesis Tests of Means. 5 Steps for Hypothesis Testing Test Value Method 1.Develop null and alternative hypotheses 2.Specify the level of significance,

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

Chapter 10 Section 2 Hypothesis Tests for a Population Mean
STAT 135 LAB 14 TA: Dongmei Li. Hypothesis Testing Are the results of experimental data due to just random chance? Significance tests try to discover.
The Multiple Regression Model Prepared by Vera Tabakova, East Carolina University.
Chapter 9 Hypothesis Tests. The logic behind a confidence interval is that if we build an interval around a sample value there is a high likelihood that.
July, 2000Guang Jin Statistics in Applied Science and Technology Chapter 9_part I ( and 9.7) Tests of Significance.
Fundamentals of Hypothesis Testing. Identify the Population Assume the population mean TV sets is 3. (Null Hypothesis) REJECT Compute the Sample Mean.
10 Hypothesis Testing. 10 Hypothesis Testing Statistical hypothesis testing The expression level of a gene in a given condition is measured several.
Tests of significance Confidence intervals are used when the goal of our analysis is to estimate an unknown parameter in the population. A second goal.
Hypothesis Tests About  With  Unknown. Hypothesis Testing (Revisited) Five Step Procedure 1.Define Opposing Hypotheses. (  ) 2.Choose a level of risk.
REVIEW Hypothesis Tests of Means
Chapter Goals After completing this chapter, you should be able to:
P-Values for Hypothesis Testing About  With  Known.
BCOR 1020 Business Statistics Lecture 21 – April 8, 2008.
T-Tests Lecture: Nov. 6, 2002.
Hypothesis Testing Sample Means. Hypothesis Testing for Sample Means The goal of a hypothesis test is to make inferences regarding unknown population.
Chapter 9 Hypothesis Testing.
BCOR 1020 Business Statistics Lecture 20 – April 3, 2008.
Ch. 9 Fundamental of Hypothesis Testing
Statistics 270– Lecture 25. Cautions about Z-Tests Data must be a random sample Outliers can distort results Shape of the population distribution matters.
Section 7-2 Hypothesis Testing for the Mean (n  30)
Section 7-3 Hypothesis Testing for the Mean (Small Samples) Objective: SWBAT How to find critical values in a t- distribution. How to use the t-test to.
Hypothesis Testing with One Sample
Hypothesis Testing and T-Tests. Hypothesis Tests Related to Differences Copyright © 2009 Pearson Education, Inc. Chapter Tests of Differences One.
7.2 Hypothesis Testing for the Mean (Large Samples Statistics Mrs. Spitz Spring 2009.
McGraw-Hill/IrwinCopyright © 2009 by The McGraw-Hill Companies, Inc. All Rights Reserved. Chapter 9 Hypothesis Testing.
Probability Distributions and Test of Hypothesis Ka-Lok Ng Dept. of Bioinformatics Asia University.
Hypothesis Testing with Two Samples
Overview Definition Hypothesis
Statistical inference: confidence intervals and hypothesis testing.
Chapter 8 Inferences Based on a Single Sample: Tests of Hypothesis.
Claims about a Population Mean when σ is Known Objective: test a claim.
1/2555 สมศักดิ์ ศิวดำรงพงศ์
Copyright © 2015, 2012, and 2009 Pearson Education, Inc. 1 Section 7.3 Hypothesis Testing for the Mean (  Unknown).
Section 9-4 Hypothesis Testing Means. This formula is used when the population standard deviation is known. Once you have the test statistic, the process.
7 Elementary Statistics Hypothesis Testing. Introduction to Hypothesis Testing Section 7.1.
Hypothesis Testing with One Sample Chapter 7. § 7.1 Introduction to Hypothesis Testing.
McGraw-Hill/IrwinCopyright © 2009 by The McGraw-Hill Companies, Inc. All Rights Reserved. Chapter 9 Hypothesis Testing.
Section 9.2 Testing the Mean  9.2 / 1. Testing the Mean  When  is Known Let x be the appropriate random variable. Obtain a simple random sample (of.
Chapter 12 Tests of a Single Mean When σ is Unknown.
A Course In Business Statistics 4th © 2006 Prentice-Hall, Inc. Chap 9-1 A Course In Business Statistics 4 th Edition Chapter 9 Estimation and Hypothesis.
Copyright © 2013, 2010 and 2007 Pearson Education, Inc. Section Inference about Two Means: Independent Samples 11.3.
Chapter 9 Tests of Hypothesis Single Sample Tests The Beginnings – concepts and techniques Chapter 9A.
Warsaw Summer School 2011, OSU Study Abroad Program Difference Between Means.
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 
Hypothesis Testing for the Mean (Small Samples)
McGraw-Hill/Irwin Copyright © 2007 by The McGraw-Hill Companies, Inc. All rights reserved. Chapter 8 Hypothesis Testing.
Week 8 October Three Mini-Lectures QMM 510 Fall 2014.
Chapter 8 Parameter Estimates and Hypothesis Testing.
Aim: How do we use a t-test?
26134 Business Statistics Tutorial 11: Hypothesis Testing Introduction: Key concepts in this tutorial are listed below 1. Difference.
1 URBDP 591 A Lecture 12: Statistical Inference Objectives Sampling Distribution Principles of Hypothesis Testing Statistical Significance.
Hypothesis Testing Errors. Hypothesis Testing Suppose we believe the average systolic blood pressure of healthy adults is normally distributed with mean.
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,
Copyright © 1998, Triola, Elementary Statistics Addison Wesley Longman 1 Assumptions 1) Sample is large (n > 30) a) Central limit theorem applies b) Can.
© 2010 Pearson Prentice Hall. All rights reserved Chapter Hypothesis Tests Regarding a Parameter 10.
Psych 230 Psychological Measurement and Statistics Pedro Wolf October 21, 2009.
Hypothesis Testing Steps for the Rejection Region Method State H 1 and State H 0 State the Test Statistic and its sampling distribution (normal or t) Determine.
Created by Erin Hodgess, Houston, Texas Section 7-1 & 7-2 Overview and Basics of 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.
Chapter 7 Statistics Power Point Review Hypothesis Testing.
4-1 Statistical Inference Statistical inference is to make decisions or draw conclusions about a population using the information contained in a sample.
Copyright © 2013, 2010 and 2007 Pearson Education, Inc. Chapter Hypothesis Tests Regarding a Parameter 10.
Ex St 801 Statistical Methods Part 2 Inference about a Single Population Mean (HYP)
Chapter 9 Hypothesis Testing.
Hypothesis Testing: Hypotheses
Hypothesis Tests for a Population Mean in Practice
Hypothesis Tests for a Standard Deviation
Presentation transcript:

REVIEW Hypothesis Tests of Means

5 Steps for Hypothesis Testing Test Value Method 1.Develop null and alternative hypotheses 2.Specify the level of significance,  3.Use the level of significance to determine the critical values for the test statistic and state the rejection rule for H 0 4.Collect sample data and compute the value of test statistic 5.Use the value of test statistic and the rejection rule to determine whether to reject H 0

When to use z and When to use t When to use z and When to use t z and t distributions are used in hypothesis testing. _ These are determined by the distribution of X. USE z Large n or sampling from a normal distribution Large n or sampling from a normal distribution σ is known σ is known USE t Large n or sampling from a normal distribution Large n or sampling from a normal distribution σ is unknown σ is unknown

General Form of Test Statistics for Hypothesis Tests vA test statistic is nothing more than a measurement of how far away the observed value from your sample is from some hypothesized value, v. –It is measured in terms of standard errors z-statistic –σ known = z-statistic with standard error = t-statistic –σ unknown = t-statistic with standard error = The general form of a test statistic is: Depending on whether or not σ is known

Example The average cost of all required texts for introductory college English courses seems to have gone up substantially as the professors are assigning several texts. –A sample of 41 courses was taken –The average cost of texts for these 41 courses is $86.15 Can we conclude the average cost: 1.Exceeds $80? 2.Is less than $90? 3.Differs from last year’s average of $95? 4.Differs from two year’s ago average of $78?

Assume the standard deviation is $22. Because the sample size > 30, it is not necessary to assume that the costs follow a normal distribution to determine the z-statistic. In this case because it is assumed that σ is known (to be $22), these will be z-tests. CASE 1: z-tests for σ Known CASE 1: z-tests for σ Known

Example 1: Can we conclude µ > 80? H 0 : µ = 80 H A : µ > 80 Select α =.05 TEST: Reject H 0 (Accept H A ) if z > z.05 = z calculation: Conclusion: > There is enough evidence to conclude µ >

Example 2: Can we conclude µ < 90? H 0 : µ = 90 H A : µ < 90 Select α =.05 TEST: Reject H 0 (Accept H A ) if z <-z.05 = z calculation: Conclusion: > There is not enough evidence to conclude µ <

Example 3: Can we conclude µ ≠ 95? H 0 : µ = 95 H A : µ ≠ 95 Select α =.05 TEST: Reject H 0 (Accept H A ) if z z.025 = 1.96 z calculation: Conclusion: < There is enough evidence to conclude µ ≠

Example 4: Can we conclude µ ≠ 78? H 0 : µ = 78 H A : µ ≠ 78 Select α =.05 TEST: Reject H 0 (Accept H A ) if z z.025 = 1.96 z calculation: Conclusion: > 1.96 There is enough evidence to conclude µ ≠

P-values are a very important concept in hypothesis testing. p-valueA p-value is a measure of how sure you are that the alternate hypothesis H A, is true. –The lower the p-value, the more sure you are that the alternate hypothesis, the thing you are trying to show, is true. So p-valueα –A p-value is compared to α. If the p-value < α; accept H A – you proved your conjecture If the p-value > α; do not accept H A – you failed to prove your conjectureP-values Low p-values Are Good!

5 Steps for Hypothesis Testing P-value Method 1.Develop null and alternative hypotheses 2.Specify the level of significance,  3.Collect sample data and compute the value of test statistic 4.Calculate p-value: Determine the probability for the test statistic 5.Compare p-value and  : Reject H 0 (Accept H A ), if p-value < 

Calculating p-values p-valueA p-value is the probability that, if H 0 were really true, you would have gotten a value as least as great as the sample value for “>” tests at most as great as the sample value for “<” tests at least as far away from the sample value for “≠” tests z-valueFirst calculate the z-value for the test. p-valueThe p-value is calculated as follows: TESTP-valueEXCEL “>”P(Z>z) – Area to the right of z=1-NORMSDIST(z) “<”P(Z<z) – Area to the left of z=NORMSDIST(z) “≠” For z < 0: For z < 0: 2*(Area to the left of z) For z > 0: For z > 0: 2*(Area to the right of z) =2*NORMSDIST(z) =2*(1-NORMSDIST(z))

0 Z v P-Value for “≠” Test, With z>0 0 Z v P-Value for “≠” Test, With z<0 z 0 Z v P-Value for “>” Test z P-value v P-Value for “<” Test 0 Z z P-value P-value = 2*area z

Examples – p-Values Examples – p-Values >Example 1: Can we conclude µ > 80? z = 1.79 P-value.0367P-value = =.0367 (< α =.05). Can Can conclude µ > 80. <Example 2: Can we conclude µ < 90? z = P-value.1314P-value =.1314 (> α =.05). Cannot Cannot conclude µ < 90. ≠Example 3: Can we conclude µ ≠ 95? z = P-value.0098P-value = 2(.0049) =.0098 (< α =.05). Can Can conclude µ ≠ 95. ≠Example 4: Can we conclude µ ≠ 78? z = 2.37 P-value.0178P-value = 2( ) =.0178 (< α =.05). Can Can conclude µ ≠ 78.

=AVERAGE(A2:A42)

=(D4-D7)/(D1/SQRT(D2)) =1-NORMSDIST(D8)

=(D4-D12)/(D1/SQRT(D2)) =NORMSDIST(D13)

=(D4-D17)/(D1/SQRT(D2)) =2*NORMSDIST(D18)

=(D4-D22)/(D1/SQRT(D2))=2*(1-NORMSDIST(D23))

Because the sample size > 30, it is not necessary to assume that the costs follow a normal distribution to determine the t-statistic. In this case because it is assumed that σ is unknown, these will be t-tests with 41-1 = 40 degrees of freedom. Assume s = CASE 2: t-tests for σ Unknown CASE 2: t-tests for σ Unknown

Example 1: Can we conclude µ > 80? H 0 : µ = 80 H A : µ > 80 Select α =.05 TEST: Reject H 0 (Accept H A ) if t >t.05,40 = t calculation: Conclusion: < Cannot conclude µ >

Example 2: Can we conclude µ < 90? H 0 : µ = 90 H A : µ < 90 Select α =.05 TEST: Reject H 0 (Accept H A ) if t<-t.05,40 = t calculation: Conclusion: > Cannot conclude µ <

Example 3: Can we conclude µ ≠ 95? H 0 : µ = 95 H A : µ ≠ 95 Select α =.05 TEST: Reject H 0 (Accept H A ) if t t.025,40 = t calculation: Conclusion: < Can conclude µ ≠

Example 4: Can we conclude µ ≠ 78? H 0 : µ = 78 H A : µ ≠ 78 Select α =.05 TEST: Reject H 0 (Accept H A ) if t t.025,40 = t calculation: Conclusion: > Can conclude µ ≠

The TDIST Function in Excel The TDIST Function in Excel TDIST(t,degrees of freedom,1)TDIST(t,degrees of freedom,1) gives the area to the right of a positive value of t. –1-TDIST(t,degrees of freedom,1) gives the area to the left of a positive value of t. –Excel does not work for negative vales of t. –But the t-distribution is symmetric. Thus, The area to the left of a negative value of t = area to the right of the corresponding positive value of t. TDIST(-t,degrees of freedom,1) gives the area to the left of a negative value of t. 1-TDIST(-t,degrees of freedom,1) gives the area to the right of a negative value of t. TDIST(t,degrees of freedom,2)TDIST(t,degrees of freedom,2) gives twice the area to the right of a positive value of t. –TDIST(-t,degrees of freedom,2) –TDIST(-t,degrees of freedom,2) gives twice the area to the right of a negative value of t.

p-Values for t-Tests Using Excel P-values for t-tests are calculated as follows: H A TEST Sign of t EXCELP-value “>”>0<0 Usual case =TDIST(t,degrees of freedom,1) Usual case =1-TDIST(-t,degrees of freedom,1) “<”<0>0 Usual case =TDIST(-t,degrees of freedom,1) Usual case =1-TDIST(t,degrees of freedom,1) “≠”<0>0 =TDIST(-t,degrees of freedom,2) =TDIST(t,degrees of freedom,2)

=(D3-G2)/D4 =TDIST(G3,40,1)

=(D3-G7)/D4 =TDIST(-G8,40,1)

=(D3-G12)/D4 =TDIST(-G13,40,2)

=(D3-G17)/D4 =TDIST(G18,40,2)

Test Value vs P-Value Example of one-tailed, positive test value  is known  is unknown Test Value Compare z test with z critical Accept H A if z test > z critical Compare t test with t critical Accept H A if t test > t critical P- value Compare p-value (based on normal distribution) with α Accept H A if p-value < α Compare p-value (based on t distribution) with α Accept H A if p-value < α

Review When to use z and when to use t in hypothesis testing –σ known – z –σ unknown – t z and t statistics measure how many standard errors the observed value is from the hypothesized value Form of the z or t statistic Meaning of a p-value z-tests and t-tests –By hand –Excel