Description Usage Arguments Details Value Note Author(s) References See Also Examples
The Bernoulli distribution is the probability distribution of a random variable which takes the value 1 with probability p and the value 0 with probability q=1-p.This distribution is a special case of the Binomial distribution where a single experiment/trial is conducted (n=1).
1 | brgen(p)
|
p |
p as the probability of success in the trial. |
The Bernoulli distribution is a special case of the binomial distribution with n=1. The probability distribution of any single experiment that asks a yes<e2><80><93>no question; the question results in a boolean-valued outcome, a single bit of information whose value is success/yes/true/one with probability p and failure/no/false/zero with probability q.
The returned value is a boolean variable, having either True/1 of False/0 value, representing success or failure of the trial conducted.
nothing to note!
P.Tayefeh Morsal
www.wikipedia.org
brgen.R
1 2 | brgen(0.7)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.