Question: (b) Report the MSE obtained on VOTETRAIN. How much does this increase when you score your model on VOTETEST? My Answers so far: MSE on

(b) Report the MSE obtained on VOTETRAIN. How much does this increase when you score

your model on VOTETEST?

My Answers so far:

MSE on VOTETRAIN = 8.53419^2 = 72.832

MSE on VOTETEST = 47.7987

When scoring my model on VOTETEST the MSE declines 25.0263

Also where does the **(2/232) come from in the Predicted_err equation of my code? Thanks

/*To calculate MSE of votetest using regression equation of votetrain*/

data mod_votetest; set votetest;

y_hat = -53.30075+ (1.42003*female)+(0.00263*density)+(0.91191*poverty)+(0.60507*veterans);

Predicted_err = ((votes -y_hat)**2/232);

run;

proc print data = mod_votetest;

sum Predicted_err;

proc print sum Predicted_err;

run;

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 Mathematics Questions!