using Plots
using Distributions
Roll one die 50 times
Y=rand(1:6,50)
print(Y)
Find the point estimate of the mean
mean(Y)
Repeat the two steps above 1000 times, to obtain a random sample (n=1000) from the distribution of the estimator: $\bar{X}_n$ (i.e. a collection of 1000 point estimates)
X=[mean(rand(1:6,50)) for i in 1:1000];
Observe that the distribution of these point estimates resembles the normal distribution (bell curve)
gr()
histogram(X)