The document describes an experiment performing simple linear regression using R programming to predict salary based on years of experience. It imports a salary dataset, splits it into training and test sets, fits a linear regression model to the training set, predicts results on the test set, and visually plots the regression line against the actual values for both sets.
The document describes an experiment performing simple linear regression using R programming to predict salary based on years of experience. It imports a salary dataset, splits it into training and test sets, fits a linear regression model to the training set, predicts results on the test set, and visually plots the regression line against the actual values for both sets.
The document describes an experiment performing simple linear regression using R programming to predict salary based on years of experience. It imports a salary dataset, splits it into training and test sets, fits a linear regression model to the training set, predicts results on the test set, and visually plots the regression line against the actual values for both sets.