Independent Two-sample z-test: Hypothesis Testing for Difference of Means, Study notes of Experimental Design

The independent two-sample z-test, a statistical hypothesis test used to determine if there is a significant difference between the means of two independent groups. The assumptions, inputs, and steps for performing the test, as well as a sample problem and its solution.

Typology: Study notes

2021/2022

Uploaded on 09/27/2022

seymour
seymour 🇬🇧

4.8

(16)

216 documents

1 / 3

Toggle sidebar

This page cannot be seen from the preview

Don't miss anything!

bg1
Independent Two-sample z-test
1. Assumptions
Experimental Design: The sample forms two independent treatment
groups.
Null Hypothesis: The population means of the two treatment groups
are not significantly different from each other.
Population Distribution: Arbitrary distribution within each treat-
ment group.
Sample Size: Size of each treatment group is equal to or greater than
30.
2. Inputs for independent two-sample z-test
Sample sizes of treatment groups: n1and n2
Sample means of treatment groups: ¯x1and ¯x2
Standard deviations of treatment groups: s1and s2
Standard errors of treatment group means:
SE1=s1
n1
and SE2=s2
n2
Standard error of the differences: sdiff =pSE2
1+ SE2
2
Null hypothesis: µ1=µ2
The level of the test: α
3. The Five Steps for Performing the Test of Hypothesis
1. State null and alternative hypotheses:
H0:µ1=µ2, H1:µ16=µ2
1
pf3

Partial preview of the text

Download Independent Two-sample z-test: Hypothesis Testing for Difference of Means and more Study notes Experimental Design in PDF only on Docsity!

Independent Two-sample z-test

1. Assumptions

  • Experimental Design: The sample forms two independent treatment groups.
  • Null Hypothesis: The population means of the two treatment groups are not significantly different from each other.
  • Population Distribution: Arbitrary distribution within each treat- ment group.
  • Sample Size: Size of each treatment group is equal to or greater than

2. Inputs for independent two-sample z-test

  • Sample sizes of treatment groups: n 1 and n 2
  • Sample means of treatment groups: ¯x 1 and ¯x 2
  • Standard deviations of treatment groups: s 1 and s 2
  • Standard errors of treatment group means:

SE 1 =

s 1 √ n 1

and SE 2 =

s 2 √ n 2

  • Standard error of the differences: sdiff =

SE^21 + SE^22

  • Null hypothesis: μ 1 = μ 2
  • The level of the test: α

3. The Five Steps for Performing the Test of Hypothesis

  1. State null and alternative hypotheses:

H 0 : μ 1 = μ 2 , H 1 : μ 1 6 = μ 2

  1. Compute test statistic:

z =

(¯x 2 − x¯ 1 ) − (μ 2 − μ 1 ) SEdiff

assuming the null hypothesis.

  1. Compute 100(1 − α)% confidence interval I for z.
  2. If z ∈ I, accept H 0 ; if z /∈ I, reject H 1 and accept H 0.
  3. Compute p-value.

4. Discussion

Since we are assuming that n ≥ 30, the sample standard deviations s 1 and s 1 are close approximations to the population standard deviations σ 1 and σ 2 , so we will assume that the population standard deviations are known and equal to the respective sample standard deviations. Furthermore

E(¯x 2 − x¯ 1 ) = E(¯x 2 ) − E(¯x 1 ) = μ 2 − μ 1.

Also, if the two treatment groups are independent,

Var(¯x 2 − ¯x 1 ) = 1^2 · Var(¯x 2 ) + (−1)^2 Var(¯x 1 ) =

σ^22 n 1

σ^21 n 2

the standard deviation of ¯x 2 − x¯ 1 is

SEdiff =

Var(¯x 2 − x¯ 1 ) =

σ 22 n 1

σ 12 n 2

Finally, because the expected value and variance of

z =

(¯x 2 − x¯ 1 ) − (μ 2 − μ 1 ) SE^2 diff

are μ 2 − μ 1 and SE^2 diff, respectively, E(z) = 0 and σz = 1. By the central limit theorem, z ∼ N (0, 1), so we can use the standard normal table to find confidence intervals and p-values for z.