I am trying to get the mean and standard deviation for the following sample means with the given sample frequencies for each mean. So in a histogram, the x-axis will show the mean range and sample frequency in the y-axis. The sample size for all samples is n=5. I see the answer is the sample mean = 49.831 and sd= 11.43. However, I am not sure what should the formula be to calculate it as I do not have the information on population standard deviation.
Range for mean Sample frequencies
0-10 0
10-20 5
20-30 315
30-40 1606
40-50 3105
50-60 2935
60-70 1500
70-80 324
80-90 21
90-100 0
counts <- c(0, 5, 315, 1606, 3105, 2935, 1500, 324, 21, 0) bin.lower <- c(0, 10, 20, 30, 40, 50, 60, 70, 80, 90) bin.upper <- c(10, 20, 30, 40, 50, 60, 70, 80, 90, 100) bin.mid <- (bin.upper + bin.lower)/2 n <- sum(counts) mu <- sum(bin.mid * counts) / n sigma2 <- (sum(bin.mid^2 * counts) - n * mu^2) / (n-1)– Ripon Jan 13 '20 at 23:14