<?xml version="1.0" encoding="utf-8"?>
<document xmlns="http://cnx.rice.edu/cnxml" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:bib="http://bibtexml.sf.net/" xmlns:q="http://cnx.rice.edu/qml/1.0" id="new" module-id="" cnxml-version="0.6">
  <title>Confidence Intervals: Confidence Interval, Single Population Mean, Standard Deviation Unknown, Student-T</title>
  <metadata xmlns:md="http://cnx.rice.edu/mdml/0.4">
  <!-- WARNING! The 'metadata' section is read only. Do not edit below.
       Changes to the metadata section in the source will not be saved. -->
  <md:content-id>m16959</md:content-id>
  <md:title>Confidence Intervals: Confidence Interval, Single Population Mean, Standard Deviation Unknown, Student-T</md:title>
  <md:version>1.11</md:version>
  <md:created>2008/06/06 16:36:25 GMT-5</md:created>
  <md:revised>2009/02/20 22:29:26.971 US/Central</md:revised>
  <md:authorlist>
    <md:author id="sdean">
        <md:firstname>Susan</md:firstname>
        <md:surname>Dean</md:surname>
        <md:fullname>Susan Dean</md:fullname>
        <md:email>deansusan@deanza.edu</md:email>
    </md:author>
    <md:author id="billowsky">
        <md:firstname>Barbara</md:firstname>
        <md:surname>Illowsky</md:surname>
        <md:fullname>Barbara Illowsky, Ph.D.</md:fullname>
        <md:email>illowskybarbara@deanza.edu</md:email>
    </md:author>
  </md:authorlist>
  <md:maintainerlist>
    <md:maintainer id="sdean">
        <md:firstname>Susan</md:firstname>
        <md:surname>Dean</md:surname>
        <md:fullname>Susan Dean</md:fullname>
        <md:email>deansusan@deanza.edu</md:email>
    </md:maintainer>
    <md:maintainer id="billowsky">
        <md:firstname>Barbara</md:firstname>
        <md:surname>Illowsky</md:surname>
        <md:fullname>Barbara Illowsky, Ph.D.</md:fullname>
        <md:email>illowskybarbara@deanza.edu</md:email>
    </md:maintainer>
    <md:maintainer id="cnxorg">
        <md:firstname/>
        <md:surname>Connexions</md:surname>
        <md:fullname>Connexions</md:fullname>
        <md:email>cnx@cnx.org</md:email>
    </md:maintainer>
  </md:maintainerlist>
  <md:license href="http://creativecommons.org/licenses/by/2.0/"/>
  <md:licensorlist>
    <md:licensor id="MaxfieldFoundation">
        <md:firstname/>
        <md:surname>Maxfield Foundation</md:surname>
        <md:fullname>Maxfield Foundation</md:fullname>
        <md:email>cnx@cnx.org</md:email>
    </md:licensor>
  </md:licensorlist>
  <md:keywordlist>
    <md:keyword>elementary</md:keyword>
    <md:keyword>statistics</md:keyword>
  </md:keywordlist>
  <md:subjectlist>
    <md:subject>Mathematics and Statistics</md:subject>
  </md:subjectlist>
  <md:abstract/>
  <md:language>en</md:language>
  <!-- WARNING! The 'metadata' section is read only. Do not edit above.
       Changes to the metadata section in the source will not be saved. -->
</metadata>

<content>
    <para id="delete_me">In practice, we rarely know the population <term target-id="stddev">standard deviation</term>. In the past, when the
