(c) 2007 IUPUI SPEA K300 (4392) Outline Type of t-test Z-test versus t-test Assumptions of the t-test One sample t-test Paired sample t-test F-test for.

Slides:



Advertisements
Similar presentations
The t Test for Two Independent Samples
Advertisements

The t Test for Two Related Samples. Why Might We Have Related Samples? Repeated Measures Repeated Measures A study in which a single sample of individuals.
Overview of Lecture Partitioning Evaluating the Null Hypothesis ANOVA
Chapter 7 Sampling and Sampling Distributions
Elementary Statistics
HYPOTHESIS TESTING. Purpose The purpose of hypothesis testing is to help the researcher or administrator in reaching a decision concerning a population.
Chapter 10: The t Test For Two Independent Samples
The t-distribution William Gosset lived from 1876 to 1937 Gosset invented the t -test to handle small samples for quality control in brewing. He wrote.
INTRODUCTORY STATISTICS FOR CRIMINAL JUSTICE
(This presentation may be used for instructional purposes)
Copyright © 2007 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Chapter 22 Comparing Two Proportions.
Hypothesis Tests: Two Independent Samples
Chapter 9 Introduction to the t-statistic
Comparison of 2 Population Means Goal: To compare 2 populations/treatments wrt a numeric outcome Sampling Design: Independent Samples (Parallel Groups)
Comparing Two Groups’ Means or Proportions: Independent Samples t-tests.
Chapter 15 ANOVA.
Comparing Two Population Parameters
F Test. When we want to test the equality of variances of two normal populations, we make use of F- test based on F-distribution. When we want to test.
McGraw-Hill, Bluman, 7th ed., Chapter 9
Please enter data on page 477 in your calculator.
Statistics for the Social Sciences Psychology 340 Fall 2006 Using t-tests.
Statistics for the Social Sciences Psychology 340 Spring 2005 Using t-tests.
Using t-tests Basic introduction and 1-sample t-tests Statistics for the Social Sciences Psychology 340 Spring 2010.
Statistics for the Social Sciences
Statistical Inferences Based on Two Samples
© The McGraw-Hill Companies, Inc., Chapter 10 Testing the Difference between Means and Variances.
Chapter Thirteen The One-Way Analysis of Variance.
Chapter 11: The t Test for Two Related Samples
T-tests continued.
Chapter 13 Comparing Two Populations: Independent Samples.
Statistics Review – Part II Topics: – Hypothesis Testing – Paired Tests – Tests of variability 1.
PSY 307 – Statistics for the Behavioral Sciences
PSY 307 – Statistics for the Behavioral Sciences
Hypothesis Testing :The Difference between two population mean :
Chapter 9: Introduction to the t statistic
Basic Business Statistics, 10e © 2006 Prentice-Hall, Inc. Chap 10-1 Chapter 10 Two-Sample Tests Basic Business Statistics 10 th Edition.
Two Sample Tests Ho Ho Ha Ha TEST FOR EQUAL VARIANCES
Jeopardy Hypothesis Testing T-test Basics T for Indep. Samples Z-scores Probability $100 $200$200 $300 $500 $400 $300 $400 $300 $400 $500 $400.
T-test Mechanics. Z-score If we know the population mean and standard deviation, for any value of X we can compute a z-score Z-score tells us how far.
Aim: How do we test a comparison group? Exam Tomorrow.
Education 793 Class Notes T-tests 29 October 2003.
Chapter 9 Hypothesis Testing and Estimation for Two Population Parameters.
Chapter 11 HYPOTHESIS TESTING USING THE ONE-WAY ANALYSIS OF VARIANCE.
Statistics for the Behavioral Sciences Second Edition Chapter 11: The Independent-Samples t Test iClicker Questions Copyright © 2012 by Worth Publishers.
One-sample In the previous cases we had one sample and were comparing its mean to a hypothesized population mean However in many situations we will use.
Pengujian Hipotesis Dua Populasi By. Nurvita Arumsari, Ssi, MSi.
PSY 307 – Statistics for the Behavioral Sciences Chapter 16 – One-Factor Analysis of Variance (ANOVA)
Chap 9-1 Two-Sample Tests. Chap 9-2 Two Sample Tests Population Means, Independent Samples Means, Related Samples Population Variances Group 1 vs. independent.
Jeopardy Hypothesis Testing t-test Basics t for Indep. Samples Related Samples t— Didn’t cover— Skip for now Ancient History $100 $200$200 $300 $500 $400.
© Copyright McGraw-Hill 2000
Statistics for Managers Using Microsoft Excel, 5e © 2008 Prentice-Hall, Inc.Chap 10-1 Statistics for Managers Using Microsoft® Excel 5th Edition Chapter.
(c) 2007 IUPUI SPEA K300 (4392) Outline Comparing Group Means Data arrangement Linear Models and Factor Analysis of Variance (ANOVA) Partitioning Variance.
Hypothesis Testing – Two Population Variances
Testing the Difference between Means, Variances, and Proportions
Chapter 10 Two Sample Tests
Testing the Difference Between Two Means
Testing the Difference between Means and Variances
Hypothesis tests Single sample Z
Chapter 8 Hypothesis Testing with Two Samples.
Chapter 10 Two-Sample Tests and One-Way ANOVA.
Levene's Test for Equality of Variances
Reasoning in Psychology Using Statistics
Two Sample T-Tests AP Statistics.
Reasoning in Psychology Using Statistics
Elementary Statistics: Picturing The World
What are their purposes? What kinds?
Chapter 10 Two-Sample Tests
Psych 231: Research Methods in Psychology
Chapter 9 Testing the Difference Between Two Means, Two Proportions, and Two Variances Copyright © 2012 The McGraw-Hill Companies, Inc. Permission required.
Inference for Distributions
Presentation transcript:

