Hypothesis Testing Judicial Analogy Hypothesis Testing Hypothesis testing  Null hypothesis Purpose  Test the viability Null hypothesis  Population.

Slides:



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

“Students” t-test.
Hypothesis Testing. To define a statistical Test we 1.Choose a statistic (called the test statistic) 2.Divide the range of possible values for the test.
Revised 5/7/2007 Slide # 1 PS 601 Notes – Part II Statistical Tests Notes Version - March 8, 2005.
Probability & Statistical Inference Lecture 6
Confidence Interval and Hypothesis Testing for:
Copyright © 2010 Pearson Education, Inc. Publishing as Prentice Hall Statistics for Business and Economics 7 th Edition Chapter 10 Hypothesis Testing:
10-1 Introduction 10-2 Inference for a Difference in Means of Two Normal Distributions, Variances Known Figure 10-1 Two independent populations.
9-1 Hypothesis Testing Statistical Hypotheses Statistical hypothesis testing and confidence interval estimation of parameters are the fundamental.
BCOR 1020 Business Statistics Lecture 22 – April 10, 2008.
Chap 11-1 Statistics for Business and Economics, 6e © 2007 Pearson Education, Inc. Chapter 11 Hypothesis Testing II Statistics for Business and Economics.
BCOR 1020 Business Statistics
Topic 2: Statistical Concepts and Market Returns
Lecture Inference for a population mean when the stdev is unknown; one more example 12.3 Testing a population variance 12.4 Testing a population.
1/45 Chapter 11 Hypothesis Testing II EF 507 QUANTITATIVE METHODS FOR ECONOMICS AND FINANCE FALL 2008.
BCOR 1020 Business Statistics Lecture 21 – April 8, 2008.
Business Statistics: A Decision-Making Approach, 7e © 2008 Prentice-Hall, Inc. Chap 10-1 Business Statistics: A Decision-Making Approach 7 th Edition Chapter.
T-Tests Lecture: Nov. 6, 2002.
Copyright © 2010 Pearson Education, Inc. Publishing as Prentice Hall Statistics for Business and Economics 7 th Edition Chapter 9 Hypothesis Testing: Single.
IENG 486 Statistical Quality & Process Control
Inferences About Process Quality
Chapter 9 Hypothesis Testing.
5-3 Inference on the Means of Two Populations, Variances Unknown
Definitions In statistics, a hypothesis is a claim or statement about a property of a population. A hypothesis test is a standard procedure for testing.
Quantitative Business Methods for Decision Making Estimation and Testing of Hypotheses.
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.
Hypothesis Testing:.
McGraw-Hill/IrwinCopyright © 2009 by The McGraw-Hill Companies, Inc. All Rights Reserved. Chapter 9 Hypothesis Testing.
Chapter 10 Hypothesis Testing
Week 9 Chapter 9 - Hypothesis Testing II: The Two-Sample Case.
Hypothesis testing – mean differences between populations
Copyright © Cengage Learning. All rights reserved. 13 Linear Correlation and Regression Analysis.
Single-Sample T-Test Quantitative Methods in HPELS 440:210.
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.
1 Level of Significance α is a predetermined value by convention usually 0.05 α = 0.05 corresponds to the 95% confidence level We are accepting the risk.
The paired sample experiment The paired t test. Frequently one is interested in comparing the effects of two treatments (drugs, etc…) on a response variable.
More About Significance Tests
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.
Chapter 9: Testing Hypotheses
9-1 Hypothesis Testing Statistical Hypotheses Definition Statistical hypothesis testing and confidence interval estimation of parameters are.
1 ConceptsDescriptionHypothesis TheoryLawsModel organizesurprise validate formalize The Scientific Method.
Statistical Hypotheses & Hypothesis Testing. Statistical Hypotheses There are two types of statistical hypotheses. Null Hypothesis The null hypothesis,
Lecture 16 Section 8.1 Objectives: Testing Statistical Hypotheses − Stating hypotheses statements − Type I and II errors − Conducting a hypothesis test.
Copyright © 2013 Pearson Education, Inc. Publishing as Prentice Hall Statistics for Business and Economics 8 th Edition Chapter 10 Hypothesis Testing:
McGraw-Hill/Irwin Copyright © 2007 by The McGraw-Hill Companies, Inc. All rights reserved. Chapter 8 Hypothesis Testing.
Two-Sample Hypothesis Testing. Suppose you want to know if two populations have the same mean or, equivalently, if the difference between the population.
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 σ σ.
to accompany Introduction to Business Statistics
© Copyright McGraw-Hill 2004
- We have samples for each of two conditions. We provide an answer for “Are the two sample means significantly different from each other, or could both.
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 1 Introduction to Statistics. Section 1.1 Fundamental Statistical Concepts.
Learning Objectives After this section, you should be able to: The Practice of Statistics, 5 th Edition1 DESCRIBE the shape, center, and spread of the.
Lecture 8 Estimation and Hypothesis Testing for Two Population Parameters.
Hypothesis Tests u Structure of hypothesis tests 1. choose the appropriate test »based on: data characteristics, study objectives »parametric or nonparametric.
Hypothesis Tests. An Hypothesis is a guess about a situation that can be tested, and the test outcome can be either true or false. –The Null Hypothesis.
Copyright © 2013 Pearson Education, Inc. Publishing as Prentice Hall Statistics for Business and Economics 8 th Edition Chapter 9 Hypothesis Testing: Single.
 What is Hypothesis Testing?  Testing for the population mean  One-tailed testing  Two-tailed testing  Tests Concerning Proportions  Types of Errors.
