Skip to main content
Statistics LibreTexts

7.3: Confidence Interval for the Mean Using t-values

  • Page ID
    46104
  • \( \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{\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 t-values when the population standard deviation is unknown.
    • Use the sample standard deviation to estimate variability.
    • Understand that the t-distribution accounts for additional uncertainty, especially with small sample sizes.
    • Recognize that the t-distribution approaches the normal distribution as sample size increases.

    t-distribution:

    For most confidence intervals, the population standard deviation will not be known. Thus, the distribution used to estimate the population mean will most likely not be normal. The t-distribution will be used instead of the normal distribution when 𝜎 is unknown.

    The t-distribution was discovered by William S. Gosset in 1908. He was a statistician employed by Guinness Brewery who was not allowed to use his name when publishing his discovery. Thus, he used the pseudonym “student”, and his distribution was known as Student’s t- distribution. A graph of the t-distribution is listed below

    Graph of t-distribution.
    Figure \(\PageIndex{1}\): Graph of t-distribution. (Copyright; author via source)
    Key Properties of the t-distribution
    • It is symmetric.
    • The mean is 0.
    • The mean, median, and mode are all equal and located at the center of the distribution.
    • The graph never touches the horizontal axis.
    • The variance is greater than 1.
    • The graph is a family of curves based on the concept of degrees of freedom (d.f. = n - 1).
    • As the sample size n gets larger, the shape of the t-distribution becomes normal.
    Graph of the t-distribution with different degrees of freedom (approaches the normal distribution).
    Figure \(\PageIndex{3}\): Graph of the t-distribution with Different Degrees of Freedom (Approaches the Normal Distribution)

    Confidence Interval for One Population Mean (t-Interval) Formula:

    The confidence interval formula can be found by using a confidence level as the middle area of a t-distribution and then using algebra to solve for \(\mu\) using the corresponding t-values associated with the confidence level. A graph of the confidence level in the t-distribution along with corresponding t-values is presented in the graph below.

    Graph of t-distribution with critical values.
    Figure \(\PageIndex{4}\): Graph of t-distribution with Critical Values.

    The range of values on the horizontal axis leads to the following inequality \(-t_ \dfrac{\alpha}{2} <t<t_ \dfrac{\alpha}{2} \). The value t can be replaced with the following expression \(-t_ \dfrac{\alpha}{2} <\dfrac{\overline{X}-\mu}{\dfrac{s}{\sqrt{n}}}<t_ \dfrac{\alpha}{2} \). Finally solving for \(\mu\) in the center will lead to the confidence interval formula.

    Definition: Confidence Interval for \(\mu\) when \(\sigma\) is unknown (t-values)

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

    • \(\overline{X}\) is the sample mean.
    • s is the sample standard deviation.
    • n is the sample size.
    • \(T_ \dfrac{\alpha}{2} \) is the t-value found in Table A2 using the confidence level and d.f. = n - 1.
    • \(\mu\) is the population mean that is being estimated.

    Examples:

    Example \(\PageIndex{1}\)

    Suppose a researcher wishes to estimate the age of a student at a California community college who passes an elementary statistics class. The researcher collects a sample of 11 random students. The sample mean age is 22.6 and the sample standard deviation is 1.88. The researcher decides to use a confidence level of 95%.

    Solution:

    Step 1) Label the given statistics.

    • \(\overline{X}\) = 22.6 (sample mean)
    • s = 1.88 (sample standard deviation)
    • n = 11 (sample size)
    • Confidence level = 95%

    Step 2) Look up the \(t_\dfrac{\alpha}{2}\) value in Table A.2 using the confidence level and d.f. = n - 1 = 11 - 1 = 10. In Table A.2, go down the first column to 10 degrees of freedom. Then go over to the column headed with 95%. Thus \(t_{\dfrac{\alpha}{2}}=2.228\). (See Example \(\PageIndex{1}\).)

    • \(t_\dfrac{\alpha}{2}\) = 2.228
    Table of critical values for the t-distribution at degrees of freedom of 10.
    Figure \(\PageIndex{4}\): Table of Critical Values for the t-distribution at Degrees of Freedom of 10

    Step 3) Plug the information into the formula and use the order of operations to calculate the two endpoints.

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

    \(22.6-2.228\left(\dfrac{1.88}{\sqrt{11}}\right)<\mu<22.6+2.228\left(\dfrac{1.88}{\sqrt{11}}\right)\)

    \(22.6-1.26<\mu<22.6+1.26\)

    \(21.34<\mu<23.86\)

    Example \(\PageIndex{2}\) confidence interval for the population mean using the formula

    A random sample of 20 IQ scores of famous people was taken information from the website of IQ of Famous People ("IQ of famous," 2013) and then using a random number generator to pick 20 of them. The data are in Example \(\PageIndex{2}\) (this is the same data set that was used in Example \(\PageIndex{2}\)). Find a 98% confidence interval for the average IQ of a famous person.

    158 180 150 137 109
    225 122 138 145 180
    118 118 126 140 165
    150 170 105 154 118
    Table \(\PageIndex{1}\): IQ Scores of Famous People
    1. State the random variable and the parameter in words.
    2. State and check the assumptions for a confidence interval.
    3. Find the sample statistic and confidence interval.
    4. Statistical Interpretation
    5. Real World Interpretation
    Solution

    1. x = IQ score of a famous person

    \(\mu\) = mean IQ score of a famous person

    2.

    1. A random sample of 20 IQ scores was taken. This was stated in the problem.
    2. The population of IQ scores is normally distributed. This was shown in Example \(\PageIndex{2}\).

    3. Sample Statistic:

    \(\overline{x} = 145.4\)

    \(s = 29.27\)

    Calculate the degrees of freedom, df = n - 1 = 20 - 1 = 19, and use the confidence level, which is 98%, to look up the t-value. In table A.2, go down the first column to 19 degrees of freedom. Then go over to the column headed with 98%. Thus \(t_{\dfrac{\alpha}{2}}=2.539\). (See Example \(\PageIndex{2}\).)

    Table of critical values for the t-distribution at degrees of freedom of 19.

    Figure \(\PageIndex{5}\): Table of Critical Values for the t-distribution at Degrees of Freedom of 19

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

    \(145.4-2.539\left(\dfrac{29.27}{\sqrt{20}}\right)<\mu<145.4+2.539\left(\dfrac{29.27}{\sqrt{20}}\right)\)

    \(145.4-16.6<\mu<145.4+16.6\)

    \(128.8<\mu<162\)

    4. There is a 98% chance that \(128.8<\mu<162\) contains the mean IQ score of a famous person.

    5. The mean IQ score of a famous person is between 128.8 and 162.

    Example \(\PageIndex{3}\) confidence interval for the population mean using technology

    For this example, the TI-83/84 is used to compute a confidence interval for the mean. In this problem, a random sample of 10 final exam scores for a statistics class is collected from multiple sections over the past 20 years. The scores are provided in the data set below. Construct a confidence interval for the mean with a confidence level of 99%.

    Table \(\PageIndex{2}\): Final Exam Scores for Statistics Class
    85 98 74 56 62
    95 87 77 60 84
    Solution

    1. On the TI-83/84: Go into the [STAT] menu. Select [EDIT] and make sure [1:EDIT] is highlighted. Hit enter, and then type the data into \(L_1\).

    fig-ch01_patchfile_01.jpg
    Figure \(\PageIndex{6}\): Enter Data into List 1

    2. Go into the [STAT] menu and use the right arrows to select [TESTS] then choose [8:TInterval]. Select [DATA] and type in the information shown in ( \(\PageIndex{4}\) ). Finally, select [CALCULATE] and hit enter.

    Setup for the t-interval (confidence interval for t- distribution).
    Figure \(\PageIndex{7}\): Setup for the t-Interval (Confidence Interval for t- Distribution)

    3. The output should look as follows.

    Output of the endpoints of the confidence interval.
    Figure \(\PageIndex{8}\): Output of the Endpoints of the Confidence Interval

    4. There is a 99% chance that 62.7 points < \(\mu\) < 92.9 points contains the mean score of the final exam.

    5. The mean final exam score for the statistics class is between 62.7 and 92.9 years.


    This page titled 7.3: Confidence Interval for the Mean Using t-values is shared under a CC BY-SA 4.0 license and was authored, remixed, and/or curated by Toros Berberyan, Tracy Nguyen, and Alfie Swan via source content that was edited to the style and standards of the LibreTexts platform.