comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Minimization of deviations from multiple curve fits.
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: Minimization of deviations from multiple curve fits. [message #35417 is a reply to message #35229] Tue, 27 May 2003 15:10 Go to previous message
Craig Markwardt is currently offline  Craig Markwardt
Messages: 1869
Registered: November 1996
Senior Member
aaron_forster@yahoo.com (Aaron Forster) writes:

> first equation (EQ1) expresses contact area as a function of load,
> with the work of adhesion, system modulus, and indenter radius as
> fitting parameters. The second equation (EQ2) expresses displacement
> as a function of load and contact area, with the system modulus and
> indenter radius as fitting parameters. It has been suggested by
> others (Chin P. et al., J. Adhesion, 1997, 64 p. 145-160) that I can
> increase the precision by analyzing the fit deviations from each curve
> fit together. In other words, I need to minimize the function:

Any least squares fitter can do this, including MPFIT. You are asking
for a joint fit of two data sets.

> omega^2=sum {[EQ1_fit - EQ1i] + [EQ2_fit - EQ2i]^2}

I don't really understand this formula, since (a) the first term is
not squared, and (b) what exactly is the summation over? Your
description indicates that equations 1 and 2 have different sets of
independent variables.

All MPFIT really needs is an array of residuals, and you can make that
array in any consistent manner that you choose. So, one way to
achieve what you are seeking is to compute the residuals of each
equation separately, and then join them together using IDL [res1,res2]
notation.



> My question is how do I both minimize chi-sqr for each
> equation AND minimize omega^2,

I don't think this is possible. You are asking, "what is the shortest
route from Baltimore to Philadelphia to New York, which is *also* the
shortest route from Baltimore to New York." Both constraints can't be
met.

If you are performing a joint fit, you must be willing to accept a
slightly worse fit in one data set or the other, for the sake of an
overall improvement of the aggregate. If, however, that means that
one set of data is totally ignored, then you have to reconsider your
model, or your weighting strategy.

Happy fitting,
Craig

--
------------------------------------------------------------ --------------
Craig B. Markwardt, Ph.D. EMAIL: craigmnet@cow.physics.wisc.edu
Astrophysics, IDL, Finance, Derivatives | Remove "net" for better response
------------------------------------------------------------ --------------
[Message index]
 
Read Message
Read Message
Previous Topic: video cards
Next Topic: IDLWAVE convert end to endfor?

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Sat Oct 11 06:45:31 PDT 2025

Total time taken to generate the page: 3.60003 seconds