Question: 1. Blood pressure dataset pressure.csv contains examples of systolic pressures and other features from different persons. 2. Create polynomial regression models, to predict systolic pressure

1. Blood pressure dataset pressure.csv contains examples of systolic pressures and other features from different persons.

2. Create polynomial regression models, to predict systolic pressure using the weight feature, for degrees vary from 1 to 14. Perform 10-fold cross validation. Calculate its square roots of the mean square errors (RMSE), and the mean RMSE. Display the mean RMSEs for the 14 different degrees. Produce a cross validation error plot using the mean RMSE with 1 to 14 different degrees

bloodpressure.cvs

ID-NUMBER,AGE,ED-LEVEL,SMOKING STATUS,EXERCISE,WEIGHT,SERUM-CHOL,SYSTOLIC,IQ,SODIUM,GENDER,MARITAL-STATUS,NAME
1,27,2,1,1,120,193,126,118,136,F,M,"Braund, Mr. Owen Harris"
2,18,1,0,1,145,210,120,105,137,M,S,"Cumings, Mrs. John Bradley (Florence Briggs Thayer)"
3,32,2,0,0,118,196,128,115,135,F,M,"Heikkinen, Miss. Laina"
4,24,2,0,1,162,208,129,108,142,M,M,"Futrelle, Mrs. Jacques Heath (Lily May Peel)"
5,19,1,2,0,106,188,119,106,133,F,S,"Allen, Mr. William Henry"
6,56,1,0,0,143,206,136,111,138,F,W,"Moran, Mr. James"
7,65,1,2,0,160,240,131,99,140,M,W,"McCarthy, Mr. Timothy J"
8,36,2,1,0,215,215,163,106,151,M,D,"Palsson, Master. Gosta Leonard"
9,43,1,0,1,127,201,132,111,134,F,M,"Johnson, Mrs. Oscar W (Elisabeth Vilhelmina Berg)"
10,47,1,1,1,132,215,138,109,135,F,D,"Nasser, Mrs. Nicholas (Adele Achem)"
11,48,3,1,2,196,199,148,115,146,M,D,"Sandstrom, Miss. Marguerite Rut"
12,25,2,2,3,109,210,115,114,141,F,S,"Bonnell, Miss. Elizabeth"
13,63,0,1,0,170,242,149,101,152,F,D,"Saundercock, Mr. William Henry"
14,37,2,0,3,187,193,142,109,144,M,M,"Andersson, Mr. Anders Johan"
15,40,0,1,1,234,208,156,98,147,M,M,"Vestrom, Miss. Hulda Amanda Adolfina"
16,25,1,2,1,199,253,135,103,148,M,S,"Hewlett, Mrs. (Mary D Kingcome) "
17,72,0,0,0,143,288,156,103,145,F,M,"Rice, Master. Eugene"
18,56,1,1,0,156,164,153,99,144,F,D,"Williams, Mr. Charles Eugene"
19,37,2,0,2,142,214,122,110,135,M,M,"Vander Planke, Mrs. Julius (Emelia Maria Vandemoortele)"
20,41,1,1,1,123,220,142,108,134,F,M,"Masselmani, Mrs. Fatima"
21,33,2,1,1,165,194,122,112,137,M,S,"Fynney, Mr. Joseph J"
22,52,1,0,1,157,205,119,106,134,M,D,"Beesley, Mr. Lawrence"
23,44,2,0,1,121,233,135,166,133,F,M,"McGowan, Miss. Anna ""Annie"""
24,53,1,0,0,131,199,133,121,136,F,M,"Sloper, Mr. William Thompson"
25,19,1,0,3,128,206,118,122,132,M,S,"Palsson, Miss. Torborg Danira"
26,25,1,0,0,143,200,118,103,135,M,M,"Asplund, Mrs. Carl Oscar (Selma Augusta Emilia Johansson)"
27,31,2,1,1,152,204,120,119,136,M,M,"Emir, Mr. Farred Chehab"
28,28,2,0,0,119,203,118,116,138,F,M,"Fortune, Mr. Charles Alexander"
29,23,1,0,0,111,240,120,105,135,F,S,"O'Dwyer, Miss. Ellen ""Nellie"""
30,47,2,1,0,149,199,132,123,136,F,M,"Todoroff, Mr. Lalio"
31,47,2,1,0,179,235,131,113,139,M,M,"Uruchurtu, Don. Manuel E"
32,59,1,2,0,206,260,151,99,143,M,W,"Spencer, Mrs. William Augustus (Marie Eugenie)"
33,36,2,1,0,191,201,148,118,145,M,D,"Glynn, Miss. Mary Agatha"
34,59,0,1,1,156,235,142,100,132,F,W,"Wheadon, Mr. Edward H"
35,35,1,0,0,122,232,131,106,135,F,M,"Meyer, Mr. Edgar Joseph"
36,29,2,0,2,175,195,129,121,148,M,M,"Holverson, Mr. Alexander Oskar"
37,44,1,2,0,132,240,130,109,132,F,S,"Mamee, Mr. Hanna"
38,44,1,2,0,132,240,130,109,132,F,S,"Cann, Mr. Ernest Charles"
39,63,2,2,1,188,255,156,121,145,M,M,"Vander Planke, Miss. Augusta Maria"
40,36,2,1,1,125,220,126,117,140,F,S,"Nicola-Yarred, Miss. Jamila"
41,21,1,0,1,109,206,114,102,136,F,M,
42,31,2,0,2,112,201,116,123,133,F,M,
43,57,1,1,1,167,213,141,103,143,M,W,
44,20,1,2,3,101,194,110,111,125,F,S,
45,24,2,1,3,106,188,113,114,127,F,D,
46,42,1,0,1,148,206,136,107,140,M,S,
47,55,1,0,0,170,257,152,106,130,F,M,
48,23,0,0,1,152,204,116,95,142,M,M,
49,32,2,0,0,191,210,132,115,147,M,M,
50,28,1,0,1,148,222,135,100,135,M,M,
51,67,0,0,0,160,250,141,116,146,F,W,
52,22,1,1,1,109,220,121,103,144,F,M,
53,19,1,1,1,131,231,117,112,133,M,S,
54,25,2,0,2,153,212,121,119,149,M,D,
55,41,3,2,2,165,236,130,131,152,M,M,
56,24,2,0,3,112,205,118,100,132,F,S,
57,32,2,0,1,115,187,115,109,136,F,S,
58,50,3,0,1,173,203,136,126,146,M,M,
59,32,2,1,0,186,248,119,122,149,M,M,
60,26,2,0,1,181,207,123,121,142,M,S,
61,36,1,1,0,112,188,117,98,135,F,D,
62,40,1,1,0,130,201,121,105,136,F,D,
63,19,1,1,1,132,237,115,111,137,M,S,
64,37,2,0,2,179,228,141,127,141,F,M,
65,65,3,2,1,212,220,158,129,148,M,M,
66,21,1,2,2,99,191,117,103,131,F,S,
67,25,2,2,1,128,195,120,121,131,F,S,
68,68,0,0,0,167,210,142,98,140,M,W,
69,18,1,1,2,121,198,123,113,136,F,S,
70,26,0,1,1,163,235,128,99,140,M,M,
71,45,1,1,1,185,229,125,101,143,M,M,
72,44,3,0,0,130,215,128,128,137,F,M,
73,50,1,0,0,142,232,135,104,138,F,M,
74,63,0,0,0,166,271,143,103,147,F,W,
75,48,1,0,3,163,203,131,103,144,M,M,
76,27,2,0,3,147,186,118,114,134,M,M,
77,31,3,1,1,152,228,116,126,138,M,D,
78,28,2,0,2,112,197,120,123,133,F,M,
79,36,2,1,2,190,226,123,121,147,M,M,
80,43,3,2,0,179,252,127,131,145,M,D,
81,21,1,0,1,117,185,116,105,137,F,S,
82,32,2,1,0,125,193,123,119,135,F,M,
83,29,2,1,0,123,192,131,116,131,F,D,
84,49,2,2,1,185,190,129,127,144,M,M,
85,24,1,1,1,133,237,121,114,129,M,M,
86,36,2,0,2,163,195,115,119,139,M,M,
87,34,1,2,0,135,199,133,117,135,F,M,
88,36,0,0,1,142,216,138,88,137,F,M,
89,29,1,1,1,155,214,120,98,135,M,S,
90,42,0,0,2,169,201,123,96,137,M,D,
91,41,1,1,1,136,214,133,102,141,F,D,
92,29,1,1,0,112,205,120,102,130,F,M,
93,43,1,1,0,185,208,127,100,143,M,M,
94,61,1,2,0,173,248,142,101,141,M,M,
95,21,1,1,3,106,210,111,105,131,F,S,
96,53,0,0,0,149,232,142,103,141,F,M,
97,63,0,1,0,192,193,163,95,147,M,M,
98,74,1,0,0,162,247,151,99,151,F,W,
99,35,2,0,1,151,251,147,113,145,F,M,
100,28,2,0,3,161,199,129,116,138,M,M,

Step by Step Solution

3.35 Rating (155 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

Answer Please do make changes according ro the dataset u have I have used the blood pressure data set I have which i got from other sites I dont have the data which is given in the above screen shot i ... View full answer

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 Computer Engineering Questions!