Module # 6 Sampling & Confidence Interval Estimation

> population

[1]  8 14 16 10 11

> mean(population)

[1] 11.8

> sample(population,2)

[1] 16 14

> mean(16,14)

[1] 16

 

> sample<-c(16,14)

> mean(sample)

[1] 15

> sd(sample)

[1] 1.414214

 

> mean(population)

[1] 11.8

> sd(population)

[1] 3.193744

 

The mean of the random sample is 15, while the mean of the population set of (8,14, 16, 10, 11) equals to 11.8.

 

The standard Deviation of the random sample is 1.414214, while the sd of the population set is 3.19374.

Leave a comment