Question: Part ( d ) Find k for which the out - of - sample root mean squared error is the smallest. You can use which.min
Part d
Find k for which the outofsample root mean squared error is the smallest. You can use which.minoutRMSE to find the index of the smallest value in the vector outRMSE.
Create variable kbest that stores the value k for which outRMSE has the smallest val
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
