Sections 4.5-4.7: Two-Sample Problems. Paired t-test (Section 4.6)



Similar documents
Practice Midterm Exam #2

3.4 Statistical inference for 2 populations based on two samples

An Introduction to Statistics Course (ECOE 1302) Spring Semester 2011 Chapter 10- TWO-SAMPLE TESTS

THE FIRST SET OF EXAMPLES USE SUMMARY DATA... EXAMPLE 7.2, PAGE 227 DESCRIBES A PROBLEM AND A HYPOTHESIS TEST IS PERFORMED IN EXAMPLE 7.

Difference of Means and ANOVA Problems

C. The null hypothesis is not rejected when the alternative hypothesis is true. A. population parameters.

Name: Date: Use the following to answer questions 3-4:

Mind on Statistics. Chapter 13

LAB 4 INSTRUCTIONS CONFIDENCE INTERVALS AND HYPOTHESIS TESTING

Independent t- Test (Comparing Two Means)

General Method: Difference of Means. 3. Calculate df: either Welch-Satterthwaite formula or simpler df = min(n 1, n 2 ) 1.

Unit 27: Comparing Two Means

Two-sample hypothesis testing, II /16/2004

Chapter 8 Hypothesis Testing Chapter 8 Hypothesis Testing 8-1 Overview 8-2 Basics of Hypothesis Testing

Simple Linear Regression Inference

Stat 411/511 THE RANDOMIZATION TEST. Charlotte Wickham. stat511.cwick.co.nz. Oct

Hypothesis Testing --- One Mean

Two-sample t-tests. - Independent samples - Pooled standard devation - The equal variance assumption

Lesson 1: Comparison of Population Means Part c: Comparison of Two- Means

1. What is the critical value for this 95% confidence interval? CV = z.025 = invnorm(0.025) = 1.96

A) B) C) D)

Inference for two Population Means

Psychology 60 Fall 2013 Practice Exam Actual Exam: Next Monday. Good luck!

Need for Sampling. Very large populations Destructive testing Continuous production process

Opgaven Onderzoeksmethoden, Onderdeel Statistiek

Introduction. Hypothesis Testing. Hypothesis Testing. Significance Testing

Summary of Formulas and Concepts. Descriptive Statistics (Ch. 1-4)

Chapter 23 Inferences About Means

Chapter 2 Probability Topics SPSS T tests

Hypothesis Testing: Two Means, Paired Data, Two Proportions

12: Analysis of Variance. Introduction

Recall this chart that showed how most of our course would be organized:

Practice problems for Homework 12 - confidence intervals and hypothesis testing. Open the Homework Assignment 12 and solve the problems.

Nonparametric Two-Sample Tests. Nonparametric Tests. Sign Test

HYPOTHESIS TESTING: POWER OF THE TEST

Section 13, Part 1 ANOVA. Analysis Of Variance

HYPOTHESIS TESTING (ONE SAMPLE) - CHAPTER 7 1. used confidence intervals to answer questions such as...

Chapter 7 Notes - Inference for Single Samples. You know already for a large sample, you can invoke the CLT so:

Two-sample inference: Continuous data

1-3 id id no. of respondents respon 1 responsible for maintenance? 1 = no, 2 = yes, 9 = blank

Good luck! BUSINESS STATISTICS FINAL EXAM INSTRUCTIONS. Name:

Permutation & Non-Parametric Tests

BA 275 Review Problems - Week 5 (10/23/06-10/27/06) CD Lessons: 48, 49, 50, 51, 52 Textbook: pp

HYPOTHESIS TESTING WITH SPSS:

Erik Parner 14 September Basic Biostatistics - Day 2-21 September,

BA 275 Review Problems - Week 6 (10/30/06-11/3/06) CD Lessons: 53, 54, 55, 56 Textbook: pp , ,

Unit 26: Small Sample Inference for One Mean

t Tests in Excel The Excel Statistical Master By Mark Harmon Copyright 2011 Mark Harmon

Factors affecting online sales

Statistics Review PSY379

MTH 140 Statistics Videos

Non-Inferiority Tests for Two Means using Differences

Non-Parametric Tests (I)

