27 Probability for a geometric random variable#

%%html
<iframe width="700" height="400" src="https://www.youtube.com/embed/jKlgEvRFItE/" frameborder="0" allowfullscreen></iframe>
import numpy as np
import pandas as pd
from pandas import Series, DataFrame
import matplotlib.pyplot as plt 
import seaborn as sns
from scipy import stats, special

khanacademy

Probability for a geometric random variable fig 1

p = 0.25
(1-p)**2 * p
0.140625