Simple linear regression finds the linear relationship between a dependent and independent variable. It uses the equation y=ax+b, where y is the dependent variable, x is the independent variable, a is the slope coefficient, and b is the y-intercept constant. The document demonstrates simple linear regression by importing a dataset on salary and experience, separating the variables, splitting the data into training and test sets, creating a linear regression model, and plotting the training and test data.
Simple linear regression finds the linear relationship between a dependent and independent variable. It uses the equation y=ax+b, where y is the dependent variable, x is the independent variable, a is the slope coefficient, and b is the y-intercept constant. The document demonstrates simple linear regression by importing a dataset on salary and experience, separating the variables, splitting the data into training and test sets, creating a linear regression model, and plotting the training and test data.
Simple linear regression finds the linear relationship between a dependent and independent variable. It uses the equation y=ax+b, where y is the dependent variable, x is the independent variable, a is the slope coefficient, and b is the y-intercept constant. The document demonstrates simple linear regression by importing a dataset on salary and experience, separating the variables, splitting the data into training and test sets, creating a linear regression model, and plotting the training and test data.