1. Comparing Two Means: Dependent Samples



Similar documents
Two Related Samples t Test

12.5: CHI-SQUARE GOODNESS OF FIT TESTS

Friedman's Two-way Analysis of Variance by Ranks -- Analysis of k-within-group Data with a Quantitative Response Variable

Bivariate Statistics Session 2: Measuring Associations Chi-Square Test

HYPOTHESIS TESTING: POWER OF THE TEST

Independent t- Test (Comparing Two Means)

Calculating P-Values. Parkland College. Isela Guerra Parkland College. Recommended Citation

Testing Research and Statistical Hypotheses

Unit 31 A Hypothesis Test about Correlation and Slope in a Simple Linear Regression

Study Guide for the Final Exam

EXCEL Analysis TookPak [Statistical Analysis] 1. First of all, check to make sure that the Analysis ToolPak is installed. Here is how you do it:

Hypothesis Testing: Two Means, Paired Data, Two Proportions

STATISTICS PROJECT: Hypothesis Testing

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

Hypothesis testing - Steps

Descriptive Statistics

Chi-square test Fisher s Exact test

UNDERSTANDING THE DEPENDENT-SAMPLES t TEST

Having a coin come up heads or tails is a variable on a nominal scale. Heads is a different category from tails.

The Chi-Square Test. STAT E-50 Introduction to Statistics

3.4 Statistical inference for 2 populations based on two samples

Projects Involving Statistics (& SPSS)

Odds ratio, Odds ratio test for independence, chi-squared statistic.

TABLE OF CONTENTS. About Chi Squares What is a CHI SQUARE? Chi Squares Hypothesis Testing with Chi Squares... 2

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

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

Introduction to Hypothesis Testing. Hypothesis Testing. Step 1: State the Hypotheses

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

One-Way Analysis of Variance (ANOVA) Example Problem

Section 13, Part 1 ANOVA. Analysis Of Variance

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

CHAPTER 11 CHI-SQUARE AND F DISTRIBUTIONS

1 Nonparametric Statistics

" Y. Notation and Equations for Regression Lecture 11/4. Notation:

Additional sources Compilation of sources:

Association Between Variables

Lecture Notes Module 1

LAB 4 INSTRUCTIONS CONFIDENCE INTERVALS AND HYPOTHESIS TESTING

Confidence intervals

Opgaven Onderzoeksmethoden, Onderdeel Statistiek

Using Excel for inferential statistics

Hypothesis Testing. Reminder of Inferential Statistics. Hypothesis Testing: Introduction

Chapter 23. Two Categorical Variables: The Chi-Square Test

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.

This chapter discusses some of the basic concepts in inferential statistics.

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

Chapter 2 Probability Topics SPSS T tests

Two-sample hypothesis testing, II /16/2004

Chi Square Tests. Chapter Introduction

Simple Linear Regression Inference

Chapter 9. Two-Sample Tests. Effect Sizes and Power Paired t Test Calculation

Two Correlated Proportions (McNemar Test)

12: Analysis of Variance. Introduction

research/scientific includes the following: statistical hypotheses: you have a null and alternative you accept one and reject the other

This can dilute the significance of a departure from the null hypothesis. We can focus the test on departures of a particular form.

Chapter 3 RANDOM VARIATE GENERATION

Non-Parametric Tests (I)

