<?xml version="1.0" encoding="utf-8" standalone="no"?>
<!DOCTYPE document PUBLIC "-//CNX//DTD CNXML 0.5 plus MathML//EN" "http://cnx.rice.edu/technology/cnxml/schema/dtd/0.5/cnxml_mathml.dtd">
<document xmlns="http://cnx.rice.edu/cnxml" xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:bib="http://bibtexml.sf.net/" xmlns:m="http://www.w3.org/1998/Math/MathML" id="new">
  <name>Confidence Intervals: Confidence Interval, Single Population Mean, Standard Deviation Unknown, Student-T</name>
  <metadata>
  <md:version>1.6</md:version>
  <md:created>2008/06/06 16:36:25 GMT-5</md:created>
  <md:revised>2008/07/21 02:53:32.044 GMT-5</md:revised>
  <md:authorlist>
      <md:author id="billowsky">
      <md:firstname>Barbara</md:firstname>
      
      <md:surname>Illowsky</md:surname>
      <md:email>illowskybarbara@deanza.edu</md:email>
    </md:author>
      <md:author id="sdean">
      <md:firstname>Susan</md:firstname>
      
      <md:surname>Dean</md:surname>
      <md:email>deansusan@deanza.edu</md:email>
    </md:author>
  </md:authorlist>

  <md:maintainerlist>
    <md:maintainer id="cnxorg">
      <md:firstname/>
      
      <md:surname>Connexions</md:surname>
      <md:email>cnx@cnx.org</md:email>
    </md:maintainer>
  </md:maintainerlist>
  
  <md:keywordlist>
    <md:keyword>elementary</md:keyword>
    <md:keyword>statistics</md:keyword>
  </md:keywordlist>

  <md:abstract/>
</metadata>
  <content>
    <para id="delete_me">In practice, we rarely know the population <term src="#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 src="#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 src="#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 src="#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 src="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 src="#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" 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>.</item>
</list></para><para id="element-501">A Student-t table (there is one in the book - see the Table of Contents) 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 src="#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>
  <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><list id="set-328" type="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><list id="element-131" type="bulleted"><name>Note:</name><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>
  <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>
<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>Confidential Interval</term>
    <meaning>
  An interval estimate for unknown population parameter. This depends on: 
<list type="bulleted" id="confint1">
<item>The desired confidence level.</item> <item>What is known for the distribution information (for ex., known variance).</item><item>Gathering from the sampling information.</item></list>
    </meaning>
  </definition>


 <definition id="degrefree">
    <term>Degrees of Freedom (df)</term>
    <meaning>
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>
      The margin of error. Depends on the confidence level, sample size, and known or estimated population standard deviation.
    </meaning>
  </definition>


<definition id="normdist">
    <term>Normal Distribution</term>
    <meaning>
   A continuous random variable (RV) with 
<m:math><m:semantics><m:mrow><m:mstyle fontsize="12pt"><m:mrow><m:mrow><m:mrow><m:mstyle fontstyle="italic"><m:mrow><m:mtext>pdf</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:msup>
      <m:mi>σ</m:mi>
      <m:mn>2</m:mn>
    </m:msup>
  </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>standard normal distribution</emphasis>, or <emphasis>z-score</emphasis>.
    </meaning>
  </definition>



<definition id="stddev">
    <term>Standard Deviation</term>
    <meaning>
A number that is equal to the square root of the variance and measures how far data values are from their mean. Notations: <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>
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 type="bulleted" id="tdist1"><item>It is a 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 family is completely defined by the number of degrees of freedom which is one less than the number of data.</item></list>

    </meaning>
  </definition>

<definition id="zscore">
    <term>z-score</term>
    <meaning>
Let’s consider the linear transformation of the form 
<m:math><m:semantics><m:mrow><m:mstyle fontsize="12pt"><m:mrow><m:mrow><m:mi>z</m:mi><m:mo stretchy="false">=</m:mo><m:mfrac><m:mrow><m:mi>x</m:mi><m:mo stretchy="false">−</m:mo><m:mi>m</m:mi></m:mrow><m:mi>s</m:mi></m:mfrac></m:mrow></m:mrow></m:mstyle><m:mrow/></m:mrow><m:annotation encoding="StarMath 5.0"> size 12{z= {  {x-μ}  over  {σ} } } {}</m:annotation></m:semantics></m:math>. If this transformation is applied to any normal distribution
<m:math><m:semantics><m:mrow><m:mstyle fontsize="12pt"><m:mrow><m:mrow><m:mi>X</m:mi><m:mtext>~</m:mtext><m:mi>N</m:mi><m:mo stretchy="false">(</m:mo><m:mi>μ</m:mi><m:mi>,</m:mi><m:msup><m:mi>σ</m:mi><m:mstyle fontsize="8pt"><m:mrow><m:mn>2</m:mn></m:mrow></m:mstyle></m:msup><m:mo stretchy="false">)</m:mo></m:mrow></m:mrow></m:mstyle><m:mrow/></m:mrow><m:annotation encoding="StarMath 5.0"> size 12{X "~" N \( μ,σ rSup { size 8{2} }  \) } {}</m:annotation></m:semantics></m:math>, the result is the standard normal distribution 
<m:math><m:semantics><m:mrow><m:mstyle fontsize="12pt"><m:mrow><m:mrow><m:mi>Z</m:mi><m:mtext>~</m:mtext><m:mi>N</m:mi><m:mo stretchy="false">(</m:mo><m:mn>0,1</m:mn><m:mo stretchy="false">)</m:mo></m:mrow></m:mrow></m:mstyle><m:mrow/></m:mrow><m:annotation encoding="StarMath 5.0"> size 12{Z "~" N \( 0,1 \) } {}</m:annotation></m:semantics></m:math>. If this transformation is applied to any specific value 
<m:math><m:semantics><m:mrow><m:mstyle fontsize="12pt"><m:mrow><m:mi>x</m:mi></m:mrow></m:mstyle><m:mrow/></m:mrow><m:annotation encoding="StarMath 5.0"> size 12{x} {}</m:annotation></m:semantics></m:math> of RV with mean 
<m:math><m:semantics><m:mrow><m:mstyle fontsize="12pt"><m:mrow><m:mi>μ</m:mi></m:mrow></m:mstyle><m:mrow/></m:mrow><m:annotation encoding="StarMath 5.0"> size 12{μ} {}</m:annotation></m:semantics></m:math> and standard deviation 
<m:math><m:semantics><m:mrow><m:mstyle fontsize="12pt"><m:mrow><m:mi>σ</m:mi></m:mrow></m:mstyle><m:mrow/></m:mrow><m:annotation encoding="StarMath 5.0"> size 12{σ} {}</m:annotation></m:semantics></m:math> , the result is called z-score of 
<m:math><m:semantics><m:mrow><m:mstyle fontsize="12pt"><m:mrow><m:mi>x</m:mi></m:mrow></m:mstyle><m:mrow/></m:mrow><m:annotation encoding="StarMath 5.0"> size 12{x} {}</m:annotation></m:semantics></m:math>. z-score allows to compare data that are normally distributed but scaled differently.
    </meaning>
  </definition>
</glossary>
</document>
