http://learn.cemetech.net/index.php?title=TI-BASIC:2_Sampftest&feed=atom&action=historyTI-BASIC:2 Sampftest - Revision history2022-12-04T12:15:27ZRevision history for this page on the wikiMediaWiki 1.34.0http://learn.cemetech.net/index.php?title=TI-BASIC:2_Sampftest&diff=1287&oldid=prevMaintenance script: Automated @@ correction2016-02-24T21:39:21Z<p>Automated @@ correction</p>
<table class="diff diff-contentalign-left" data-mw="interface">
<col class="diff-marker" />
<col class="diff-content" />
<col class="diff-marker" />
<col class="diff-content" />
<tr class="diff-title" lang="en">
<td colspan="2" style="background-color: #fff; color: #222; text-align: center;">← Older revision</td>
<td colspan="2" style="background-color: #fff; color: #222; text-align: center;">Revision as of 21:39, 24 February 2016</td>
</tr><tr><td colspan="2" class="diff-lineno" id="mw-diff-left-l2" >Line 2:</td>
<td colspan="2" class="diff-lineno">Line 2:</td></tr>
<tr><td class='diff-marker'> </td><td style="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;"><div>|picture=2-SAMPFTEST.GIF</div></td><td class='diff-marker'> </td><td style="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;"><div>|picture=2-SAMPFTEST.GIF</div></td></tr>
<tr><td class='diff-marker'> </td><td style="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;"><div>|summary=Performs a ''F''-test to compare the standard deviations of two populations.</div></td><td class='diff-marker'> </td><td style="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;"><div>|summary=Performs a ''F''-test to compare the standard deviations of two populations.</div></td></tr>
<tr><td class='diff-marker'>−</td><td style="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;"><div>|syntax=2-SampFTest <del class="diffchange diffchange-inline">@@</del>[<del class="diffchange diffchange-inline">@@</del>''list1'', ''list2'', ''frequency1'', ''frequency2'', ''alternative'',''draw?''<del class="diffchange diffchange-inline">@@</del>]<del class="diffchange diffchange-inline">@@</del></div></td><td class='diff-marker'>+</td><td style="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;"><div>|syntax=2-SampFTest <ins class="diffchange diffchange-inline"><nowiki></ins>[<ins class="diffchange diffchange-inline"></nowiki></ins>''list1'', ''list2'', ''frequency1'', ''frequency2'', ''alternative'',''draw?''<ins class="diffchange diffchange-inline"><nowiki></ins>]<ins class="diffchange diffchange-inline"></nowiki></ins></div></td></tr>
<tr><td class='diff-marker'> </td><td style="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;"><div>(data list input)</div></td><td class='diff-marker'> </td><td style="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;"><div>(data list input)</div></td></tr>
<tr><td class='diff-marker'> </td><td style="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;"></td><td class='diff-marker'> </td><td style="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;"></td></tr>
</table>Maintenance scripthttp://learn.cemetech.net/index.php?title=TI-BASIC:2_Sampftest&diff=818&oldid=prevMaintenance script: Initial automated import2016-02-24T18:20:08Z<p>Initial automated import</p>
<p><b>New page</b></p><div>{{Template:TI-BASIC:Command<br />
|picture=2-SAMPFTEST.GIF<br />
|summary=Performs a ''F''-test to compare the standard deviations of two populations.<br />
|syntax=2-SampFTest @@[@@''list1'', ''list2'', ''frequency1'', ''frequency2'', ''alternative'',''draw?''@@]@@<br />
(data list input)<br />
<br />
2-SampFTest ''s,,1,,'', ''n,,1,,'', ''s,,2,,'', ''n,,2,,'', [''alternative'',''draw?'']<br />
(summary stats input)<br />
|location=While editing a program, press:<br />
# STAT to access the statistics menu<br />
# LEFT to access the TESTS submenu<br />
# ALPHA D to select 2-SampFTest, or use arrows<br />
Outside the program editor, this will select the 2-SampFTest... interactive solver.<br />
<br />
Change the last keypress to ALPHA E on a TI-84+/SE with OS 2.30 or higher.<br />
|compatibility=TI-83/84/+/SE<br />
|size=2 bytes<br />
}}<br />
<br />
2-SampFTest performs an ''F''-test to compare the standard deviations of two populations. This test is valid for two normally distributed populations, but is extremely sensitive to non-normality, so it should not be used unless you are certain that the populations are normal.<br />
<br />
The logic behind the test is as follows: we want to test the hypothesis that the standard deviations of the two populations are equal (the null hypothesis). The letter σ is used for a standard deviation, so this is usually written as σ,,1,,=σ,,2,,. To do this, we assume that this "null hypothesis" is true, and calculate the probability that the difference between the two standard deviations occurred, under this assumption. If this probability is sufficiently low (usually, 5% is the cutoff point), we conclude that since it's so unlikely that the data could have occurred under the null hypothesis, the null hypothesis must be false, and therefore the deviations are not equal. If, on the other hand, the probability is not too low, we conclude that the data may well have occurred under the null hypothesis, and therefore there's no reason to reject it.<br />
<br />
In addition to the null hypothesis, we must have an alternative hypothesis as well - usually this is simply that the two standard deviations are not equal. However, in certain cases when we have reason to suspect that one deviation is greater than the other (such as when we are trying to verify a claim that one standard deviation is greater), our alternative hypothesis may be that the first standard deviation is greater than the second (σ,,1,,>σ,,2,,) or less (σ,,1,,<σ,,2,,).<br />
<br />
As for the 2-SampFTest command itself, there are two ways of calling it: you may give it a list of all the sample data, or the necessary statistics about the list (''s,,1,,'' and ''s,,2,,'' the sample standard deviations, and ''n,,1,,'' and ''n,,2,,'' the sample sizes). In either case, you can indicate what the alternate hypothesis is, by a value of 0, -1, or 1 for the ''alternative'' argument. 0 indicates a two-sided hypothesis of ''σ,,1,,''≠''σ,,2,,'', -1 indicates ''σ,,1,,''<''σ,,2,,'', and 1 indicates ''μ,,1,,''>''μ,,2,,''. (In fact, the calculator will treat any negative value as -1, and any positive value as 1).<br />
<br />
Although you can access the 2-SampFTest command on the home screen, via the catalog, there's no need: the 2-SampFTest... interactive solver, found in the statistics menu, is much more intuitive to use - you don't have to memorize the syntax.<br />
<br />
In either case, it's important to understand the output of 2-SampFTest. Here are the meanings of each line:<br />
<br />
* The first line, involving σ,,1,, and σ,,2,,, is the alternative hypothesis.<br />
* F is the test statistic, the ratio of the standard deviations. If the null hypothesis is true, it should be close to 1.<br />
* p is the probability that the difference between σ,,1,, and σ,,2,, (the two standard deviations) would occur if the null hypothesis is true. When the value is sufficiently small, we reject the null hypothesis and conclude that the alternative hypothesis is true. You should have a cutoff value ready, such as 5% or 1%. If p is lower, you "reject the null hypothesis on a 5% (or 1%) level" in technical terms.<br />
* Sx,,1,, and Sx,,2,, are the two sample standard deviations.<br />
* x-bar,,1,, and x-bar,,2,, are the two sample means. They aren't used in the calculation, and will only be shown with the data list syntax.<br />
* n,,1,, and n,,2,, are the sample sizes.<br />
<br />
= Advanced Uses =<br />
<br />
The final optional argument of 2-SampFTest, ''draw?'', will display the results in a graphical manner if you put in "1" for it. The calculator will draw the distribution, and shade the area of the graph that corresponds to the probability p. In addition, the value of F and the value of p will be displayed. You would make your conclusions in the same way as for the regular output.<br />
<br />
As with most other statistical commands, you may use frequency lists in your input (when using the data list syntax). If you do, then both lists must have frequencies, and the order of the arguments would be ''list1'', ''list2'', ''frequency1'', ''frequency2''.<br />
<br />
= Optimization =<br />
<br />
Some of the arguments of the 2-SampFTest command have default values, and the argument can be omitted if this value is accepted.<br />
<br />
* The ''draw?'' argument can be omitted if you don't want graphical output, although you could put "0" in as well.<br />
* If the above argument is omitted, and you're doing a two sided test, you may omit the ''alternative'' argument.<br />
* With data list input, you can always omit the frequency lists if you won't be using them.<br />
* With data list input, if the flags that go at the end are omitted, and you're using the default lists L1 and L2, you may omit those as well.<br />
<br />
Example:<br />
<br />
:2-SampFTest L1,L2,0<br />
can be<br />
:2-SampFTest<br />
<br />
<br />
= Related Commands =<br />
<br />
* [[TI-BASIC:Z_Test|Z_Test(]]<br />
* [[TI-BASIC:T_Test|T_Test]][[Category:TI-BASIC]]<br />
[[Category:TIBD]]</div>Maintenance script