Lesson 6: Sample Size and Power - Part a

Overview Section

The underlying theme of sample size calculation in all clinical trials is precision. ; Validity and unbiasedness do not necessarily relate to sample size.

Usually, sample size is calculated with respect to two circumstances. The first involves precision for an estimator, e.g., requiring a 95% confidence interval for the population mean to be within ± \(\delta\) units. The second involves statistical power for hypothesis testing, e.g., requiring 0.80 or 0.90 statistical power \(\left(1- \beta\right)\) for a hypothesis test when the significance level (\(\alpha\)) is 0.05 and the effect size (the clinically meaningful effect) is \(\Delta\) units.

The formulae for many sample size calculations will involve percentiles from the standard normal distribution. The graph below illustrates the 2.5th percentile and the 97.5th percentile.

Normal Distribution Plot

Fig. 1 Standard normal distribution centered on zero.

For a two-sided hypothesis test with significance level α and statistical power \(1 - \beta\), the percentiles of interest are \(z_{(1-\alpha/2)}\) and \(z_{(1 - \beta)}\).

For a one-sided hypothesis test, \(z_{(1 - \alpha)}\) is used instead. Usual choices of \(\alpha\) are 0.05 and 0.01, and usual choices of \(\beta\) are 0.20 and 0.10, so the percentiles of interest usually are:

\( z_{0.995} = 2.58, z_{0.99} = 2.33, z_{0.975} = 1.96, z_{0.95} = 1.65, z_{0.90} = 1.28, z_{0.80} = 0.84 \).

In SAS, the PROBIT function is available to generate percentiles from the standard normal distribution function, e.g., Z = PROBIT(0.99) yields a value of 2.33 for Z. So, if you ever need to generate z-values you can get SAS to do this for you.

It is important to realize that sample size calculations are approximations. The assumptions that are made for the sample size calculation, e.g., the standard deviation of an outcome variable or the proportion of patients who succeed with placebo, may not hold exactly.

Also, we may base the sample size calculation on a t statistic for a hypothesis test, which assumes an exact normal distribution of the outcome variable when it only may be approximately normal.

In addition, there will be loss-to-follow-up, so not all of the subjects who initiate the study will provide complete data. .Some will deviate from the protocol, including not taking the assigned treatment or adding on a treatment. Sample size calculations and recruitment of subjects should reflect these anticipated realities.


Upon completion of this lesson, you should be able to:

  • Identify studies for which sample size is an important issue.
  • Estimate the sample size required for a confidence interval for p for given \(\delta\) and \(\alpha\), using normal approximation and Fisher's exact methods.
  • Estimate the sample size required for a confidence interval for \(\mu\) for given \(\delta\) and \(\alpha\), using normal approximation when the sample size is relatively large.
  • Estimate the sample size required for a test of \(H_0 \colon \mu_{1} = \mu_{2}\) to have \(\left(1-\beta\right)\%\) power for given \(\delta\) and \(\alpha\), using normal approximation, with equal or unequal allocation.
  • Estimate the sample size required for a test of \(H_0 \colon p_{1} = p_{2}\) for given \(\delta\) and \(\alpha\) and \(\beta\), using normal approximation and Fisher's exact methods.
  • Use a SAS program to estimate the number of events required for a logrank comparison of two hazard functions to have \(\left(1-\beta\right)\%\) power with given \(\alpha\)
  • Use Poisson probability methods to determine the cohort size required to have a certain probability of detecting a rare event that occurs at a rate = ξ.
  • Adjust sample size requirements to account for multiple comparisons and the anticipated withdrawal rate.

Reference: Section

Friedman, Furberg, DeMets, Reboussin and Granger. (2015) Sample size. In: FFDRG. Fundamentals of Clinical Trials. 5th ed. Switzerland: Springer.

Piantadosi Steven. (2005) Sample size and power. In: Piantadosi Steven. Clinical Trials: A Methodologic Perspective. 2nd ed. Hoboken, NJ: John Wiley and Sons, Inc.

Wittes, Janet. (2002) "Sample Size Calculations for Randomized Controlled Trials." Epidemiologic Reviews. Vol. 24. No 1. pp. 39-53.