Difference between revisions of "TTest Command"

From GeoGebra Manual
Jump to: navigation, search
 
(One intermediate revision by one other user not shown)
Line 1: Line 1:
 
<noinclude>{{Manual Page|version=5.0}}</noinclude>{{command|statistics}}
 
<noinclude>{{Manual Page|version=5.0}}</noinclude>{{command|statistics}}
;TTest[ &lt;List of Sample Data>, <Hypothesized Mean>, <Tail> ]
+
;TTest( &lt;List of Sample Data>, <Hypothesized Mean>, <Tail> )
 
: Performs a one-sample t-test of a population mean using the given list of sample data.  ''Hypothesized Mean'' is the population mean assumed in the null hypothesis. ''Tail'' has possible values "<", ">" , "≠".  These specify the alternative hypothesis as follows.
 
: Performs a one-sample t-test of a population mean using the given list of sample data.  ''Hypothesized Mean'' is the population mean assumed in the null hypothesis. ''Tail'' has possible values "<", ">" , "≠".  These specify the alternative hypothesis as follows.
 
::  "<"  =  population mean < ''Hypothesized Mean''
 
::  "<"  =  population mean < ''Hypothesized Mean''
Line 6: Line 6:
 
::  "≠"  =  population mean  ≠ ''Hypothesized Mean''
 
::  "≠"  =  population mean  ≠ ''Hypothesized Mean''
 
: Results are returned in list form as ''{Probability value, t-test statistic}''.
 
: Results are returned in list form as ''{Probability value, t-test statistic}''.
:{{example|1=<div><code><nowiki>TTest[{1, 2, 3, 4, 5}, 3, "<"]</nowiki></code> yields ''{0.5, 0}''.</div>}}
+
:{{example|1=<code><nowiki>TTest({1, 2, 3, 4, 5}, 3, "<")</nowiki></code> yields ''{0.5, 0}''.}}
;TTest[ <Sample Mean>, <Sample Standard Deviation>, <Sample Size>, <Hypothesized Mean>, <Tail> ]
+
;TTest( <Sample Mean>, <Sample Standard Deviation>, <Sample Size>, <Hypothesized Mean>, <Tail> )
 
: Performs a one-sample t-test of a population mean using the given sample statistics. ''Hypothesized Mean'' and ''Tail'' are defined as above.  Results are returned in list form as ''{Probability value, t-test statistic}''.
 
: Performs a one-sample t-test of a population mean using the given sample statistics. ''Hypothesized Mean'' and ''Tail'' are defined as above.  Results are returned in list form as ''{Probability value, t-test statistic}''.
:{{example|1=<div><code><nowiki>TTest[4, 1, 12, 4, "≠"]</nowiki></code> yields ''{1, 0}''.</div>}}
+
:{{example|1=<code><nowiki>TTest(4, 1, 12, 4, "≠")</nowiki></code> yields ''{1, 0}''.}}

Latest revision as of 10:25, 12 October 2017


TTest( <List of Sample Data>, <Hypothesized Mean>, <Tail> )
Performs a one-sample t-test of a population mean using the given list of sample data. Hypothesized Mean is the population mean assumed in the null hypothesis. Tail has possible values "<", ">" , "≠". These specify the alternative hypothesis as follows.
"<" = population mean < Hypothesized Mean
">" = population mean > Hypothesized Mean
"≠" = population mean ≠ Hypothesized Mean
Results are returned in list form as {Probability value, t-test statistic}.
Example: TTest({1, 2, 3, 4, 5}, 3, "<") yields {0.5, 0}.
TTest( <Sample Mean>, <Sample Standard Deviation>, <Sample Size>, <Hypothesized Mean>, <Tail> )
Performs a one-sample t-test of a population mean using the given sample statistics. Hypothesized Mean and Tail are defined as above. Results are returned in list form as {Probability value, t-test statistic}.
Example: TTest(4, 1, 12, 4, "≠") yields {1, 0}.
© 2021 International GeoGebra Institute