# Engr421 Homework 4-Nonparametric Regression Solved

35.00 \$

Category:
Click Category Button to View Your Next Assignment | Homework

You'll get a download link with a: . ` zip` solution files instantly, after Payment

## Description

Rate this product

In this homework, you will implement three nonparametric regression algorithms in Matlab, Python, or R. Here are the steps you need to follow:

1. Read Section 8.8 from the textbook.
2. You are given a univariate regression data set, which contains 133 data points, in the file named csv. Divide the data set into two parts by assigning the first 100 data points to the training set and the remaining 33 data points to the test set.

1. Learn a regressogram by setting the bin width parameter to 3 and the origin parameter to 0. Draw training data points, test data points, and your regressogram in the same figure.

Your figure should be similar to the following figure.

• = 3
1. Calculate the root mean squared error (RMSE) of your regressogram for test data points. The formula for RMSE can be written as

!.

’\$%&\$

Your output should be similar to the following sentence.

Regressogram => RMSE is 24.7260 when h is 3

1. Learn a running mean smoother by setting the bin width parameter to 3. Draw training data points, test data points, and your running mean smoother in the same figure. Your figure should be similar to the following figure.
• = 3
2. Calculate the RMSE of your running mean smoother for test data points. Your output should be similar to the following sentence.

Running Mean Smoother => RMSE is 23.8403 when h is 3

1. Learn a kernel smoother by setting the bin width parameter to 1. Draw training data points, test data points, and your kernel smoother in the same figure. Your figure should be similar to the following figure.
• = 1
2. Calculate the RMSE of your kernel smoother for test data points. Your output should be similar to the following sentence.

Kernel Smoother => RMSE is 24.1672 when h is 1