Code covered by the BSD License  

Highlights from
OLS

3.0

3.0 | 5 ratings Rate this file 21 Downloads (last 30 days) File Size: 5.58 KB File ID: #15902
image thumbnail

OLS

by Marco Cococcioni

 

11 Aug 2007 (Updated 13 Aug 2007)

This functions implements the algorithm of Orthogonal Least Squares. It can be used to rank regresso

| Watch this File

File Information
Description

[x, ind] = OLS(A,b,r) gives the solution to the least squares problem
using only the best r regressors chosen from the ones present in matrix A. This function also returns in the vector ind the indexes of the
best r regressors (i.e., the best columns of A to use).

MATLAB release MATLAB 7.4 (R2007a)
Tags for This File  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
Comments and Ratings (7)
13 Aug 2007 Dimitri Shvorob

This is not what's usually meant by orthogonal least squares, and nobody refers to those as OLS. The programming is simply atrocious: good luck to anyone who tries to follow this 200+ line behemoth.

14 Aug 2007 Giorgio Alessi

I do not agree with review of Dr. Shvorob, since in neural network and fuzzy logic communities "orthogonal least squares" is referred to the problem addressed by the ols.m function written by the author.
I found it very useful. Comments, help and demo is very useful too.

14 Aug 2007 John D'Errico

I'll claim that "orthogonal least squares" is far more commonly used in a statistical context to describe a total least squares problem, as Dimitri suggests. Thus the name is indeed misleading to most of the statistics community.

Given that this submission has been placed in the mathematics/linear algebra category, that standard statistical meaning should be presumed.

28 Mar 2008 xiang qian

goog

13 Aug 2009 Fabio Virgulti  
15 Mar 2010 Oscar

I would tend to agree with Mr. Shvorob and Mr D'Errico, this is not what I understand orthogonal least-squares. Also, although the code is not as poor as previously seen entries, the general structure is confusing and unnecessarily bloated. In particular, I find the choice to include a demo capability into the function itself, rather than including it as a seperate file, questionable to say the least.

None the less, I'm sure that with a good cleanup, this code will find its uses in some scenarios, if not for the functionality it offers then for its thorough discussion of the theory (although it should probably be moved out of the file to a seperate document).

29 Jan 2011 Steven  
Please login to add a comment or rating.
Tag Activity for this File
Tag Applied By Date/Time
linear algebra Marco Cococcioni 22 Oct 2008 09:22:48
orthogonal least squares Marco Cococcioni 22 Oct 2008 09:22:48
ols Marco Cococcioni 22 Oct 2008 09:22:48
functions Marco Cococcioni 22 Oct 2008 09:22:48
regressors Marco Cococcioni 22 Oct 2008 09:22:48
matrix Marco Cococcioni 22 Oct 2008 09:22:48
linear Marco Cococcioni 22 Oct 2008 09:22:48

Contact us at files@mathworks.com