<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE document PUBLIC "-//CNX//DTD CNXML 0.5 plus MathML//EN" "http://cnx.rice.edu/cnxml/0.5/DTD/cnxml_mathml.dtd">
<document xmlns="http://cnx.rice.edu/cnxml" xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:bib="http://bibtexml.sf.net/" id="id5483649">
  <name>The Chi-Square Distribution: Lab I</name>
  <metadata>
  <md:version>1.5</md:version>
  <md:created>2008/06/19 13:49:12 GMT-5</md:created>
  <md:revised>2008/08/15 13:30:00.160 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>This module provides a lab on Chi-Square Distribution as a part of Collaborative Statistics collection (col10522) by Barbara Illowsky and Susan Dean.</md:abstract>
</metadata>
  <content>
    <para id="id5380446">Class Time: </para>
    <para id="id5380454">Names:</para>
    <section id="id-68245180303">
      <name>Student Learning Outcome: </name>
      <list type="bulleted" id="id5380464">
        <item>The student will evaluate data collected to determine if they fit either the uniform or exponential distributions. </item>
      </list>
    </section>
    <section id="element-608"><name>Collect the Data</name><para id="element-875862734">
	Go to your local supermarket. Ask 30 people as they leave for the total amount on their grocery receipts. (Or, ask 3 cashiers for the last 10 amounts. Be sure to include the express lane, if it is open.) </para>

<list id="list-87585" type="enumerated">
<item>Record the values.
<table id="table023865">
<?table-summary Blank table with 30 empty cells.?>
<tgroup cols="5">
<tbody>
<row>
<entry>__________</entry>
<entry>__________</entry>
<entry>__________</entry>
<entry>__________</entry>
<entry>__________</entry>
</row>
<row>
<entry>__________</entry>
<entry>__________</entry>
<entry>__________</entry>
<entry>__________</entry>
<entry>__________</entry>
</row>
<row>
<entry>__________</entry>
<entry>__________</entry>
<entry>__________</entry>
<entry>__________</entry>
<entry>__________</entry>
</row>
<row>
<entry>__________</entry>
<entry>__________</entry>
<entry>__________</entry>
<entry>__________</entry>
<entry>__________</entry>
</row>
<row>
<entry>__________</entry>
<entry>__________</entry>
<entry>__________</entry>
<entry>__________</entry>
<entry>__________</entry>
</row>
<row>
<entry>__________</entry>
<entry>__________</entry>
<entry>__________</entry>
<entry>__________</entry>
<entry>__________</entry>
</row>
</tbody>
</tgroup>
</table>
</item>
	

<item>Construct a histogram of the data. Make 5 - 6 intervals. Sketch the graph using a ruler and pencil. Scale the axes. <figure><media type="image/png" src="graph11.PNG">
				<param name="alt" value="Blank graph with relative frequency on vertical"/>
				<param name="print-width" value="4in"/>
			</media></figure>
		</item>
<item> Calculate the following:
<list id="list3242" type="named-item"><?mark .?>

<item><name>a</name><m:math><m:semantics><m:mrow><m:mstyle fontsize="12pt"><m:mrow><m:mover accent="true"><m:mi>x</m:mi><m:mo>¯</m:mo></m:mover><m:mo>=</m:mo></m:mrow></m:mstyle><m:mrow/></m:mrow><m:annotation encoding="StarMath 5.0"> size 12{ {overline  {x}} } {}</m:annotation></m:semantics></m:math></item>

<item><name>b</name><m:math><m:semantics><m:mrow><m:mstyle fontsize="12pt"><m:mrow><m:mi>s</m:mi><m:mo>=</m:mo></m:mrow></m:mstyle><m:mrow/></m:mrow><m:annotation encoding="StarMath 5.0"> size 12{s} {}</m:annotation></m:semantics></m:math></item>

