Question: Solving the following task using linear regression with Python and related Python packages. It is found that systolic pressure is linked to weight and age.

Solving the following task using linear regression with Python and related Python packages.
It is found that systolic pressure is linked to weight and age. In this assignment, we want to explore the relationship between weight, age, and systolic pressure. We are given the following training dataset and test dataset. Please use the learned linear regression model to train a model and get the trained model parameters. Then use the trained model to predict the pressure values of the test set. Please also compute the model performance on both the training and test sets regarding MSE.
Training set data:
weight =[76,0,91,5,85,5,82*5,79,0,80,5,74,5,79,0,85*0,76.5]
age =[50,20,20,30,30,50,60,50,40,55]
pressure =[120,141,124,126,117,125,123,125,132,123]
Test set data:
weight =[82.0,95,0,92.5]
age =[40,40,20]
pressure =[132,155,147]
 Solving the following task using linear regression with Python and related

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 Databases Questions!