(c) 2007 IUPUI SPEA K300 (4392) Outline Type of t-test Z-test versus t-test Assumptions of the t-test One sample t-test Paired sample t-test F-test for equal variance Independent sample t-test: equal variance Independent sample t-test: unequal variance Comparing proportions

(c) 2007 IUPUI SPEA K300 (4392) Type of the T-test One-sample t-test compares one sample mean with a hypothesized value Paired sample t-test (dependent sample) compares the means of two dependent variables Independent sample t-test compares the means of two independent variables Equal variance Unequal variance

(c) 2007 IUPUI SPEA K300 (4392) Z-test and T-test When σ is known, not likely in most cases, conduct the z-test When σ is not known, conduct the t-test What if N is large (large sample)? The z- test and t-test produce almost the same result. Therefore, t-test is more useful and practical. Most software packages support the t- test with p-values reported.

(c) 2007 IUPUI SPEA K300 (4392) Comparison of the z-test and t-test Q 3, p.410, Revenue of large business N=50, xbar=31.5, s=28.7, α=.05 H 0 : µ=25, H a : µ25 Critical value: 1.96 (z), 2.01(t) p-value:.1094 (z) and.1158 (t) Test statistic: 1.601

(c) 2007 IUPUI SPEA K300 (4392) Assumptions of the T-test Normality, otherwise comparison is not valid. Nonparametric methods are used. Independence of (between) samples, otherwise the paired t-test is used. Equal Variance, otherwise the pooled variance is not valid and approximation of degrees of freedom is needed.

(c) 2007 IUPUI SPEA K300 (4392) One sample t-test Compare a sample mean with a particular (hypothesized) value H 0 : µ=c, H a : µc, where c is a particular value Degrees of freedom: n-1 This is exactly what we did for past two weeks

(c) 2007 IUPUI SPEA K300 (4392) Paired sample t-test 1 Compare two paired (matched) samples. Ex. Compare means of pre- and post- scores given a treatment. We want to know the effect of treatment. Ex. Compare means of midterm and final exam of K300. Each subject has data points (pre- and post, or midterm and final)

(c) 2007 IUPUI SPEA K300 (4392) Paired sample t-test 2 Compute d=x 1 -x 2 (order does not matter) H 0 : µ d =c, H a : µ d c, where c is a particular value (often 0) Degrees of freedom: n-1

(c) 2007 IUPUI SPEA K300 (4392) Paired sample t-test 3: Example Example 9-13, p Cholesterol levels H 0 : µ d =0, H a : µ d 0 N=5, dbar=16.7, std err=25.4, Test size=.01, df=4, critical value=2.015 Test statistic is 1.61, which is smaller than CV Do not reject the null hypothesis is likely when the null hypothesis is true.

