AllenDowney / ThinkStats2

Text and supporting code for Think Stats, 2nd Edition
http://allendowney.github.io/ThinkStats2/
GNU General Public License v3.0
4.02k stars 11.31k forks source link

variable names wrong/misleading in code for Section 8.5 #212

Closed rjoberon closed 3 months ago

rjoberon commented 3 months ago

In Section 8.5 we try to estimate the parameter $\lambda$ of an exponential distribution using the sample mean and median. The corresponding description and code in the notebook should be changed:

The following function simulates experiments where we try to estimate the mean of an exponential distribution using the mean and median of a sample.

should be

The following function simulates experiments where we try to estimate the parameter $\lambda$ of an exponential distribution using the mean and median of a sample.

and the variables means and medians in the code should be Ls and Lms.

AllenDowney commented 3 months ago

Yes, that's better. Thanks!