code-for-a-living June 19, 2021

Level Up: Linear Regression in Python – Part 5

In the fifth lesson of the series we’ll learn how to build more flexible linear models by adding interaction and polynomial terms. We’ll fit and inspect our models both mathematically and visually to understand how they work. In the process, we’ll continue to practice our Python skills and discuss some of the merits (and drawbacks)…
code-for-a-living June 12, 2021

Level Up: Linear Regression in Python – Part 4

In the fourth lesson of the series, we’ll talk about the matrix representation of the linear regression problem. In the process, we’ll discuss the basics of matrix multiplication. We’ll also see how this mathematical understanding can prepare us to make sense of error messages that we might encounter when fitting a model in Python. Here…
code-for-a-living June 6, 2021

Level Up: Linear Regression in Python – Part 3

In the third lesson of the series, we’ll implement our first linear regression model with multiple predictors (this is called “multiple linear regression”). As an example, we’ll use a simulated dataset to predict student quiz scores. In the process, we’ll again practice our graphing and Python skills. Here are some Stack Overflow questions related to…
code-for-a-living May 29, 2021

Level Up: Linear Regression in Python – Part 2

In the second lesson of the series, we’ll learn how to fit and interpret a simple linear regression with a categorical predictor. We’ll use a simulated dataset to predict the amount of time someone will spend on a website based on the browser they are using. We’ll also predict the rental prices of NYC apartments…