You are on page 1of 2

Two-sided Two-sample T-test

The two independent groups to be compared are of equal size "n",


and to be drawn from populations of equal and known variances.
Below, "alpha" is the level of significance and, invariably, equal to 0.05;
similarly, "beta" is the Type II Error whose complement to 1 is the Power.
"Sigma" is the common standard deviation whereas "sigma^2" is its
square, the common variance. "Delta" is the hypothesized difference
between the two groups, whereas "delta^2" is its square.
"z_(1-alpha/2)" and "z_(1-beta)" are the respective tail areas under the
standard normal curve (we assume that the two means are following
the normal distribution, at least approximately).
The analytical form of the formula is shown below as a graph-let in
sky blue at the bottom of the page, whereas its Excel implementation
follows next.

Warning: Enter data into the "light yellow" cells only!


The rest of the spreadsheet is password protected
to prevent altering the implemented formulas.

alpha= 0.05
z_(1-alpha/2)= 1.95996
beta= 0.20 Power=1-beta= 0.80
z_(1-beta)= 0.84162
sigma= 0.04
delta= 0.04

n= 16 per group

2 2
2 σ ( z 1−α / 2 + z 1−β )
n=
Δ2

You might also like