Problem#1 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 Y 25 5 30 260 35 40 480 745 45 1100 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) R-'Im' function Make sure that your answers are the same using all the 3 methods.

icon
Related questions
Question

Please help step by step with explanation with Program R (CS) with a final code for understanding thank you.

Problem#1
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
Y
25
5
30
260
35
480
40
745
45
1100
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) R'Im' function
Make sure that your answers are the same using all the 3 methods.
Transcribed Image Text:Problem#1 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 Y 25 5 30 260 35 480 40 745 45 1100 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) R'Im' function Make sure that your answers are the same using all the 3 methods.
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 4 steps with 2 images

Blurred answer