Skip to main content
Statistics LibreTexts

10.20: Estimating a Population Mean (3 of 3)

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

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

    \( \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{\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

    • Construct a confidence interval to estimate a population mean when conditions are met. Interpret the confidence interval in context.
    • Adjust the margin of error by making changes to the confidence level or sample size.

    Structure of a Confidence Interval

    Let’s take a closer look at the parts of the confidence interval. Remember that this is a confidence interval for a population mean. We use this formula when the population standard deviation is unknown.

    Sample mean and center of interval = Critical T-value * Standard Error

    Let’s remind ourselves how the confidence interval formula relates to the graph of the confidence interval on a number line.

    The confidence interval shown below is a 95% confidence interval for a sample of size n = 25 (so df = 24), with sample mean \overline{x} = 9 and sample standard deviation of s = 3. The critical T-value for a 95% confidence interval with a df = 24 is 2.064.

    \begin{array}{l}\mathrm{Standard}\text{}\mathrm{error}\text{}\mathrm{is}\text{}3\text{}&sol;\sqrt{25}\text{}=\text{}0.6\\ \mathrm{Margin}\text{}\mathrm{of}\text{}\mathrm{error}\text{}(\mathrm{ME})\text{}\mathrm{is}\text{}2.064(3)\text{}&sol;\text{}\sqrt{25}\text{}\approx \text{}1.24\end{array}

    The confidence interval is 9 ± 1.24. We are 95% confident that µ lies between 7.76 and 10.24.

    A number line. Highlighted is the sample mean - ME and the sample mean + ME, with the sample mean of 9 marked. The width of the interval is 2 * ME.


    • The sample mean (9 in this example) is at the center of the interval.
    • The margin of error (labeled ME and equal to 1.24 in this example) is the distance that the interval extends to the left and right of the sample mean.
    • The interval width is the length of the entire interval on the number line. The interval width is always twice the margin of error.

    Let’s quickly review how the precision of a confidence interval relates to the margin of error:

    • An interval gives a more precise estimate when the interval is narrower. In other words, the margin of error is smaller.
    • An interval gives a less precise estimate when the interval is wider. In other words, the margin of error is larger.

    We know that a higher confidence level gives a larger margin of error, so confidence level is also related to precision.

    • Increasing the confidence in our estimate makes the confidence interval wider and therefore less precise.
    • Decreasing the confidence in our estimate makes the confidence interval narrower, and therefore more precise.

    Confidence interval estimates are useful when they have the right balance of confidence and precision. Typical confidence levels used in practice are 90%, 95%, and 99%. When we need to be really sure about our estimates, such as in life-and-death situations, we choose a 99% confidence level. So if nothing else changes, we settle for less precise estimates when we need a high level of confidence.

    In our discussion about the structure of confidence intervals, we said choosing a higher level of confidence means that we sacrifice some precision. This is true only if nothing else changes. But there is one way to keep a high level of confidence without sacrificing precision: Increase the sample size. We investigate the impact of sample size on the confidence interval next.


    Cable Strength Revisited


    Recall the engineers who are trying to determine the breaking weight of a cable. In that example, we had a random sample of 45 cables with a mean breaking weight of 768.2 lb and a standard deviation of 15.1 lb. From that sample we computed a 95% confidence interval for the mean breaking weight of all such cables. Here are the important numbers we found from that calculation on the previous page:

    \begin{array}{l}\mathrm{standard}\text{}\mathrm{error}:\text{}s\text{}&sol;\sqrt{n}\text{}=\text{}15.1\text{}&sol;\sqrt{45}\text{}\approx \text{}2.25\\ \mathrm{critical}\text{}\text{T-value}:\text{}{T}_{c}\text{}=\text{}2.015\text{}(\mathrm{we}\text{}\mathrm{found}\text{}\mathrm{this}\text{}\mathrm{using}\text{}\mathrm{the}\text{}\mathrm{simulation})\\ \mathrm{margin}\text{}\mathrm{of}\text{}\mathrm{error}:\text{}{T}_{c}\text{}⋅\text{}s\text{}&sol;\sqrt{n}\text{}=\text{}2.015(2.25)\text{}=\text{}4.53\\ \mathrm{confidence}\text{}\mathrm{interval}:\text{}768.2\text{}&PlusMinus;\text{}4.53\text{}\mathrm{or}\text{}(763.67,772.73)\end{array}

    Now let’s increase the sample size and investigate the impact on the confidence interval. We calculate the confidence interval for a larger sample of 101 cables (n = 101).

    Sample size affects our calculations in two ways:

    • The sample size (n) appears in our formula for standard error.
    • The critical T-value depends on degrees of freedom, and df = n – 1.

    Finding the standard error:

    We approximate the standard error of all sample means as follows:

    s\text{}&sol;\sqrt{n}\text{}=\text{}15.1\text{}&sol;\text{}\sqrt{101}\text{}\approx \text{}1.50

    Note: The standard error is smaller when the sample size is larger. We were expecting this because we know there is less variability in sample means when the samples are larger.

    Finding the critical T-value:

    To find the critical T-value, we use the simulation. We set the df to 100 and the central probability to 0.95. We see that the critical T-value is 1.984.

    A bell curve centered at 0 with the center 95% shaded in green underneath it.

    Note: Increasing the sample size decreased the critical T-value (the T-value went from 2.015 to 1.984 when we increased the sample size). You might also notice that both of the critical T-values for 95% confidence are larger than the critical Z-value for 95% confidence, which is approximately 1.96. This makes sense because the T-models are wider than the the standard normal curve.

    Finding the margin of error.

    Here is the margin of error calculation:


    Finding the confidence interval.

    Here is the confidence interval calculation:

    \begin{array}{l}\overline{x}\text{}&PlusMinus;\text{}\mathrm{margin}\text{}\mathrm{of}\text{}\mathrm{error}\\ \overline{x}\text{}&PlusMinus;\text{}{T}_{c}\text{}⋅\text{}\frac{s}{\sqrt{n}}\\ 768.2\text{}&PlusMinus;\text{}2.98\\ (765.22,771.18)\end{array}

    Side-by-side comparison:

    Let’s take a look at these two intervals to study the effects of changing the sample size.

    Table showing: sample size, standard error, critical t-value, margin of error, and confidence interval. For a sample size where n=45: Standard error is 2.25, critical t-value is 2.015, margin of error is 4.53, and confidence interval is (763.67, 772.73). For a sample size where n=45: Standard error is 1.50, critical t-value is 1.984, margin of error is 2.98, and confidence interval is (765.22, 771.18).

    Increasing the sample size had the following effects on the confidence interval estimate:

    • Decreased standard error
    • Decreased critical T-value
    • Decreased margin of error and hence decreased the interval width
    • Improved interval precision


    In the real world, increasing the sample size is not always possible. Sometimes collecting a sample is very expensive. If the study has budgetary constraints, which is usually the case, selecting a larger sample may be too expensive.

    Try It

    Appropriate Conclusions

    For each of the following situations, decide if it is valid or invalid to use a confidence interval to estimate the population mean.

    Let’s Summarize

    • A confidence interval approximates a population mean by giving us a range of values that likely contains the population mean, μ. The general form of the confidence interval is \stackrel{¯}{x}\text{}&PlusMinus;\text{}\mathrm{margin}\text{}\mathrm{of}\text{}\mathrm{error}.
    • To say that we are “95% confident that the population mean falls within our confidence interval” really means that “about 95% of all confidence intervals computed in this way will capture the true population mean.”
    • We can use a sample mean to build a confidence interval as an estimate for μ. There are two possible cases:
      • Suppose the population standard deviation, σ, is known. We check the conditions for use of the normal model. Conditions: The variable must be normally distributed in the population, or the sample size is large enough (n &gt; 30). In this case, the confidence interval has the form \stackrel{¯}{x}\text{}&PlusMinus;\text{}{Z}_{c}\text{}⋅\text{}σ\text{}&sol;\text{}\sqrt{n}.
      • Suppose the population standard deviation, σ, is not known. Then we use the sample standard deviation, s, as an approximation for σ. We check the conditions for use of the T-model. Conditions are the same: The variable must be normally distributed in the population, or the sample size is large enough (n &gt; 30). In this case, the confidence interval has the form \stackrel{¯}{x}\text{}&PlusMinus;\text{}{T}_{c}\text{}⋅\text{}s\text{}&sol;\text{}\sqrt{n} .When using the T-model to find the critical value, we need to select an appropriate number of degrees of freedom (df). The number of degrees of freedom is 1 less than the sample size (df = n – 1).
    • As we have seen with other confidence intervals, the width of a confidence interval is twice the margin of error. The smaller the margin of error, the more narrow the confidence interval and the more precise the estimate of µ.

    Contributors and Attributions

    CC licensed content, Shared previously

    10.20: Estimating a Population Mean (3 of 3) is shared under a not declared license and was authored, remixed, and/or curated by LibreTexts.

    • Was this article helpful?