Difference between revisions of "ChiSquared Command"

From GeoGebra Manual
Jump to: navigation, search
Line 5: Line 5:
 
;ChiSquared[ <Degrees of Freedom>, x, <Boolean Cumulative> ]
 
;ChiSquared[ <Degrees of Freedom>, x, <Boolean Cumulative> ]
 
:If ''Cumulative'' is true, creates cumulative distribution function of Chi squared distribution, otherwise creates pdf of Chi squared distribution.
 
:If ''Cumulative'' is true, creates cumulative distribution function of Chi squared distribution, otherwise creates pdf of Chi squared distribution.
; ChiSquared[ <Degrees of Freedom d>, <Variable Value v> ]: Calculates the value of cumulative distribution function of Chi squared distribution at ''v'', i.e. the probability ''P(X≤v)'' where ''X'' is a random variable with Chi squared distribution with ''d'' degrees of freedom.
+
;ChiSquared[ <Degrees of Freedom d>, <Variable Value v> ]
:{{Note| Returns the probability for a given ''x''-coordinate's value (or area under the Chi squared distribution curve to the left of the given ''x''-coordinate).}}
+
:Calculates the value of cumulative distribution function of Chi squared distribution at ''v'', i.e. the probability ''P(X≤v)'' where ''X'' is a random variable with Chi squared distribution with ''d'' degrees of freedom.
==CAS Syntaxes==
+
:{{note| Returns the probability for a given ''x''-coordinate's value (or area under the Chi squared distribution curve to the left of the given ''x''-coordinate).}}
 +
==CAS Syntax==
 
In [[CAS View]] only following syntax is supported:
 
In [[CAS View]] only following syntax is supported:
;ChiSquared[<Degrees of Freedom d>, <Variable Value v>]
+
;ChiSquared[ <Degrees of Freedom d>, <Variable Value v> ]
 
:Calculates the value of cumulative distribution function (cdf) of Chi squared distribution at ''v'', i.e. the probability ''P(X≤v)'' where ''X'' is a random variable with Chi squared distribution with ''d'' degrees of freedom.
 
:Calculates the value of cumulative distribution function (cdf) of Chi squared distribution at ''v'', i.e. the probability ''P(X≤v)'' where ''X'' is a random variable with Chi squared distribution with ''d'' degrees of freedom.
:{{example|1=<div><code><nowiki>ChiSquared[4, 3]</nowiki></code> gives <math>\gamma(2, \frac{3}{2})</math>, which is approximately ''0.44''.</div>}}
+
:{{example|1=<div><code><nowiki>ChiSquared[4, 3]</nowiki></code> yields <math>\gamma(2, \frac{3}{2})</math>, which is approximately ''0.44''.</div>}}

Revision as of 11:53, 7 September 2011



ChiSquared[ <Degrees of Freedom d>, x ]
Creates probability density function (pdf) of Chi squared distribution with d degrees of freedom.
ChiSquared[ <Degrees of Freedom>, x, <Boolean Cumulative> ]
If Cumulative is true, creates cumulative distribution function of Chi squared distribution, otherwise creates pdf of Chi squared distribution.
ChiSquared[ <Degrees of Freedom d>, <Variable Value v> ]
Calculates the value of cumulative distribution function of Chi squared distribution at v, i.e. the probability P(X≤v) where X is a random variable with Chi squared distribution with d degrees of freedom.
Note: Returns the probability for a given x-coordinate's value (or area under the Chi squared distribution curve to the left of the given x-coordinate).

CAS Syntax

In CAS View only following syntax is supported:

ChiSquared[ <Degrees of Freedom d>, <Variable Value v> ]
Calculates the value of cumulative distribution function (cdf) of Chi squared distribution at v, i.e. the probability P(X≤v) where X is a random variable with Chi squared distribution with d degrees of freedom.
Example:
ChiSquared[4, 3] yields \gamma(2, \frac{3}{2}), which is approximately 0.44.
© 2024 International GeoGebra Institute