Difference between revisions of "RandomBinomial Command"
From GeoGebra Manual
(command syntax: changed [ ] into ( )) |
|||
(10 intermediate revisions by 7 users not shown) | |||
Line 1: | Line 1: | ||
− | <noinclude>{{Manual Page|version= | + | <noinclude>{{Manual Page|version=5.0}}</noinclude>{{command|cas=true|probability}} |
− | {{command|probability}} | + | ;RandomBinomial( <Number of Trials>, <Probability> ) |
− | ; RandomBinomial | + | :Generates a random number from a binomial distribution with ''n'' trials and probability ''p''. |
− | :{{example| 1=<div><code><nowiki>RandomBinomial | + | :{{example| 1=<div><code><nowiki>RandomBinomial(3, 0.1)</nowiki></code> 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.</div>}} |
− | + | ||
− | + | {{Note|1= See also [[SetSeed Command|SetSeed command]], [[RandomBetween Command|RandomBetween command]], [[RandomElement Command|RandomElement command]], [[RandomNormal Command|RandomNormal command]], [[RandomPoisson Command|RandomPoisson command]], [[RandomUniform Command|RandomUniform command]].}} | |
− | |||
− |
Latest revision as of 10:20, 11 October 2017
- 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.