Difference between revisions of "RandomBinomial Command"
From GeoGebra Manual
m |
m (removed extra CAS syntax) |
||
Line 1: | Line 1: | ||
<noinclude>{{Manual Page|version=5.0}}</noinclude>{{command|cas=true|probability}} | <noinclude>{{Manual Page|version=5.0}}</noinclude>{{command|cas=true|probability}} | ||
− | |||
− | |||
− | |||
− | |||
;RandomBinomial[ <Number of Trials>, <Probability> ] | ;RandomBinomial[ <Number of Trials>, <Probability> ] | ||
: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 10:42, 3 September 2015
- RandomBinomial[ <Number of Trials>, <Probability> ]
- 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.