16 Example Combinatorics and probability#

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

Example Combinatorics and probability fig 1Example Combinatorics and probability fig 2

special.comb(36 - 4, 5) / special.comb(36, 9) # incorrect! why?
0.0021390374331550803