<item><name>c</name><m:math><m:semantics><m:mrow><m:mstyle fontsize="12pt"><m:mrow><m:msup><m:mi>s</m:mi><m:mstyle fontsize="8pt"><m:mrow><m:mn>2</m:mn></m:mrow></m:mstyle></m:msup><m:mo>=</m:mo></m:mrow></m:mstyle><m:mrow/></m:mrow><m:annotation encoding="StarMath 5.0"> size 12{s rSup { size 8{2} } } {}</m:annotation></m:semantics></m:math></item>
		</list></item>
</list></section><section id="element-490"><name>Uniform Distribution</name><para id="element-755">
Test to see if grocery receipts follow the uniform distribution.
</para>
<list id="list-897576324" type="enumerated">
	<item>Using your lowest and highest values, 
<m:math><m:semantics><m:mrow><m:mstyle fontsize="12pt"><m:mrow><m:mrow><m:mi>X</m:mi></m:mrow></m:mrow></m:mstyle></m:mrow></m:semantics></m:math> ~ <m:math><m:semantics><m:mrow><m:mstyle><m:mrow><m:mrow><m:mi>U</m:mi><m:mfenced open="(" close=")"><m:mtext>_______,_______</m:mtext></m:mfenced></m:mrow></m:mrow></m:mstyle><m:mrow/></m:mrow><m:annotation encoding="StarMath 5.0"> size 12{X "~" U left ("_______, _______" right )} {}</m:annotation></m:semantics></m:math></item>
	
<item>Divide the distribution above into fifths.</item>
<item>Calculate the following: 
<list id="list45865" type="named-item"><?mark .?>
			<item><name>a</name>Lowest value = </item>
			<item><name>b</name>20th percentile = </item>
			<item><name>c</name>40th percentile = </item>
			<item><name>d</name>60th percentile = </item>
			<item><name>e</name>80th percentile = </item>
			<item><name>f</name>Highest value = </item>
		</list></item>

<item>For each fifth, count the observed number of receipts and record it. Then determine the expected number of receipts and record that.

<table id="id58758asdfa533062">
<?table-summary The partially filled table presents each fifth in the first column, observed in the blank second column, and expected in the blank third column. There are 5 rows.?>
			<tgroup cols="3"><colspec colnum="1" colname="c1"/>
				<colspec colnum="2" colname="c2"/>
				<colspec colnum="3" colname="c3"/>
				<thead>
					<row>
						<entry>Fifth </entry>
						<entry>Observed</entry>
						<entry>Expected</entry>
					</row>
				</thead>
				<tbody>
					<row>
						<entry>1st</entry>
						<entry/>
						<entry/>
					</row>
					<row>
						<entry>2nd</entry>
						<entry/>
						<entry/>
					</row>
					<row>
						<entry>3rd</entry>
						<entry/>
						<entry/>
					</row>
					<row>
						<entry>4th</entry>
						<entry/>
						<entry/>
					</row>
					<row>
						<entry>5th</entry>
						<entry/>
						<entry/>
					</row>
				</tbody>
			</tgroup>
		</table></item>
	
<item><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>o</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{o} } } {}</m:annotation></m:semantics></m:math>:</item>
<item> 
<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>:</item>
	
<item>What distribution should you use for a hypothesis test? </item>
<item>Why did you choose this distribution? </item>
<item>Calculate the test statistic.</item>
<item>Find the p-value.</item>
<item>Sketch a graph of the situation. Label and scale the x-axis. Shade the area corresponding to the 
p-value. <figure><media type="image/png" src="graph12.PNG">
				<param name="alt" value="Blank graph with vertical and horizontal axes."/>
				
				<param name="print-width" value="4in"/>
			</media></figure>
	</item>
	
<item>State your decision. </item>
<item>State your conclusion in a complete sentence. </item>
</list></section><section id="element-883"><name>Exponential Distribution</name><para id="element-875">
Test to see if grocery receipts follow the exponential distribution with decay
parameter <m:math>
		<m:mfrac>
			<m:mrow>
				<m:mn>1</m:mn>
			</m:mrow>
			<m:mrow>
				<m:apply>
					<m:conjugate/>
					<m:ci>x</m:ci>
				</m:apply>
			</m:mrow>
		</m:mfrac>
	</m:math>
.</para>

