Home Back

2 Sample Z Test Calculator

Two-Sample Z-Test Formula:

\[ Z = \frac{\bar{x}_1 - \bar{x}_2}{\sqrt{\frac{\sigma_1^2}{n_1} + \frac{\sigma_2^2}{n_2}}} \]

Unit Converter ▲

Unit Converter ▼

From: To:

1. What is the Two-Sample Z-Test?

The two-sample z-test is a statistical method used to determine whether two population means are significantly different when the standard deviations are known and sample sizes are large (typically n > 30). It's commonly used in hypothesis testing to compare two independent samples.

2. How Does the Calculator Work?

The calculator uses the two-sample z-test formula:

\[ Z = \frac{\bar{x}_1 - \bar{x}_2}{\sqrt{\frac{\sigma_1^2}{n_1} + \frac{\sigma_2^2}{n_2}}} \]

Where:

Explanation: The numerator measures the difference between sample means, while the denominator calculates the standard error of this difference.

3. Interpretation of Results

Details: The calculated Z-score can be compared to critical values from the standard normal distribution. Typically:

4. Using the Calculator

Tips: Enter the means, standard deviations, and sample sizes for both groups. All standard deviations must be positive and sample sizes must be at least 1.

5. Frequently Asked Questions (FAQ)

Q1: When should I use a z-test vs t-test?
A: Use z-test when population standard deviations are known or sample sizes are large (n > 30). Use t-test for small samples with unknown population standard deviations.

Q2: What are the assumptions of the z-test?
A: The test assumes independent samples, normally distributed populations (or large samples), and known population standard deviations.

Q3: Can I use this for paired samples?
A: No, this calculator is for independent samples. For paired samples, use a paired t-test.

Q4: How do I interpret a negative Z-score?
A: A negative Z-score indicates that the first sample mean is lower than the second sample mean.

Q5: What if my sample sizes are unequal?
A: The z-test can handle unequal sample sizes, as the formula accounts for different n values.

2 Sample Z Test Calculator© - All Rights Reserved 2025