sample size was large, this did not present a problem to statisticians. They used the
sample standard deviation <m:math><m:mi>s</m:mi></m:math> as an estimate for <m:math><m:mi>σ</m:mi></m:math> and proceeded as before to calculate a
<term target-id="coninter">confidence interval</term> with close enough results. However, statisticians ran into problems
when the sample size was small. A small sample size caused inaccuracies in the
confidence interval. William S. Gossett of the Guinness brewery in Dublin, Ireland ran
into this very problem. His experiments with hops and barley produced very few
samples. Just replacing <m:math><m:mi>σ</m:mi></m:math> with <m:math><m:mi>s</m:mi></m:math> did not produce accurate results when he tried to
calculate a confidence interval. He realized that he could not use a normal distribution
for the calculation. This problem led him to "discover" what is called the <term target-id="studenttdist">Student-t
distribution</term>. The name comes from the fact that Gosset wrote under the pen name
"Student."</para><para id="element-643">Up until the mid 1990s, statisticians used the <term target-id="normdist">normal distribution</term> approximation for large
sample sizes and only used the Student-t distribution for sample sizes of at most 30.
With the common use of graphing calculators and computers, the practice is to use the
Student-t distribution whenever <m:math><m:mi>s</m:mi></m:math> is used as an estimate for <m:math><m:mi>σ</m:mi></m:math>.</para><para id="element-456">If you draw a simple random sample of size <m:math><m:mi>n</m:mi></m:math> from a population that has
approximately a normal distribution with mean <m:math><m:mi>μ</m:mi></m:math> and unknown population
standard deviation <m:math><m:mi>σ</m:mi></m:math> and calculate the t-score
<m:math>
<m:mn>t</m:mn>
<m:mo>=</m:mo>
<m:mfrac>
<m:mrow>
<m:apply>
<m:conjugate/>
<m:mn>x</m:mn>
</m:apply>
<m:mo>-</m:mo>
<m:mi>μ</m:mi>
</m:mrow>
<m:mrow>
<m:mo>(</m:mo>
<m:mfrac>
<m:mrow>
<m:mi>s</m:mi>
</m:mrow>
<m:mrow>
<m:msqrt>
<m:mi>n</m:mi>
</m:msqrt>
</m:mrow>
</m:mfrac>
<m:mo>)</m:mo>
</m:mrow>
</m:mfrac>
</m:math>
, then the t-scores follow a <emphasis>Student-t distribution with <m:math><m:mi>n</m:mi><m:mo>-</m:mo><m:mn>1</m:mn></m:math> degrees of freedom</emphasis>. The t-score has
the same interpretation as the <term resource="zscore">z-score</term>. It measures how far <m:math><m:apply><m:conjugate/><m:ci>x</m:ci></m:apply></m:math> is from its mean <m:math><m:mi>μ</m:mi></m:math>. For each sample size <m:math><m:mi>n</m:mi></m:math>, there is a different Student-t distribution.</para><para id="element-212">The <term target-id="degrefree">degrees of freedom</term>, <emphasis><m:math><m:mi>n</m:mi><m:mo>-</m:mo><m:mn>1</m:mn></m:math></emphasis>, come from the sample standard deviation <emphasis><m:math><m:mi>s</m:mi></m:math></emphasis>. In Chapter 2, we used <m:math><m:mi>n</m:mi></m:math> deviations <emphasis><m:math><m:mo>(</m:mo><m:mi>x</m:mi><m:mo>-</m:mo><m:apply><m:conjugate/><m:mi>x</m:mi></m:apply><m:mspace width="5pt"/><m:mtext>values</m:mtext><m:mo>)</m:mo></m:math></emphasis> 
 to calculate <emphasis><m:math><m:mi>s</m:mi></m:math></emphasis>. Because the
sum of the deviations is 0, we can find the last deviation once we know the
other <emphasis><m:math><m:mi>n</m:mi><m:mo>-</m:mo><m:mn>1</m:mn></m:math></emphasis> deviations. The other <emphasis><m:math><m:mi>n</m:mi><m:mo>-</m:mo><m:mn>1</m:mn></m:math></emphasis> deviations can change or vary freely.
<emphasis>We call the number <m:math><m:mi>n</m:mi><m:mo>-</m:mo><m:mn>1</m:mn></m:math> the degrees of freedom (df).</emphasis></para><para id="element-827">The following are some facts about the Student-t distribution:
<list id="list-1" list-type="enumerated"><item>The graph for the Student-t distribution is similar to the normal curve.</item>
<item>The Student-t distribution has more probability in its tails than the normal
because the spread is somewhat greater than the normal.</item>

<item>The underlying population of observations is normal with unknown population
mean <emphasis><m:math><m:mi>μ</m:mi></m:math></emphasis> and unknown population standard deviation <emphasis><m:math><m:mi>σ</m:mi></m:math></emphasis>.  In the real world, however, as long as the underlying population is large and bell-shaped, and the data are a simple random sample, practitioners often consider the assumptions met.
</item>
</list></para><para id="element-501">A Student-t table (See the Table of Contents <emphasis>15. Tables</emphasis>) gives t-scores
given the degrees of freedom and the right-tailed probability. The table is very limited.
<emphasis>Calculators and computers can easily calculate any Student-t probabilities.</emphasis></para><para id="element-13">The notation for the Student-t distribution is (using T as the random variable)
</para><para id="element-165"><m:math><m:mi>T</m:mi></m:math> ~ <m:math><m:msub><m:mi>t</m:mi><m:mtext>df</m:mtext></m:msub></m:math> where <m:math><m:mtext>df</m:mtext><m:mo>=</m:mo><m:mi>n</m:mi><m:mo>-</m:mo><m:mn>1</m:mn></m:math>.</para><para id="element-106">If the population standard deviation is <emphasis>not known</emphasis>, then the <term target-id="ebpbound">error bound for a population mean</term> formula is:

