Two-Sample Hypothesis Testing

Slides:



Advertisements
Similar presentations
Statistics Review – Part II Topics: – Hypothesis Testing – Paired Tests – Tests of variability 1.
Advertisements

The two-sample t-test Expanding t to two groups. t-tests used for population mean diffs With 1-sample t, we have a single sample and a population value.
The Two Factor ANOVA © 2010 Pearson Prentice Hall. All rights reserved.
1 Test for the Population Proportion. 2 When we have a qualitative variable in the population we might like to know about the population proportion of.
Hypothesis Testing Steps of a Statistical Significance Test. 1. Assumptions Type of data, form of population, method of sampling, sample size.
Statistics Are Fun! Analysis of Variance
Mean for sample of n=10 n = 10: t = 1.361df = 9Critical value = Conclusion: accept the null hypothesis; no difference between this sample.
Inferences About Means of Single Samples Chapter 10 Homework: 1-6.
Hypothesis test with t – Exercise 1 Step 1: State the hypotheses H 0 :  = 50H 1 = 50 Step 2: Locate critical region 2 tail test,  =.05, df = =24.
Chapter 9 Hypothesis Testing.
Section 7-2 Hypothesis Testing for the Mean (n  30)
Hypothesis Testing Approach 1 - Fixed probability of Type I error. 1.State the null and alternative hypotheses. 2.Choose a fixed significance level α.
8 - 1 © 2003 Pearson Prentice Hall Chi-Square (  2 ) Test of Variance.
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.
Two Sample Tests Nutan S. Mishra Department of Mathematics and Statistics University of South Alabama.
Business Statistics: A Decision-Making Approach, 6e © 2005 Prentice-Hall, Inc. Chap th & 7 th Lesson Hypothesis Testing for Two Population Parameters.
EGR 252 S09 Ch.10 Part 3 Slide 1 Statistical Hypothesis Testing - Part 3  A statistical hypothesis is an assertion concerning one or more populations.
Comparing Two Variances
Ex St 801 Statistical Methods Hypothesis test for Two Population Means: DEPENDENT SAMPLES.
Copyright ©2013 Pearson Education, Inc. publishing as Prentice Hall 9-1 σ σ.
Example Suppose we want to prove that the mean commute time for people in Lexington to get to work is less than 20 minutes. A random sample of 125 people.
Copyright © Cengage Learning. All rights reserved. 12 Analysis of Variance.
EGR252 F11 Ch 10 9th edition rev2 Slide 1 Statistical Hypothesis Testing Review  A statistical hypothesis is an assertion concerning one or more populations.
AP Statistics. Chap 13-1 Chapter 13 Estimation and Hypothesis Testing for Two Population Parameters.
Tests of Significance: The Basics ESS chapter 15 © 2013 W.H. Freeman and Company.
EGR Ch. 101 Tests of Hypotheses (Statistical) Hypothesis: an assertion concerning one or more populations. In statistics, there are only two states.
Copyright © Cengage Learning. All rights reserved. 12 Analysis of Variance.
Lecture 8 Estimation and Hypothesis Testing for Two Population Parameters.
Practice You recently finished giving 5 Villanova students the MMPI paranoia measure. Determine if Villanova students’ paranoia score is significantly.
Ex St 801 Statistical Methods Part 2 Inference about a Single Population Mean (HYP)
Hypothesis Testing – Two Means(Small, Independent Samples)
Hypothesis Testing – Two Population Variances
Unit 8 Section 7.5.
Lecture Nine - Twelve Tests of Significance.
Introduction to Statistics for the Social Sciences SBS200 - Lecture Section 001, Fall 2016 Room 150 Harvill Building 10: :50 Mondays, Wednesdays.
Comparing Two Proportions
Ch8.4 P-Values The P-value is the smallest level of significance at which H0 would be rejected when a specified test procedure is used on a given data.
Introduction to Statistics for the Social Sciences SBS200 - Lecture Section 001, Fall 2016 Room 150 Harvill Building 10: :50 Mondays, Wednesdays.
Hypothesis Testing II: The Two-sample Case
Estimation & Hypothesis Testing for Two Population Parameters
Statistical Hypothesis Testing
Chapter 11 Hypothesis Testing II
Hypothesis testing March 20, 2000.
Statistical Hypothesis Testing
Lecture 2 2-Sample Tests Goodness of Fit Tests for Independence
Statistical Hypothesis Testing Review
Hypothesis Testing: Two Sample Test for Means and Proportions
Statistical Hypothesis Testing Review
Hypothesis Tests for Two Population Proportions
Test for Mean of a Non-Normal Population – small n
Section 11.2: Carrying Out Significance Tests
Introduction to Statistics for the Social Sciences SBS200 - Lecture Section 001, Spring 2017 Room 150 Harvill Building 9:00 - 9:50 Mondays, Wednesdays.
Introduction to Statistics for the Social Sciences SBS200 - Lecture Section 001, Fall 2016 Room 150 Harvill Building 10: :50 Mondays, Wednesdays.
Section 12.2: Tests about a Population Proportion
Introduction to Statistics for the Social Sciences SBS200, COMM200, GEOG200, PA200, POL200, or SOC200 Lecture Section 001, Spring 2016 Room 150 Harvill.
Hypothesis Tests for Proportions
Reasoning in Psychology Using Statistics
Reasoning in Psychology Using Statistics
Statistics for the Social Sciences
Hypothesis Tests for a Standard Deviation
Introduction to Statistics for the Social Sciences SBS200 - Lecture Section 001, Fall 2018 Room 150 Harvill Building 10: :50 Mondays, Wednesdays.
Practice You wonder if psychology majors have higher IQs than sociology majors ( = .05) You give an IQ test to 4 psychology majors and 4 sociology majors.
Psych 231: Research Methods in Psychology
Tests of inference about 2 population means
No class on Wednesday 11/1 No class on Friday 11/3
Chapter 10: One-Sample and Two-Sample Tests of Hypotheses
Section 11.1: Significance Tests: Basics
Hypothesis Testing for Proportions
Practice You recently finished giving 5 Villanova students the MMPI paranoia measure. Determine if Villanova students’ paranoia score is significantly.
Presentation transcript:

