Question: 9: Linear regression Your task to implement a linear regression model using scikit learn package of python. Please follow the below steps Load the data

9: Linear regression Your task to implement a linear regression model using scikit learn package of python. Please follow the below steps Load the data using the variable 'linear_data' Split the dataset into training and testing sets. Target Variable is 'Chance of Admit'. Use linear regression model from scikit learn package Evaluate the model using mean squared error (MSE) for the test set and the print the value Run 3 experiments by varying train-test split percentages, random state and other parameters, for more refer https://scikit-learn.org/stable/modules/generated/sklearn.model_selection.train_test_split.html Choose the experiment that has least MSE and find the coefficients and intercept for that corresponding Linear Regression model. Hint: Since, its linear regression the equation would be in the following format, Y = + * X + * X + ... + * X + Using scikit learn we can find the slopes/coefficients of each feature i.e. , , ..., and intercept . For more information, refer to https://scikit-learn.org/stable/modules/generated/sklearn.linear_model.LinearRegression.html linear_data = 'https://raw.githubusercontent.com/KrishnaTejaJ/datasets-CSCI-B455/main/assignment%202/question12/linear_data.csv' #Write your code here

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Mathematics Questions!