## 1000 standard normal draws X = rnorm(1000) ## Estimate E X^2 E1 = mean(X^2) ## Estimate (EX)^2 E2 = mean(X)^2