# 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’) for more information on Applied Machine check on this:https://en.wikipedia.org/wiki/Simple_machine

Don't use plagiarized sources. Get Your Custom Essay on
Applied Machine
Just from \$13/Page
275 words
Total price: \$0.00

## Top-quality papers guaranteed

### 100% original papers

We sell only unique pieces of writing completed according to your demands.

### Confidential service

We use security encryption to keep your personal data protected.

### Money-back guarantee

We can give your money back if something goes wrong with your order.

## Get free features with our reliable essay writing service

1. Title page

We offer you a free title page tailored according to the specifics of your particular style.

2. Custom formatting

Include your preferred formatting style when you order from us to accompany your paper.

3. Bibliography page

Get a list of references to go with your ordered paper.

## Calculate how much your essay costs

Type of paper
550 words

### How to place an order

• Push the orange button
• Give instructions for your paper
• Pay with PayPal or a credit card
• Track the progress of your order
• Approve and enjoy your custom paper