Study the dataset given in file ‘x03.csv’, read it in as a data frame. Use the linear regression method to find a possible linear relation between blood pressure and age. First plot the given sample points, then plot the linear model graph as only 2 variables; blood pressure and age are in the dataset. Finally, plot the residuals points and counts of the residuals, and evaluate the normality assumption for the dataset. x03.csv x03.csv Index Systolic age bp 1 1 39 144 2 1 47 220 3 1 45 138 4 1 47 145 5 1 65 162 6 1 46 142 7 1 67 170 8 1 42 124 9 1 67 158 10 1 56 154 11 1 64 162 12 1 56 150 13 1 59 140 14 1 34 110 15 1 42 128 16 1 48 130 17 1 45 135 18 1 17 114 19 1 20 116 20 1 19 124 21 1 36 136 22 1 50 142 23 1 39 120 24 1 21 120 25 1 44 160 26 1 53 158 27 1 63 144 28 1 29 130 29 1 25 125 30 1 69 175

Computer Networking: A Top-Down Approach (7th Edition)
7th Edition
ISBN:9780133594140
Author:James Kurose, Keith Ross
Publisher:James Kurose, Keith Ross
Chapter1: Computer Networks And The Internet
Section: Chapter Questions
Problem R1RQ: What is the difference between a host and an end system? List several different types of end...
icon
Related questions
Question

Question

Study the dataset given in file ‘x03.csv’, read it in as a data frame. Use the linear regression method to find a possible linear relation between blood pressure and age.

First plot the given sample points, then plot the linear model graph as only 2 variables; blood pressure and age are in the dataset. Finally, plot the residuals points and counts of the residuals, and evaluate the normality assumption for the dataset.

x03.csv

x03.csv

Index Systolic age bp
1 1 39 144
2 1 47 220
3 1 45 138
4 1 47 145
5 1 65 162
6 1 46 142
7 1 67 170
8 1 42 124
9 1 67 158
10 1 56 154
11 1 64 162
12 1 56 150
13 1 59 140
14 1 34 110
15 1 42 128
16 1 48 130
17 1 45 135
18 1 17 114
19 1 20 116
20 1 19 124
21 1 36 136
22 1 50 142
23 1 39 120
24 1 21 120
25 1 44 160
26 1 53 158
27 1 63 144
28 1 29 130
29 1 25 125
30 1 69 175
Expert Solution
steps

Step by step

Solved in 2 steps with 2 images

Blurred answer
Recommended textbooks for you
Computer Networking: A Top-Down Approach (7th Edi…
Computer Networking: A Top-Down Approach (7th Edi…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON
Computer Organization and Design MIPS Edition, Fi…
Computer Organization and Design MIPS Edition, Fi…
Computer Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science
Network+ Guide to Networks (MindTap Course List)
Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning
Concepts of Database Management
Concepts of Database Management
Computer Engineering
ISBN:
9781337093422
Author:
Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:
Cengage Learning
Prelude to Programming
Prelude to Programming
Computer Engineering
ISBN:
9780133750423
Author:
VENIT, Stewart
Publisher:
Pearson Education
Sc Business Data Communications and Networking, T…
Sc Business Data Communications and Networking, T…
Computer Engineering
ISBN:
9781119368830
Author:
FITZGERALD
Publisher:
WILEY