Simulate 100,000 realizations from the binomial distribution with N = 10,000 trials and success probability p = 0.03.
import numpy
import math
import matplotlib.pyplot as plt
Compute the empirical mean and the empirical standard deviation of your sample and compare these values with the theoretical values.
WRITE Your Own Code HERE! FEEL FREE To INSERT MORE CELLS! ADD SOME COMMENTS TO YOUR CODE.
Plot a histogram of your sample with the absolute number counts for each bin. Choose 25 bins.
WRITE Your Own Code HERE! FEEL FREE TO ADD SOME COMMENTS TO YOUR CODE!
INSERT MORE CELLS!
Standardize your sample by subtracting the empirical mean and dividing by the empirical standard deviation.
WRITE Your Own Code HERE! FEEL FREE To INSERT MORE CELLS! ADD Some Comments To Your Code!
Plot a histogram of your standardized sample with the counts normalized probability density. Choose again 25 bins. Compare your histogram with the density of the standard normal distribution by inserting density into the histogram plot.
WRITE YOUR Own CODE HERE! FEEL FREE TO INSERT MORE CELLS! ADD SOME COMMENTS TO YOUR CODE!