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

Student[Statistics]

 BernoulliRandomVariable
 Bernoulli random variable

 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\left(t\right)=\left\{\begin{array}{cc}1-p& t=0\\ p& t=1\\ 0& \mathrm{otherwise}\end{array}\right\$

 subject to the following conditions:

$0\le p,p\le 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

 > $\mathrm{with}\left({\mathrm{Student}}_{\mathrm{Statistics}}\right):$
 > $X≔\mathrm{BernoulliRandomVariable}\left(p\right):$
 > $\mathrm{ProbabilityFunction}\left(X,0\right)$
 ${1}{-}{p}$ (1)
 > $\mathrm{ProbabilityFunction}\left(X,1\right)$
 ${p}$ (2)
 > $\mathrm{Mean}\left(X\right)$
 ${p}$ (3)
 > $\mathrm{Variance}\left(X\right)$
 ${p}{}\left({1}{-}{p}\right)$ (4)
 > $Y≔\mathrm{BernoulliRandomVariable}\left(\frac{1}{3}\right):$
 > $\mathrm{ProbabilityFunction}\left(Y,x,\mathrm{output}=\mathrm{plot}\right)$
 > $\mathrm{CDF}\left(Y,x\right)$
 $\left\{\begin{array}{cc}{0}& {x}{<}{0}\\ \frac{{2}}{{3}}& {x}{<}{1}\\ {1}& {\mathrm{otherwise}}\end{array}\right\$ (5)
 > $\mathrm{CDF}\left(Y,1,\mathrm{output}=\mathrm{plot}\right)$

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.
{"found_math": true, "script_math_tex": 0, "script_math_asciimath": 0, "math_annotations": 0, "math_alttext": 0, "mathml": 17, "mathjax_tag": 0, "mathjax_inline_tex": 0, "mathjax_display_tex": 0, "mathjax_asciimath": 0, "img_math": 0, "codecogs_latex": 0, "wp_latex": 0, "mimetex.cgi": 0, "/images/math/codecogs": 0, "mathtex.cgi": 0, "katex": 0, "math-container": 0, "wp-katex-eq": 0, "align": 0, "equation": 0, "x-ck12": 0, "texerror": 0, "url": "https://www.maplesoft.com/support/help/addons/view.aspx?path=Student/Statistics/BernoulliRandomVariable&L=E", "fetch_time": 1717064600000000000, "content_mime_type": "text/html", "warc_filename": "crawl-data/CC-MAIN-2024-22/segments/1715971059632.19/warc/CC-MAIN-20240530083640-20240530113640-00767.warc.gz", "warc_record_offset": 781236749, "warc_record_length": 21920, "token_count": 644, "char_count": 2199, "score": 3.953125, "int_score": 4, "crawl": "CC-MAIN-2024-22", "snapshot_type": "latest", "language": "en", "language_score": 0.5581039190292358, "file_path": "/sailhome/yjruan/project/latent-lm/data/processed/finemath-4plus/finemath-4plus/train-00053-of-00064.parquet"}