Docsity

Statistical Analysis: Two Sample t-Test and Homogeneity of Variance, Slides of Statistics

Partial preview of the text

Download Statistical Analysis: Two Sample t-Test and Homogeneity of Variance and more Slides Statistics in PDF only on Docsity!

Independent Sample t

(two sample t )

I. Background

II. Two types of Experimental

Designs

III. Estimating the Standard Error

IV. New formula for t

V. Hypothesis Testing

VI. Homogeneity of Variance

Background With a known μ, and σ , we can calculate

probabilities with Z

Z = M - μ σ M σ (^) M =

√ n

Background If we know μ but we do not know σ , the

populations standard deviation, we use

t.

t = M - μ s M s (^) M =

s

√ n

Background

Most typically in research we do not know

either the mean or the standard

deviation of the population.

Both values must be estimated from our

sample or samples from the population.

Two types of Experimental Designs Population

Treatment Population

We need estimates of

μ 1 and μ 2 , and σ

(we assume the treatment does not affect σ) Population μ 1 Treatment Population μ 2 Within-Subjects Design Estimate treatment effect: μ 1 - μ 2 from M 1 - M 2 Treatment sample 1 M 1 sample 1 M 2

Estimating the standard error

Degrees of freedom:

we have two estimates of σ: s 1 and s 2

The df for s 1 = n 1 -

The df for s 2 = n 2 -

As a result, the df for S p are (n 1 -1) + (n 2 -1)

But what we want is the standard

error of the difference scores:

Pop 1 scores range over 20 points (70-50)

Pop 2 scores range over 10 points (30-20)

But the population of differences scores (P 1 -P 2 )

ranges over 30 points (50-20).

Thus, variation in the difference scores equals the

sum of the variation in the two individual

population scores.

Estimating the standard error

With one sample: sM = √

s^2

n

With two samples: sM 1 -M 2 = √ Sp^ +

2

n 1

Sp^2

n 2

New formula for t

t =

M - μ

s M

s M =

s

√ n

One sample t : (old formula) Two sample t :

(new formula) t^ =^

(M 1 -M 2 ) - (μ 1 - μ 2 )

sM 1 -M 2

Summary:

Homogeneity of Variance

We have been

assuming the

the standard

deviation (and

thus variance)

of the

populations

are the same.

Population

Treatment Population

Homogeneity of Variance

s 12 as estimate of σ^2

s 22 as estimate of σ^2

Sp^2 =

SS 1 + SS 2

df 1 + df 2 Sp^2 as our estimate of the population variance Homogeneity of Variance

What if our treatment effect also changes

variance?

For example:

A drug for the treatment of hyperactivity may

reduce the average activity level in children. It

may also reduce the variability across

children.

If this were the case, the homogeneity of

variance assumption would be false, and our t

test would be incorrect.

Homogeneity of Variance

Fmax : test for the equal variance assumption

Fmax = largest variance/smallest variance

The Fmax distribution has two paramaters:

k = the number of sample variances

df = the df of each sample variance

(assume the samples have equal n’s)

Homogeneity of Variance

1. State H 0 , H 1 , and choose α

a) H 0 : σ 12 = σ 22 b) H 1 : σ 12 σ 22 (always two tailed)

2. Determine what type of observation it would

take to reject H 0

a) What is the appropriate test statistic? : Fmax b) What is the critical value? (see Table B.3, p 704)

3. Evaluate the sample data: Calculate Fmax

4. Reach a conclusion

Homogeneity of Variance

Check the homogeneity assumption with

the imagery experiment:

Group 1: no imagery instructions

mean recall = 19, SS 1 = 160, n 1 = 10

Group 2: imagery instructions

mean recall = 25, SS 2 = 200, n 2 = 10