Geometric Distribution

## Description

The Geometric Distribution models the probability of $k$ Bernoulli trials needed to get the first success when the probability of success is $p$. So the probability is

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

The following sage cell gives the probability when $k=5$ and $p=.5$.

## Sage Cell

#### Code

```
k = 5
p = .5
P = (1-p)^(k-1) * p
P
```

## Options

None

## Tags

Primary Tags:

Secondary Tags:

A list of possible tags can be found at The WeBWorK Open Problem Library. For linear algebra tags see the Curated Courses Project.

## Related Cells

## Attribute

Permalink:

Author:

Date: 16 Oct 2018 15:47

Submitted by: James A Phillips