4-1 Statistical Inference Statistical inference is to make decisions or draw conclusions about a population using the information contained in a sample.
Copyright © 2010 Pearson Education, Inc. Publishing as Prentice Hall Statistics for Business and Economics 7 th Edition Chapter 9 Hypothesis Testing: Single.
When the means of two groups are to be compared (where each group consists of subjects that are not related) then the excel two-sample t-test procedure.
Chapter Nine Hypothesis Testing.
Chapter 9 Hypothesis Testing.
What are their purposes? What kinds?
Hypothesis Testing: The Difference Between Two Population Means
Chapter 9 Hypothesis Testing: Single Population
Presentation transcript:

Hypothesis Testing

Judicial Analogy

Hypothesis Testing Hypothesis testing  Null hypothesis Purpose  Test the viability Null hypothesis  Population parameter  Reverse of what the experimenter believes

Hypothesis Testing 1. State the null hypothesis, H 0 2. State the alternative hypothesis, H A 3. Choose , our significance level 4. Select a statistical test, and find the observed test statistic 5. Find the critical value of the test statistic ( and p value) 6. Compare the observed test statistic with the critical value, (or compare the p value with  ), and decide to accept or reject H 0

Coin Example

Coin Analogy

Types of Errors You used a decision rule to make a decision, but was the decision correct?

Modified Coin Experiment Which coins are fair?

Cases in Hypothesis Testing Means - variance known - variance unknown Comparison of means - unpaired, variance known - comparison of variances - unpaired, variances unknown but equal - unpaired, variances unknown and unequal - paired Proportion Comparison of Proportion

One sample t-test

Statistical Hypothesis Test

Two-Sided Test of Hypothesis The test of hypothesis is two-sided if the null is rejected when the actual value of interest is either less than or greater than the hypothesized value. H 0 :   H A :   15.00

Two-Sided Test of Hypothesis

One-Sided Test of Hypothesis In many situations, you are only interested in one direction. Perhaps you only want evidence that the mean is significantly lower than fifteen. For example, instead of testing H 0 :  = 15 versus H 1 :   15 you test H 0 :   15 versus H 1 :  < 15

One-Sided Test of Hypothesis

The Critical Values of Z to memorize Two tailed hypothesis –Reject the null (H 0 ) if z  z  /2, or z  - z  /2 One tailed hypothesis –If H A is  > X bar, then reject H 0 if z  z  –If H A is  < X bar, then reject H 0 if z  - z 

The Z-test – an example Suppose that you took a sample of 25 people off the street in Morgantown and found that their personal income is $24,379 And you have information that the national average for personal income per capita is $31,632 in Is the Morgantown significantly different from the National Average Sources: –(1) EconomagicEconomagic –(2) US Bureau of Economic AnalysisUS Bureau of Economic Analysis

What to conclude? Should you conclude that West Virginia is lower than the national average? –Is it significantly lower? –Could it simple be a randomly “bad” sample” Assume that it is not a poor sampling technique How do you decide?

Example (cont.) We will hypothesize that WV income is lower than the national average. –H 0 : WVInc = USInc (Null Hypothesis) –H A : WVInc < USInc (Alternate Hypothesis) Statistician can write by : –H0:   $31,632 –HA:  < $31,632 Since we know the national average ($31,632) and standard deviation (15000), we can use the z-test to make decide if WV is indeed significantly lower than the nation

