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.488\displaystyle P(X \le 3) = 0.488

Fraction

61125\displaystyle \frac{61}{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. Complement rule

    The opposite of "the first success is on trial 33 or earlier" is "all of the first 33 trials fail", which has probability (1−p)3(1 - p)^{3}.

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

    P(X≤3)=1−0.83=1−0.512=0.488\begin{aligned} P(X \le 3) &= 1 - 0.8^{3} \\ &= 1 - 0.512 \\ &= 0.488 \end{aligned}
  3. Result

    So the first success is on or before trial 33 with probability 0.4880.488.

Worked examples