Normal approximation of binomial distribution
from typing import Tuple
import math as m
def normal_approximation_to_binomial(n: int, p: float) -> Tuple[float, float]:
mu = p * n
sigma = m.sqrt(p * (1 - p) * n)
return mu, sigma
The change of standard deviation with the incrase of number of trials.
for i in range(10):
print(i, normal_approximation_to_binomial(10**i, 0.5))