<rss xmlns:itunes="http://www.itunes.com/dtds/podcast-1.0.dtd" version="2.0">
  <channel>
    <title>MaplePrimes - comments on Blog Entry, Further Analysis of a Minimization Problem: Distance from a Point to a Curve</title>
    <link>http://www.mapleprimes.com/maplesoftblog/137375-Further-Analysis-Of-A-Minimization-Problem</link>
    <language>en-us</language>
    <copyright>2026 Maplesoft, A Division of Waterloo Maple Inc.</copyright>
    <generator>Maplesoft Document System</generator>
    <lastBuildDate>Tue, 09 Jun 2026 12:18:18 GMT</lastBuildDate>
    <pubDate>Tue, 09 Jun 2026 12:18:18 GMT</pubDate>
    <itunes:subtitle />
    <itunes:summary />
    <description>The latest comments added to the Blog Entry, Further Analysis of a Minimization Problem: Distance from a Point to a Curve</description>
    <image>
      <url>http://www.mapleprimes.com/images/mapleprimeswhite.jpg</url>
      <title>MaplePrimes - comments on Blog Entry, Further Analysis of a Minimization Problem: Distance from a Point to a Curve</title>
      <link>http://www.mapleprimes.com/maplesoftblog/137375-Further-Analysis-Of-A-Minimization-Problem</link>
    </image>
    <item>
      <title>Useful for fitting of data with error bars on values for independent variable</title>
      <link>http://www.mapleprimes.com/maplesoftblog/137375-Further-Analysis-Of-A-Minimization-Problem?ref=Feed:MaplePrimes:Further Analysis of a Minimization Problem: Distance from a Point to a Curve:Comments#comment138884</link>
      <itunes:summary>&lt;p&gt;On re-reading this it occurred to me that this distance is also a useful quantity when trying to fit a function to a data set where the independent-variable values have errors.&lt;/p&gt;
&lt;p&gt;E.g. often I want to fit y=f([parameters],x) to a data set [[x],[y]] weighted with the errorbar on the values in [y]. If the values in [x] are exact it is easy: find the expressions for the rms deviation of y from f([parameters],x) (i.e. the penalty function) with proper weighting &amp;amp; minimize that by varying parameters, with an appropriate method. Packages in Maple will do this for me. If the values in [x] also have errors, it is not so obvious how to do it right. I have read of heuristic schemes where df/dx at the values of [x] is used to estimate the increase in error bar in the values in [y] due to the uncertainty in x, but that is inaccurate for all but the most well-behaved functions f, and not shown to be correct--or even approximately so---in any rigorous sense.&lt;/p&gt;
&lt;p&gt;Using the distance of f(x) to the data points as penalty function seems like a much more rigorous---if more complex---way to do this. Now the errors in both x and y are easily incorporated in weighting the rms&amp;nbsp; deviation (now: distance) of function to data. Interestingly enough; this example also exposes the difficulty of practical application: The distance of a data point to a curve (usually defined as the length of the shortest vector from the data point to a point on the curve that is normal to the tangent of the function at that point) is not in general a unique value making its evaluation a bit of a pain, even more so at higher dimensions.&lt;/p&gt;
&lt;p&gt;This is fun. Experts in this field probably know all this; but re-reading this post made me realise what is going on in such fitting problems (which I have occasionally had to deal with). So, thanks for this post.&lt;/p&gt;
&lt;p&gt;Mac Dude.&lt;/p&gt;</itunes:summary>
      <description>The latest comments added to the Blog Entry, Further Analysis of a Minimization Problem: Distance from a Point to a Curve</description>
      <guid>138884</guid>
      <pubDate>Sat, 27 Oct 2012 16:09:09 Z</pubDate>
      <itunes:author>Mac Dude</itunes:author>
      <author>Mac Dude</author>
    </item>
    <item>
      <title>Where is the code for the animation?</title>
      <link>http://www.mapleprimes.com/maplesoftblog/137375-Further-Analysis-Of-A-Minimization-Problem?ref=Feed:MaplePrimes:Further Analysis of a Minimization Problem: Distance from a Point to a Curve:Comments#comment202888</link>
      <itunes:summary>&lt;p&gt;How do you access the code for the animation?&amp;nbsp; Thanks.&lt;/p&gt;

&lt;p&gt;&amp;nbsp;&lt;/p&gt;

&lt;p&gt;Benzaid&lt;/p&gt;
</itunes:summary>
      <description>The latest comments added to the Blog Entry, Further Analysis of a Minimization Problem: Distance from a Point to a Curve</description>
      <guid>202888</guid>
      <pubDate>Tue, 12 Dec 2017 16:47:46 Z</pubDate>
      <itunes:author>Benzaid</itunes:author>
      <author>Benzaid</author>
    </item>
  </channel>
</rss>