</para><para id="element-639"><m:math>
<m:mi>EBM</m:mi>
<m:mo>=</m:mo>
<m:msub>
<m:mi>t</m:mi>
<m:mrow>
<m:mfrac>
<m:mi>α</m:mi>
<m:mn>2</m:mn>
</m:mfrac>
</m:mrow>
</m:msub>
<m:mo>⋅</m:mo>
<m:mo>(</m:mo>
<m:mfrac>
<m:mi>s</m:mi>
<m:mrow>
<m:msqrt>
<m:mi>n</m:mi>
</m:msqrt>
</m:mrow>
</m:mfrac>
<m:mo>)</m:mo>
<m:mspace width="20pt"/>
</m:math>
<m:math>
<m:msub>
<m:mi>t</m:mi>
<m:mfrac>
<m:mrow>
<m:mi>α</m:mi>
</m:mrow>
<m:mrow>
<m:mn>2</m:mn>
</m:mrow>
</m:mfrac>
</m:msub>
</m:math>
is the t-score with area to the right equal to
<m:math>
<m:mfrac>
<m:mrow>
<m:mi>α</m:mi>
</m:mrow>
<m:mrow>
<m:mn>2</m:mn>
</m:mrow>
</m:mfrac>
</m:math>.</para><para id="element-458"><m:math>
<m:mi>s</m:mi>
</m:math>
= the sample standard deviation</para><para id="element-997">The mechanics for calculating the error bound and the confidence interval are the same
as when <m:math><m:mi>σ</m:mi></m:math> is known.</para><example id="element-5"><exercise id="element-632"><problem id="id7871182">
  <para id="element-866">Suppose you do a study of acupuncture to determine how
effective it is in relieving pain. You measure sensory rates for 15 subjects with
the results given below. Use the sample data to construct a 95% confidence
interval for the mean sensory rate for the population (assumed normal) from
which you took the data.
</para><para id="id6918909"><list id="set-328" list-type="labeled-item" display="inline"><item>8.6</item>
<item>9.4</item>
<item>7.9</item>
<item>6.8</item>
<item>8.3</item>
<item>7.3</item>
<item>9.2</item>
<item>9.6</item>
<item>8.7</item>
<item>11.4</item> 
<item>10.3</item>
<item>5.4</item> 
<item>8.1</item> 
<item>5.5</item> 
<item>6.9</item></list></para><list id="element-131" list-type="bulleted"><title>Note:</title><item>The first solution is step-by-step.</item>
<item>The second solution uses the TI-83+ and TI-84 calculators.</item>
</list>
</problem>

<solution id="id10409200">
  <para id="element-835">To find the confidence interval, you need the sample mean, <m:math><m:apply><m:conjugate/><m:mi>x</m:mi></m:apply></m:math>, and the EBM.</para><para id="element-809"><m:math>
