Difference between revisions of "HyperGeometric Command"
From GeoGebra Manual
(Autogenerated from properties) |
|||
Line 1: | Line 1: | ||
− | |||
<noinclude>{{Manual Page|version=4.0}}</noinclude> | <noinclude>{{Manual Page|version=4.0}}</noinclude> | ||
− | {{command|probability}} | + | {{command|probability}} |
− | ;HyperGeometric[ <Population Size>, <Number of Successes>, <Sample Size>, <Variable Value> ] | + | ;HyperGeometric[ <Population Size>, <Number of Successes>, <Sample Size>]: |
− | : | + | : Returns a bar graph of a [[w:Hypergeometric distribution|Hypergeometric distribution]]. |
+ | :''Parameters:'' | ||
+ | ::''Population size'': number of balls in the urn | ||
+ | ::''Number of Successes'': number of white balls in the urn | ||
+ | ::''Sample Size'': number of balls drawn from the urn | ||
+ | The bar graph shows the probability function of the number of white balls in the sample. | ||
+ | |||
+ | ;HyperGeometric[ <Population Size>, <Number of Successes>, <Sample Size>, <Boolean Cumulative> ] | ||
+ | : Returns a bar graph of a Hypergeometric distribution when ''Cumulative'' = false. | ||
+ | : Returns a bar graph of a cumulative Hypergeometric distribution when ''Cumulative'' = true. | ||
+ | : First two parameters are same as above. | ||
+ | |||
+ | ;HyperGeometric[ <Population Size>, <Number of Successes>, <Sample Size>, <Variable Value v>, <Boolean Cumulative> ] | ||
+ | : Let X be a Binomial random variable. | ||
+ | : Returns P( X = ''v'') when ''Cumulative'' = false. | ||
+ | : Returns P( X ≤ ''v'') when ''Cumulative'' = true. | ||
+ | : First two parameters are same as above. | ||
+ | |||
+ | ==CAS Specific Syntax== | ||
+ | In [[CAS View]] only one syntax is allowed: | ||
+ | ;HyperGeometric[ <Population Size>, <Number of Successes>, <Sample Size>, <Variable Value v>, <Boolean Cumulative> ]: | ||
+ | : Let X be a Hypergeometric random variable. | ||
+ | : Returns P( X = ''v'') when ''Cumulative'' = false. | ||
+ | : Returns P( X ≤ ''v'') when ''Cumulative'' = true. | ||
+ | First three parameters are same as above. |
Revision as of 22:23, 18 July 2011
- HyperGeometric[ <Population Size>, <Number of Successes>, <Sample Size>]
- Returns a bar graph of a Hypergeometric distribution.
- Parameters:
- Population size: number of balls in the urn
- Number of Successes: number of white balls in the urn
- Sample Size: number of balls drawn from the urn
The bar graph shows the probability function of the number of white balls in the sample.
- HyperGeometric[ <Population Size>, <Number of Successes>, <Sample Size>, <Boolean Cumulative> ]
- Returns a bar graph of a Hypergeometric distribution when Cumulative = false.
- Returns a bar graph of a cumulative Hypergeometric distribution when Cumulative = true.
- First two parameters are same as above.
- HyperGeometric[ <Population Size>, <Number of Successes>, <Sample Size>, <Variable Value v>, <Boolean Cumulative> ]
- Let X be a Binomial random variable.
- Returns P( X = v) when Cumulative = false.
- Returns P( X ≤ v) when Cumulative = true.
- First two parameters are same as above.
CAS Specific Syntax
In CAS View only one syntax is allowed:
- HyperGeometric[ <Population Size>, <Number of Successes>, <Sample Size>, <Variable Value v>, <Boolean Cumulative> ]
- Let X be a Hypergeometric random variable.
- Returns P( X = v) when Cumulative = false.
- Returns P( X ≤ v) when Cumulative = true.
First three parameters are same as above.