Re: linalg[leastsqrs] in Maple V R4



In article <1154264326.861799.211040@xxxxxxxxxxxxxxxxxxxxxxxxxxxx>,
lcw1964 <leslie.wright@xxxxxxxxxxxxx> wrote:
I know that I am using an admittedly ancient version of the software,
but it suits my modest personal purposes for the most part.

I am wondering if anyone has has any experience with the leastsqrs
procedure, in either older or newer incarnations, only to discover that
it seems painfully inaccurate on repeat application.

I have tried to use linalg[leastsqrs] to find the least squares
solution of an fairly hefty sized overdetermined system, about 80
equatons in 16 unknowns. Repeat application on the exact same
matrix/vector input combination yields different results with the loss
of many if not most of the significant digits. I am not talking just a
few digits lost to accumulated rounding error, I am talking a couple of
dozen digits when Digits is set pretty high. The problem gets worse the
larger the linear system is, and using the 'optimize' argument seems to
slow things down and doesn' add any value.

This is driving me wonky. Is this a bug or a feature? Is it present in
newer versions of Maple? Would I be better off using Svd() and
computing the least squares solution myself from that output? I really
don't mind "black box" routines if they give reproducible results, and
linalg[leastsqrs] in my hands does not.

The LinearAlgebra package in more recent versions of Maple should be
quite a bit better than linalg at most number-crunching applications.
But I didn't see any significant difference between linalg[leastsqrs]
and LinearAlgebra[LeastSquares] on a random 80 x 16 problem. Could
you provide a specific example of the problem you're experiencing?

Robert Israel israel@xxxxxxxxxxx
Department of Mathematics http://www.math.ubc.ca/~israel
University of British Columbia Vancouver, BC, Canada
.



Relevant Pages

  • Re: Whats wrong with this simple formula?
    ... And if we fully rationalize this number, we get the same rational number. ... number, only they return all 17 digits, while Excel only returns 15 digits. ... Excel rounds this to 15 digits as you've seen. ... Here is the Maple code; ...
    (microsoft.public.excel.misc)
  • Re: Interesting math
    ... "C Float Number" must have "exactly six digits after the ... The "six or more significant digits" requirement has little ... data type called "float" that can represent floating-point ... articles, or your posts? ...
    (alt.usage.english)
  • Re: maple and fsolve : not good, big bad bug.
    ... for that one the real solution is neat and fast to compute: ... BUT, others are kind of more difficult, at least for Maple. ... the solution varies with the number of digits too. ... I suppose you instructed Maple to find a solution numerically, ...
    (sci.math.symbolic)
  • Re: loan amortization
    ... you have about 14 significant digits. ... your are working on a $100,000.00 mortgage. ... An insurance company insider told me that they once spotted a penny difference ...
    (comp.lang.java.programmer)
  • Re: calling the Maple kernel
    ... Here is something that puzzles me about the interface between Matlab ... The second answer is the exact one (to 16 digits at least). ... Maple functions? ...
    (comp.soft-sys.matlab)