BernoulliRandomVariable - Maple Help
For the best experience, we recommend viewing online help using Google Chrome or Mozilla Firefox.

Online Help

All Products    Maple    MapleSim


Student[Statistics]

  

BernoulliRandomVariable

  

Bernoulli random variable

 

Calling Sequence

Parameters

Description

Examples

References

Compatibility

Calling Sequence

BernoulliRandomVariable(p)

Parameters

p

-

probability of success

Description

• 

The Bernoulli random variable is a discrete probability random variable with probability function given by:

f⁡t=1−pt=0pt=10otherwise

  

subject to the following conditions:

0≤p,p≤1

• 

The Bernoulli random variable comes about as a consequence of a single Bernoulli trial.  Success of the Bernoulli trial is indicated with x=1 and failure is indicated with x=0, where a success occurs with probability p.  The parameter p is also referred to as the Bernoulli probability parameter.

Examples

> 

with⁡StudentStatistics:

> 

X≔BernoulliRandomVariable⁡p:

> 

ProbabilityFunction⁡X,0

1−p

(1)
> 

ProbabilityFunction⁡X,1

p

(2)
> 

Mean⁡X

p

(3)
> 

Variance⁡X

p⁢1−p

(4)
> 

Y≔BernoulliRandomVariable⁡13:

> 

ProbabilityFunction⁡Y,x,output=plot

> 

CDF⁡Y,x

0x<023x<11otherwise

(5)
> 

CDF⁡Y&comma;1&comma;output=plot

References

  

Evans, Merran; Hastings, Nicholas; and Peacock, Brian. Statistical Distributions. 3rd ed. Hoboken: Wiley, 2000.

  

Johnson, Norman L.; and Kotz, Samuel; and Balakrishnan, N. Continuous Univariate Distributions. 2nd ed. 2 vols. Hoboken: Wiley, 1995.

  

Stuart, Alan, and Ord, Keith. Kendall's Advanced Theory of Statistics. 6th ed. London: Edward Arnold, 1998. Vol. 1: Distribution Theory.

Compatibility

• 

The Student[Statistics][BernoulliRandomVariable] command was introduced in Maple 18.

• 

For more information on Maple 18 changes, see Updates in Maple 18.

See Also

Statistics[Distributions][Bernoulli]

Student

Student[Statistics]

Student[Statistics][RandomVariable]