Computers and Technology

Univariate linear regression Note: Solutions to this problem must follow the method described in class and the linear regression handout. There is some flexibility in how your solution is coded, but you may not use special functions that automatically perform linear regression for you. Load in the BodyBrain Weight. csv dataset. Perform linear regression using two different models: M1: brain_weight = w0 + w1 x body_weight M2: brain_weight = w0 + w1 x body_weight + w2 x body_weight2
a. For each model, follow the steps shown in class to solve for w. Report the model, including w values and variable names for both models.
b. Use subplots to display two graphs, one for each model. In each graph, include: • Labeled x and y axes • Title • Scatterplot of the dataset • A smooth line representing the model
c. For each model, calculate the sum squared error (SSE). Show your 2 SSE values together in a bar plot.
d. Which model do you think is better? Why? Is there a different model that you think would better represent the data?
Body weight (kg) Brain weight (g)
0.023 0.4
0.048 0.33
0.075 1.2
0.12 1
0.122 3
0.2 5
0.28 1.9
0.55 2.4
0.75 12.3
0.785 3.5
0.93 3.5
1.04 5.5
1.35 8.1
1.41 17.5
2.5 12.1
3 25
3.3 25.6
3.6 21
4.288 39.2
5.3 41.6
6.8 179
10 115
10.55 179.5
27.66 115
35 56
36.33 119.5
52.16 440
55.5 175
60 81
62 1320
85 325
93 225
100 157
110 288
110 442
187.1 419
192 180
207 406
250 334
465 423
480 712
521 655
529 680
1400 590
2547 4603
6654 5712

answer
Answers: 3

Other questions on the subject: Computers and Technology

image
Computers and Technology, 23.06.2019 11:00, shawn20034
This chapter lists many ways in which becoming computer literate is beneficial. think about what your life will be like once you’re started in your career. what areas of computing will be most important for you to understand? how would an understanding of computer hardware and software you in working from home, working with groups in other countries and contributing your talents.
Answers: 1
image
Computers and Technology, 23.06.2019 18:30, DSUDLER5555
Write a program that prints the day number of the year, given the date in the form month-day-year. for example, if the input is 1-1-2006, the day number is 1; if the input is 12-25-2006, the day number is 359. the program should check for a leap year. a year is a leap year if it is divisible by 4, but not divisible by 100. for example, 1992 and 2008 are divisible by 4, but not by 100. a year that is divisible by 100 is a leap year if it is also divisible by 400. for example, 1600 and 2000 are divisible by 400. however, 1800 is not a leap year because 1800 is not divisible by 400.
Answers: 3
image
Computers and Technology, 24.06.2019 11:30, AnwarWeirdLol8811
Why is body language an important factor in a business meeting
Answers: 1
image
Computers and Technology, 25.06.2019 09:00, Jenifermorales101
Janet has to prepare a presentation on business strategies for work. which guideline should she follow to create an effective presentation? a. use a readable font b. use a multicolored background c. use a small, but stylish font d. include detailed text
Answers: 1
Do you know the correct answer?
Univariate linear regression Note: Solutions to this problem must follow the method described in cla...

Questions in other subjects:

Konu
Mathematics, 25.08.2019 22:50
Konu
Mathematics, 25.08.2019 22:50