Chapter 7. Comparing Means in SPSS (t-tests) Compare Means analyses. Specifically, we demonstrate procedures for running Dependent-Sample (or

Recommend Continued CPS Monitoring. 63 (a) 17 (b) 10 (c) (d) 20 (e) 25 (f) 80. Totals/Marginal

Comparing Means in Two Populations

AP: LAB 8: THE CHI-SQUARE TEST. Probability, Random Chance, and Genetics

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

Good luck! BUSINESS STATISTICS FINAL EXAM INSTRUCTIONS. Name:

Crosstabulation & Chi Square

Comparing Multiple Proportions, Test of Independence and Goodness of Fit

Tests for Two Proportions

Understand the role that hypothesis testing plays in an improvement project. Know how to perform a two sample hypothesis test.

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

Nonparametric Tests. Chi-Square Test for Independence

Comparing Two Groups. Standard Error of ȳ 1 ȳ 2. Setting. Two Independent Samples

Chapter 7 Section 1 Homework Set A

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

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

UNDERSTANDING THE TWO-WAY ANOVA

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

Experimental Design. Power and Sample Size Determination. Proportions. Proportions. Confidence Interval for p. The Binomial Test

Using Microsoft Excel to Analyze Data from the Disk Diffusion Assay

Estimation of σ 2, the variance of ɛ

Section 7.1. Introduction to Hypothesis Testing. Schrodinger s cat quantum mechanics thought experiment (1935)

Chapter 5 Analysis of variance SPSS Analysis of variance

Solutions to Homework 10 Statistics 302 Professor Larget

Paired 2 Sample t-test

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

Chapter 23 Inferences About Means

Statistics Review PSY379

Is it statistically significant? The chi-square test

II. DISTRIBUTIONS distribution normal distribution. standard scores


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

INTERPRETING THE ONE-WAY ANALYSIS OF VARIANCE (ANOVA)

How To Test For Significance On A Data Set

Introduction. Statistics Toolbox

Introduction to Analysis of Variance (ANOVA) Limitations of the t-test

UNDERSTANDING THE INDEPENDENT-SAMPLES t TEST

Goodness of Fit. Proportional Model. Probability Models & Frequency Data

CHAPTER 14 ORDINAL MEASURES OF CORRELATION: SPEARMAN'S RHO AND GAMMA

1.5 Oneway Analysis of Variance

Section Format Day Begin End Building Rm# Instructor. 001 Lecture Tue 6:45 PM 8:40 PM Silver 401 Ballerini

Stats Review Chapters 9-10

THE KRUSKAL WALLLIS TEST

Transcription:

1. Comparing Two Means: ependent Samples In the preceding lectures we've considered how to test a difference of two means for independent samples. Now we look at how to do the same thing with dependent samples specifically, when observations from both samples can be matched one-for-one. This method is called the matched-pairs t-test or paired t-test. Some example applications: Are student ability scores are the same before vs. after a course? o patients show improvement after a treatment? If Treatment A and Treatment B are given to the same patients, which works better? This procedure is very simple, because it is ultimately merely a test of a single mean. That is, let X 1 and X be two measurements (e.g., Pre and Post scores) made on the same sample of subjects/objects. efine the new variable ifference = = X 1 X for all cases. If our scientific hypothesis is that the means of X 1 and X are different (e.g., one treatment is better than another other), our null and alternative hypotheses are simply: H0: μ = 0 (i.e., μ 1 = μ ) H1: μ 0 (i.e., μ 1 μ ) where μ is the (population) mean difference of X 1 and X, equal to μ 1 μ. Alternatively, if we want to test for a difference of, say, greater than some value c: H0: μ = c (i.e., μ 1 = μ + c) H1: μ > c (i.e., μ 1 > μ + c) When the null hypothesis is for no difference (H0: μ = 0) we our test statistic is: - µ t = s / n where: n is the number of pairs. s is the sample standard deviation computed for = (X 1 X ). As before, we then determine the probability (p) of this t value and compare it to a pre-specified α (e.g., α = 0.05). If p < α, reject H0. Credible/Confidence Intervals

To compute a credible/confidence interval for the mean difference between matched pairs, look up the critical value of t crit for the desired width of the credible/confidence interval (e.g., 95%). Then use the formulas: LL = UL = ( X 1 X ) t crit s ( X 1 X ) + t crit s Excel. Paired t-tests in Excel and JMP 1. State H0 and H1; choose α.. Enter X1 and X values side by side in adjacent columns. 3. Make a new column for = (X1 X). 4. Calculate mean and sample standard deviation of. 5. Compute t statistic t = /( s / n) (assuming H0: μ = 0) 6. Use Excel function T.IST to find p = probability in tail area(s) of t distribution. 7. If p < α, reject H0. Figure 1 JMP 1. Paste X and Y variables into two separate columns, side by side.. Highlight columns 3. Analyze > Matched Pairs 4. In pop-up window, designate both variables as "Y, Paired Responses", and press OK Step 4 Step 3

3. Chi-Square Tests We'll now look at how to test statistical hypotheses concerning nominal data, and specifically when nominal data are summarized as tables of frequencies. The tests we will considered are generically called chi-squared (or chi-square) tests. Each test involves computing a test statistic, and then calculating the area in the tail of a theoretical distribution called the chisquared (χ²) distribution. The χ² distribution, like the t distribution, is actually a family of distributions each one corresponding to a certain number of degrees of freedom: However in the case of the χ² distribution, we are almost always concerned with upper-tail probabilities. That is, chi-squared tests are usually 1-tailed.

Hypothetical ata Various Outcomes to Arterial Stent Placement Outcome Observed (O) Expected (E) Rejected 15 7 1 100 days 75 60 > 100 days 118 156 Replaced 0 5 Total 8 8 Our observed frequencies come from data on 8 patients who receive the treatment. Our expected frequencies may come from theoretical models or from estimates of probabilities derived from some larger reference population. Our null hypothesis is that the observed frequencies do not differ from the expected frequencies by more than is expected than chance. Or: H0: Our sample comes from some specified reference population. To test the null hypothesis, we may use either of two test statistics. Pearson X-squared statistic X = All cells ( O E E ) Likelihood ratio statistic L = All cells O O ln E Both of these test statistics follow a theoretical χ²-distribution. They are typically, (though not necessarily always), close in value to each other. Note that in the former case the test statistic is denoted X. This should be called "ex-squared". It is not the same as the theoretical distribution, χ² (chi-squared). Most textbooks mistakenly call the test statistic (X ) "chi-squared." That is, the name "chi-squared" test comes from the distribution used to test the hypothesis (χ² distribution), and not the test statistic itself.

We perform our test by computing X. Our calculations for the example data are shown below: Hypothetical ata Various Outcomes to Arterial Stent Placement Outcome Observed (O) Expected (E) ( O E) (O E) E Rejected 15 7 64 9.14 1 100 days 75 60 5 3.75 > 100 days 118 156 1444 9.6 Replaced 0 5 5 45 Total 8 8 Sum = X = 67.15 The area of the χ² distribution (with 4 1 = 3 df) above 67.15 is vanishingly small (p = 1.739E-14). Even assuming a low α (e.g., α = 0.001) then p < α, so we reject the H0 which asserted that our data came from the reference population. That is, our sample comes from some other population, with probabilities of each level that are different from the reference population. We can check our results here: http://vassarstats.net/csfit.html Homework 4 Work 9.9 (a) and (c) using Excel, as in Figure 1 above and class demonstration. Use data = Gasmile.xls. (Hint. First do problem in JMP to find correct results). Print results (or check with me for alternative). Read: http://onlinestatbook.com//chi_square/distribution.html http://onlinestatbook.com//chi_square/one-way.html http://onlinestatbook.com//chi_square/contingency.html