Two-Sample Tests for Population Means

Top  Previous  Next

 

Introduction

 

The aim of these tests is to compare two population means, image001q and image002q, to the value, image003q, referred here to as the hypothetical difference between the population means, based on two independent random samples, or two naturally paired random samples, image004q and image005q, of size image006q and image007q, respectively, from the corresponding populations.

 

 

Methods

 

The following methods assume two independent random samples, or two naturally paired random samples, image004q and image005q, of size image006q and image007q, respectively, drawn from two normally distributed populations, image012q and image013q.

 

 

1.z-Procedure for Known Population Variances

 

When the population variances, image014q and image015q, are known, the test statistic

 

image016q,        (1)

 

where image017q.

 

 

2.z-Procedure for Unknown Population Variances (Assumes Large image006q and image007q)

 

When the population variances, image014q and image015q, are not known, if the samples sizes, image006q and image007q, are large, we can substitute image014q and image015q of Eq. (1) with the unbiased sample variances, image018q and image019q, and say that the test statistic

 

image020q, image021q large.        (2)

 

Refer to the one-sample z-Procedure for Unknown Population Variance for additional information on this subject.

 

 

t-Procedures for Unknown Population Variances

 

When the population variances, image014q and image015q, are not known and the size of the independent samples, image006q and image007q, is small, the unbiased sample variances, image018q and image019q, are not accurate enough to carry the test as described by Eq. (2). In this case, a more complex statistic, namely Student's t, is used to approximate the distribution of the difference between the means of the samples.

 

 

3.Population Variances Assumed Equal (Pooled Test)

 

If the population variances, image014q and image015q, are known to be equal, the best estimate of the pooled variance of image004q and image005q is given by

 

image022q.

 

If we use this expression to replace, image023q, of Eq. (2), the result is a statistic with a Student's t-distribution of image024q degrees of freedom:

 

image025q.

 

 

4.Population Variances Assumed not Equal (Nonpooled Test)

 

If the population variances, image014q and image015q, are known not to be equal, we can compute a similar t-deviate,

 

image026q,

 

with image027q degrees of freedom, calculated from the sample as

 

image028q,

 

rounded down to the nearest integer.

 

 

NoteWhen no information is available on the equality of the two population variances involved, one can resort to carrying a two-sample F test for variances based on the two independent samples at hand, so that we may be able to have a base from which to select one of the two methods just described.

 

 

5.Paired t-Test

 

This test is a little different than the ones previously discussed. It is used to compare the means of two populations when the population members are naturally paired (e.g., mother and child, husband and wife, etc.), or to compare the effects of two different versions of an event over the same sample (e.g., the scores of two different versions of an exam over a same group of students).

 

In contrast to the previous methods, where the test statistic is calculated from the difference of the means of the samples, this test's statistic is calculated from the mean of the differences of the paired observations, image035q, and its corresponding variance, image034q, as follows:

 

image029q,

 

where image030q,

 

image031q.

 

The resulting test statistic, image033q, has a Student's t-distribution with image032q degrees of freedom.

 

 

Hypotheses

 

The null hypothesis takes the form image008q, with the following alternative hypotheses:

 

§image009q for two-tailed tests,
§image010q for left-tailed tests, and
§image011q for right-tailed tests.

 

Refer to Alternative Hypothesis for additional information of this subject.

 

Output Formats

 

Two-Sample z-Test for Means (Known Variances)

 

Two-Sample:

<The Two-Sample Number>

 

Sample:

1

2

Observations:

<Observations in Sample 1>

<Observations in Sample 2>

Hypothetical Difference:

<The Hypothetical Difference>

 

Significance Level:

<The Significance Level>

 

Mean:

<The Mean of Sample 1>

<The Mean of Sample 2>

Population Variance:

<The Population Variance>

 

z:

<z>

 

One-Tailed P(|z|):

<The One-Tailed P-Value of |z| >

 

One-Tailed z Critical (+/-):

<The One-Tailed Critical Point>

 

Left-Tailed Test:

"[Do not ]Reject Ho"

 

Right-Tailed Test:

"[Do not ]Reject Ho"

 

Two-Tailed 2x P(|z|):

<The Two-Tailed P-Value of |z|, doubled>

 

Two-Tailed z Critical (+/-):

<The Two-Tailed Critical Point>

 

Two-Tailed Test:

"[Do not ]Reject Ho"

 

       

 

Two-Sample z-Test for Means (Unknown Variances)

 

Two-Sample:

<The Two-Sample Number>

 

Sample:

1

2

Observations:

<Observations in Sample 1>

