Geometric Distribution Calculator

Enter the chance of success and a trial number, then choose what to find.

A probability more than 0 and up to 1, for each trial.

X is the trial on which the first success happens, 1 or more.

Find

Choose what to find.

Try

Result

You enteredp=0.2, k=3p = 0.2,\ k = 3

P(X=3)=0.128\displaystyle P(X = 3) = 0.128

Fraction

16125\displaystyle \frac{16}{125}

Mean

5\displaystyle 5

Variance

20\displaystyle 20
Show the work
  1. Geometric distribution

    XX is the number of the trial on which the first success happens, and each trial succeeds with the same probability p=0.2p = 0.2. For the first success to come on trial kk, the first k−1k - 1 trials must all fail, each with probability 1−p=0.81 - p = 0.8, and then trial kk must succeed.

    Using P(X=k)=(1−p)k−1pP(X = k) = \left(1 - p\right)^{k-1} p

  2. Probability that the first success is on trial k

    Here k=3k = 3, so the first 22 trials fail and trial 33 succeeds.

    P(X=3)=0.83−1×0.2=0.82×0.2=0.128\begin{aligned} P(X = 3) &= 0.8^{3-1} \times 0.2 \\ &= 0.8^{2} \times 0.2 \\ &= 0.128 \end{aligned}
  3. Result

    So the first success is on trial 33 with probability 0.1280.128.

Worked examples