Find Jobs
Hire Freelancers

Training MSE v.s. Test MSE - 15/10/2016 02:20 EDT

$10-30 USD

In Progress
Posted over 7 years ago

$10-30 USD

Paid on delivery
Test MSE and Training MSE 1 Polynomial Regression on Simulation Data • Function: y = 5 − 0.1x + 0.004x 2 − 3 × 10−5x 3 + . • Generate 50 training data points: (x,y). • Generate 10000 testing data points: (xtest, ytest). • Use function lm(y ∼ poly(x,i)) to train your model, here i is the flexibility from 1 to 20. Hint: you can use for loop for this step. And repeat this whole process 30 times. • Calculate the Training MSE for each flexibility, in total you should have 20×30 MSE. • Calculate the Testing MSE for each flexibility, in total you should have 20 ×30 MSE. • Calculate the Average MSE for the 20 Training MSE. 1 • Calculate the Average MSE for the 20 Testing MSE. • Use plot() function to draw average Training MSE. • Use lines() function to draw all your Training MSE and Testing MSE in one figure. You can use for loop to draw all lines. • Please point out the first MSE for both Training and Testing by using points() function. • Please point out the lowest MSE for Testing and the corresponding Training MSE by using points() function. • Please point out the last MSE for both Training and Testing by using points() function. 2
Project ID: 11794015

About the project

Remote project
Active 8 yrs ago

Looking to make some money?

Benefits of bidding on Freelancer

Set your budget and timeframe
Get paid for your work
Outline your proposal
It's free to sign up and bid on jobs

About the client

Flag of UNITED STATES
San Marcos, United States
5.0
1
Payment method verified
Member since Oct 15, 2016

Client Verification

Thanks! We’ve emailed you a link to claim your free credit.
Something went wrong while sending your email. Please try again.
Registered Users Total Jobs Posted
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Loading preview
Permission granted for Geolocation.
Your login session has expired and you have been logged out. Please log in again.