What is Linear Regression? Linear Regression is the process of using data to draw the best fitted “straight line” that shows how one variable changes when another changes.
As an example: We will use housing dating from the txHousing Dataset built into R’s database.
Think of predicting housing Prices using two ‘clues’:
Variable 1: # of Listings
Variable 2: # Median House price
Using these two variables, we will use linear regression so see if we can find any relationships between the two.