Skip to main content
Statistics LibreTexts

7.2: Confidence Interval for the Mean Using z-values

  • Page ID
    46103
  • \( \newcommand{\vecs}[1]{\overset { \scriptstyle \rightharpoonup} {\mathbf{#1}} } \)

    \( \newcommand{\vecd}[1]{\overset{-\!-\!\rightharpoonup}{\vphantom{a}\smash {#1}}} \)

    \( \newcommand{\dsum}{\displaystyle\sum\limits} \)

    \( \newcommand{\dint}{\displaystyle\int\limits} \)

    \( \newcommand{\dlim}{\displaystyle\lim\limits} \)

    \( \newcommand{\id}{\mathrm{id}}\) \( \newcommand{\Span}{\mathrm{span}}\)

    ( \newcommand{\kernel}{\mathrm{null}\,}\) \( \newcommand{\range}{\mathrm{range}\,}\)

    \( \newcommand{\RealPart}{\mathrm{Re}}\) \( \newcommand{\ImaginaryPart}{\mathrm{Im}}\)

    \( \newcommand{\Argument}{\mathrm{Arg}}\) \( \newcommand{\norm}[1]{\| #1 \|}\)

    \( \newcommand{\inner}[2]{\langle #1, #2 \rangle}\)

    \( \newcommand{\Span}{\mathrm{span}}\)

    \( \newcommand{\id}{\mathrm{id}}\)

    \( \newcommand{\Span}{\mathrm{span}}\)

    \( \newcommand{\kernel}{\mathrm{null}\,}\)

    \( \newcommand{\range}{\mathrm{range}\,}\)

    \( \newcommand{\RealPart}{\mathrm{Re}}\)

    \( \newcommand{\ImaginaryPart}{\mathrm{Im}}\)

    \( \newcommand{\Argument}{\mathrm{Arg}}\)

    \( \newcommand{\norm}[1]{\| #1 \|}\)

    \( \newcommand{\inner}[2]{\langle #1, #2 \rangle}\)

    \( \newcommand{\Span}{\mathrm{span}}\) \( \newcommand{\AA}{\unicode[.8,0]{x212B}}\)

    \( \newcommand{\vectorA}[1]{\vec{#1}}      % arrow\)

    \( \newcommand{\vectorAt}[1]{\vec{\text{#1}}}      % arrow\)

    \( \newcommand{\vectorB}[1]{\overset { \scriptstyle \rightharpoonup} {\mathbf{#1}} } \)

    \( \newcommand{\vectorC}[1]{\textbf{#1}} \)

    \( \newcommand{\vectorD}[1]{\overrightarrow{#1}} \)

    \( \newcommand{\vectorDt}[1]{\overrightarrow{\text{#1}}} \)

    \( \newcommand{\vectE}[1]{\overset{-\!-\!\rightharpoonup}{\vphantom{a}\smash{\mathbf {#1}}}} \)

    \( \newcommand{\vecs}[1]{\overset { \scriptstyle \rightharpoonup} {\mathbf{#1}} } \)

    \(\newcommand{\longvect}{\overrightarrow}\)

    \( \newcommand{\vecd}[1]{\overset{-\!-\!\rightharpoonup}{\vphantom{a}\smash {#1}}} \)

    \(\newcommand{\avec}{\mathbf a}\) \(\newcommand{\bvec}{\mathbf b}\) \(\newcommand{\cvec}{\mathbf c}\) \(\newcommand{\dvec}{\mathbf d}\) \(\newcommand{\dtil}{\widetilde{\mathbf d}}\) \(\newcommand{\evec}{\mathbf e}\) \(\newcommand{\fvec}{\mathbf f}\) \(\newcommand{\nvec}{\mathbf n}\) \(\newcommand{\pvec}{\mathbf p}\) \(\newcommand{\qvec}{\mathbf q}\) \(\newcommand{\svec}{\mathbf s}\) \(\newcommand{\tvec}{\mathbf t}\) \(\newcommand{\uvec}{\mathbf u}\) \(\newcommand{\vvec}{\mathbf v}\) \(\newcommand{\wvec}{\mathbf w}\) \(\newcommand{\xvec}{\mathbf x}\) \(\newcommand{\yvec}{\mathbf y}\) \(\newcommand{\zvec}{\mathbf z}\) \(\newcommand{\rvec}{\mathbf r}\) \(\newcommand{\mvec}{\mathbf m}\) \(\newcommand{\zerovec}{\mathbf 0}\) \(\newcommand{\onevec}{\mathbf 1}\) \(\newcommand{\real}{\mathbb R}\) \(\newcommand{\twovec}[2]{\left[\begin{array}{r}#1 \\ #2 \end{array}\right]}\) \(\newcommand{\ctwovec}[2]{\left[\begin{array}{c}#1 \\ #2 \end{array}\right]}\) \(\newcommand{\threevec}[3]{\left[\begin{array}{r}#1 \\ #2 \\ #3 \end{array}\right]}\) \(\newcommand{\cthreevec}[3]{\left[\begin{array}{c}#1 \\ #2 \\ #3 \end{array}\right]}\) \(\newcommand{\fourvec}[4]{\left[\begin{array}{r}#1 \\ #2 \\ #3 \\ #4 \end{array}\right]}\) \(\newcommand{\cfourvec}[4]{\left[\begin{array}{c}#1 \\ #2 \\ #3 \\ #4 \end{array}\right]}\) \(\newcommand{\fivevec}[5]{\left[\begin{array}{r}#1 \\ #2 \\ #3 \\ #4 \\ #5 \\ \end{array}\right]}\) \(\newcommand{\cfivevec}[5]{\left[\begin{array}{c}#1 \\ #2 \\ #3 \\ #4 \\ #5 \\ \end{array}\right]}\) \(\newcommand{\mattwo}[4]{\left[\begin{array}{rr}#1 \amp #2 \\ #3 \amp #4 \\ \end{array}\right]}\) \(\newcommand{\laspan}[1]{\text{Span}\{#1\}}\) \(\newcommand{\bcal}{\cal B}\) \(\newcommand{\ccal}{\cal C}\) \(\newcommand{\scal}{\cal S}\) \(\newcommand{\wcal}{\cal W}\) \(\newcommand{\ecal}{\cal E}\) \(\newcommand{\coords}[2]{\left\{#1\right\}_{#2}}\) \(\newcommand{\gray}[1]{\color{gray}{#1}}\) \(\newcommand{\lgray}[1]{\color{lightgray}{#1}}\) \(\newcommand{\rank}{\operatorname{rank}}\) \(\newcommand{\row}{\text{Row}}\) \(\newcommand{\col}{\text{Col}}\) \(\renewcommand{\row}{\text{Row}}\) \(\newcommand{\nul}{\text{Nul}}\) \(\newcommand{\var}{\text{Var}}\) \(\newcommand{\corr}{\text{corr}}\) \(\newcommand{\len}[1]{\left|#1\right|}\) \(\newcommand{\bbar}{\overline{\bvec}}\) \(\newcommand{\bhat}{\widehat{\bvec}}\) \(\newcommand{\bperp}{\bvec^\perp}\) \(\newcommand{\xhat}{\widehat{\xvec}}\) \(\newcommand{\vhat}{\widehat{\vvec}}\) \(\newcommand{\uhat}{\widehat{\uvec}}\) \(\newcommand{\what}{\widehat{\wvec}}\) \(\newcommand{\Sighat}{\widehat{\Sigma}}\) \(\newcommand{\lt}{<}\) \(\newcommand{\gt}{>}\) \(\newcommand{\amp}{&}\) \(\definecolor{fillinmathshade}{gray}{0.9}\)
    Learning Objectives
    • Compute confidence intervals for the mean using z-values when the population standard deviation is known.
    • Ensure the sample is randomly selected to support valid inference.
    • Estimate the range where the true population mean is likely to lie at a specified confidence level.
    • Determine and meet minimum sample size requirements to ensure accuracy and reliability.

    One of the parameters that can be estimated using a confidence interval is the mean \(\mu\). If the population is normally distributed, the population standard deviation \(\sigma\) is known or \(n\ge30\), then the sampling distribution is normal or approximately normal. Thus, the confidence level will be represented as a middle area under a standard normal distribution, and the confidence interval can be derived as follows.

    1. Construct a standard normal distribution such that the confidence level is the middle area in the distribution.
    Standard normal distribution with critical values.
    Figure \(\PageIndex{1}\): Standard Normal Distribution with Critical Values

    2. The Z-statistic can fall into the range \(Z_\dfrac{\alpha}{2}\) < \(Z\) <\(Z_\dfrac{\alpha}{2}\). Using the central limit theorem, Z-statistic can be rewritten as \(Z_\dfrac{\alpha}{2}\) < \(\dfrac{\overline{X}-\mu}{\dfrac{\sigma}{\sqrt{n}}}\) <\(Z_\dfrac{\alpha}{2}\). The formula can be solved for \(\mu\) using algebra to derive the confidence interval formula.

    Definition: Confidence Interval for \(\mu\) when \(\sigma\) is Known

    \(\overline{X}-Z_\dfrac{\alpha}{2}\left(\dfrac{\sigma}{\sqrt{n}}\right)<\mu<\overline{X}+Z_\dfrac{\alpha}{2}\left(\dfrac{\sigma}{\sqrt{n}}\right)\)

    • \(\overline{X}\) is the sample mean.
    • \(\sigma\) is the population standard deviation.
    • n is the sample size.
    • \(Z_\dfrac{\alpha}{2} \) is the z-value that can be found using the Z-Table and the given confidence level.
    • \(\mu\) is the population mean that is being estimated.

    Examples

    Example \(\PageIndex{1}\)

    A preventative healthcare researcher wishes to estimate the average number of daily steps people take in a Southern California region. The population standard deviation is around 750 steps per day and the distribution is approximately normal. She collects a random sample of 50 people who reside in the region and computes the sample mean, which is 3485 steps per day. Compute a confidence interval for the mean using a confidence level of 98%.

    Solution
    1. List all the given information.
    • \(\overline{X}\) = 3485
    • \(\sigma\) = 750
    • \(n\) = 50
    • \(Z_\dfrac{\alpha}{2} \) = 2.33. See Table A.1 below
    Common critical values for the confidence level.
    Figure \(\PageIndex{2}\): Common Critical Values for the Confidence Level

    2. Compute the confidence interval by plugging in given information into the formula and calculating the endpoints using the order of operations.

    \(\overline{X}-Z_\dfrac{\alpha}{2} \left(\dfrac{\sigma}{\sqrt{n}}\right)<\mu<\overline{X}+Z_\dfrac{\alpha}{2} \left(\dfrac{\sigma}{\sqrt{n}}\right)\)

    \(3485-2.33\cdot\left(\dfrac{750}{\sqrt{50}}\right)<\mu< 3485+2.33\cdot\left(\dfrac{750}{\sqrt{50}}\right)\)

    \(3885 - 247.13<\mu<3885 + 247.13\)

    \(3637.87<\mu<4132.13\)

    Example \(\PageIndex{2}\)

    An educational researcher wishes to estimate the average age of students who attend school in the evenings at a local college. The ages of students are normally distributed and the population standard deviation is 5.2 years. The researcher collected a random sample of 37 students who attend evening classes at the college and determined the sample mean to be 28.8. Use a 95% confidence level to estimate the average age of evening students who attend the college.

    Solution
    1. List all the given information.
    • \(\overline{X}\) = 28.8
    • \(\sigma\) = 5.2
    • \(n\) = 37
    • \(Z_\dfrac{\alpha}{2}\) = 1.96. See Table A.1.

    2. Compute the confidence interval by plugging in given information into the formula and calculating the endpoints using the order of operations.

    \(\overline{X}-Z_\dfrac{\alpha}{2}\left(\dfrac{\sigma}{\sqrt{n}}\right)<\mu<\overline{X}+Z_\dfrac{\alpha}{2}\left(\dfrac{\sigma}{\sqrt{n}}\right)\)

    \(28.8-1.96\cdot\left(\dfrac{5.2}{\sqrt{37}}\right)<\mu< 28.8+1.96\cdot\left(\dfrac{5.2}{\sqrt{37}}\right)\)

    \(28.8 - 1.68<\mu< 28.8 + 1.68\)

    \(27.12 <\mu< 30.48\)

    Example \(\PageIndex{3}\)

    An arborist who works for a large city in Southern California wants to estimate the mean age of Jacaranda trees in the city. The arborist collected a random sample of 40 Jacaranda trees and determined the average age to be 32.3 years. The ages of the Jacaranda trees are normally distributed with a population standard deviation of 6.5 years. Use the TI 83/84 calculator to estimate the mean age of the Jacaranda trees using a confidence level of 90%.

    Solution
    1. Go into the [STAT] menu and use the right arrows to select [TESTS] then choose [7:ZInterval]. Select [STATS] and type in the information shown in ( \(\PageIndex{4}\) ). Finally, select [ CALCULATE] and hit enter.
    Input for confidence interval in TI-84+.
    Figure \(\PageIndex{3}\): Input for Confidence Interval in TI-84+

    2. The output displayed in the TI 83/84 calculator screen should mirror the one displayed in the figure below.

    Calculator output for TI-84+.
    Figure \(\PageIndex{4}\): Calculator Output for TI-84+

    3. The confidence interval for the mean age of Jacaranda trees is built using the endpoints displayed between the parenthesis in the figure above.

    \(30.61 <\mu< 33.99\)

    Minimum Sample Size

    The minimum size needed to construct a confidence interval for the mean \(\mu\) can be derived from the confidence interval formula. The margin of error E represents the range of variability around the estimated value. To find the minimum sample size, set \(E = Z_C\left(\dfrac{\sigma}{\sqrt{n}}\right)\) and solve for \(n\). The formula is presented below.

    Definition: Minimum Sample Size for a Confidence Interval of the Mean

    The minimum sample size needed to compute a confidence interval for the mean is defined using the formula below. Always round the final answer upward to the nearest whole number.

    \(n=\left(\dfrac{Z_\dfrac{\alpha}{2}\cdot\sigma}{E}\right)^2\)

    • \(n\) is the minimum sample size.
    • \(\sigma\) is the population standard deviation.
    • \(E\) is the margin of error.
    • \(Z_\dfrac{\alpha}{2}\) is the z-value that can be found using Table A.1 using the confidence level.

    Example of Minimum Sample Size

    Example \(\PageIndex{4}\)

    An entomologist is studying the life span in years of the flam skipper dragonfly (Libellula saturate). It has been determined that the population standard deviation in years is 0.85 years. The entomologist will use a confidence level of 98% and a margin of error of 0.25 years. Compute the minimum sample size needed for \(n\).

    Solution
    1. List the information.
    • \(\sigma\) =0.85
    • \(E\) =0.25
    • \(Z_ \dfrac{\alpha}{2} \) = 2.33 using table A.1.

    2. Compute \(n\) by plugging information into the formula.

    \(n = \left(\dfrac{Z_\dfrac{\alpha}{2}\cdot\sigma}{E}\right)^2\)

    \(n = \left(\dfrac{2.33\cdot0.85}{0.25}\right)^2\)

    \(n = 62.758\)

    3. Round \(n\) upwards,

    \(n \approx 63\)

    The minimum sample size is 63.


    This page titled 7.2: Confidence Interval for the Mean Using z-values is shared under a CC BY 4.0 license and was authored, remixed, and/or curated by Toros Berberyan, Tracy Nguyen, and Alfie Swan.