Computational Intelligence, SS08 2 VO 442.070 + 1 RU 708.070 last updated:
General
Course Notes (Skriptum)
Online Tutorials
Practical Course Slides
Homework
 Assignments Scores Guidelines Archive
Exams
Animated Algorithms
Interactive Tests
Key Definitions
News
mailto:webmaster

# Homework 1: Linear Regression and Gradient descent

[Points: 12.5; Issued: 2008/03/14; Deadline: 2008/05/05; Tutor: Sabine Sternig; Infohour: 2008/04/29, 13:00-14:00, Seminarraum Infeldgasse 16b, 1. Stock; Einsichtnahme: 2008/05/16, 15:30-16:30, HS i11; Download: pdf; ps.gz]

## Polynomial Regression [6.5 points]

Consider a 10-degree polynomial model. Use an additive model with 11 basis functions ( ) and the following error function for your training examples
.
• Write the error function in matrix form. Explicitely state the dimensions of the vectors and matrices.
• Derivate a closed form solution for the optimal weight vector. (Hint : Use the identity , being the identity matrix.
• Write a matlab script which implements your learning rule. Use the following data set, which contains the training data (input: x_train, output: y_train) and the data for testing (input: x_test, output: y_test).
• Train your model with the trainings data using values of 0:0.01:10
• Plot the mean squared error of the training and of the test set for the given s.
• Plot the learned functions for , and the best for the error on the test set. Interpret your results.
• Plot the mean absolute weight values for the given (use a semilogy plot for better illustration).
• Interpret your results, what is the porpuse of ?

### Hints

• For a single training example , the basis functions can be easily created by
x.^(0:10)