Example (cont.) Using the z-test, we get For  = 5%  -z  = -z 0.05 = THE DECISION IS REJECT H0  SO West Virginia is lower than the national average

The t test When we cannot use the population standard deviation, we must employ a different statistical test Think of it this way: –The sample standard deviation is biased a little low, but we know that as the sample size gets larger, it becomes closer to the true value. –As a result, we need a sampling distribution that makes small sample estimates conservative, but gets closer to the normal distribution as the sample size gets larger, and the sample standard deviation more closely resembles the population standard deviation.

The t-test (cont.) The t-test is a very similar formula. Note the two differences –using s instead of  –The resultant is a value that has a t- distribution instead of a standard normal one.

The Critical Values of t Two tailed hypothesis –Reject the null (H 0 ) if t  t  /2(n-1), or t  - t  /2(n-1)  Reject H 0 if |t| ≥ t  /2(n-1) One tailed hypothesis –If H A is  > X bar, then reject H 0 if t  t  (n-1) –If H A is  < X bar, then reject H 0 if t  - t  (n-1)  Reject H 0 if |t| ≥ t  (n-1)

T-test example Suppose we decided to look at Oregon, but do not know the population standard deviation –And we have a small sample anyway (N=25). without an a priori reason to hypothesize higher or lower, use the 2-tailed test Assume Oregon has a mean of 29,340, and that we collected a sample of 169. Using the t-test, we get Critical value = t.025(168) = 1.96  Since | | > 1.96 REJECT H0

Two sample t-test Two-Sample t-Tests

Cereal Example

Other Examples Is the income of blacks lower than whites? Are teachers salaries in West Virginia and Mississippi alike? Is there any difference between the background well and the monitoring well of a landfill?

The Difference of means Test Frequently we wish to ask questions that compare two groups. –Is the mean of A larger (smaller) than B? –Are As different (or treated differently) than Bs? –Are A and B from the same population? To answer these common types of questions we use the standard two-sample t-test

Assumptions independent observations normally distributed data for each group equal variances for each group.

The Difference of means Test The standard two-sample t-test is:

The equal Variance test If the variances from the two samples are the same we may use a more powerful variation Where

If the variances from the two samples are the same we may use a more powerful variation With degree of freedom: The unequal Variance test

Which test to Use? In order to choose the appropriate two- sample t-test, we must decide if we think the variances are the same. Hence we perform a preliminary statistical test – the equal variance F-test.

The Equal Variance F-test One of the fortunate properties on statistics is that the ratio of two variances will have an F distribution. Thus with this knowledge, we can perform a simple test.

F Test for Equality of Variances

Interpretation of F-test If we find that F > F  (n1-1,n2-1), (P(F) >.05), we conclude that the variances are unequal. If we find that F ≤ F  (n1-1,n2-1), (P(F) ≤.05), we conclude that the variances are unequal. We then select the equal– or unequal- variance t-test accordingly.

Test Statistics and p-Values F Test for equal variances:H 0 :  1 2 =  2 2 Variance Test: F’ = 1.51DF = (3,3) t-Tests for equal means:H 0 :  1 =  2 Unequal Variance t-test: T = DF = 5.8 Equal Variance t-test: T = DF = 6.0 What would we conclude?

PAIRED T-test

Paired Samples

Proportion

Large Sample H0 : p = p 0 H A : p ≠ p 0 or H A : p p 0 Test statistic :

Example Do you think it shoul or should not be government implementation the law of pornography and pornoaction? Let p denote the population proportion of Indonesia adults who believe it should be p <.5  minority p >.5  majority

Continued example This data is not real, just for ilustration Suppose from 1534 adults, 812 believe it should be H0 : p =.5 H A : p ≠.5 The critical value for  = 5%  z.025 = 1.96 The conclusion -  Reject H0  majority adults agree if government implementation the law of pornography and pornoaction

Comparison two proportion

Large sample H0 : p 1 = p 2 H A : p 1 ≠ p 2 Test statistic : = x 1 /n 1, = x 2 /n 2, = (x 1 + x 2 )/(n 1 + n 2 )

Reference Agresti, A. & Finlay, B Statistical Methods for the Social Sciences 3 rd Edition. Prentice Hall. Mac Gregor Lecture 3: Review of Basic Statistics. McMaster University PS 601 Notes – Part II Statistical Tests SAS Inc Tang, A Lecture 9 Common Statistical Test. Tufts University