Difference between revisions of "RandomBinomial Command"
From GeoGebra Manual
m (Bot: Automated text replacement (-{{command +{{command|cas=true)) |
|||
Line 1: | Line 1: | ||
<noinclude>{{Manual Page|version=4.0}}[[Category:Manual (official)|{{PAGENAME}}]]</noinclude> | <noinclude>{{Manual Page|version=4.0}}[[Category:Manual (official)|{{PAGENAME}}]]</noinclude> | ||
− | {{command|probability}} | + | {{command|cas=true|probability}} |
;RandomBinomial[ <Number n of Trials>, <Probability p> ] | ;RandomBinomial[ <Number n of Trials>, <Probability p> ] | ||
:Generates a random number from a binomial distribution with ''n'' trials and probability ''p''. | :Generates a random number from a binomial distribution with ''n'' trials and probability ''p''. |
Revision as of 13:44, 10 September 2011
- RandomBinomial[ <Number n of Trials>, <Probability p> ]
- Generates a random number from a binomial distribution with n trials and probability p.
- Example:
RandomBinomial[3, 0.1]
gives j ∈ {0, 1, 2, 3}, where the probability of getting j is the probability of an event with probability 0.1 occuring j times in three tries.
CAS Syntax
- RandomBinomial[ <Number n of Trials>, <Probability p> ]
- Generates a random number from a binomial distribution with n trials and probability p.
- Example:
RandomBinomial[3, 0.1]
gives j ∈ {0, 1, 2, 3}, where the probability of getting j is the probability of an event with probability 0.1 occuring j times in three tries.
Note:
See also RandomNormal Command and RandomPoisson Command.