<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>http://learn.cemetech.net/index.php?action=history&amp;feed=atom&amp;title=TI-BASIC%3A2_Sampzint</id>
	<title>TI-BASIC:2 Sampzint - Revision history</title>
	<link rel="self" type="application/atom+xml" href="http://learn.cemetech.net/index.php?action=history&amp;feed=atom&amp;title=TI-BASIC%3A2_Sampzint"/>
	<link rel="alternate" type="text/html" href="http://learn.cemetech.net/index.php?title=TI-BASIC:2_Sampzint&amp;action=history"/>
	<updated>2026-04-04T01:26:21Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.3</generator>
	<entry>
		<id>http://learn.cemetech.net/index.php?title=TI-BASIC:2_Sampzint&amp;diff=1302&amp;oldid=prev</id>
		<title>Maintenance script: Automated @@ correction</title>
		<link rel="alternate" type="text/html" href="http://learn.cemetech.net/index.php?title=TI-BASIC:2_Sampzint&amp;diff=1302&amp;oldid=prev"/>
		<updated>2016-02-24T21:40:19Z</updated>

		<summary type="html">&lt;p&gt;Automated @@ correction&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 21:40, 24 February 2016&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-l2&quot;&gt;Line 2:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 2:&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;|picture=2-SAMPZINT.GIF&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;|picture=2-SAMPZINT.GIF&lt;/div&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;|summary=Using either already-calculated statistics, or two data sets, computes a Z confidence interval for the difference between two sample means.&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;|summary=Using either already-calculated statistics, or two data sets, computes a Z confidence interval for the difference between two sample means.&lt;/div&gt;&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;|syntax=2-SampZInt(&#039;&#039;σ,,1,,&#039;&#039;, &#039;&#039;σ,,2,,&#039;&#039;, [&#039;&#039;list1&#039;&#039;, &#039;&#039;list2&#039;&#039;, &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;@@&lt;/del&gt;[&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;@@&lt;/del&gt;&#039;&#039;frequency1&#039;&#039;], [&#039;&#039;frequency2&#039;&#039;], &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;@@&lt;/del&gt;[&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;@@&lt;/del&gt;&#039;&#039;confidence level&#039;&#039;]&lt;/div&gt;&lt;/td&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: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;|syntax=2-SampZInt(&#039;&#039;σ,,1,,&#039;&#039;, &#039;&#039;σ,,2,,&#039;&#039;, [&#039;&#039;list1&#039;&#039;, &#039;&#039;list2&#039;&#039;, &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&amp;lt;nowiki&amp;gt;&lt;/ins&gt;[&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&amp;lt;/nowiki&amp;gt;&lt;/ins&gt;&#039;&#039;frequency1&#039;&#039;], [&#039;&#039;frequency2&#039;&#039;], &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&amp;lt;nowiki&amp;gt;&lt;/ins&gt;[&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&amp;lt;/nowiki&amp;gt;&lt;/ins&gt;&#039;&#039;confidence level&#039;&#039;]&lt;/div&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;(data list input)&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;(data list input)&lt;/div&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;/table&gt;</summary>
		<author><name>Maintenance script</name></author>
	</entry>
	<entry>
		<id>http://learn.cemetech.net/index.php?title=TI-BASIC:2_Sampzint&amp;diff=1191&amp;oldid=prev</id>
		<title>Maintenance script: Initial automated import</title>
		<link rel="alternate" type="text/html" href="http://learn.cemetech.net/index.php?title=TI-BASIC:2_Sampzint&amp;diff=1191&amp;oldid=prev"/>
		<updated>2016-02-24T18:39:20Z</updated>

		<summary type="html">&lt;p&gt;Initial automated import&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{Template:TI-BASIC:Command&lt;br /&gt;
|picture=2-SAMPZINT.GIF&lt;br /&gt;
|summary=Using either already-calculated statistics, or two data sets, computes a Z confidence interval for the difference between two sample means.&lt;br /&gt;
|syntax=2-SampZInt(&amp;#039;&amp;#039;σ,,1,,&amp;#039;&amp;#039;, &amp;#039;&amp;#039;σ,,2,,&amp;#039;&amp;#039;, [&amp;#039;&amp;#039;list1&amp;#039;&amp;#039;, &amp;#039;&amp;#039;list2&amp;#039;&amp;#039;, @@[@@&amp;#039;&amp;#039;frequency1&amp;#039;&amp;#039;], [&amp;#039;&amp;#039;frequency2&amp;#039;&amp;#039;], @@[@@&amp;#039;&amp;#039;confidence level&amp;#039;&amp;#039;]&lt;br /&gt;
(data list input)&lt;br /&gt;
&lt;br /&gt;
2-SampZInt(&amp;#039;&amp;#039;σ,,1,,&amp;#039;&amp;#039;, &amp;#039;&amp;#039;σ,,2,,&amp;#039;&amp;#039;, &amp;#039;&amp;#039;x,,1,,&amp;#039;&amp;#039;, &amp;#039;&amp;#039;n,,1,,&amp;#039;&amp;#039;, &amp;#039;&amp;#039;x,,2,,&amp;#039;&amp;#039;, &amp;#039;&amp;#039;n,,2,,&amp;#039;&amp;#039;, [&amp;#039;&amp;#039;confidence level&amp;#039;&amp;#039;]&lt;br /&gt;
(summary stats input)&lt;br /&gt;
|location=When editing a program, press:&lt;br /&gt;
# STAT to access the statistics menu&lt;br /&gt;
# LEFT to access the TESTS submenu&lt;br /&gt;
# 9 to select 2-SampZInt(, or use arrows&lt;br /&gt;
(this key sequence will give you the 2-SampZInt... screen outside a program)&lt;br /&gt;
|compatibility=TI-83/84/+/SE&lt;br /&gt;
|size=2 bytes&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
The 2-SampZInt( command uses the techniques of Z Intervals to compute an interval for the &amp;#039;&amp;#039;&amp;#039;difference&amp;#039;&amp;#039;&amp;#039; between the means of two independent populations, at a specified confidence level. Use 2-SampZInt( when you have two independent variables to compare, and you already know their standard deviations. The 2-SampZInt( command assumes that both variables are distributed normally, but it will work for other distributions if the sample size is large enough.&lt;br /&gt;
&lt;br /&gt;
There are two ways to call this command: by supplying it with needed sample statistics (mean and sample size, for both data sets), or by entering two lists and letting the calculator work the statistics out. In either case, you will need to enter the standard deviation and desired confidence level as well. &lt;br /&gt;
&lt;br /&gt;
In the data list syntax, &amp;#039;&amp;#039;σ,,1,,&amp;#039;&amp;#039; and &amp;#039;&amp;#039;σ,,2,,&amp;#039;&amp;#039; are the two standard deviations. &lt;br /&gt;
In the summary stats syntax, &amp;#039;&amp;#039;σ,,1,,&amp;#039;&amp;#039; and &amp;#039;&amp;#039;σ,,2,,&amp;#039;&amp;#039; are the two standard deviations, &amp;#039;&amp;#039;x,,1,,&amp;#039;&amp;#039; and &amp;#039;&amp;#039;x,,2,,&amp;#039;&amp;#039; the two sample means, and &amp;#039;&amp;#039;n,,1,,&amp;#039;&amp;#039; and &amp;#039;&amp;#039;n,,2,,&amp;#039;&amp;#039; the two sample sizes.&lt;br /&gt;
&lt;br /&gt;
The output will contain an open interval (a, b) that is your answer: the difference between the two means will lie in this interval. Specifically, it is the second mean subtracted from the first - μ,,1,,-μ,,2,,. If you&amp;#039;re interested in the reverse difference, just flip the signs on the interval.&lt;br /&gt;
&lt;br /&gt;
Tip: don&amp;#039;t use this command in a matched-pairs setting when you can match the two samples up by units or subjects. Instead, take the difference between the two samples in each matched pair, and use a regular [[TI-BASIC:Zinterval|ZInterval]].&lt;br /&gt;
&lt;br /&gt;
= Sample Problem =&lt;br /&gt;
&lt;br /&gt;
You want to compare the average height of a freshman and a senior at your school. You haven&amp;#039;t asked everyone, but you took a random sample of 40 people from each class and found out their heights (and stored them to L,,1,, and L,,2,,). You&amp;#039;ve read in your textbook that the standard deviation of teenagers&amp;#039; heights is usually 6 inches. You&amp;#039;ve decided to use a 95% confidence interval.&lt;br /&gt;
&lt;br /&gt;
Based on the data list syntax for a 2-SampZInt(, here is your code:&lt;br /&gt;
&lt;br /&gt;
 :2-SampZInt(6,6,L1,L2,95&lt;br /&gt;
 you can also use&lt;br /&gt;
 :2-SampZInt(6,6,L1,L2,.95&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Alternatively, you could calculate the mean and sample size and enter those instead. The sample size in this case is 40 for both data sets; let&amp;#039;s say the means were 57 inches and 67 inches. You now have all the needed statistics:&lt;br /&gt;
* &amp;#039;&amp;#039;σ,,1,,&amp;#039;&amp;#039; is the standard deviation for freshmen: 6 inches&lt;br /&gt;
* &amp;#039;&amp;#039;σ,,2,,&amp;#039;&amp;#039; is the standard deviation for seniors: also 6 inches &lt;br /&gt;
* &amp;#039;&amp;#039;x,,1,,&amp;#039;&amp;#039; is the mean height of freshmen: 57 inches&lt;br /&gt;
* &amp;#039;&amp;#039;n,,1,,&amp;#039;&amp;#039; is the number of freshmen in the sample: 40&lt;br /&gt;
* &amp;#039;&amp;#039;x,,2,,&amp;#039;&amp;#039; is the mean height of seniors: 67 inches&lt;br /&gt;
* &amp;#039;&amp;#039;n,,2,,&amp;#039;&amp;#039; is the number of seniors in the sample: 40&lt;br /&gt;
This means that the code is:&lt;br /&gt;
&lt;br /&gt;
 :2-SampZInt(6,6,57,40,67,40,95&lt;br /&gt;
 you can also use&lt;br /&gt;
 :2-SampZInt(6,6,57,40,67,40,.95&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Of course, the main use of the 2-SampZInt( command is in a program. While you can enter the command on the home screen as well (just look in the catalog for it), it would probably be easier to select 2-SampZInt... from the STAT&amp;gt;TEST menu (see the sidebar), since you don&amp;#039;t have to remember the syntax.&lt;br /&gt;
&lt;br /&gt;
= Advanced Uses =&lt;br /&gt;
&lt;br /&gt;
As with most other statistical commands, you can add frequencies to the lists (only with the data list syntax, of course); if you do, both lists must have frequencies, and the arguments go in the order &amp;#039;&amp;#039;first data list&amp;#039;&amp;#039;, &amp;#039;&amp;#039;second data list&amp;#039;&amp;#039;, &amp;#039;&amp;#039;first freq. list&amp;#039;&amp;#039;, &amp;#039;&amp;#039;second freq. list&amp;#039;&amp;#039;. Each frequency list must contain non-negative real numbers, which can&amp;#039;t be all 0.&lt;br /&gt;
= Optimization =&lt;br /&gt;
&lt;br /&gt;
Using the data list syntax, all items but the standard deviations are optional: the calculator will assume you want to use L1 and L2 for your data unless other lists are supplied, and that the confidence level you want is 95% unless you give another one. Using the summary stats syntax, the confidence level is also optional - again, the calculator will assume 95%. This means we can rewrite our code above in a simpler manner:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
 :2-SampZInt(6,6,L1,L2,95&lt;br /&gt;
 can be&lt;br /&gt;
 :2-SampZInt(6,6&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
 :2-SampZInt(6,6,57,40,67,40,95&lt;br /&gt;
 can be&lt;br /&gt;
 :2-SampZInt(6,6,57,40,67,40&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
= Related Commands =&lt;br /&gt;
&lt;br /&gt;
* [[TI-BASIC:Zinterval|ZInterval]]&lt;br /&gt;
* [[TI-BASIC:Tinterval|TInterval]]&lt;br /&gt;
* [[TI-BASIC:2_Samptint|2_SampTInt]][[Category:TI-BASIC]]&lt;br /&gt;
[[Category:TIBD]]&lt;/div&gt;</summary>
		<author><name>Maintenance script</name></author>
	</entry>
</feed>