Professional Documents
Culture Documents
1. Write a python program to visualise the Central limit theorem. (Use case example: Rolling
a die,
Use numpy and matplotlib)
Hint : Import necessary libraries, create 1000 simulations of 10 die rolls, and in each
simulation,
find the average of the die outcome. Write a function to plot a histogram of the above
generated
Values. Animate the histogram generation for a better visualisation.
plt.hist(avg[0:current])
In [15]:
fig = plt.figure()
a = animation.FuncAnimation(fig, clt, interval=1)