Skip to content
Prev 174975 / 398503 Next

very fast OLS regression?

On Wed, 25 Mar 2009, Ravi Varadhan wrote:

            
Forming the matrix of crossproducts and using cholesky decomposition is faster, so it does depend on the intended use.

In a simulation, the OP's situation, you may well know that X is not nearly rank deficient, in which case the speed advantage may be worthwhile.  After all, even if the condition number of X is 10^5 you will still have five or six accurate digits in the result.

If you are writing code that will be used in ways you have no control over, then of course it makes sense to use the more stable QR decomposition.

      -thomas

Thomas Lumley			Assoc. Professor, Biostatistics
tlumley at u.washington.edu	University of Washington, Seattle