Simple Linear Regression

Use the computers.csv dataset and perform the following activities:

Dataset contains the details of time taken to repair a computer, given the number of units to be repaired.

Dataset: https://drive.google.com/file/d/1vZB2fDeRmyeU5V9onXCYB_74K_BnWf7f/view?usp=sharing

  1. Build Regression model using Scikit-Learn Library(Model 3).
  1. Set the 'Units' column as the input data or predictor column
  2. Set the 'Minutes' column as the output data
  3. Importing the required class -  LinearRegression
  4. Creating a linear regression model
  5. Fitting the model to the data
  6. Fetching intercept and coefficient
  1. Creating Linear Regression model with calculated coefficient and intercept.
  2. Add the above model to the dataframe for Visualization.
  3. Visualize Models using pyplot.
  4. Compute the Coefficient of Determination to find accuracy.

********************************************************************