<?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>Hypothesis Testing of Single Mean and Single Proportion: Using the Sample to Support One of the Hypotheses</name>
  <metadata>
  <md:version>1.4</md:version>
  <md:created>2008/06/06 17:34:58 GMT-5</md:created>
  <md:revised>2008/07/18 10:36:19.126 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">Use the sample (data) to calculate the actual significance of the test or the <term src="#pvalue">p-value</term>. The
p-value is the <emphasis>probability that an outcome of the data (for example, the sample mean)
will happen purely by chance when the null hypothesis is true</emphasis>.</para><para id="element-188">A large p-value calculated from the data indicates that the outcome of the data is happening
purely by chance. The data supports the <term src="#hypothesis">null hypothesis</term> so we do not reject it. The smaller the p-value, the more unlikely the outcome, and the stronger the evidence is against the null hypothesis. We would reject the null hypothesis if the evidence is strongly against the null
hypothesis. </para><para id="element-134">The p-value is sometimes called the <emphasis>computed <m:math><m:mi>α</m:mi></m:math></emphasis> because it is calculated from the data.
You can think of it as the probability of (incorrectly) rejecting the null hypothesis when the
null hypothesis is actually true.</para><para id="element-986"><emphasis>Draw a graph that shows the p-value. The hypothesis test is easier to perform
if you use a graph because you see the problem more clearly.</emphasis></para><example id="element-804"><name>(to illustrate the p-value)</name><para id="element-842">Suppose a baker claims that his bread height
is more than 15 cm, on the average. Several of his customers do not believe him. To
persuade his customers that he is right, the baker decides to do a hypothesis test. He
bakes 10 loaves of bread. The average height of the sample loaves is 17 cm. The baker
knows from baking hundreds of loaves of bread that the <term src="#stddev">standard deviation</term> for the height
is 0.5 cm.</para><para id="element-369">The null hypothesis could be <m:math><m:msub><m:mi>H</m:mi><m:mi>o</m:mi></m:msub></m:math>: <m:math><m:mi>μ</m:mi><m:mo>≤</m:mo><m:mn>15</m:mn></m:math> The alternate hypothesis is <m:math><m:msub><m:mi>H</m:mi><m:mi>a</m:mi></m:msub></m:math>: <m:math><m:mi>μ</m:mi><m:mo>&gt;</m:mo><m:mn>15</m:mn></m:math></para><para id="element-850">The words <emphasis>"is more than"</emphasis> translates as a "<m:math><m:mo>&gt;</m:mo></m:math>" so "<m:math><m:mi>μ</m:mi><m:mo>&gt;</m:mo><m:mn>15</m:mn></m:math>" goes into the alternate
hypothesis. The null hypothesis must contradict the alternate hypothesis.</para><para id="element-863">Since <emphasis><m:math><m:mi>σ</m:mi></m:math> is known</emphasis> (<m:math><m:mi>σ</m:mi><m:mo>=</m:mo><m:mn>0.5</m:mn></m:math> cm.), the distribution for the test is normal with mean
<m:math><m:mi>μ</m:mi></m:math><m:math><m:mo>=</m:mo><m:mn>15</m:mn></m:math> and standard deviation
<emphasis><m:math><m:mfrac><m:mrow><m:mi>σ</m:mi></m:mrow><m:mrow><m:msqrt><m:mi>n</m:mi></m:msqrt></m:mrow></m:mfrac></m:math></emphasis> <m:math><m:mo>=</m:mo><m:mfrac><m:mrow><m:mn>0.5</m:mn></m:mrow><m:mrow><m:msqrt><m:mn>10</m:mn></m:msqrt></m:mrow></m:mfrac><m:mo>=</m:mo><m:mn>0.16</m:mn></m:math>.</para><para id="element-910">Suppose the null hypothesis is true (the average height of the loaves is no more than 15
cm). Then is the average height (17 cm) calculated from the sample unexpectedly large?
The hypothesis test works by asking the question how <emphasis>unlikely</emphasis> the sample average would
be if the null hypothesis were true. The graph shows how far out the sample average is on
the normal curve. How far out the sample average is on the normal curve is measured by
the p-value. The p-value is the probability that, if we were to take other samples, any
other sample average would fall at least as far out as 17 cm.</para><para id="element-537"><emphasis>The p-value, then, is the probability that a sample average is the same or greater than 17 cm. when the population mean is, in fact, 15 cm.</emphasis> We can calculate this probability using the normal distribution for averages from Chapter 7. </para><para id="element-246"><media type="image/png" src="hyptest11_samphyp1.png">
  <param name="alt" value="Normal distribution curve on average bread heights with values 15, as the population mean, and 17, as the point to determine the p-value, on the x-axis."/>

  <param name="print-width" value="3in"/>
</media></para><para id="element-328"><m:math><m:mtext>p-value</m:mtext><m:mo>=</m:mo><m:mi>P</m:mi><m:mo>(</m:mo><m:apply><m:conjugate/><m:mi>X</m:mi></m:apply><m:mo>&gt;</m:mo><m:mn>17</m:mn><m:mo>)</m:mo></m:math> which is approximately 0.</para><para id="element-710">A p-value of approximately 0 tells us that it is highly unlikely that a loaf of bread rises no
more than 15 cm, on the average. That is, almost 0% of all loaves of bread would be at
least as high as 17 cm. <emphasis>purely by CHANCE</emphasis>. Because the outcome of 17 cm. is so
<emphasis>unlikely (meaning it is happening NOT by chance but is a rare event)</emphasis>, we conclude
that the evidence is strongly against the null hypothesis (the average height is at most 15
cm.). There is sufficient evidence that the true average height for the population of the
baker's loaves of bread is greater than 15 cm.</para>
</example>   
  </content>
  <glossary>
 <definition id="hypothesis">
    <term>Hypothesis</term>
    <meaning>
   A statement about the value of a population parameter. In case of two hypotheses, the statement assumed to be true is called null hypothesis (notation 
<m:math><m:semantics><m:mrow><m:mstyle fontsize="12pt"><m:mrow><m:msub><m:mi>H</m:mi><m:mstyle fontsize="8pt"><m:mrow><m:mn>0</m:mn></m:mrow></m:mstyle></m:msub></m:mrow></m:mstyle><m:mrow/></m:mrow><m:annotation encoding="StarMath 5.0"> size 12{H rSub { size 8{0} } } {}</m:annotation></m:semantics></m:math>) and contradictory statement is called alternate hypothesis (notation 
<m:math><m:semantics><m:mrow><m:mstyle fontsize="12pt"><m:mrow><m:msub><m:mi>H</m:mi><m:mstyle fontsize="8pt"><m:mrow><m:mi>a</m:mi></m:mrow></m:mstyle></m:msub></m:mrow></m:mstyle><m:mrow/></m:mrow><m:annotation encoding="StarMath 5.0"> size 12{H rSub { size 8{a} } } {}</m:annotation></m:semantics></m:math>).
    </meaning>
  </definition>

<definition id="pvalue">
    <term>p-value</term>
    <meaning>
The probability that event will happen purely by chance assuming the null hypothesis is true. The smaller p-value, the stronger the evidence is against the null hypothesis.
    </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: s for sample standard deviation and   <m:math><m:ci>σ</m:ci></m:math>for population standard deviation.
    </meaning>
  </definition>

</glossary>
</document>
