First of all thanks for this repo! It's been a big help for self-studying the book.
In question 8.5.8 I think se = r.std() should be replaced by se = r.sem() or math.sqrt(r.var() / len(r)). The std calculates the standard deviation of the values themselves where as we want the standard error of the mean estimate which is calculated using:
Hi!
First of all thanks for this repo! It's been a big help for self-studying the book. In question 8.5.8 I think
se = r.std()
should be replaced byse = r.sem()
ormath.sqrt(r.var() / len(r))
. The std calculates the standard deviation of the values themselves where as we want the standard error of the mean estimate which is calculated using: