Say not, „I have found the truth," but rather, „I have found a truth.„ Kahlin Gibran “The Prophet” Hypothesis testing.

Slides:



Advertisements
Similar presentations
10- 1 Chapter Ten McGraw-Hill/Irwin © 2005 The McGraw-Hill Companies, Inc., All Rights Reserved.
Advertisements

Hypothesis: It is an assumption of population parameter ( mean, proportion, variance) There are two types of hypothesis : 1) Simple hypothesis :A statistical.
Copyright © 2014 by McGraw-Hill Higher Education. All rights reserved.
1 1 Slide © 2008 Thomson South-Western. All Rights Reserved Chapter 9 Hypothesis Testing Developing Null and Alternative Hypotheses Developing Null and.
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.
Tests of Hypotheses: Large Samples Chapter Rejection region Acceptance
Business Statistics: A Decision-Making Approach, 6e © 2005 Prentice-Hall, Inc. Chap 8-1 Business Statistics: A Decision-Making Approach 6 th Edition Chapter.
Fall 2006 – Fundamentals of Business Statistics 1 Chapter 8 Introduction to Hypothesis Testing.
Chapter 3 Hypothesis Testing. Curriculum Object Specified the problem based the form of hypothesis Student can arrange for hypothesis step Analyze a problem.
Chapter 10 Hypothesis Testing
Copyright © 2010 Pearson Education, Inc. Publishing as Prentice Hall Statistics for Business and Economics 7 th Edition Chapter 9 Hypothesis Testing: Single.
© 2013 Pearson Education, Inc. Active Learning Lecture Slides For use with Classroom Response Systems Introductory Statistics: Exploring the World through.
Chapter 9 Hypothesis Testing.
Ch. 9 Fundamental of Hypothesis Testing
Chapter 8 Introduction to Hypothesis Testing
Business Statistics: A Decision-Making Approach, 6e © 2005 Prentice-Hall, Inc. Chap 8-1 TUTORIAL 6 Chapter 10 Hypothesis Testing.
© 1999 Prentice-Hall, Inc. Chap Chapter Topics Hypothesis Testing Methodology Z Test for the Mean (  Known) p-Value Approach to Hypothesis Testing.
Irwin/McGraw-Hill © The McGraw-Hill Companies, Inc., 2000 LIND MASON MARCHAL 1-1 Chapter Eight Tests of Hypothesis Large Samples GOALS When you have completed.
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.
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.
Probability Distributions and Test of Hypothesis Ka-Lok Ng Dept. of Bioinformatics Asia University.
Chapter 13 – 1 Chapter 12: Testing Hypotheses Overview Research and null hypotheses One and two-tailed tests Errors Testing the difference between two.
Chapter 10 Hypothesis Testing
Confidence Intervals and Hypothesis Testing - II
Hypothesis Testing.
Copyright © 2012 by Nelson Education Limited. Chapter 8 Hypothesis Testing II: The Two-Sample Case 8-1.
Business Statistics: A Decision-Making Approach, 6e © 2005 Prentice-Hall, Inc. Chap th Lesson Introduction to Hypothesis Testing.
Chapter 9 Hypothesis Testing: Single Population
1 Power and Sample Size in Testing One Mean. 2 Type I & Type II Error Type I Error: reject the null hypothesis when it is true. The probability of a Type.
Copyright © 2012 Wolters Kluwer Health | Lippincott Williams & Wilkins Chapter 17 Inferential Statistics.
Chapter 10 Hypothesis Testing
Chapter 9: Testing Hypotheses
Lecture 7 Introduction to Hypothesis Testing. Lecture Goals After completing this lecture, you should be able to: Formulate null and alternative hypotheses.
© 2013 Pearson Education, Inc. Active Learning Lecture Slides For use with Classroom Response Systems Introductory Statistics: Exploring the World through.
Hypothesis testing Chapter 9. Introduction to Statistical Tests.
STA Statistical Inference
Learning Objectives In this chapter you will learn about the t-test and its distribution t-test for related samples t-test for independent samples hypothesis.
One-Sample Tests of Hypothesis Chapter 10 McGraw-Hill/Irwin Copyright © 2013 by The McGraw-Hill Companies, Inc. All rights reserved.
Testing of Hypothesis Fundamentals of Hypothesis.
Hypothesis Testing A procedure for determining which of two (or more) mutually exclusive statements is more likely true We classify hypothesis tests in.
Confidence intervals and hypothesis testing Petter Mostad
One-Sample Tests of Hypothesis. Hypothesis and Hypothesis Testing HYPOTHESIS A statement about the value of a population parameter developed for the purpose.
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.
Copyright ©2013 Pearson Education, Inc. publishing as Prentice Hall 9-1 σ σ.
Chapter 9: Testing Hypotheses Overview Research and null hypotheses One and two-tailed tests Type I and II Errors Testing the difference between two means.
© 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.
Chapter 7 Hypothesis Testing. Define a hypothesis and hypothesis testing. Describe the five step hypothesis testing procedure. Distinguish between a one-tailed.
Statistical Inference Statistical inference is concerned with the use of sample data to make inferences about unknown population parameters. For example,
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.
Hypothesis Tests u Structure of hypothesis tests 1. choose the appropriate test »based on: data characteristics, study objectives »parametric or nonparametric.
CHAPTER 7: TESTING HYPOTHESES Leon-Guerrero and Frankfort-Nachmias, Essentials of Statistics for a Diverse Society.
Hypothesis Testing Steps : 1. Review Data : –Sample size. –Type of data. –Measurement of data. –The parameter ( ,  2,P) you want to test. 2. Assumption.
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,
 What is Hypothesis Testing?  Testing for the population mean  One-tailed testing  Two-tailed testing  Tests Concerning Proportions  Types of Errors.
