These codes meant to do simulation and demonstrate that the following fact for Simple Random Sample
The sample mean is unbiased for the population mean.

The estimator of variance is unbiased for the variance estimator.

When the CLT is valid for finite population.

To get full codes on

Rpubs

click on

http://rpubs.com/Salehi/568329

Chapter 3

Confidence interval

Coverage

Click:

http://rpubs.com/Salehi/568861