<m:apply>
<m:conjugate/>
<m:mi>x</m:mi>
</m:apply>
<m:mo>=</m:mo>
<m:mn>8.2267</m:mn>
<m:mspace width="20pt"/>
<m:mi>s</m:mi>
<m:mo>=</m:mo>
<m:mn>1.6722</m:mn>
<m:mspace width="20pt"/>
<m:mi>n</m:mi>
<m:mo>=</m:mo>
<m:mn>15</m:mn>
</m:math></para><para id="element-899"><m:math>
<m:mtext>CL</m:mtext>
<m:mo>=</m:mo>
<m:mn>0.95</m:mn>
<m:mspace width="5pt"/>
</m:math>
so
<m:math>
<m:mspace width="5pt"/>
<m:mi>α</m:mi>
<m:mo>=</m:mo>
<m:mn>1</m:mn>
<m:mo>-</m:mo>
<m:mtext>CL</m:mtext>
<m:mo>=</m:mo>
<m:mn>1</m:mn>
<m:mo>-</m:mo>
<m:mn>0.95</m:mn>
<m:mo>=</m:mo>
<m:mn>0.05</m:mn>
</m:math></para><para id="element-46"><m:math>
<m:mi>EBM</m:mi>
<m:mo>=</m:mo>
<m:msub>
<m:mi>t</m:mi>
<m:mrow>
<m:mfrac>
<m:mi>α</m:mi>
<m:mn>2</m:mn>
</m:mfrac>
</m:mrow>
</m:msub>
<m:mo>⋅</m:mo>
<m:mo>(</m:mo>
<m:mfrac>
<m:mi>s</m:mi>
<m:mrow>
<m:msqrt>
<m:mi>n</m:mi>
</m:msqrt>
</m:mrow>
</m:mfrac>
<m:mo>)</m:mo>
</m:math></para><para id="element-681"><m:math>
<m:mfrac>
<m:mrow>
<m:mi>α</m:mi>
</m:mrow>
<m:mrow>
<m:mn>2</m:mn>
</m:mrow>
</m:mfrac>
<m:mo>=</m:mo>
<m:mn>0.025</m:mn>
<m:mspace width="20pt"/>
<m:msub>
<m:mi>t</m:mi>
<m:mfrac>
<m:mrow>
<m:mi>α</m:mi>
</m:mrow>
<m:mrow>
<m:mn>2</m:mn>
</m:mrow>
</m:mfrac>
</m:msub>
<m:mo>=</m:mo>
<m:msub>
<m:mi>t</m:mi>
<m:mn>.025</m:mn>
</m:msub>
<m:mo>=</m:mo>
<m:mn>2.14</m:mn>
</m:math></para><para id="element-493">(Student-t table with <m:math><m:mtext>df</m:mtext><m:mo>=</m:mo><m:mn>15</m:mn><m:mo>-</m:mo><m:mn>1</m:mn><m:mo>=</m:mo><m:mn>14</m:mn></m:math>)</para><para id="element-522">Therefore,
<m:math>
<m:mi>EBM</m:mi>
<m:mo>=</m:mo>
<m:mn>2.14</m:mn>
<m:mo>⋅</m:mo>
<m:mo>(</m:mo>
<m:mfrac>
<m:mi>1.6722</m:mi>
<m:mrow>
<m:msqrt>
<m:mi>15</m:mi>
</m:msqrt>
</m:mrow>
</m:mfrac>
<m:mo>)</m:mo>
<m:mo>=</m:mo>
<m:mn>0.924</m:mn>
</m:math></para><para id="element-218">This gives
<m:math>
<m:apply>
<m:conjugate/>
<m:mi>x</m:mi>
</m:apply>
<m:mo>-</m:mo>
<m:mtext>EBM</m:mtext>
<m:mo>=</m:mo>
<m:mn>8.2267</m:mn>
<m:mo>-</m:mo>
<m:mn>0.9240</m:mn>
<m:mo>=</m:mo>
<m:mn>7.3</m:mn>
</m:math></para><para id="element-947">and
<m:math>
<m:apply>
<m:conjugate/>
<m:mi>x</m:mi>
</m:apply>
<m:mo>+</m:mo>
<m:mtext>EBM</m:mtext>
<m:mo>=</m:mo>
<m:mn>8.2267</m:mn>
<m:mo>+</m:mo>
<m:mn>0.9240</m:mn>
<m:mo>=</m:mo>
<m:mn>9.15</m:mn>
</m:math></para><para id="element-430">The 95% confidence interval is <emphasis>(7.30, 9.15)</emphasis>.</para><para id="element-273">You are 95% confident or sure that the true population average sensory rate is
between 7.30 and 9.15.</para>
</solution>

<solution id="id21655298">
<para id="element-836">TI-83+ or TI-84: Use the function <code>8:TInterval</code> in <code>STAT TESTS</code>. Once you
are in <code>TESTS</code>, press <code>8:TInterval</code> and arrow to <code>Data</code>. Press <code>ENTER</code>. Arrow
down and enter the list name where you put the data for <code>List</code>, enter 1 for
<code>Freq</code>, and enter .95 for <code>C-level</code>. Arrow down to <code>Calculate</code> and press <code>ENTER</code>.
The confidence interval is (7.3006, 9.1527)</para>
</solution></exercise>
</example>   
  </content>



  <glossary>

  <definition id="coninter">
    <term>Confidence Interval (CI)</term>
    <meaning id="id20495395">
  An interval estimate for an unknown population parameter. This depends on: 
