Adding a Regression Line
Explore how to apply a simple linear regression line to your data visualizations using Python's Pandas library. Learn the meaning of R-squared values and how they help assess the fit of your model, enabling you to confidently interpret data trends and outliers.
We already saw how our plot showed a visible trend up and to the right. But, as we also saw, there were outliers. Can we be confident that the outliers are the exceptions and that the overall relationship between our two data sources is sound? There’s only so much we can assume based on visually viewing a graph. At some point, we’ll need complex numbers ...