Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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]
image text in transcribed

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Systems For Advanced Applications 17th International Conference Dasfaa 2012 Busan South Korea April 2012 Proceedings Part 1 Lncs 7238

Authors: Sang-goo Lee ,Zhiyong Peng ,Xiaofang Zhou ,Yang-Sae Moon ,Rainer Unland ,Jaesoo Yoo

2012 Edition

364229037X, 978-3642290374

More Books

Students also viewed these Databases questions

Question

Describe how nerve cells communicate with other nerve cells.

Answered: 1 week ago