23 Expected value of a binomial variable#

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

Expected value of a binomial variable fig 1

stats.binom.mean(10, 0.3)
3.0