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)
$$P(k) = (1-p)^{k-1} p$$

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


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.