<list id="confint1" list-type="bulleted">
<item>The desired confidence level.</item> <item>Information that is known about the  distribution (for example, known standard deviation).</item><item>The sample and its size.</item></list>
    </meaning>
  </definition>



 <definition id="degrefree">
    <term>Degrees of Freedom (df)</term>
    <meaning id="id17799455">
The number of objects in a sample that are free to vary.
    </meaning>
  </definition>


  <definition id="ebmbound">
    <term>Error Bound for a Population Mean (EBM)</term>
    <meaning id="id14152535">
      The margin of error. Depends on the confidence level, sample size, and the known or estimated population standard deviation.
    </meaning>
  </definition>


<definition id="normdist">
    <term>Normal Distribution</term>
    <meaning id="id22071540">
   A continuous random variable (RV) with pdf  
<m:math><m:semantics><m:mrow><m:mstyle fontsize="12pt"><m:mrow><m:mrow><m:mrow><m:mstyle fontstyle="italic"><m:mrow><m:mtext>f(x)</m:mtext></m:mrow></m:mstyle><m:mo stretchy="false">=</m:mo><m:mfrac><m:mn>1</m:mn><m:mrow><m:mi>σ</m:mi><m:msqrt><m:mn>2π</m:mn></m:msqrt></m:mrow></m:mfrac></m:mrow><m:msup><m:mi>e</m:mi><m:mstyle fontsize="8pt"><m:mrow><m:mrow><m:mrow><m:mo stretchy="false">−</m:mo><m:mo stretchy="false">(</m:mo></m:mrow><m:mrow><m:mi>x</m:mi><m:mo stretchy="false">−</m:mo><m:mi>μ</m:mi></m:mrow><m:mrow><m:msup><m:mo stretchy="false">)</m:mo><m:mstyle fontsize="6pt"><m:mrow><m:mn>2</m:mn></m:mrow></m:mstyle></m:msup><m:mo stretchy="false">/</m:mo><m:msup><m:mn>2σ</m:mn><m:mstyle fontsize="6pt"><m:mrow><m:mn>2</m:mn></m:mrow></m:mstyle></m:msup></m:mrow></m:mrow></m:mrow></m:mstyle></m:msup></m:mrow></m:mrow></m:mstyle><m:mrow/></m:mrow><m:annotation encoding="StarMath 5.0"> size 12{ ital "pdf"= {  {1}  over  {σ sqrt {2π} } } e rSup { size 8{ -  \( x - μ \)  rSup { size 6{2} } /2σ rSup { size 6{2} } } } } {}</m:annotation></m:semantics></m:math>, where <m:math><m:mi>μ</m:mi></m:math>  is the mean of the distribution and <m:math><m:mi>σ</m:mi></m:math>  is its standard deviation. Notation: <m:math><m:mi>X</m:mi></m:math>  ~  <m:math> <m:mi>N</m:mi>
  <m:mfenced>
    <m:mi>μ</m:mi>
    
    <m:mi>σ</m:mi>
      
  </m:mfenced></m:math>. If <m:math><m:mi>μ</m:mi><m:mo>=</m:mo><m:mn>0</m:mn></m:math> and <m:math><m:mi>σ</m:mi><m:mo>=</m:mo><m:mn>1</m:mn></m:math>, the RV is called <emphasis>the standard normal distribution</emphasis>.
    </meaning>
  </definition>



<definition id="stddev">
    <term>Standard Deviation</term>
    <meaning id="id17077780">
A number that is equal to the square root of the variance and measures how far data values are from their mean. Notation: <m:math><m:mi>s</m:mi></m:math> for sample standard deviation and <m:math><m:ci>σ</m:ci></m:math>  for population standard deviation.
    </meaning>
  </definition>

<definition id="studenttdist">
    <term>Student-<emphasis>t</emphasis> Distribution</term>
    <meaning id="id8759760">
Investigated and reported by William S. Gossett in 1908 and published under the pseudonym Student. The major characteristics of the random variable (RV) are: 

<list id="tdist1" list-type="bulleted"><item>It is continuous and assumes any real values. </item><item>The pdf is symmetrical about its mean of zero. However, it is more spread out and flatter at the apex than the normal distribution. </item><item>  It approaches the standard normal distribution as n gets larger. </item><item>  There is a "family" of t distributions: every representative of the family is completely defined by the number of degrees of freedom which is one less than the number of data.</item></list>

    </meaning>
  </definition>


</glossary>
</document>
