Applied Machine

Programming Problem:1. [42 points] In this problem, we write a program to estimate the parameters for an unknown polynomial using the polyfit() function of the numpy package.1) Please plot the noisy data and the polynomial you found (in the same figure). You can use any value of m selected from 2, 3, 4, 5, 6.2) Plot MSE versus order m, for m = 1, 2, 3, 4, 5, 6, 7, 8 respectively. Identify the best choice of m.3) Change variable noise_scale to 150, 200, 400, 600, 1000 respectively, re-run the algorithm and plot the polynomials with the m found in 2). Discuss the impact of noise scale to the accuracy of the returned parameters. [You need to plot a figure like in 1) for each choice of noise_scale.]4) Change variable number_of_samples to 40, 30, 20, 10 respectively, re-ran the algorithm and plot the polynomials with the m found in 2). Discuss the impact of the number of samples to the accuracy of the returned parameters. [You need to plot a figure like in 1) for each choice of number_of_samples.]A simulated dataset will be provided as below. The polynomial used is y = 5 * x + 20 * x2 + x3.Simulated data is given as follows in Python: import matplotlib.pyplot as plt plt.style.use(‘seaborn-whitegrid’) import numpy as npnoise_scale = 100number_of_samples = 50x = 25*(np.random.rand(number_of_samples, 1) – 0.8)y = 5 * x + 20 * x**2 + 1 * x**3 + noise_scale*np.random.randn(number_of_samples, 1) plt.plot(x,y,’ro’)

Struggling to find relevant content? Order a custom essay on
Applied Machine
Let our experts save you the hassle
Order Now
Calculate the price
Make an order in advance and get the best price
Pages (550 words)
$0.00
*Price with a welcome 15% discount applied.
Pro tip: If you want to save more money and pay the lowest price, you need to set a more extended deadline.
We know how difficult it is to be a student these days. That's why our prices are one of the most affordable on the market, and there are no hidden fees.

Instead, we offer bonuses, discounts, and free services to make your experience outstanding.
Sign up, place your order, and leave the rest to our professional paper writers in less than 2 minutes.
step 1
Upload assignment instructions
Fill out the order form and provide paper details. You can even attach screenshots or add additional instructions later. If something is not clear or missing, the writer will contact you for clarification.
s
Get personalized services with GPA Fix
One writer for all your papers
You can select one writer for all your papers. This option enhances the consistency in the quality of your assignments. Select your preferred writer from the list of writers who have handledf your previous assignments
Same paper from different writers
Are you ordering the same assignment for a friend? You can get the same paper from different writers. The goal is to produce 100% unique and original papers
Copy of sources used
Our homework writers will provide you with copies of sources used on your request. Just add the option when plaing your order
What our partners say about us
We appreciate every review and are always looking for ways to grow. See what other students think about our do my paper service.
Nursing
Thank you for the outstanding work .
Customer 452635, June 5th, 2022
Classic English Literature
Nicely done. Ty. Worth every penny.
Customer 452455, June 6th, 2021
Medicine
Great job! Thank you.
Customer 452707, May 29th, 2022
Exploring Gender in Science, Technology, and Mathematics
Very good work
Customer 452769, July 2nd, 2022
Nursing
Always a job well done. I really appreciate the hard work.
Customer 452453, January 4th, 2021
Technology
Excelled job on the paper!
Customer 452885, December 28th, 2022
IT, Web
A great job on my paper!! I really appreciate this!!
Customer 452885, January 30th, 2023
Nursing
Completed early! Awesome job!!!!!
Customer 452453, March 8th, 2023
Database design and optimization
thanks for busting this out so expeditiously. I hope that I get a good grade.
Customer 452715, February 19th, 2022
Other
nice
Customer 452813, June 25th, 2022
Other
Excellent
Customer 452813, August 21st, 2023
Nursing
Perfectly done! Thanks again.
Customer 452707, July 18th, 2022
OUR GIFT TO YOU
15% OFF your first order
Use a coupon FIRST15 and enjoy expert help with any task at the most affordable price.
Claim my 15% OFF Order in Chat

Good News ! We now help with PROCTORED EXAM. Chat with a support agent for more information