http://wiki.stat.ucla.edu/socr/index.php?title=SOCR_Courses_2012_2013_Stat13_1_Lab1&feed=atom&action=historySOCR Courses 2012 2013 Stat13 1 Lab1 - Revision history2024-03-29T11:20:42ZRevision history for this page on the wikiMediaWiki 1.15.1http://wiki.stat.ucla.edu/socr/index.php?title=SOCR_Courses_2012_2013_Stat13_1_Lab1&diff=12167&oldid=prevIvoDinov: /* 3. Histogram from Simulated Data */2013-04-11T23:16:50Z<p><span class="autocomment">3. Histogram from Simulated Data</span></p>
<table style="background-color: white; color:black;">
<col class='diff-marker' />
<col class='diff-content' />
<col class='diff-marker' />
<col class='diff-content' />
<tr valign='top'>
<td colspan='2' style="background-color: white; color:black;">← Older revision</td>
<td colspan='2' style="background-color: white; color:black;">Revision as of 23:16, 11 April 2013</td>
</tr>
<tr><td colspan="2" class="diff-lineno">Line 27:</td>
<td colspan="2" class="diff-lineno">Line 27:</td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>* Let's first get some data: Go to the [http://socr.ucla.edu/htmls/SOCR_Modeler.html Modeler tab] at the top of the page (It's best if you open a new page for this).</div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>* Let's first get some data: Go to the [http://socr.ucla.edu/htmls/SOCR_Modeler.html Modeler tab] at the top of the page (It's best if you open a new page for this).</div></td></tr>
<tr><td class='diff-marker'>-</td><td style="background: #ffa; color:black; font-size: smaller;"><div>* Click on the Data Generation button in the center of the screen. From the drop down bar choose the Normal Distribution and change the number of samples to 20 and the standard deviation to 100. Make sure the Raw Data box on the left is checked.</div></td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div>* Click on the <ins class="diffchange diffchange-inline">[[SOCR_EduMaterials_Activities_RNG|</ins>Data Generation button<ins class="diffchange diffchange-inline">]] </ins>in the center of the screen. From the drop down bar choose the Normal Distribution and change the number of samples to 20 and the standard deviation to 100. Make sure the Raw Data box on the left is checked.</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>* Hit Sample then click on the Data tab to see the data you generated.</div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>* Hit Sample then click on the Data tab to see the data you generated.</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>*Copy these data by highlighting them with the mouse and then using the Copy button at the top.</div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>*Copy these data by highlighting them with the mouse and then using the Copy button at the top.</div></td></tr>
<!-- diff generator: internal 2024-03-29 11:20:42 -->
</table>IvoDinovhttp://wiki.stat.ucla.edu/socr/index.php?title=SOCR_Courses_2012_2013_Stat13_1_Lab1&diff=12153&oldid=prevIvoDinov at 15:51, 8 April 20132013-04-08T15:51:13Z<p></p>
<table style="background-color: white; color:black;">
<col class='diff-marker' />
<col class='diff-content' />
<col class='diff-marker' />
<col class='diff-content' />
<tr valign='top'>
<td colspan='2' style="background-color: white; color:black;">← Older revision</td>
<td colspan='2' style="background-color: white; color:black;">Revision as of 15:51, 8 April 2013</td>
</tr>
<tr><td colspan="2" class="diff-lineno">Line 1:</td>
<td colspan="2" class="diff-lineno">Line 1:</td></tr>
<tr><td class='diff-marker'>-</td><td style="background: #ffa; color:black; font-size: smaller;"><div>== [[<del class="diffchange diffchange-inline">SOCR_Courses_2012_2013_Stat13_1 </del>| Stats 13.1]] - Laboratory Activity 1==</div></td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div> </div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div>== [[<ins class="diffchange diffchange-inline">SOCR_Courses_2011_2012_Stat13_1 </ins>| Stats 13.1]] - Laboratory Activity 1==</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>===Histogram Activity===</div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>===Histogram Activity===</div></td></tr>
<tr><td colspan="2" class="diff-lineno">Line 9:</td>
<td colspan="2" class="diff-lineno">Line 10:</td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>====1. Histogram from Categories and Frequencies====</div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>====1. Histogram from Categories and Frequencies====</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td></tr>
<tr><td class='diff-marker'>-</td><td style="background: #ffa; color:black; font-size: smaller;"><div>* In the area on the left, click the arrow next to Bar Charts then XYPlots. Then click on <del class="diffchange diffchange-inline">'''</del>HistogramChartDemo3<del class="diffchange diffchange-inline">'''</del></div></td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div>* In the area on the left, click the arrow next to <ins class="diffchange diffchange-inline">[http://socr.ucla.edu/htmls/SOCR_Charts.html </ins>Bar Charts then XYPlots<ins class="diffchange diffchange-inline">]</ins>. Then click on <ins class="diffchange diffchange-inline">[http://socr.ucla.edu/htmls/chart/HistogramDemoChart3_Chart.html </ins>HistogramChartDemo3<ins class="diffchange diffchange-inline">].</ins></div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div><ins class="diffchange diffchange-inline">* Click on the SNAPSHOT button and save a copy of this original histogram.</ins></div></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>* Click on the DATA tab to view the default data. Notice that the chart requires the user to enter the counts/frequencies of observations within each of the range categories (in this default data case, year).</div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>* Click on the DATA tab to view the default data. Notice that the chart requires the user to enter the counts/frequencies of observations within each of the range categories (in this default data case, year).</div></td></tr>
<tr><td class='diff-marker'>-</td><td style="background: #ffa; color:black; font-size: smaller;"><div>* Using the SHOW ALL tab you can see all three (graph, data and mapping) in the same view.</div></td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div>* Using the SHOW ALL tab you can see all three (graph, data and mapping) in the same view. </div></td></tr>
<tr><td class='diff-marker'>-</td><td style="background: #ffa; color:black; font-size: smaller;"><div>* Try revising some of the numbers in the second (frequency) column and click UPDATE button to see the effect of these changes on the histogram. <del class="diffchange diffchange-inline">Do this several times</del>. Take a SNAPSHOT and print off <del class="diffchange diffchange-inline">one </del>new histogram.</div></td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div>* Try revising some of the numbers in the second (frequency) column and click <ins class="diffchange diffchange-inline">the </ins>UPDATE <ins class="diffchange diffchange-inline">CHART </ins>button to see the effect of these changes on the histogram. <ins class="diffchange diffchange-inline">Change the frequency for at least 6 years.</ins></div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div><ins class="diffchange diffchange-inline">* Click on the GRAPH button to return to view just the histogram</ins>. Take a SNAPSHOT and</div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div>print off <ins class="diffchange diffchange-inline">your </ins>new histogram.</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>====2. Simple Histogram from Raw Data====</div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>====2. Simple Histogram from Raw Data====</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td></tr>
<tr><td class='diff-marker'>-</td><td style="background: #ffa; color:black; font-size: smaller;"><div>* Click on HistogramChartDemo1</div></td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div>* Click on <ins class="diffchange diffchange-inline">[http://socr.ucla.edu/htmls/chart/HistogramDemoChart3_Chart.html </ins>HistogramChartDemo1<ins class="diffchange diffchange-inline">] and take a SNAPSHOT of the original histogram.</ins></div></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>* Scroll down to find the Bin Size adjustment bar</div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>* Scroll down to find the Bin Size adjustment bar</div></td></tr>
<tr><td class='diff-marker'>-</td><td style="background: #ffa; color:black; font-size: smaller;"><div>* <del class="diffchange diffchange-inline">Change </del>the <del class="diffchange diffchange-inline">bin </del>size</div></td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div>* <ins class="diffchange diffchange-inline">Make </ins>the size <ins class="diffchange diffchange-inline">of the bins both smaller and larger. Take a SNAPSHOT of each.</ins></div></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>====3. Histogram from Simulated Data====</div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>====3. Histogram from Simulated Data====</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td></tr>
<tr><td class='diff-marker'>-</td><td style="background: #ffa; color:black; font-size: smaller;"><div>* <del class="diffchange diffchange-inline">Lets </del>first get some data: Go to the Modeler tab at the top of the page<del class="diffchange diffchange-inline">. </del>It <del class="diffchange diffchange-inline">is </del>best if you open a new page for this.</div></td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div>* <ins class="diffchange diffchange-inline">Let's </ins>first get some data: Go to the <ins class="diffchange diffchange-inline">[http://socr.ucla.edu/htmls/SOCR_Modeler.html </ins>Modeler tab<ins class="diffchange diffchange-inline">] </ins>at the top of the page <ins class="diffchange diffchange-inline">(</ins>It<ins class="diffchange diffchange-inline">'s </ins>best if you open a new page for this<ins class="diffchange diffchange-inline">)</ins>.</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>* Click on the Data Generation button in the center of the screen. From the drop down bar choose the Normal Distribution and change the number of samples to 20 and the standard deviation to 100. Make sure the Raw Data box on the left is checked.</div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>* Click on the Data Generation button in the center of the screen. From the drop down bar choose the Normal Distribution and change the number of samples to 20 and the standard deviation to 100. Make sure the Raw Data box on the left is checked.</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>* Hit Sample then click on the Data tab to see the data you generated.</div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>* Hit Sample then click on the Data tab to see the data you generated.</div></td></tr>
<tr><td class='diff-marker'>-</td><td style="background: #ffa; color:black; font-size: smaller;"><div>* Copy these data using the Copy button at the top. <del class="diffchange diffchange-inline">(select all using Apple+a)</del></div></td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div>*Copy these data <ins class="diffchange diffchange-inline">by highlighting them with the mouse and then </ins>using the Copy button at the top.</div></td></tr>
<tr><td class='diff-marker'>-</td><td style="background: #ffa; color:black; font-size: smaller;"><div>* Go back to the <del class="diffchange diffchange-inline">data section of the </del>histogram <del class="diffchange diffchange-inline">chart </del>and <del class="diffchange diffchange-inline">replace </del>the <del class="diffchange diffchange-inline">current data with </del>the data <del class="diffchange diffchange-inline">you just copied</del>. <del class="diffchange diffchange-inline">Make sure to use </del>the PASTE button on the left.</div></td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div>* Go back to the <ins class="diffchange diffchange-inline">your </ins>histogram <ins class="diffchange diffchange-inline">plots window </ins>and <ins class="diffchange diffchange-inline">click on </ins>the <ins class="diffchange diffchange-inline">DATA section. Wipe out </ins>the <ins class="diffchange diffchange-inline">old </ins>data <ins class="diffchange diffchange-inline">by pressing on the CLEAR button and then click on the first cell under the column C1</ins>. <ins class="diffchange diffchange-inline">Click on </ins>the PASTE button on the left <ins class="diffchange diffchange-inline">to paste your new data into the window. Double click on 'C1' and relabel your column of data as 'Data' then hit the RETURN key on your keyboard</ins>.</div></td></tr>
<tr><td class='diff-marker'>-</td><td style="background: #ffa; color:black; font-size: smaller;"><div>* Click UPDATE CHART</div></td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div>* Click UPDATE CHART<ins class="diffchange diffchange-inline">. Go back to your histogram and take SNAPSHOT of your new histogram.</ins></div></td></tr>
<tr><td class='diff-marker'>-</td><td style="background: #ffa; color:black; font-size: smaller;"><div>* Change the bin size smaller and larger <del class="diffchange diffchange-inline">and observe how the graph changes</del></div></td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div>* Change the bin size <ins class="diffchange diffchange-inline">of your histogram and take SNAPSHOTs of it with both a </ins>smaller and larger <ins class="diffchange diffchange-inline">bin size.</ins></div></td></tr>
<tr><td class='diff-marker'>-</td><td style="background: #ffa; color:black; font-size: smaller;"><div>* <del class="diffchange diffchange-inline">Repeat but change </del>the <del class="diffchange diffchange-inline">number of </del>samples <del class="diffchange diffchange-inline">to 100</del></div></td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div>* <ins class="diffchange diffchange-inline">Redo </ins>the <ins class="diffchange diffchange-inline">previous steps again but this time generate 150 </ins>samples<ins class="diffchange diffchange-inline">.</ins></div></td></tr>
<tr><td class='diff-marker'>-</td><td style="background: #ffa; color:black; font-size: smaller;"><div>* <del class="diffchange diffchange-inline">Take </del>a SNAPSHOT <del class="diffchange diffchange-inline">and print off one </del>new histogram</div></td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div>* <ins class="diffchange diffchange-inline">Remember to take </ins>a SNAPSHOT <ins class="diffchange diffchange-inline">of your </ins>new histogram <ins class="diffchange diffchange-inline">with the original bin size, with a smaller bin size and with a larger bin size</ins>.</div></td></tr>
<tr><td class='diff-marker'>-</td><td style="background: #ffa; color:black; font-size: smaller;"><div> </div></td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div></div></td></tr>
<tr><td class='diff-marker'>-</td><td style="background: #ffa; color:black; font-size: smaller;"><div><del class="diffchange diffchange-inline">====4</del>. <del class="diffchange diffchange-inline">Questions====</del></div></td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div></div></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td></tr>
<tr><td class='diff-marker'>-</td><td style="background: #ffa; color:black; font-size: smaller;"><div><del class="diffchange diffchange-inline">Answer each question fully using appropriate terminology and references to snapshots if</del></div></td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div><ins class="diffchange diffchange-inline">====4</ins>. <ins class="diffchange diffchange-inline">Exercise Questions====</ins></div></td></tr>
<tr><td class='diff-marker'>-</td><td style="background: #ffa; color:black; font-size: smaller;"><div><del class="diffchange diffchange-inline">appropriate</del>.</div></td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div></div></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td></tr>
<tr><td class='diff-marker'>-</td><td style="background: #ffa; color:black; font-size: smaller;"><div><del class="diffchange diffchange-inline">1) What is </del>the <del class="diffchange diffchange-inline">effect of </del>the <del class="diffchange diffchange-inline">width/size of the histogram bin on the shape of the resulting histogram? Would the shape of the histogram change significantly if we alter the bin-size?</del></div></td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div><ins class="diffchange diffchange-inline">'''Directions''': Answer each question by using complete sentences and appropriate terminology. Remember to word your solutions in such a way so that </ins>the <ins class="diffchange diffchange-inline">reader will understand </ins>the <ins class="diffchange diffchange-inline">question you're being asked to solve. You should include appropriately sized snapshots to help explain your answers.</ins></div></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td></tr>
<tr><td class='diff-marker'>-</td><td style="background: #ffa; color:black; font-size: smaller;"><div><del class="diffchange diffchange-inline">2</del>) How do the <del class="diffchange diffchange-inline">sample </del>size and bin size <del class="diffchange diffchange-inline">interact</del>?</div></td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div><ins class="diffchange diffchange-inline">* From the Histogram from Categories and Frequencies section:</ins></div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div><ins class="diffchange diffchange-inline">** How many data points are included in the original histogram (before you made your changes</ins>)<ins class="diffchange diffchange-inline">.</ins></div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div><ins class="diffchange diffchange-inline">** Describe the distribution (Where is it centered? How is it shaped? How much spread is there?). Would using the mean or median be more appropriate for describing the center of the distribution? Why?</ins></div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div><ins class="diffchange diffchange-inline">** How does the snapshot of the original distribution compare to the snapshot of the one you changed (in terms of the center, shape and spread of the distributions)?</ins></div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div><ins class="diffchange diffchange-inline">*From the Simple Histogram from Raw Data section:</ins></div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div><ins class="diffchange diffchange-inline">** Describe the original distribution (with bin size = 0.1).</ins></div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div><ins class="diffchange diffchange-inline">** Compare the original distribution with the other two snapshots with smaller and larger bin sizes. How does the Y-axis change when bins are smaller or larger? Why does this occur? </ins></div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div><ins class="diffchange diffchange-inline">** As the bin size gets smaller or larger, how is the shape of the distribution afected?</ins></div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div><ins class="diffchange diffchange-inline">* From the Histogram from Simulated Data section:</ins></div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div><ins class="diffchange diffchange-inline">** Describe the distributions of the histograms using both 20 and 150 samples (and the original bin size). </ins>How do <ins class="diffchange diffchange-inline">they compare?</ins></div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div><ins class="diffchange diffchange-inline">** What happens to the shape of the histogram as we take larger samples?</ins></div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div><ins class="diffchange diffchange-inline">** Look at your snapshots of the histograms with 150 samples. What happens as </ins>the size <ins class="diffchange diffchange-inline">of the bins get smaller </ins>and <ins class="diffchange diffchange-inline">larger? Of the three snapshots you took, which </ins>bin size <ins class="diffchange diffchange-inline">do you think best describes the data?</ins></div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div><ins class="diffchange diffchange-inline">** Under what circumstances would you use smaller or larger bin sizes</ins>?</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td></tr>
<tr><td class='diff-marker'>-</td><td style="background: #ffa; color:black; font-size: smaller;"><div><del style="color: red; font-weight: bold; text-decoration: none;">3) Would you expect the shape of the sample histogram to look like the shape of the population distribution the data sample came from?</del></div></td><td colspan="2"> </td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div><hr></div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div><hr></div></td></tr>
<!-- diff generator: internal 2024-03-29 11:20:42 -->
</table>IvoDinovhttp://wiki.stat.ucla.edu/socr/index.php?title=SOCR_Courses_2012_2013_Stat13_1_Lab1&diff=12053&oldid=prevIvoDinov: Created page with '== Stats 13.1 - Laboratory Activity 1== ===Histogram Activity=== This is an exploratory data analysis SOCR activity that illustrates the g…'2013-02-26T01:52:29Z<p>Created page with '== <a href="/socr/index.php/SOCR_Courses_2012_2013_Stat13_1" title="SOCR Courses 2012 2013 Stat13 1"> Stats 13.1</a> - Laboratory Activity 1== ===Histogram Activity=== This is an exploratory data analysis SOCR activity that illustrates the g…'</p>
<p><b>New page</b></p><div>== [[SOCR_Courses_2012_2013_Stat13_1 | Stats 13.1]] - Laboratory Activity 1==<br />
<br />
===Histogram Activity===<br />
<br />
This is an exploratory data analysis SOCR activity that illustrates the generation and interpretation of the histogram of quantitative data. In a nutshell, a histogram of a dataset is a graphical visualization of tabulated frequencies or counts of data within equispaced partition of the range of the data. A histogram shows what proportion of measurements fall into each of the categories defined by the partition of the data range space.<br />
<br />
Go to the [http://www.socr.ucla.edu/htmls/SOCR_Charts.html SOCR Charts] (use the Charts tab at the top of the page). Once the page comes up, go to the left side of the page and drag the gray bar to the right. <br />
<br />
====1. Histogram from Categories and Frequencies====<br />
<br />
* In the area on the left, click the arrow next to Bar Charts then XYPlots. Then click on '''HistogramChartDemo3'''<br />
* Click on the DATA tab to view the default data. Notice that the chart requires the user to enter the counts/frequencies of observations within each of the range categories (in this default data case, year).<br />
* Using the SHOW ALL tab you can see all three (graph, data and mapping) in the same view.<br />
* Try revising some of the numbers in the second (frequency) column and click UPDATE button to see the effect of these changes on the histogram. Do this several times. Take a SNAPSHOT and print off one new histogram.<br />
<br />
====2. Simple Histogram from Raw Data====<br />
<br />
* Click on HistogramChartDemo1<br />
* Scroll down to find the Bin Size adjustment bar<br />
* Change the bin size<br />
<br />
====3. Histogram from Simulated Data====<br />
<br />
* Lets first get some data: Go to the Modeler tab at the top of the page. It is best if you open a new page for this.<br />
* Click on the Data Generation button in the center of the screen. From the drop down bar choose the Normal Distribution and change the number of samples to 20 and the standard deviation to 100. Make sure the Raw Data box on the left is checked.<br />
* Hit Sample then click on the Data tab to see the data you generated.<br />
* Copy these data using the Copy button at the top. (select all using Apple+a)<br />
* Go back to the data section of the histogram chart and replace the current data with the data you just copied. Make sure to use the PASTE button on the left.<br />
* Click UPDATE CHART<br />
* Change the bin size smaller and larger and observe how the graph changes<br />
* Repeat but change the number of samples to 100<br />
* Take a SNAPSHOT and print off one new histogram<br />
<br />
====4. Questions====<br />
<br />
Answer each question fully using appropriate terminology and references to snapshots if<br />
appropriate.<br />
<br />
1) What is the effect of the width/size of the histogram bin on the shape of the resulting histogram? Would the shape of the histogram change significantly if we alter the bin-size?<br />
<br />
2) How do the sample size and bin size interact?<br />
<br />
3) Would you expect the shape of the sample histogram to look like the shape of the population distribution the data sample came from?<br />
<br />
<hr><br />
* SOCR Home page: http://www.socr.ucla.edu<br />
<br />
{{translate|pageName=http://wiki.stat.ucla.edu/socr/index.php?title=SOCR_Courses_2012_2013_Stat13_1_Lab1}}</div>IvoDinov