Difference between revisions of "RandomBinomial Command"

From GeoGebra Manual
Jump to: navigation, search
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|probability}}
; RandomBinomial[Number n of Trials, Probability p]: Generates a random number from a binomial distribution with ''n'' trials and probability ''p''.
+
;RandomBinomial[ <Number n of Trials>, <Probability p> ]
:{{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>}}
+
:Generates a random number from a binomial distribution with ''n'' trials and probability ''p''.
 +
:{{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>}}
 
==CAS Syntax==
 
==CAS Syntax==
; RandomBinomial[Number n of Trials, Probability p]: Generates a random number from a binomial distribution with ''n'' trials and probability ''p''.
+
;RandomBinomial[ <Number n of Trials>, <Probability p> ]
:{{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>}}
+
:Generates a random number from a binomial distribution with ''n'' trials and probability ''p''.
 +
:{{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=<div>See also [[RandomNormal Command]] and [[RandomPoisson Command]].</div>}}
 
{{note| 1=<div>See also [[RandomNormal Command]] and [[RandomPoisson Command]].</div>}}

Revision as of 10:05, 24 August 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.
© 2024 International GeoGebra Institute