<Observations in Sample 2>

Hypothetical Difference:

<The Hypothetical Difference>

 

Significance Level:

<The Significance Level>

 

Mean:

<The Mean of Sample 1>

<The Mean of Sample 2>

Sample Variance:

<The Variance of Sample 1>

<The Variance of Sample 2>

z:

<z>

 

One-Tailed P(|z|):

<The One-Tailed P-Value of |z| >

 

One-Tailed z Critical (+/-):

<The One-Tailed Critical Point>

 

Left-Tailed Test:

"[Do not ]Reject Ho"

 

Right-Tailed Test:

"[Do not ]Reject Ho"

 

Two-Tailed 2x P(|z|):

<The Two-Tailed P-Value of |z|, doubled>

 

Two-Tailed z Critical (+/-):

<The Two-Tailed Critical Point>

 

Two-Tailed Test:

"[Do not ]Reject Ho"

 

       

 

Two-Sample t-Test (Pooled) for Means

 

Two-Sample:

<The Two-Sample Number>

 

Sample:

1

2

Observations:

<Observations in Sample 1>

<Observations in Sample 2>

Hypothetical Difference:

<The Hypothetical Difference>

 

Significance Level:

<The Significance Level>

 

Mean:

<The Mean of Sample 1>

<The Mean of Sample 2>

Sample Variance:

<The Variance of Sample 1>

<The Variance of Sample 2>

Pooled Variance:

<The Pooled Variance>

 

t:

<t>

 

Degrees of Freedom:

<Degrees of Freedom>

 

One-Tailed P(|t|):

<The One-Tailed P-Value of |t| >

 

One-Tailed t Critical (+/-):

<The One-Tailed Critical Point>

 

Left-Tailed Test:

"[Do not ]Reject Ho"

 

Right-Tailed Test:

"[Do not ]Reject Ho"

 

Two-Tailed 2x P(|t|):

<The Two-Tailed P-Value of |t|, doubled>

 

Two-Tailed t Critical (+/-):

<The Two-Tailed Critical Point>

 

Two-Tailed Test:

"[Do not ]Reject Ho"

 

       

 

Two-Sample t-Test (Unpooled) for Means

 

Two-Sample:

<The Two-Sample Number>

 

Sample:

1

2

Observations:

<Observations in Sample 1>

<Observations in Sample 2>

Hypothetical Difference:

<The Hypothetical Difference>

 

Significance Level:

<The Significance Level>

 

Mean:

<The Mean of Sample 1>

<The Mean of Sample 2>

Sample Variance:

<The Variance of Sample 1>

<The Variance of Sample 2>

t:

<t>

 

Degrees of Freedom:

<Degrees of Freedom>

 

One-Tailed P(|t|):

<The One-Tailed P-Value of |t| >

 

One-Tailed t Critical (+/-):

<The One-Tailed Critical Point>

 

Left-Tailed Test:

"[Do not ]Reject Ho"

 

Right-Tailed Test:

"[Do not ]Reject Ho"

 

Two-Tailed 2x P(|t|):

<The Two-Tailed P-Value of |t|, doubled>

 

Two-Tailed t Critical (+/-):

<The Two-Tailed Critical Point>

 

Two-Tailed Test:

"[Do not ]Reject Ho"

 

 

Two-Sample t-Test (Paired) for Means        

 

Two-Sample:

<The Two-Sample Number>

 

Sample:

1

2

Observations:

<Observations in Sample 1>

<Observations in Sample 2>

Hypothetical Difference:

<The Hypothetical Difference>

 

Significance Level:

<The Significance Level>

 

Mean:

<The Mean of Sample 1>

<The Mean of Sample 2>

Sample Variance:

<The Variance of Sample 1>

<The Variance of Sample 2>

Differences Mean:

<The Mean of the Paired Differences>

 

Differences Variance:

<The Variance of the Paired Differences>

 

Pearson's Correlation:

<Pearson's Correlation>

 

t:

<t>

 

Degrees of Freedom:

<Degrees of Freedom>

 

One-Tailed P(|t|):

<The One-Tailed P-Value of |t| >

 

One-Tailed t Critical (+/-):

<The One-Tailed Critical Point>

 

Left-Tailed Test:

"[Do not ]Reject Ho"

 

Right-Tailed Test:

"[Do not ]Reject Ho"

 

Two-Tailed 2x P(|t|):

<The Two-Tailed P-Value of |t|, doubled>

 

Two-Tailed t Critical (+/-):

<The Two-Tailed Critical Point>

 

Two-Tailed Test:

"[Do not ]Reject Ho"