Chapter 9 Hypothesis Testing Understanding Basic Statistics Fifth Edition By Brase and Brase Prepared by Jon Booze.
Chapter Hypothesis Testing with One Sample 1 of © 2012 Pearson Education, Inc. All rights reserved.
Business Statistics Topic 7
Hypothesis Testing: Hypotheses
Chapter 9 Hypothesis Testing.
Chapter 10 Basic Statistics Hypothesis Testing
Presentation transcript:

Say not, „I have found the truth," but rather, „I have found a truth.„ Kahlin Gibran “The Prophet” Hypothesis testing

What is hypothesis? A statement about a population developed for the purpose of testing Population is so large that it is not feasible to study all the objects Alternative to measuring the entire population is to take a sample from the population Then we can test a statement to determine whether the sample does or does not support the statement concerning the population

Examples: Eighty percent of those who play the state lotteries regularly never win more than 100€ in any one play The mean starting salary for graduates of four- year bussiness schools is 3200€ per month Thirty-five percent of retirees in the upper Midwest sell their home and move to a warm climate within 1 year of their retirement

What is hypothesis testing? A procedure based on sample evidence and probability theory to determine whether the hypothesis is a reasonable statement Start with a statement, or assumption about population parameter, e.g. mean (hypothesis) We can also verify assumptions about shape of statistical distribution

Example: Hypothesis: Mean monthly commission of sales associates in retail electronics stores is in fact 2000€ Select a sample from the population to test the assumption μ=2000 Sample mean 1000€ would certainly cause rejection of the hypothesis Mean 1995€? Difference 5€ : Sampling error ? Or statistically significant difference?

Five-step procedure for testing a hypothesis Step 1 State null and alternate hypotheses Step 2 Select a level of significance Step 3 Identify the test statistics Step 4 Formulate a decision rule Step 5 Take a sample, arrive at decision Step 6 D o n o t r e j e c t H 0 o r r e j e c t H 0 a n d a c c e p t H 1

Step 1:State the Null Hypothesis (H 0 ) Null hypothesis: A statement about the value of a population parameter hypothesis being tested designated H 0 and read „H sub zero“ H stands for hypothesis Subscript zero implies „no difference“ Often begin by stating: „There is no significant difference between....“ Will always contain the equal sign e.g. H 0 : μ=2000

Step 1: Alternate Hypothesis (H 1 ) Alternate hypothesis: A statement that is accepted if the sample data provide sufficient evidence that the null hypothesis is false It is written H 1 and is read „H sub one“ Often called the research hypothesis Never contain equal sign e.g. H 1 : μ≠2000 We turn to the alternate hypothesis only if the data suggests the null hypothesis is untrue

Step 2: Level of significance The probability of rejecting the null hypothesis when it is true Designated α (alpha) Sometimes called level of risk Decision is made to use: the 0,05 level (5% level)- traditionally selected for consumer research projects the 0,01 level – for quality assurance the 0,1 level – for political polling Or any other between 0 and 1

Type I error: Rejecting the null hypothesis, H 0 when its true Probability of commiting a type I error is α 1 -  probability of accepting H0 when its true (accepting correct hypothesis) Type II error: Accepting the null hypothesis when it is false Probability of commiting type II errors is  1 -  power of the test Possibility of two types of errors:

f(H 1 )  = P(H 1 /H 0 )  = P(H 0 /H 1 ) 1 -  1 -  f(H 0 )  - probability of accepting H 1 when H 0 is true  - probability of accepting H 0 when H 1 is true Type I and type II errors

Type I error α and type II error  are closely connected Reducing one type of error enlarge other type of error  Compromise is necessary  For this reason is usually selected α=0,05 Type I and type II errors Researcher Null hypothesis Accepts H 0 H 0 Rejects H 0 is trueCorrect decisionType I error H 0 is falseType II errorCorrect decision

Step 3: Select the test statistic A value determined from the sample information, used to determine whether to reject the null hypothesis For example: in hypothesis testing for the mean, when σ is known or the sample size is large the test statistics is computed by:  Formula depends on used test

Step 4: Formulate the decision rule Decision rule – Statement of the specific conditions under which the null hypothesis is rejected and the conditions under which it is not rejected Critical value – the dividing point between the region where the null hypothesis is rejected and the region where it is not rejected =>Computing test statistic, comparing it to the critical value and making a decision to reject or not to reject the null hypothesis.

