rlabbe / Kalman-and-Bayesian-Filters-in-Python

Kalman Filter book using Jupyter Notebook. Focuses on building intuition and experience, not formal proofs. Includes Kalman filters,extended Kalman filters, unscented Kalman filters, particle filters, and more. All exercises include solutions.
Other
16.39k stars 4.15k forks source link

BAD invocation of Central Limit Theorem #380

Open fpf3 opened 3 years ago

fpf3 commented 3 years ago

In Chapter 3, when first playing with the concept of a Gaussian, we have the following text:

What does this curve mean? Assume we have a thermometer which reads 22°C. No thermometer is perfectly accurate, and so we expect that each reading will be slightly off the actual value. However, a theorem called Central Limit Theorem states that if we make many measurements that the measurements will be normally distributed.

This is very wrong. The article which this excerpt links to describes CLT as the following:

In probability theory, the central limit theorem (CLT) establishes that, in many situations, when independent random variables are added, their properly normalized sum tends toward a normal distribution (informally a bell curve) even if the original variables themselves are not normally distributed.

When you "make many measurements," if they are not normally distributed, then taking a lot of them will not magically make them normally distributed.

The only way to make them approximate a normal distribution is to take a number of them and average them (or just sum them together).

I'm sure this is well understood by the author, but the text as quoted is simply wrong.

endolith commented 1 month ago

Duplicate of https://github.com/rlabbe/Kalman-and-Bayesian-Filters-in-Python/issues/275