Professional Documents
Culture Documents
Mohaimen Mansur
## [1] 99.92817
## [1] -0.0718306
sd(samp)
## [1] 14.50241
1
Histogram of sampDist01
15000
Frequency
10000
5000
0
95 100 105
sampDist01
Histogram of sampDist01
0.15
0.10
Density
0.05
0.00
95 100 105
sampDist01
2
mean(sampDist01)
## [1] 100.0011
sd(sampDist01)
## [1] 2.12362
popSD/sqrt(sampSize)
## [1] 2.12132
Histogram of population
2000
Frequency
1000
500
0
population
mean(population)
## [1] 100.2107
3
sd(population)
## [1] 14.83644
## [1] 100.966
sd(sampChamp)
## [1] 15.28001
Histogram of sampDist
1500
Frequency
1000
500
0
95 100 105
sampDist
mean(sampDist)
## [1] 100.227
4
sd(sampDist)
## [1] 2.099929
sampSize02 = 100
sampDist02 <- replicate(100000,var(rnorm(sampSize02, mean = popMean, sd = popSD)))
hist(sampDist02)# frequency distribution
Histogram of sampDist02
15000
Frequency
5000
0
sampDist02
5
Histogram of sampDist02
0.012
0.008
Density
0.004
0.000
sampDist02
6
Histogram of sampDist03
1.2
1.0
0.8
Density
0.6
0.4
0.2
0.0
sampDist03
mean(sampDist03)
## [1] 3.332133
sd(sampDist03)
## [1] 0.3329996
Exercise
Derive the sampling distribution of sample mean and sample standard deviation
(with n and (n-1) in the denominator) when sampling from different population
distributions (e.g., exponential, gamma, uniform, Poission etc.).