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
Excellent as usual. Thank you!
Customer 452707, June 24th, 2023
Nursing
Perfect as usual!!! Thanks team!
Customer 452453, May 26th, 2021
Financial Statement Analysis
Thanks for the help
Customer 452821, March 10th, 2023
IT, Web
Great job on the paper!!
Customer 452885, January 30th, 2023
Business and administrative studies
GOOD
Customer 452813, June 30th, 2022
Human Resources Management (HRM)
Thank you
Customer 452531, May 19th, 2021
Other
Excellent
Customer 452813, August 21st, 2023
Other
GREAT JOB THANK YOU.
Customer 452813, July 18th, 2022
Nursing
Always pleased with the writers work.
Customer 452707, September 9th, 2023
Nursing
Thank you for the outstanding work .
Customer 452635, June 5th, 2022
Social Work and Human Services
Great Work!
Customer 452587, November 2nd, 2021
Human Resources Management (HRM)
Perfect
Customer 452701, August 15th, 2023
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