Two-Sample T-Tests: Comparing Means of Two Independent Groups, Lecture notes of Economic statistics

The concept of two-sample t-tests, which is used when comparing the means of two independent groups. the null hypothesis, the alternative hypothesis, the formula for the t-score, and the use of pooled standard deviation. Two examples are provided to illustrate the application of two-sample t-tests in different contexts. The first example compares the means of two textbook classes, while the second example tests the bio-equivalence of two drugs.

Typology: Lecture notes

2021/2022

Uploaded on 09/27/2022

jennyfromtheblock
jennyfromtheblock 🇬🇧

2.3

(3)

225 documents

1 / 43

Toggle sidebar

This page cannot be seen from the preview

Don't miss anything!

bg1
Two-sample t-tests.
- Independent samples
- Pooled standard devation
- The equal variance assumption
pf3
pf4
pf5
pf8
pf9
pfa
pfd
pfe
pff
pf12
pf13
pf14
pf15
pf16
pf17
pf18
pf19
pf1a
pf1b
pf1c
pf1d
pf1e
pf1f
pf20
pf21
pf22
pf23
pf24
pf25
pf26
pf27
pf28
pf29
pf2a
pf2b

Partial preview of the text

Download Two-Sample T-Tests: Comparing Means of Two Independent Groups and more Lecture notes Economic statistics in PDF only on Docsity!

Two-sample t-tests.

  • Independent samples
  • Pooled standard devation
  • The equal variance assumption

Last time, we used the mean of one sample to test against the hypothesis that the true mean was a particular value.

One-sided test:

Two-sided test:

In every one sample test, we have a given value we’re comparing the sample mean against. The question: Is this given value plausible?

But what if we don’t have a specific value to compare against?

What if, instead, we’re comparing the means of two groups

against each other?

That’s a job for two-sample testing.

The alternative can be two-sided (not-equal), or one-sided on either side (less than / more than)

Another way to say “two means at the same” is

“The difference between these means is zero .”

Let 1 and 2 be the means of each of the samples.

Let 1 and 2 be the true means, (that H 0 says are the same)

The t-score looks like:

We never deal with the formula in this form. Since the null assumption is that the true means are the same.

A hairy topic, to be sure. How about an example?

Example: New textbook vs. old textbook.

Say we wanted to test if a new brand of textbook is a better resource as measured by provincial exam scores. (alpha = .05)

We’ll get two classrooms of the same grade and similar skill level. We’ll then flip a coin, if heads:

Class A gets the current textbook, Class B get the new one.

Otherwise, Class A gets the new one.

First, identify:

We are comparing two mean, a two-sample test is appropriate.

We want to know if the new textbook is better so this is a one- sided test.

But what do we do about the standard error?

There are values for n, and two values for standard deviation.

Old text class New text class Mean 64.3 68. Std. Dev. s

Sample Size n 21 23

We can get a measure that collects ( pools ) the standard

deviation of the whole system.

It’s called the pooled standard deviation.

In this case, the samples are roughly the same size, so the

pooled standard deviation SP should be near the middle of

the two standard deviations (7.1 and 7.4).

The degrees of freedom of the pooled standard deviation SP is

the total of the df from each sample. (n 1 – 1) + (n 2 – 1)

SP =7.26 is used to find the standard error.