Bernoullirandom
Bernoullirandom refers to a concept in probability theory and statistics that describes a random variable following a Bernoulli distribution. Named after the Swiss mathematician Jacob Bernoulli, this distribution models experiments with exactly two possible outcomes: success or failure. Each outcome is associated with a probability, typically denoted as *p* for success and *1 − p* for failure.
A Bernoulli random variable is a discrete random variable that takes the value 1 with probability *p*
In practical applications, Bernoulli random variables are used to model scenarios like coin flips, where success
The probability mass function (PMF) of a Bernoulli random variable *X* is given by:
This distribution is fundamental in statistical modeling, hypothesis testing, and machine learning, particularly in algorithms that