# Data Science Workshop 4 (Part 2): Python Code for Linear Regression-Based Prediction

In this video, we start our Python code for prediction using linear regression. Linear regression is a simple but elegant prediction method. It works pretty well for many datasets despite its simplicity. It should be mentioned that there are some properties that the data must hold for a linear regression-based model. We did not cover any discussion on those properties. This link explains the properties, in case you are interested.

Here is our YouTube video that explains the Python Code for Prediction using Linear Regression.