<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.socr.umich.edu/index.php?action=history&amp;feed=atom&amp;title=One_Sample_T-Test</id>
	<title>One Sample T-Test - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.socr.umich.edu/index.php?action=history&amp;feed=atom&amp;title=One_Sample_T-Test"/>
	<link rel="alternate" type="text/html" href="https://wiki.socr.umich.edu/index.php?title=One_Sample_T-Test&amp;action=history"/>
	<updated>2026-07-26T13:36:07Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.31.6</generator>
	<entry>
		<id>https://wiki.socr.umich.edu/index.php?title=One_Sample_T-Test&amp;diff=16941&amp;oldid=prev</id>
		<title>Tdlee: Text replacement - &quot;{{translate|pageName=http://wiki.stat.ucla.edu/socr/&quot; to &quot;&quot;{{translate|pageName=http://wiki.socr.umich.edu/&quot;</title>
		<link rel="alternate" type="text/html" href="https://wiki.socr.umich.edu/index.php?title=One_Sample_T-Test&amp;diff=16941&amp;oldid=prev"/>
		<updated>2020-03-03T19:42:55Z</updated>

		<summary type="html">&lt;p&gt;Text replacement - &amp;quot;{{translate|pageName=http://wiki.stat.ucla.edu/socr/&amp;quot; to &amp;quot;&amp;quot;{{translate|pageName=http://wiki.socr.umich.edu/&amp;quot;&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left&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: #222; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;Revision as of 19:42, 3 March 2020&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-l55&quot; &gt;Line 55:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 55:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; 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;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; 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;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; 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;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; 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;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color: #222; 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;{{translate|pageName=http://wiki.&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;stat&lt;/del&gt;.&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;ucla&lt;/del&gt;.edu&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;/socr&lt;/del&gt;/index.php?title=One_Sample_T-Test}}&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;&amp;quot;&lt;/ins&gt;{{translate|pageName=http://wiki.&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;socr&lt;/ins&gt;.&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;umich&lt;/ins&gt;.edu/index.php?title=One_Sample_T-Test}}&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Tdlee</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.socr.umich.edu/index.php?title=One_Sample_T-Test&amp;diff=2581&amp;oldid=prev</id>
		<title>IvoDinov at 15:44, 22 January 2007</title>
		<link rel="alternate" type="text/html" href="https://wiki.socr.umich.edu/index.php?title=One_Sample_T-Test&amp;diff=2581&amp;oldid=prev"/>
		<updated>2007-01-22T15:44:39Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left&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: #222; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;Revision as of 15:44, 22 January 2007&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-l53&quot; &gt;Line 53:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 53:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; 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;}&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; 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;}&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; 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;lt;/pre&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; 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;lt;/pre&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;{{translate|pageName=http://wiki.stat.ucla.edu/socr/index.php?title=One_Sample_T-Test}}&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>IvoDinov</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.socr.umich.edu/index.php?title=One_Sample_T-Test&amp;diff=2569&amp;oldid=prev</id>
		<title>Annie at 00:22, 22 January 2007</title>
		<link rel="alternate" type="text/html" href="https://wiki.socr.umich.edu/index.php?title=One_Sample_T-Test&amp;diff=2569&amp;oldid=prev"/>
		<updated>2007-01-22T00:22:56Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;&amp;lt;pre&amp;gt;&lt;br /&gt;
/*&lt;br /&gt;
&lt;br /&gt;
January 2007. Annie Che &amp;lt;chea@stat.ucla.edu&amp;gt;. UCLA Statistics.&lt;br /&gt;
&lt;br /&gt;
Source of example data:&lt;br /&gt;
Mathematical Statistics and Data Analysis, John Rice, Second Edition.&lt;br /&gt;
Page 390, example A, determination of the laten heat of fusion of ice.&lt;br /&gt;
&lt;br /&gt;
*/&lt;br /&gt;
package edu.ucla.stat.SOCR.analyses.example;&lt;br /&gt;
&lt;br /&gt;
import java.util.HashMap;&lt;br /&gt;
import edu.ucla.stat.SOCR.analyses.data.Data;&lt;br /&gt;
import edu.ucla.stat.SOCR.analyses.data.DataType;&lt;br /&gt;
import edu.ucla.stat.SOCR.analyses.result.OneTResult;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
public class OneTExample {&lt;br /&gt;
	public static void main(String args[]) {&lt;br /&gt;
		double[] soloVariable = {93,67,77,92,97,62,136,120,115,104,115,121,102,130, 198,217,209,221,190};&lt;br /&gt;
&lt;br /&gt;
		// you'll need to instantiate a data instance first.&lt;br /&gt;
		Data data = new Data();&lt;br /&gt;
&lt;br /&gt;
		//data.appendX(&amp;quot;score&amp;quot;, score, DataType.FACTOR);&lt;br /&gt;
		data.appendY(&amp;quot;SoloVariable&amp;quot;, soloVariable, DataType.QUANTITATIVE);&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
		// then use the following line to get the result.&lt;br /&gt;
		try {&lt;br /&gt;
			OneTResult result =&lt;br /&gt;
                        (OneTResult) data.modelOneT(soloVariable);&lt;br /&gt;
&lt;br /&gt;
			if (result != null) {&lt;br /&gt;
&lt;br /&gt;
				// Getting the model's parameter estiamtes and statistics.&lt;br /&gt;
				double sampleMean = result.getSampleMean();&lt;br /&gt;
				double sampleVar = result.getSampleVariance();&lt;br /&gt;
&lt;br /&gt;
				int degreesFreedome = result.getDF();&lt;br /&gt;
&lt;br /&gt;
				System.out.println(&amp;quot;sample mean = &amp;quot; + sampleMean);&lt;br /&gt;
				System.out.println(&amp;quot;sample variance = &amp;quot; + sampleVar);&lt;br /&gt;
				System.out.println(&amp;quot;degrees of freedom = &amp;quot; + degreesFreedome);&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
			}&lt;br /&gt;
		} catch (Exception e) {&lt;br /&gt;
			System.out.println(e);&lt;br /&gt;
		}&lt;br /&gt;
	}&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;/div&gt;</summary>
		<author><name>Annie</name></author>
		
	</entry>
</feed>