Bernoulli Distribution

## Description

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

(1)\begin{equation} P(k)= p^k ( 1 - p )^{ k - 1 } \end{equation}

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
```

## Options

None

## Tags

Primary Tags: Probability

Secondary Tags: Discrete Distributions: Bernoulli

## Related Cells

None

## Attribute

Permalink:

Author:

Date: 16 Oct 2018 16:11

Submitted by: James A Phillips