oreilly_essential_math_for_data_science_book
oreilly_essential_math_for_data_science_book copied to clipboard
Possible Typo in Code Example and Exercise Solution
https://github.com/thomasnield/oreilly_essential_math_for_data_science_book/blob/930169272a09108c089545667dcbbfec68ae286e/chapter_5/5_20_prediction_interval.py#L23
According to the formula given on page 183 (first edition, june 2022) this should be sqrt(1 + (1 / n) + (n * (x_0 + x_mean) ** 2) I think.
The same issue is in the exercise solution on page 317.