Syntax Menu Description Options Remarks and examples Stored results Methods and formulas References Also see. level(#) , options2

Two-Sample T-Tests Assuming Equal Variance (Enter Means)

KSTAT MINI-MANUAL. Decision Sciences 434 Kellogg Graduate School of Management

Principles of Hypothesis Testing for Public Health

Lesson 17: Margin of Error When Estimating a Population Proportion

Statistics. One-two sided test, Parametric and non-parametric test statistics: one group, two groups, and more than two groups samples

Two-Sample T-Tests Allowing Unequal Variance (Enter Difference)

5/31/2013. Chapter 8 Hypothesis Testing. Hypothesis Testing. Hypothesis Testing. Outline. Objectives. Objectives

Robust t Tests. James H. Steiger. Department of Psychology and Human Development Vanderbilt University

MULTIPLE CHOICE. Choose the one alternative that best completes the statement or answers the question.

Comparing Means in Two Populations

Introduction. Statistics Toolbox

HYPOTHESIS TESTING (ONE SAMPLE) - CHAPTER 7 1. used confidence intervals to answer questions such as...

SCHOOL OF HEALTH AND HUMAN SCIENCES DON T FORGET TO RECODE YOUR MISSING VALUES

Online 12 - Sections 9.1 and 9.2-Doug Ensley

5.1 Identifying the Target Parameter

MULTIPLE CHOICE. Choose the one alternative that best completes the statement or answers the question.

CHAPTER 13 SIMPLE LINEAR REGRESSION. Opening Example. Simple Regression. Linear Regression

Chapter 4 Statistical Inference in Quality Control and Improvement. Statistical Quality Control (D. C. Montgomery)

How To Compare Birds To Other Birds

Part 3. Comparing Groups. Chapter 7 Comparing Paired Groups 189. Chapter 8 Comparing Two Independent Groups 217

Final Exam Practice Problem Answers

Outline. Definitions Descriptive vs. Inferential Statistics The t-test - One-sample t-test

Analysis of Variance. MINITAB User s Guide 2 3-1

Chapter 7 Section 7.1: Inference for the Mean of a Population

STAT 350 Practice Final Exam Solution (Spring 2015)

Lecture 10: Depicting Sampling Distributions of a Sample Proportion

Is it statistically significant? The chi-square test

Chapter 2. Hypothesis testing in one population

Chapter 7 Section 1 Homework Set A

1. How different is the t distribution from the normal?

Class 19: Two Way Tables, Conditional Distributions, Chi-Square (Text: Sections 2.5; 9.1)

Characteristics of Binomial Distributions

Analysis of Variance ANOVA

Using Stata for One Sample Tests

Permutation Tests for Comparing Two Populations

Using Excel for inferential statistics

Analysing Questionnaires using Minitab (for SPSS queries contact -)

2 Sample t-test (unequal sample sizes and unequal variances)

Study Guide for the Final Exam

Once saved, if the file was zipped you will need to unzip it. For the files that I will be posting you need to change the preferences.

Regression Analysis: A Complete Example

UNDERSTANDING THE DEPENDENT-SAMPLES t TEST

Transcription:

Sections 4.5-4.7: Two-Sample Problems Paired t-test (Section 4.6) Examples of Paired Differences studies: Similar subjects are paired off and one of two treatments is given to each subject in the pair. or We could have two observations on the same subject. The key: With paired data, the pairings cannot be switched around without affecting the analysis. We typically wish to perform inference about the mean difference, denoted. Example 1: Twelve cars were equipped with radial tires and driven over a test course. Then the same 1 cars (with the same drivers) were equipped with regular belted tires and driven over the same course. After each run, the cars gas economy (in km/l) was measured. Is there evidence that radial tires produce better fuel economy? (Assume normality of data, and use =.05.)

Car Gas eco. 1 3 4 5 6 7 8 9 10 11 1 Y 1 (radial) 4. 4.7 6.6 7.0 6.7 4.5 5.7 6.0 7.4 4.9 6.1 5. Y (belted) 4.1 4.9 6. 6.9 6.8 4.4 5.7 5.8 6.9 4.7 6.0 4.9 Calculate differences: d = Y 1 Y d i : Example 1(a): Find a 95% CI for the mean difference in gas economy between radial tires and belted tires.

Interpretation: With 95% confidence: Note: With paired data, the two-sample problem really reduces to a one-sample problem on the sample of differences. Paired t-test in R: > radial <- c(4., 4.7, 6.6, 7.0, 6.7, 4.5, 5.7, 6.0, 7.4, 4.9, 6.1, 5.) > belted <- c(4.1, 4.9, 6., 6.9, 6.8, 4.4, 5.7, 5.8, 6.9, 4.7, 6.0, 4.9) > t.test(radial, belted, paired = T, alternative = "greater") Paired t-ci in R: > t.test(radial, belted, paired = T, conf.level=0.95)$conf.int

Two Independent Samples t-test (Section 4.5) Sometimes there s no natural pairing between samples. Example 1: Collect sample of males and sample of females and ask their opinions on whether capital punishment should be legal. Example : Collect sample of iron pans and sample of copper pans and measure their resiliency at high temperatures. No attempt made to pair subjects we have two independent samples. We could rearrange the order of the data and it wouldn t affect the analysis at all.

Comparing Two Means Our goal is to compare the mean responses to two treatments, or to compare two population means (we have two separate samples). We assume both populations are normally distributed (or nearly normal). We re typically interested in the difference between the mean of population 1 ( 1 ) and the mean of population ( ). We may construct a CI for 1 or perform one of three types of hypothesis test: H 0 : 1 = H 0 : 1 = H 0 : 1 = H a : 1 H a : 1 < H a : 1 > Note: H 0 could be written H 0 : 1 = 0. The parameter of interest is Notation: Y = mean of Sample 1 1 Y = mean of Sample 1 = standard deviation of Population 1 = standard deviation of Population

s 1 = standard deviation of Sample 1 s = standard deviation of Sample n 1 = size of Sample 1 n = size of Sample The point estimate of 1 is This statistic has standard error but we use since 1, unknown. Since the data are normal, we can use the t-procedures for inference. Case I: Equal population variances ( 1 = ) In the case where the two populations have equal variances, we can better estimate this population variance with the pooled sample variance: s p ( n 1 1) s1 ( n 1) s n n 1

Formula for (1 )100% CI for 1 is: where the d.f. = n 1 + n. To test H 0 : 1 =, the test statistic is: H a Rejection region P-value 1 t < -t / or t > t / *(tail area) 1 < t < -t left tail area 1 > t > t right tail area where the d.f. = n 1 + n.

Example: What is the difference in mean water absorbency of cotton fiber and acetate fiber? Let 1 = mean absorbency (in %) for cotton, let = mean absorbency (in %) for acetate. Find 99% CI for 1. Randomly sample 8 cotton fibers: Y 1 = 19.93, s 1 = 1.51, s 1 =.8, n 1 = 8. Randomly sample 5 acetate fibers: Y = 1.07, s = 1.5, s = 1.563, n = 5. Does 1 =? Could test this formally using an F-test (Sec. 4.7) or (preferably) could simply compare spreads of box plots for samples 1 and. Let s suppose we can safely assume 1 = here. 99% CI for 1 : Interpretation:

Testing whether cotton has a greater mean absorbency: H 0 : 1 = vs. H a : 1 > (at =.10) Test statistic: Case II: Unequal population variances ( 1 ). In this case, no exact t-procedure exists, but an approximate t-test is available. An R example: > y1 <- c(10,86,98,109,9,99) > y <- c(81,165,97,134,9,87,114) > boxplot(y1, y) > t.test(y1, y, alternative = "two.sided", paired = FALSE, var.equal = FALSE)

Inference about Two Proportions We now consider inference about p 1 p, the difference between two population proportions. Point estimate for p 1 p is For large samples, this statistic has an approximately normal distribution with mean p 1 p and standard p1 (1 p1) p(1 p ) deviation n n. 1 So a (1 )100% CI for p 1 p is ˆp 1 = sample proportion for Sample 1 ˆp = sample proportion for Sample n 1 = sample size of Sample 1 n = sample size of Sample Requires large samples: (1) Need n 1 0 and n 0. () Need number of successes and number of failures to be 5 or more in both samples.

Test of H 0 : p 1 = p Test statistic: (Use pooled proportion because under H 0, p 1 and p are the same.) Pooled sample proportion pˆ = Example: Let p 1 = the proportion of urban residents who support the construction of a nuclear power plant, and let p = the proportion of suburban residents who support the construction. Take a random sample of 100 urban residents; 61 support the construction. Take a random sample of 10 suburban residents; 65 support the construction. Find a 95% CI for the difference in the true proportion of urban residents and the true proportion of suburban ones who support it.

Interpretation: We are 95% confident that: Hypothesis Test: Is the true proportion of urban residents who support construction significantly different from the proportion of suburban ones? Use = 0.05. In R: > prop.test(c(61,65), n = c(100,10), correct=f, alternative="two.sided")