(c) 2007 IUPUI SPEA K300 (4392) Independent sample t-test Compare two independent samples Ex. Compare means of personal income between Indiana and Ohio Ex. Compare means of GPA between SPEA and Kelley School Each variable include different subjects that are not related at all

(c) 2007 IUPUI SPEA K300 (4392) How to get standard error? If variances of two sample are equal, use the pooled variance. Otherwise, you have to use individual variance to get the standard error of the mean difference (µ1-µ2) How do we know two variances are equal? (Folded form) F test is the answer.

(c) 2007 IUPUI SPEA K300 (4392) F-test for equal variance Compute variances of two samples Conduct the F-test as follows. Larger variance should be the numerator so that F is always greater than or equal to 1. Look up the F distribution table with two degrees of freedom. If H 0 of equal variance is not rejected, two samples have the same variance.

(c) 2007 IUPUI SPEA K300 (4392) Independent sample t-test: Equal variance Compare means of two independent samples that have the same variance The null hypothesis is µ1-µ2=c (often 0) Degrees of freedom is n1+n2-2

(c) 2007 IUPUI SPEA K300 (4392) Independent sample t-test: Equal variance Example 9-10, p.484 X1bar=$26,800, s1=$600, n1=10 X2bar=$25,400, s2=$450, n2=8 F-test: F 1.78 is smaller than CV 4.82; do not reject the null hypothesis of equal variance at the.01 level. Therefore, we can use the pooled variance.

(c) 2007 IUPUI SPEA K300 (4392) Independent sample t-test: Equal variance X1bar=$26,800, s1=$600, n1=10 X2bar=$25,400, s2=$450, n2=8 Since 5.47>2.58 and p-value <.01, reject the H 0 at the.01 level.

(c) 2007 IUPUI SPEA K300 (4392) Independent sample t-test: Unequal variance Compare means of two independent samples that have different variances (if the null hypothesis of the F-test is rejected) The null hypothesis is µ1-µ2=c (often 0) Individual variances need to be used Degrees of freedom is approximated; not necessarily an integer

(c) 2007 IUPUI SPEA K300 (4392) Independent sample t-test: Unequal variance Approximation of degrees of freedom Not necessarily an integer Satterthwaits approximation (common) Cochran-Coxs approximation Welchs approximation

(c) 2007 IUPUI SPEA K300 (4392) Independent sample t-test: Unequal variance Example 9-9, p.483 X1bar=191, s1=38, n1=8 X2bar=199, s2=12, n2=10 F-test: F (7, 9) is larger than CV 4.20, indicating unequal variances. Reject H 0 of equal variance at the.05 level. Therefore, we have to use individual variances

(c) 2007 IUPUI SPEA K300 (4392) Independent sample t-test: Unequal variance Example 9-9, p.483 X1bar=191, s1=38, n1=8 X2bar=199, s2=12, n2=10 Test statistics |-.57| is small. Textbook uses CV for 7 (8-1) degrees of freedom and does not reject the null hypothesis However, we need the approximation of degrees of freedom to get more reliable df.

(c) 2007 IUPUI SPEA K300 (4392) Independent sample t-test: Unequal variance Example 9-9, p.483 X1bar=191, s1=38, n1=8 X2bar=199, s2=12, n2= ~t(8.1213), CV is about Df is not 16 but 8 Therefore, do not reject the null hypothesis

(c) 2007 IUPUI SPEA K300 (4392) Comparing proportions 1 Compare proportions of two binary variables The test statistic is normally distributed (not t distribution) Think about normal approximation of a binomial distribution when N is large.

(c) 2007 IUPUI SPEA K300 (4392) Comparing proportions 2 Example 9-15, p. 505, Vaccination rates N1=34, n2=24, alpha=.05 P1hat=.35=12/34, p2hat=.71=17/24 P1pooled=(12+17)/(34+24)=.5 Z |-2.7| is larger than CV 1.96, reject H 0.

(c) 2007 IUPUI SPEA K300 (4392) Comparing proportions 3 Proportions are represented by binary variables that have either 0 or 1. The mean of a binary variable is a proportion What if we conduct two independent sample t-test? If N is large, z-test and t-test produce the same result.

(c) 2007 IUPUI SPEA K300 (4392) Summary of Comparing Means