Simple Linear Regression is an algorithm used to estimate the relationship between two quantitative variables. We use simple linear regression when we want to study: the relationship is between two quantitative variables (e.g. weight vs height, years of experience vs salary, etc) the value of dependent variable, y, at a…