Question: 2. This problem checks your understanding of linear regression and diagnosis of these fits in R. Start by loading in the education income.csv file as

2. This problem checks your understanding of
2. This problem checks your understanding of
2. This problem checks your understanding of linear regression and diagnosis of these fits in R. Start by loading in the education income.csv file as a dataframe. (a) Make a scatterplot of the percentage of BS holders by state against the median household (HH) income. (b) Based on this plot, do you think linear regression is appropriate to attempt? (c) Fit a simple linear model to this pair of columns. (d) Overlay the best fit line on the scatterplot from part (a). (e) Write the linear equation estimated by your fit. (f) Write the coefficient of determination for your fit. (8) Make a QQ plot of the residuals to check if they are normally distributed. What do you conclude? (h) Plot the residuals against the fitted values. Do you notice anything concerning? MEM CA Al X fx State M 0 saw & Bouw & 10.3 D E G H 1 State IHS Perc HS Rank BS Perc BS rank ADV Pere Per Capita Median HI Median FPopulatio Nur HH Num Fami 2 Alabama 85.3 45 24.5 46 9.1 23606 42830 53764 4849377 1841217 1232515 3 Alaska 92.4 5 29 28 10.4 33062 71583 82307 736732 249659 165015 4 Arizona 86.5 39 28.4 10.7 25715 50068 59700 6731484 2428743 1579481 5 Arkansas 85.6 44 22 7.9 22883 41262 51528 2966369 1131288 6 California 752212 82.5 51 32.6 15 12:2 30441 61933 7 Colorado 71015 3.9E07 1.3E+07 8762059 91.1 14 39.4 14.6 32357 61303 75405 5355866 2039592 1315283 Connectis 90.2 22 38.4 17 39373 70048 88819 3596677 1355817 887263 9 Delaware 89.3 27 31 20 12.9 30488 59716 72594 935614 349743 233000 10 Florida 87.6 33 28.5 31 26582 47463 57212 2E407 7328046 4693411 11 Georgia 86.3 10 29.9 25 11.4 25615 49321 58885 1E-07 3587521 2426392 12 Hawaii 91.6 12 32 19 10.8 29736 69592 19187 1419561 450769 314151 13 Idaho 90.2 20 26.8 40 BS 23938 47861 58101 1634464 591582 407499 14 Illinois 886 31 33.4 13 13 30412 57444 21796 1.3E407 4772421 3099184 15 Indiana 883 32 25.3 43 9.2 25140 49446 60780 6996855 2502739 1657223 16 lowa 91.8 9 27.7 36 9 28.161 53712 67771 3107126 1241471 801562 17 Kansas 90.5 17 32.3 17 11.7 27870 52504 66425 29044021 1109280 728602 18 Kentucky 85.2 46 23.2 49 9.6 23684 42958 54776 4413457 1712094 1124586 19 Louisiana 843 48 23.4 48 8.1 24800 44555 56573 46496761718194 1112659 20 Maine 92.1 8 30.3 23 10.9 27978 49462 62078 1330089 549841 344585 21 Maryland 89.8 25 39 4 18 36338 73971 89678 5976407 2165438 1445972 22 Massacht 90.3 19 42.1 2 18.7 36593 71919 88419 6938608 3194844 2203675 23 Michigan 90.2 21 28.1 34 11 26613 49842 62143 9909877 3834574 2485159 24 Minnesot 92.3 1 14,8 11 11.8 12638 61481 77941 5457173 2129195 1869594 25 Mississip 83.4 49 21.3 51 8 21036 39680 50178 299-0079 1095823 738463 26 Missouri 89.2 28 28.2 33 10.7 26126 48363 61299 6063589 2354809 1508816 27 Montana 93 1 30.7 21 10.1 25999 46328 60643 1023579 410962 251176 2a Nebraska 90.0 15 30.6 22 10.2 27446 52686 06120 1881503 740765 480317 29 Nevada 85.8 43 237 47 8.1 25773 51450 60824 2819099 1021519 642461 30 New Ham 92.8 2 36 9 13.8 34691 66532 10581 1326813 519756 145901 11 New Jerse 29 6 14.7 37288 69160 82951 8938175 2549336 1610581 12 New Mex 85 47 26.9 39 118 23683 44803 54705 2085572 7661916 489512 3) New York 86.1 41 35.3 10 15.4 33095 58878 71115 21+07 72829984621954 34 North Car 86.0 36 29.9 26 10.6 25774 46550 57380941964 17906202492018 15 North Dal 923 6 28.9 20 7.8 33073 59029 75221 739482 305431 187800 16 Ohio 39,5 26 27.2 17 10.2 26937 490R 62300 1.26074591172 2923523 37 Oklahom 37.5 34 248 49 25229 47529 58/10 3878051 145079966516 90.2 30 Oregon 23 32.1 18 12.2 27646 51075 966250 62070192029 1535511 39 Pennsylve 19.9 24 30.1 24 118 29220 51234 67876 1.107 49459723185054 40 Rhode Isl 37.3 15 33 14 111 OH30 54891 71212 1055173 400654 257165 41 South Car 6.5 12 27 38 9.8 24506 4528 56401 4832482 1876914 1201616 education income 2018 49861 74346 59246 47062 75277 71953 76348 64805 55462 58756 80212 55583 65030 55746 59955 58218 50247 47905 55602 83242 79815 56697 70315 44717 56478 5538 59566 58646 74991 81740 47169 67844 53855 63837 56111 51924 63426 60005 64340 52100 N 2017 481211 73181 S6581 45869 71805 69117 74168 62852 52594 56183 77765 52225 62992 54181 58570 56422 48375 46145 55277 80776 77385 54909 68388 41529 53578 53386 59970 58000 73181 BOOBS 46/44 64194 52752 61841 54021 50051 60212 59105 0.1870 50570 2016 46257 76440 53558 44334 67739 65685 73433 61757 50860 53559 74511 51807 60960 52314 56247 54935 46659 45146 53079 2845 25292 52491 65599 41754 51746 50027 56927 55110 20936 76126 467430 62909 50581 60656 52344 40176 57512 56907 60996 49501 P 2015 44765 73355 51492 41995 64500 63909 71346 61255 49426 51244 73486 48275 59588 50532 54736 53906 45215 45722 51494 75847 70628 51084 63483 40593 50238 49509 54906 52431 70303 72222 45382 60RSO 47830 6055 51075 48561 54148 55702 511073 4723 2014 42830 71583 50068 61262 61933 61303 70048 59716 47463 49321 69592 47861 57444 49446 53712 52501 42958 44555 49162 73971 69160 49847 61481 1960 48161 46328 52686 51450 66532 71919 44803 58878 46556 59029 49108 47529 51075 51214 54001 4528 89.2

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock 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 General Management Questions!