This Two-Sample Z-Test Calculator helps you compare means between two independent groups when both population standard deviations are known. For example, you could compare the average output between two production lines, given known variability in each line's process. The calculator performs comprehensive statistical analysis including descriptive statistics and hypothesis testing. It also generates publication-ready APA format reports. To learn about the data format required and test this calculator, click here to populate the sample data.
Calculator
1. Load Your Data
2. Select Columns & Options
Learn More
Two-Sample Z-Test
Definition
Two-Sample Z-Test is a statistical test used to determine whether the means of two populations are significantly different from each other when both population standard deviations are known. It's particularly useful for large samples and when working with known population parameters.
Formula
Test Statistic:
Where:
- = sample means
- = population means
- = known population standard deviations
- = sample sizes
Confidence Interval for Mean Difference:
Key Assumptions
Practical Example
Comparing the efficiency of two production lines with known process variations:
Step 1: State the Data
- Line 1: = 50, = 95.2 units/hour, = 4.0
- Line 2: = 45, = 93.8 units/hour, = 3.8
Step 2: State Hypotheses
- (no difference)
- (there is a difference)
Step 3: Calculate Test Statistic
Z-statistic:
Step 4: Calculate P-value
For two-tailed test:
Step 5: Calculate Confidence Interval
Step 6: Draw Conclusion
Critical value at 5% significance level:
Since and , we fail to reject . There is no significant difference between the two production lines.
Effect Size
Cohen's d for two-sample z-test:
Interpretation guidelines:
- Small effect:
- Medium effect:
- Large effect:
Power Analysis
Required sample size per group for equal sample sizes:
Where:
- = significance level
- = probability of Type II error
- = minimum detectable difference
Decision Rules
Reject if:
- Two-sided test:
- Left-tailed test:
- Right-tailed test:
- Or if
Reporting Results
Standard format:
Verification
Related Calculators
Help us improve
Found an error or have a suggestion? Let us know!