Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Linear Regression The values of 2 variables X and Y are given below. Here X is the predictor variable and Y is the response variable.
Linear Regression
The values of 2 variables X and Y are given below. Here X is the predictor variable and Y is the response variable.
X 25 30 35 40 45
Y 5 260 480 745 1100
Build your regression model using the following 3 methods.
a) Closed form solution using only the mean of x, y, x*y, x2 variables.
b) Closed form solution using the correlation coefficient between x and y variables and
the standard deviation of both variables.
c) Python using Scikit-Learn and Statsmodels libraries.
Make sure that your answers are the same using all the 3 methods.
The values of 2 variables X and Y are given below. Here X is the predictor variable and Y is the response variable. Build your regression model using the following 3 methods. a) Closed form solution - using only the mean of ' x ', ' y ', ' x ' y ', ' x ' variables. b) Closed form solution - using the correlation coefficient between ' x ' and ' y ' variables and the standard deviation of both variables. c) Python - using 'Scikit-Learn' and 'Statsmodels' libraries. Make sure that your answers are the same using all the 3 methodsStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started