ccsf-math-108 / materials-fa23

Fall 2023 student course materials for MATH 108 Foundations of Data Science at CCSF
Creative Commons Zero v1.0 Universal
0 stars 0 forks source link

Lecture 33 Video: Last Example: predict Function body Error for intercept Variable (Moderate/High) #55

Closed asheynis closed 9 months ago

asheynis commented 10 months ago

In the Lecture 33 video, for the last example where we code up the body of the predict function, you code the calculation of the intercept variable as "intercept = mean_X - slope * mean_X". The bolded "X" should be "Y".

shawnwiggins commented 10 months ago

Good catch, @asheynis. I added the following note to the Loom video description/summary:

Update: The code for the intercept at 17:20 is incorrect. It should be mean_Y - slope * mean_X.

I'll leave this issue open until next week for those who still need to go through the video.