21 Conditional probability and combinations#

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

Conditional probability and combinations fig 1Conditional probability and combinations fig 2Conditional probability and combinations fig 3

fair = special.comb(6, 4) / 2**6
unfair =  0.8**4 * 0.2**2
# compele it errors in calculations