Multiple Linear Regression A nursing instructor wishes to see whether a student's grade point average and age are related to the student's score on the state board nursing examination. She selects five students and obtains the following data. Student GPAX₁ 3.2 2.7 2.5 3.4 2.2 Age x₂ 22 27 24 28 23 State board score y 550 570 525 670 490 My Solution E a) Refer to fitlm. From its output, determine the b0, b1, and b2. Do not simply enter the values but work with objects in MATLAB. You can also search How to get the p-value as an output of fitlm on MATLAB Answers. b) Predict a student's state board score who has a GPA of 3.0 and who is 25 years old. The multiple regression equation is ŷ = bo+b₁x₁ + b₂x2. c) Obtain the Coefficient of Determination (R²) from fitlm's output. Check LinearModel.

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
Script
1 % X is a 5 x 2 matrix
2 X=
3 y=
4
5% use fitlm
6 md1=
7
8 % be
9 bo=
10
11 % b1
12 b1=
13
Save
C Reset
14 % b2
15 b2=
16
17 % Compute the student's predicted state board score
18 y predicted=
19
20 % Get the Coefficient of Determination
21 Rsq=
22
23 % Testing the significance of R to compute F-statistic
24 [p,F]=
MATLAB Documentation
Run Script
Transcribed Image Text:Script 1 % X is a 5 x 2 matrix 2 X= 3 y= 4 5% use fitlm 6 md1= 7 8 % be 9 bo= 10 11 % b1 12 b1= 13 Save C Reset 14 % b2 15 b2= 16 17 % Compute the student's predicted state board score 18 y predicted= 19 20 % Get the Coefficient of Determination 21 Rsq= 22 23 % Testing the significance of R to compute F-statistic 24 [p,F]= MATLAB Documentation Run Script
Multiple Linear Regression
A nursing instructor wishes to see whether a student's grade point average and age are related to the
student's score on the state board nursing examination. She selects five students and obtains the
following data.
Student
A
B
D
E
GPAX₁
3.2
2.7
2.5
3.4
2.2
Age x₂
22
27
24
28
23
State board
score y
550
570
525
670
490
My Solutions >
a) Refer to fitlm. From its output, determine the b0, b1, and b2. Do not simply enter the values but work
with objects in MATLAB. You can also search How to get the p-value as an output of fitlm on MATLAB
Answers.
b) Predict a student's state board score who has a GPA of 3.0 and who is 25 years old. The multiple
regression equation is y = bo+b₁x₁ + b2x2.
c) Obtain the Coefficient of Determination (R²) from fitlm's output. Check LinearModel.
d) Obtain the F-statistic using coefTest. Its value must be the same as that of fitlm with some discrepancy
due to rounding off.
Transcribed Image Text:Multiple Linear Regression A nursing instructor wishes to see whether a student's grade point average and age are related to the student's score on the state board nursing examination. She selects five students and obtains the following data. Student A B D E GPAX₁ 3.2 2.7 2.5 3.4 2.2 Age x₂ 22 27 24 28 23 State board score y 550 570 525 670 490 My Solutions > a) Refer to fitlm. From its output, determine the b0, b1, and b2. Do not simply enter the values but work with objects in MATLAB. You can also search How to get the p-value as an output of fitlm on MATLAB Answers. b) Predict a student's state board score who has a GPA of 3.0 and who is 25 years old. The multiple regression equation is y = bo+b₁x₁ + b2x2. c) Obtain the Coefficient of Determination (R²) from fitlm's output. Check LinearModel. d) Obtain the F-statistic using coefTest. Its value must be the same as that of fitlm with some discrepancy due to rounding off.
Expert Solution
steps

Step by step

Solved in 3 steps with 1 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