measure of quality of curve fit - MathOverflow
most recent 30 from http://mathoverflow.net
2013-05-23T02:40:23Z
http://mathoverflow.net/feeds/question/9757
http://www.creativecommons.org/licenses/by-nc/2.5/rdf
http://mathoverflow.net/questions/9757/measure-of-quality-of-curve-fit
measure of quality of curve fit
liza
2009-12-25T23:11:01Z
2009-12-29T10:47:16Z
<p>I am interested in a measure for the quality of fit to a curve which would distinguish the two cases shown in the following image (without addressing the fact that incidentally the right one has more samples, but rather addressing the way it 'determines' the curve in a better way):
For the sake of it let's say I want to fit a parabola to this data. Is there some well known measure for this?
<img src="http://img199.imageshack.us/img199/4177/curvesj.jpg" alt="alt text" /></p>
http://mathoverflow.net/questions/9757/measure-of-quality-of-curve-fit/9760#9760
Answer by Ricardo for measure of quality of curve fit
Ricardo
2009-12-26T00:23:05Z
2009-12-26T00:23:05Z
<p>If you use <a href="http://en.wikipedia.org/wiki/Linear%5Fregression" rel="nofollow">linear regression</a> to calculate such parabolas, then the <a href="http://en.wikipedia.org/wiki/Pearson%5Fcorrelation#Pearson.27s%5Fcorrelation%5Fand%5Fleast%5Fsquares%5Fregression%5Fanalysis" rel="nofollow">Pearson correlation coefficient</a> is a good measure of the quality of the fit.</p>
http://mathoverflow.net/questions/9757/measure-of-quality-of-curve-fit/9765#9765
Answer by fedja for measure of quality of curve fit
fedja
2009-12-26T01:54:11Z
2009-12-26T02:26:09Z
<p>If you use the least square fit, the second case may have a better conditioned matrix but this measure may be hard to compute in practice. Still, it is going to be something in this venue because the story is not about the second curve being a better approximation than the first but about its being "more unique", so to say, and that is exactly what the condition number measures for solutions of linear systems.</p>
<p>Of course, since we are talking about approximate solutions, not exact ones, we may want to modify the notion of the condition number a bit. One possible quantity that seems relevant to the "approximate uniqueness" is the following: the least square problem is just about minimization of a quadratic form $Q(x)$ and if $y$ is the solution, then $Q(x)=Q(y)+(A(x-y),(x-y))$. Now, we want to see what is the penalty for going away from the optimal vector. So, both $\frac{\mbox{Tr\,}A}{Q(y)}$ and $\frac{\mu(A)}{Q(y)}$ where $\mu(A)$ is the least eigenvalue of $A$ seem to make sense as measures of such penalty. The higher is this number, the more unique is the approximation. The reason for the denominator is that I wanted to measure the sizes of deviations that change the minimum by certain percentage. You may want to do the absolute error instead, or something else. It may be a good idea to figure out what invariance properties you want from your measure first. For instance, should it be invariant with respect to stretchings or you think that two close points determine a line less precisely than two distant points? </p>
http://mathoverflow.net/questions/9757/measure-of-quality-of-curve-fit/10018#10018
Answer by Simon Barthelmé for measure of quality of curve fit
Simon Barthelmé
2009-12-29T10:47:16Z
2009-12-29T10:47:16Z
<p>If I understand correctly, you would like to show that the right-hand dataset better defines the curve? There are many ways you could go about this, here's two:</p>
<p>A) You show that one dataset leaves less uncertainty about the parameters of the curve than the other. In a classical setting you'd fit the parameters using some kind of regression, and compare the error bars on the fitted parameters. In a Bayesian setting you could compare the two posterior distributions, maybe showing that one has lower posterior entropy than the other. </p>
<p>B) You show that one dataset leads to better predictive ability. Use cross-validation to compute an estimate of the generalisation error in each dataset, and compare that. </p>