Wolfram Computation Meets Knowledge

Sample Size for Estimating a Population Mean

Sample size determination is the act of choosing the number of observations or replicates to include in a statistical sample.

The sample size equals twice the error function squared of the confidence level times the population standard deviation squared divided by the margin of error squared.

Formula

QuantityVariable["n", "Unitless"] == (2*InverseErf[QuantityVariable["c", "Unitless"]]^2*QuantityVariable["σ", "Unitless"]^2)/QuantityVariable["M", "Unitless"]^2

symbol description physical quantity
n sample size "Unitless"
c confidence level "Unitless"
M margin of error "Unitless"
σ population standard deviation "Unitless"

Forms

Examples

Get the resource:

In[1]:=
ResourceObject["Sample Size for Estimating a Population Mean"]
Out[1]=

Get the formula:

In[2]:=
FormulaData[
 ResourceObject["Sample Size for Estimating a Population Mean"]]
Out[2]=

Use some values:

In[3]:=
FormulaData[
 ResourceObject[
  "Sample Size for Estimating a Population Mean"], {QuantityVariable[
   "n","Unitless"] -> 97, QuantityVariable["c","Unitless"] -> 0.95`}]
Out[3]=

Publisher Information