Bernoulli Distribution Calculator

Bernoulli Distribution Calculator

Bernoulli Distribution Calculator

Enter the probability \( p \) and an outcome \( x \) (0 or 1) to compute the CDF, PMF, expected value, variance, and generate a random sample.

Enter a value between 0 and 1 (e.g., 0.3)

Enter 0 or 1

Results

CDF at \( x \):

PMF at \( x \):

Expected Value:

Variance:

Random Sample:

Bernoulli Distribution: $$ P(X=x)= \begin{cases}1-p, & x=0,\\ p, & x=1,\\ 0, & \text{otherwise.} \end{cases} $$ Expected Value = \( p \), Variance = \( p(1-p) \).