<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>http://vrl.cs.brown.edu/wiki/index.php?action=history&amp;feed=atom&amp;title=Statistics_Tutorial</id>
	<title>Statistics Tutorial - Revision history</title>
	<link rel="self" type="application/atom+xml" href="http://vrl.cs.brown.edu/wiki/index.php?action=history&amp;feed=atom&amp;title=Statistics_Tutorial"/>
	<link rel="alternate" type="text/html" href="http://vrl.cs.brown.edu/wiki/index.php?title=Statistics_Tutorial&amp;action=history"/>
	<updated>2026-04-18T19:11:10Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.1</generator>
	<entry>
		<id>http://vrl.cs.brown.edu/wiki/index.php?title=Statistics_Tutorial&amp;diff=6400&amp;oldid=prev</id>
		<title>Ryan Cabeen at 19:04, 29 August 2013</title>
		<link rel="alternate" type="text/html" href="http://vrl.cs.brown.edu/wiki/index.php?title=Statistics_Tutorial&amp;diff=6400&amp;oldid=prev"/>
		<updated>2013-08-29T19:04:18Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 19:04, 29 August 2013&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l1&quot;&gt;Line 1:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 1:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;== Tutorial and Examples ==&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-added&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;#039;&amp;#039;&amp;#039;N.B., WE NEED SOMEONE TO TEST THIS TUTORIAL-- IT IS UNTESTED.  IF IT WORKS, REMOVE THIS DISCLAIMER.&amp;#039;&amp;#039;&amp;#039;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;#039;&amp;#039;&amp;#039;N.B., WE NEED SOMEONE TO TEST THIS TUTORIAL-- IT IS UNTESTED.  IF IT WORKS, REMOVE THIS DISCLAIMER.&amp;#039;&amp;#039;&amp;#039;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Ryan Cabeen</name></author>
	</entry>
	<entry>
		<id>http://vrl.cs.brown.edu/wiki/index.php?title=Statistics_Tutorial&amp;diff=6398&amp;oldid=prev</id>
		<title>Ryan Cabeen: Created page with &quot;== Tutorial and Examples ==  &#039;&#039;&#039;N.B., WE NEED SOMEONE TO TEST THIS TUTORIAL-- IT IS UNTESTED.  IF IT WORKS, REMOVE THIS DISCLAIMER.&#039;&#039;&#039;  This section demonstrates through some ...&quot;</title>
		<link rel="alternate" type="text/html" href="http://vrl.cs.brown.edu/wiki/index.php?title=Statistics_Tutorial&amp;diff=6398&amp;oldid=prev"/>
		<updated>2013-08-29T19:02:50Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;== Tutorial and Examples ==  &amp;#039;&amp;#039;&amp;#039;N.B., WE NEED SOMEONE TO TEST THIS TUTORIAL-- IT IS UNTESTED.  IF IT WORKS, REMOVE THIS DISCLAIMER.&amp;#039;&amp;#039;&amp;#039;  This section demonstrates through some ...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;== Tutorial and Examples ==&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;N.B., WE NEED SOMEONE TO TEST THIS TUTORIAL-- IT IS UNTESTED.  IF IT WORKS, REMOVE THIS DISCLAIMER.&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
This section demonstrates through some simple examples how to use statistical tools to process your observations and create graphs for papers or presentations.&lt;br /&gt;
Initially, this tutorial will use SAS and gnuplot to create graphs.  We should expand it to demonstrate how to use Matlab and SPSS which are also popular and powerful tools for doing statistics.&lt;br /&gt;
&lt;br /&gt;
Example 1. You are interested in two visualization methods and want to compare the speed a task is completed with both.  First, setup your experiment and collect your samples which might be of this form:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
technique    time&lt;br /&gt;
1            12&lt;br /&gt;
2            7&lt;br /&gt;
1            13&lt;br /&gt;
2            9&lt;br /&gt;
1            20&lt;br /&gt;
2            10&lt;br /&gt;
1            16&lt;br /&gt;
2            12&lt;br /&gt;
1            13&lt;br /&gt;
2            15&lt;br /&gt;
1            14&lt;br /&gt;
2            6&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Here on, we assume this data is stored in a text file named &amp;quot;data.txt&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The SAS script below can process the data and produce new files with statistical information and data suited to plotting with gnuplut.  You could cut-and-paste the text into a file named &amp;quot;analyze_time_data.sas&amp;quot; to try it out.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
*options pageno=1 formdlim=&amp;#039;-&amp;#039;;&lt;br /&gt;
options nonumber nocenter  nodate pagesize=8000;&lt;br /&gt;
&lt;br /&gt;
data result;&lt;br /&gt;
infile &amp;#039;data.txt&amp;#039;;&lt;br /&gt;
input technique time;&lt;br /&gt;
cards;&lt;br /&gt;
*proc print;&lt;br /&gt;
run;&lt;br /&gt;
&lt;br /&gt;
/* sort */&lt;br /&gt;
title &amp;#039;result: just sort it&amp;#039;;&lt;br /&gt;
proc sort data = result;&lt;br /&gt;
by technique;&lt;br /&gt;
*proc print;&lt;br /&gt;
run;&lt;br /&gt;
&lt;br /&gt;
/* summary statistics */&lt;br /&gt;
title &amp;#039;result: GLM test on time/tech&amp;#039;;&lt;br /&gt;
proc glm data = result;&lt;br /&gt;
class technique;&lt;br /&gt;
model time = technique;&lt;br /&gt;
means technique / tukey;&lt;br /&gt;
run;&lt;br /&gt;
&lt;br /&gt;
title &amp;#039;result: mean summary statistics technique (time)&amp;#039;;&lt;br /&gt;
proc means mean std data=result;&lt;br /&gt;
by technique;&lt;br /&gt;
var time;&lt;br /&gt;
output out=result_means MEAN=Mean STDDEV=StdDev;&lt;br /&gt;
proc export data=result_means outfile=&amp;#039;graph_data.gp&amp;#039; replace;&lt;br /&gt;
proc print;&lt;br /&gt;
run;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
A bar graph with error bars showing standard deviation can be produced from the file &amp;quot;graph_data.gp&amp;quot; using the scipt below.  &amp;#039;&amp;#039;&amp;#039;FUTURE WORK-- MAKE A CHANGE SO WE GET 95% CONFIDENCE INTERVALS WHICH IS MORE TYPICAL THAN STANDARD DEVIATION.&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
set xlabel &amp;quot;Put X-Axis Your Label Here&amp;quot;&lt;br /&gt;
set ylabel &amp;quot;Time&amp;quot;&lt;br /&gt;
set xrange [0.5:2.5]&lt;br /&gt;
set yrange [0:60]&lt;br /&gt;
set nokey&lt;br /&gt;
set noxtic&lt;br /&gt;
set boxwidth 1.5 relative&lt;br /&gt;
set xtics (&amp;quot;Tech-1&amp;quot; 0, &amp;quot;Tech-2&amp;quot; 1)&lt;br /&gt;
set terminal postscript eps 30&lt;br /&gt;
set output &amp;quot;graph.ps&amp;quot;&lt;br /&gt;
plot &amp;quot;graph_data.gp&amp;quot; using 1:($4):($4-$5):($4+$5) with errorbars&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Example 2. You surveyed a population and want to run statistical analysis on the data collected and produce graphs showing the result.&lt;br /&gt;
&lt;br /&gt;
[FILL IN...]&lt;/div&gt;</summary>
		<author><name>Ryan Cabeen</name></author>
	</entry>
</feed>