negative linear relationship linear relationship will be called positive if independent increases and dependent variable decreases it can be understood with the help of following graphnegative linear relationship types of linear regression linear regression is of the following two typessimple linear regression multiple linear regression simple linear regression (slrit is the most basic version of linear regression which predicts response using single feature the assumption in slr is that the two variables are linearly related python implementation we can implement slr in python in two waysone is to provide your own dataset and other is to use dataset from scikit-learn python library example in the following python implementation examplewe are using our own dataset firstwe will start with importing necessary packages as follows%matplotlib inline import numpy as np import matplotlib pyplot as plt