Through empirical trials (about 10 should be enough), find out what order of flops this method takes to center a matrix.
Show how many flops this takes as a function of
.
Write a matlab function that takes a data
matrix
and a response vector
, computes
the linear regression of
on the
columns of
and outputs the residuals
and the predicted values
.
Optional: Put in graphics and eventually step by step procedures to find the `best regressor set' of a certain size.
Take yourself to visit:
http://www.cns.ed.ac.uk/people/mark/intro/intro.html
Find the chapter on least squares, you could try downloading the matlab functions too.
Find the differences between his notations/vocabulary and mine. (send me at least five, with the translations).