On page 4 of this document, there is a frequency distribution (histogram) of some students' math scores.
You can access the exact same info. shown on page 4 of this document below (in R
).
Question: I was wondering how to compute the $mean$ and $sd$ of scores in this histogram?
I appreciate a possibly R
solution.
(Note: My understanding is we can't simply take the $mean$ and $sd$ of scores from the histogram data.)
data <- read.csv('https://raw.githubusercontent.com/rnorouzian/e/master/6grade.csv')
# 3 first rows of the histogram data:
# score freq cum.freq pct. cum.pct
# 1 1038 142 142 0.04 0.04
# 2 1171 15 157 0.00 0.04
# 3 1250 78 235 0.02 0.06