Difference between revisions of "ChiSquaredTest Command"

From GeoGebra Manual
Jump to: navigation, search
Line 1: Line 1:
 
<noinclude>{{Manual Page|version=4.2}}</noinclude>
 
<noinclude>{{Manual Page|version=4.2}}</noinclude>
 
{{command|statistics}}
 
{{command|statistics}}
;ChiSquaredTest[ <Matrix of Observed Counts> ]
+
;ChiSquaredTest[ <Matrix> ]
:Performs a [[w:Chi-squared_test| Chi-squared test]] that compares the given matrix of observed counts against the matrix of expected counts determined by the hypothesis of independence.  
+
:Performs a [[w:Chi-squared_test|chi-squared test]] that compares the given matrix of observed counts against the matrix of expected counts determined by the hypothesis of independence.  
 
:The matrix of expected counts is calculated internally. Each expected count is found from the row and column totals of the given matrix of observed counts using the rule:
 
:The matrix of expected counts is calculated internally. Each expected count is found from the row and column totals of the given matrix of observed counts using the rule:
 
:: <math> \text{expected count} = \frac{\text{row total} × \text{column total}}{\text{total observed counts}} </math>   
 
:: <math> \text{expected count} = \frac{\text{row total} × \text{column total}}{\text{total observed counts}} </math>   
:Results are returned in list form as {Probabilty value, Chi Squared test statistic}.
+
:Results are returned in list form as ''{Probabilty value, chi-squared test statistic}''.
  
;ChiSquaredTest[ <List of Observed Counts>, <List of Expected Counts> ]
+
;ChiSquaredTest[ <List>, <List> ]
 
:Performs a Goodness of Fit test that compares the given list of observed counts against the given list of expected counts.   
 
:Performs a Goodness of Fit test that compares the given list of observed counts against the given list of expected counts.   
:Results are returned in list form as {Probabilty value, Chi Squared test statistic}.
+
:Results are returned in list form as ''{Probabilty value, chi-squared test statistic}''.
  
;ChiSquaredTest[ <Matrix of Observed Counts>, <Matrix of Expected Counts> ]
+
;ChiSquaredTest[ <Matrix>, <Matrix> ]
:Performs a [[w:Chi-squared_test| Chi-squared test]] that compares the given matrix of observed counts against the given matrix of expected counts.   
+
:Performs a [[w:Chi-squared_test|chi-squared test]] that compares the given matrix of observed counts against the given matrix of expected counts.   
:Results are returned in list form as {Probabilty value, Chi Squared test statistic}.
+
:Results are returned in list form as ''{Probabilty value, chi-squared test statistic}''.

Revision as of 15:38, 2 September 2013



ChiSquaredTest[ <Matrix> ]
Performs a chi-squared test that compares the given matrix of observed counts against the matrix of expected counts determined by the hypothesis of independence.
The matrix of expected counts is calculated internally. Each expected count is found from the row and column totals of the given matrix of observed counts using the rule:
\text{expected count} = \frac{\text{row total} × \text{column total}}{\text{total observed counts}}
Results are returned in list form as {Probabilty value, chi-squared test statistic}.
ChiSquaredTest[ <List>, <List> ]
Performs a Goodness of Fit test that compares the given list of observed counts against the given list of expected counts.
Results are returned in list form as {Probabilty value, chi-squared test statistic}.
ChiSquaredTest[ <Matrix>, <Matrix> ]
Performs a chi-squared test that compares the given matrix of observed counts against the given matrix of expected counts.
Results are returned in list form as {Probabilty value, chi-squared test statistic}.
© 2024 International GeoGebra Institute