15 Binomial variables
15 Binomial variables#
%%html
<iframe width="700" height="400" src="https://www.youtube.com/embed/yUDFir8oYl8/" 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
s = np.random.binomial(1, 0.6, size=10)
s
array([0, 0, 1, 1, 1, 1, 0, 0, 1, 1])
# idk if I'm doing it right, but it seems good to me