Inference for Means: Comparing Two Independent Samples

(To use this page, your browser must recognize JavaScript.)

Choose which calculation you desire, enter the relevant population values for mu1 (mean of population 1), mu2 (mean of population 2), and sigma (common standard deviation) and, if calculating power, a sample size (assumed the same for each sample). You may also modify α (type I error rate) and the power, if relevant. After making your entries, hit the calculate button at the bottom.

  • Calculate Sample Size (for specified Power)
  • Calculate Power (for specified Sample Size)
  • Enter a value for mu1:
    Enter a value for mu2:
    Enter a value for sigma:
  • 1 Sided Test
  • 2 Sided Test
  • Enter a value for α (default is .05):
    Enter a value for desired power (default is .80):
    The sample size (for each sample separately) is:

    Reference: The calculations are the customary ones based on normal distributions. See for example Hypothesis Testing: Two-Sample Inference - Estimation of Sample Size and Power for Comparing Two Means in Bernard Rosner's Fundamentals of Biostatistics.

    Rollin Brant
    Email me at: