telmo-correa / all-of-statistics

Self-study on Larry Wasserman's "All of Statistics"
974 stars 278 forks source link

Exercise 8.5.8 Standard Error mistake #4

Closed redfungus closed 3 years ago

redfungus commented 3 years ago

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 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: image

telmo-correa commented 3 years ago

You are correct; thank you for catching this. I just pushed a fix to exercise 8.5.8 fixing this issue.