RandomBinomial Command

From GeoGebra Manual
Revision as of 13:44, 10 September 2011 by Bot (talk | contribs) (Bot: Automated text replacement (-{{command +{{command|cas=true))
Jump to: navigation, search


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.
© 2024 International GeoGebra Institute