Two tailed test No direction is specified in the alternate hypothesis H 0 :  =  0 H 1 :    0 If |u cal |  u 1-  /2 => do not reject H 0 If |u cal | > u 1-  /2 => reject H 0

One-tailed test Alternate hypothesis states direction e.g: Null hypothesis includes equal sign One way to determine the location of the rejection region is to look at the direction in which the inequality sign in the alternate hypothesis is pointing ( ). In this case < (to the left)

The critical values for a one-tailed test are different from a two-tailed test at the same significance level. In two tailed test we split the significance level in half and put half in lower tail and half in the upper tail. In a one-tailed test we put all the rejection region in one tail Notice

Differences between one and two tailed test

p–value in hypothesis testing The probability of observing a sample value as extreme as, or mote extreme than, the value observed, given that the null hypothesis is true. If p-value H 0 is rejected If p-value>significance level => H 0 is not rejected Gives us also additional insight into the strength of the decision Very small p-value e.g. 0,0001 indicates that there is little likelihood the H 0 is true On the other hand p-value 0,2033 means that H 0 is not rejected and there is little likelihood that is false

Testing for a population mean Let X to have normal distributed population N( ,  2 ) H 0 :  =  0 H 1 :    0 est  = and N( ,  2 /n) a) Variance of the population is known, then test statistic: if |u|  u 1-  /2 => do not reject H 0 if |u| > u 1-  /2 => reject H 0 with …N(0,1)

b)Variance of the population is unknown, est  2 = s 1 2, large sample (n>30) N(0,1) can be used If |u|  u 1-  /2 => do not reject H 0 if |u| > u 1-  /2 => reject H 0

c) Variance of the population is unknown, est  2 =s 1 2, small sample (n≤30) Test statistics : Critical value t  (n-1 )

Two sample test of hypothesis about mean, independent samples Let variable X 1 is normally distributed....N(  1,  1 2 ) Let variable X 2 is normally distributed ….N(  2,  2 2 ) Assume estimated means  1 and  2 are equal => H 0 :  1 =  2 H 1 :  1   2 Two tailed test est  1 =… N(  1,  1 2 /n 1 ) est  2 =… N(  2,  2 2 /n 2 )

a) Variances of the population are known  1 2,  2 2 then Test statistic:

b) Variances of the populations  1 2,  2 2 are unknown and both samples are large n 1 >30, n 2 >30  We can used same test statistic like before in a)  Variances of the populations will be replaced by their point estimates: est  1 2 = s 11 2 est  2 2 = s 12 2

c) Variances of the populations are unknown, at least one sample is small (n 1  30, or n 2  30) =>If we can assume equality of variances  1 2 =  2 2 =  2, then we can use t-test statistic with student distribution. Compared with critical value t  pre (n 1 +n 2 - 2) degrees of freedom

d) Variances of the populations are unknown, at least one sample is small (n 1  30, or n 2  30)  we can not assume equality of variances (  1 2   2 2 ) ( Verified by F test) =>We can use Behrens-Fischer test for unequal variances

Two-sample tests of hypothesis: Dependent samples  Samples are dependent, or related Two types of dependent samples: 1.Those characterized by a measurement, an intervention of some type, and then another measurement, 2.Matching or pairing of observations – paired samples

We make several measurements on the same statistical units, we get: x 11, x 12, …x 1j, …, x 1n x 21, x 22, …x 2j, …, x 2n x i j Index of measurement order j = 1,2,…,n Index to distinguish set of measurements in time i = 1,2 We can calculate difference for each pair: d j = x 1j - x 2j, Est  d =

H o :  1 =  2 or H o :  d = 0 Against alternate hypothesis H 1 :  d  0 Test statistic have student distribution with (n-1) degrees of freedom What will be possible results?

Hypothesis testing of variance A) Test of equality of variance with constant H 0 :  2 =  2 0, est  2 = s 1 2 H 1 :  2   2 0 Test statistic  2 distribution with (n-1) degrees of freedom  2 1-  /2  2  /2 Do not reject H 0 Rejection region Rejection region

B) Test for equality of variances in two samples H 0 :  1 2 =  2 2 est  1 2 = s 11 2, est  2 2 = s 12 2 H 1 :  1 2 >  2 2, one tailed test Test statistics Fischer distribution With degrees of freedom:  1 = n 1 -1,  2 = n 2 -1 Note: Higher variance will be numerator => F>1 F < F  (  1,  1)  do not reject H 0, variances of two populations can be considered equal F  F  (  1,  1)  H 0 is rejected, variance of the first population (numerator) is significantly greater

References: Statistics for Business and Economics, 6e © 2007 Pearson Education, Inc Chapter 10 and 11 => Recommended reading (do as I did ;-) Slovak lectures by prof. Ing. Zlata Sojková, CSc Another recommended study materials: => Moodle course of statistics

That`s all folks Don`t worry, be happy ;-)