Bernoulli Distribution

## Description

The Bernoulli distribution is the probability of $k \in {0,1}$ and $P( k=1 )=p$. The probability is

(1)
$$P(k)= p^k ( 1 - p )^{ k - 1 }$$

The Sage cell below shows the probability when k=1 and p=.7.

## Sage Cell

#### Code

k = 1
p = .7
P = p^k * ( 1 - p )^( k - 1 )
P


None

## Tags

Primary Tags: Probability

Secondary Tags: Discrete Distributions: Bernoulli

None