Question

matlab multiple regression

peruvian.txt

Problem 1 (explore the data):

In this exercise use the Peruvian blood pressure data set, provided in the file peruvian.txt (A NOTE for repeat students: The data is different from the data I shared last year.)This dataset consists of variables possibly relating to blood pressures of = 30 Peruvians who have moved from rural high altitude areas to urban lower altitude areas. The variables in this dataset are: Age, Weight, Height, Pulse, Systol and Diastol. Before reading the data into MATLAB, it can be viewed in a text editor.

a)      Use the readtable('peruvian.txt','Delimiter','tab'); function to read the data into MATLAB. Make sure that you have the directory set to the correct location for the data. Plot ‘Systol’ as y-axis and ‘Age’ as x-axis. Repeat this for other columns, keeping ‘Systol’ as y-axis.   

b)     Use MATLAB help to find out which function to use. 

                        i.         What is the range of each variable? 

                       ii.         What is the mean and standard deviation of each variable? 



                      iii.         Compute the matrix of correlations between the variables. State, which variables are highly correlated. 

Problem 2 (linear regression ):

 

This question involves the use of simple and multiple linear regression methods on the Peru data set. 

a)    Use the fitlm() function to perform a multiple linear regression with Systol as the response and the other variables as predictors. Comment on the output. For example: 

                        i.         Is there a relationship between the predictors and the response? 

                       ii.         Which predictors appear to have a statistically significant relationship to the response? 

                      iii.         What does the coefficient for the Weight variable suggest? 

                      iv.         How well do the model fit the data?

b)    For each predictor fit a model. Which model is the best among all those? How have you decided? Compare the best model to the model in (a).

 

c)     Using the information from the correlation matrix you computed above, develop a rational approach to fit a model. Which predictors have you picked and why? How well does the model fit the data? Compare this model to the models in (a) and the best model in (b).

 


0 0
Add a comment Improve this question Transcribed image text
Request Professional Answer

Request Answer!

We need at least 10 more requests to produce the answer.

0 / 10 have requested this problem solution

The more requests, the faster the answer.

Request! (Login Required)


All students who have requested the answer will be notified once they are available.
Know the answer?
Add Answer to:
matlab multiple regression
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Similar Homework Help Questions
ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT