Sample Size Formula

Initializing live version
Download to Desktop

Requires a Wolfram Notebook System

Interact on desktop, mobile and cloud with the free Wolfram Player or other Wolfram Language products.

This Demonstration calculates the sample size (an integer) that produces a sample mean within the given margin of error. For a confidence level of , is the quantile of a standard normal distribution.

Contributed by: David Gurney (March 2011)
Open content licensed under CC BY-NC-SA



The minimum sample size formula can be found in most elementary statistics texts. The formula appears in M. Sullivan, Fundamentals of Statistics, 2nd ed., Upper Saddle Creek, NJ: Pearson Education, Inc., 2008 p. 414.

Feedback (field required)
Email (field required) Name
Occupation Organization
Note: Your message & contact information may be shared with the author of any specific Demonstration for which you give feedback.