30 TI-84 geometpdf and geometcdf functions#

%%html
<iframe width="700" height="400" src="https://www.youtube.com/embed/RMf0F72I7dY/" 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

TI-84 geometpdf and geometcdf functions fig 1

p = 4 / 52
stats.geom.pmf(5, p)
0.055848076855744666
stats.geom.cdf(9, p)
0.5134348005963147
1 - stats.geom.cdf(12, p)
0.38269670667709066