Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.soft-sys.math.mathematica > #7181
| From | Ray Koopman <koopman@sfu.ca> |
|---|---|
| Newsgroups | comp.soft-sys.math.mathematica |
| Subject | Re: Findminimum too slow for iterative reweighted least squares |
| Date | 2011-12-13 10:52 +0000 |
| Organization | Steven M. Christensen and Associates, Inc and MathTensor, Inc. |
| Message-ID | <jc7aoq$p0d$1@smc.vnet.net> (permalink) |
| References | <jbspn1$3rf$1@smc.vnet.net> |
On Dec 9, 2:59 am, Alberto Maydeu-Olivares <amay...@gmail.com> wrote:
> [...]
> model = {l1^2 + ps, l2*l1, l2^2 + ps, l3*l2, l3*l1, l3^2 + ps};
> theta = {l1, l2, l3, ps};
> j = Outer[D, model, theta];
> data = {2., .42, 3., .56, .48, 1.};
> startval = Transpose[{theta, {.5, .5, .5, .5}}];
> e = data - model;
> mat = {{2 (l1^2 + ps)^2, 2 l1 l2 (l1^2 + ps), 2 l1^2 l2^2,
> 2 l2 l3 (l1^2 + ps), 2 l1 l2^2 l3,
> 2 l2^2 l3^2}, {2 l1 l2 (l1^2 + ps),
> ps (l2^2 + ps) + l1^2 (2 l2^2 + ps), 2 l1 l2 (l2^2 + ps),
> l1 l3 (l1^2 + l2^2 + ps), l2 l3 (l1^2 + l2^2 + ps),
> 2 l1 l2 l3^2}, {2 l1^2 l2^2, 2 l1 l2 (l2^2 + ps), 2 (l2^2 + ps)^2,
> 2 l1^2 l2 l3, 2 l1 l3 (l2^2 + ps),
> 2 l1^2 l3^2}, {2 l2 l3 (l1^2 + ps), l1 l3 (l1^2 + l2^2 + ps),
> 2 l1^2 l2 l3, l2^2 l3^2 + (l1^2 + ps) (l3^2 + ps),
> l1 l2 (2 l3^2 + ps), 2 l2 l3 (l3^2 + ps)}, {2 l1 l2^2 l3,
> l2 l3 (l1^2 + l2^2 + ps), 2 l1 l3 (l2^2 + ps),
> l1 l2 (2 l3^2 + ps), l1^2 l3^2 + (l2^2 + ps) (l3^2 + ps),
> 2 l1 l3 (l3^2 + ps)}, {2 l2^2 l3^2, 2 l1 l2 l3^2, 2 l1^2 l3^2,
> 2 l2 l3 (l3^2 + ps), 2 l1 l3 (l3^2 + ps), 2 (l3^2 + ps)^2}};
> [...]
Interesting model. Is the order ... l3*l2, l3*l1 ... intentional, or
were the two inadvertently reversed? And are the corresponding data
values (.56, .48) in the right order? In any case, 'mat' seems to be
the correct normal-theory covariance matrix for the model as given.
Back to comp.soft-sys.math.mathematica | Previous | Next — Previous in thread | Find similar | Unroll thread
Findminimum too slow for iterative reweighted least squares Alberto Maydeu-Olivares <amaydeu@gmail.com> - 2011-12-09 10:59 +0000 Re: Findminimum too slow for iterative reweighted least squares "Oleksandr Rasputinov" <oleksandr_rasputinov@hmamail.com> - 2011-12-10 12:35 +0000 Re: Findminimum too slow for iterative reweighted least squares Ray Koopman <koopman@sfu.ca> - 2011-12-13 10:52 +0000
csiph-web