If the sample size is large, use Z Scores from the Standard Normal Distribution.
Return the upper confidence bound of a one-tailed confidence interval.
Return the lower confidence bound of a one-tailed confidence interval.
Return both bounds of a two-tailed confidence interval.
Otherwise, use Student's t distribution. Return the upper confidence bound of a one-tailed confidence interval.
Return the lower confidence bound of a one-tailed confidence interval.
Return both bounds of a two-tailed confidence interval.
CI on the Mean
The Confidence Interval on the Mean uses the sample mean and sample standard deviation as estimates of the population parameters. When the number of observations
n
is small (≤ 30), the Student's t Distribution is used; when large, Z Scores from the Standard Normal Distribution are used.mctad.confidenceIntervalOnTheMean()
returns an Array of lower, upper values for the(1 - α/2)
interval or a Number for the lower or upper(1 - α)
boundary.Assumptions
Given a random sample of
n
observations,x_bar
is the sample mean,s
is the sample standard deviation, and 0.0 <α
< 1.0. By default, the confidence interval is two-tailed; this may be changed by specifyingtype
as either 'l' for lower, or 'u' for upper. Any other value fortype
generates a two-tailed confidence interval.Use
mctad.confidenceIntervalOnTheMean(x_bar, s, n, α, 'u')
Inline Comments