<list id="list-86872534" type="enumerated">
	<item>Using 
<m:math><m:semantics><m:mrow><m:mstyle fontsize="12pt"><m:mrow><m:mfrac><m:mn>1</m:mn><m:mover accent="true"><m:mi>x</m:mi><m:mo>¯</m:mo></m:mover></m:mfrac></m:mrow></m:mstyle><m:mrow/></m:mrow><m:annotation encoding="StarMath 5.0"> size 12{ {  {1}  over  { {overline  {x}} } } } {}</m:annotation></m:semantics></m:math> as the decay parameter, 
<m:math><m:semantics><m:mrow><m:mstyle fontsize="12pt"><m:mrow><m:mrow><m:mi>X</m:mi></m:mrow></m:mrow></m:mstyle></m:mrow></m:semantics></m:math> ~ <m:math><m:semantics><m:mrow><m:mstyle><m:mrow><m:mrow><m:mstyle fontstyle="italic"><m:mrow><m:mtext>Exp</m:mtext></m:mrow></m:mstyle><m:mfenced open="(" close=")"><m:mtext>_______</m:mtext></m:mfenced></m:mrow></m:mrow></m:mstyle><m:mrow/></m:mrow><m:annotation encoding="StarMath 5.0"> size 12{X "~"  ital "Exp" left ("_______" right )} {}</m:annotation></m:semantics></m:math>.</item>
	
<item>Calculate the following:

<list id="list3248" type="named-item"><?mark .?>
			<item><name>a</name>Lowest value = </item>
			<item><name>b</name>First quartile = </item>
			<item><name>c</name>37th percentile = </item>
			<item><name>d</name>Median = </item>
			<item><name>e</name>63rd percentile = </item>
			<item><name>f</name>3rd quartile = </item>
			<item><name>g</name>Highest value = </item>
		</list></item>
	<item>For each cell, count the observed number of receipts and record it. Then determine the expected number of receipts and record that.<table id="id5asd875fasssff533783">
<?table-summary The partially filled table presents the cell in the first column, observed in the blank second column, and the expected in the blank third column. There are 6 rows.?>
		<tgroup cols="3"><colspec colnum="1" colname="c1"/>
				<colspec colnum="2" colname="c2"/>
				<colspec colnum="3" colname="c3"/>
				<thead>
					<row>
						<entry>Cell</entry>
						<entry>Observed</entry>
						<entry>Expected</entry>
					</row>
				</thead>
				<tbody>
					<row>
						<entry>1st</entry>
						<entry/>
						<entry/>
					</row>
					<row>
						<entry>2nd</entry>
						<entry/>
						<entry/>
					</row>
					<row>
						<entry>3rd</entry>
						<entry/>
						<entry/>
					</row>
					<row>
						<entry>4th</entry>
						<entry/>
						<entry/>
					</row>
					<row>
						<entry>5th</entry>
						<entry/>
						<entry/>
					</row>
					<row>
						<entry>6th</entry>
						<entry/>
						<entry/>
					</row>
				</tbody>
			</tgroup>
		</table></item>
	<item><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>o</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{o} } } {}</m:annotation></m:semantics></m:math>
</item>
<item>
<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></item>
	<item>What distribution should you use for a hypothesis test? </item>
	<item>Why did you choose this distribution? </item>
	<item>Calculate the test statistic.</item>
	<item>Find the p-value.</item>
	<item>Sketch a graph of the situation. Label and scale the x-axis. Shade the area corresponding to the 
p-value. <figure><media type="image/png" src="graph12.PNG">
				<param name="alt" value="Blank graph with vertical and horizontal axes."/>
				
				<param name="print-width" value="4in"/>
			</media></figure>
	</item>
	<item>State your decision. </item>
	<item>State your conclusion in a complete sentence. </item>
</list></section><section id="element-11"><name>Discussion Questions</name><list id="list-8658234" type="enumerated">
	<item>Did your data fit either distribution? If so, which? </item>
	<item>In general, do you think it’s likely that data could fit more than one distribution? In complete sentences, explain why or why not.</item>
</list></section>
  </content>
</document>