Two-Sample Hypothesis Testing Example: A professor has designed an experiment to test the effect of reading the textbook before attempting to complete a homework assignment. Four students who read the textbook before attempting the homework recorded the following times (in hours) to complete the assignment: 3.1, 2.8, 0.5, 1.9 hours Five students who did not read the textbook before attempting the homework recorded the following times to complete the assignment: 0.9, 1.4, 2.1, 5.3, 4.6 hours

Two-Sample Hypothesis Testing Define the difference in the two means as: μ1 - μ2 = d0 What are the Hypotheses? H0: _______________ H1: _______________ or NOTE: d0 is often 0 (there is, statistically speaking, no difference in the means) H0: μ1 - μ2 = 0 H1: μ1 - μ2 < 0 (note: compare lower to higher for lower-tail test) H1: μ1 - μ2 ≠ 0 H1: μ1 – μ2 > 0 (note: compare higher to lower for upper-tail test)

Our Example Reading: n1 = 4 x1 = 2.075 s12 = 1.363 No reading: If we assume the population variances are “equal”, we can calculate sp2 and conduct a __________. = __________________ t-test sp2 = (3(1.363)+4(3.883))/(4+5-2) = 2.803 , s = 1.674

Your turn … Lower-tail test ((μ1 - μ2 < 0) “Fixed α” approach (“Approach 1”) at α = 0.05 level. “p-value” approach (“Approach 2”) Upper-tail test (μ2 – μ1 > 0) “Fixed α” approach at α = 0.05 level. “p-value” approach Two-tailed test (μ1 - μ2 ≠ 0) Recall  Note that we have to compare higher – lower mean to conduct an upper-tail test

Lower-tail test ((μ1 - μ2 < 0) Draw the picture: Solution: Decision: Conclusion: tcalc = ((2.075-2.860)-0)/(1.674*sqrt(1/4 – 1/5)) = -0.70 Approach 1: df = 7, t0.5,7 = 1.895  tcrit = -1.895 Approach 2: =TDIST(0.7,7,1) = 0.253259 Decision: fail to reject H0 Conclusion: the data do not support the hypothesis that the mean time to complete homework is less for students who read the textbook or There is no statistically significant difference in the time required to complete the homework for the people who read the text ahead of time vs those who did not. The data do not support the hypothesis that the mean completion time is less for readers than for non-readers.

Upper-tail test (μ2 – μ1 > 0) Draw the picture: Solution: Decision: Conclusion: tcalc = ((2.860-2.075)-0)/(1.674*sqrt(1/4 – 1/5)) = 0.70 Approach 1: df = 7, t0.5,7 = 1.895  tcrit = 1.895 Approach 2: =TDIST(0.7,7,1) = 0.253259 Decision: fail to reject H0 Conclusion: the data do not support the hypothesis that the mean time to complete homework is more for students who do not read the textbook

Two-tailed test (μ1 - μ2 ≠ 0) Draw the picture: Solution: Decision: Conclusion: tcalc = ((2.860-2.075)-0)/(1.674*sqrt(1/4 – 1/5)) = 0.70 Approach 1: df = 7, t0.025,7 = 2.365  tcrit = -2.365, 2.365 Approach 2: =TDIST(0.7,7,2) = 0.506518 Decision: fail to reject H0 Conclusion: the data do not support the hypothesis that the mean time to complete homework different when a student reads the text versus when the student does not read the text.

Another Example Suppose we want to test the difference in carbohydrate content between two “low-carb” meals. Random samples of the two meals are tested in the lab and the carbohydrate content per serving (in grams) is recorded, with the following results: n1 = 15 x1 = 27.2 s12 = 11 n2 = 10 x2 = 23.9 s22 = 23 tcalc = ______________________ ν = ________________ (using equation in table 10.2) tcalc = =(27.2-23.9)/(SQRT(11/15+23/10)) = 1.894759 df from equation in table 10.2, pg. 313 ν = 14.69 ≈ 15

Example (cont.) What are our options for hypotheses? At an α level of 0.05, One-tailed test, t0.05, 15 = ________ Two-tailed test, t0.025, 15 = ________ How are our conclusions affected? H0: μ1 - μ2 = 0 vs H0: μ1 - μ2 = 0 H1: μ1 - μ2 > 0 H1: μ1 - μ2 ≠ 0 t0.05, 15 = 1.753 t0.025, 15 = 2.131 Our data don’t support a conclusion that the two meals are different at an alpha level of .05 Our data do support a conclusion that meal 1 has more carbs than meal 2 at an alpha level of .05 note, 1-sided p-value =TDIST(1.895,15,1) = 0.038766 2-sided p-value =TDIST(1.895,15,2) = 0.077533