<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: GoodnessOfFit misbehaving in LabWindows/CVI</title>
    <link>https://ni.lithium.com/t5/LabWindows-CVI/GoodnessOfFit-misbehaving/m-p/1080275#M45708</link>
    <description>&lt;P&gt;Hi Andreas,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thanks to the assistance of Luis who pointed out how to save variable values to a file I can now provide one data set showing 'unexpected' behavior.&lt;/P&gt;&lt;P&gt;This is not the original problem as outlined above but it could be related. &lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;OK, after fitting a data set I am calling &lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;GoodnessOfFit ( y_selected,&amp;nbsp;y_fit_1,&amp;nbsp;weights,&amp;nbsp;fit_points, ( fit_points - coefficients_1 ),&amp;nbsp;&amp;amp;sse, &amp;amp;r_square,&amp;nbsp;&amp;amp;rmse );&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;and receive a r_square value that is negative... For me this is unexpected if I believe in the name square....&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The return status is 'No Analysis Error' (0).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am attaching the data that shows this result, with fit_points = 24064, coefficients_1 = 3 and the result r_square = -8.719...e-1&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Wolfgang&lt;/P&gt;</description>
    <pubDate>Fri, 26 Feb 2010 17:33:52 GMT</pubDate>
    <dc:creator>Wolfgang</dc:creator>
    <dc:date>2010-02-26T17:33:52Z</dc:date>
    <item>
      <title>GoodnessOfFit misbehaving</title>
      <link>https://ni.lithium.com/t5/LabWindows-CVI/GoodnessOfFit-misbehaving/m-p/1053442#M45117</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I found an issue with the Advanced Analysis Library function GoodnessOfFit, which I use to calculate R^2.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For a given data set it returns SSE = NaN, R^2 = NaN, and RMSE = NaN, while the return status is NoAnalError.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I can not see any mathematical sitation which might yield NaN for SSE, the summation of square error....&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Moreover, if problems arise with the&amp;nbsp;involved calculations, I would expect the function to return an error condition.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hence I suppose it might be a bug...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The occurence of this 'situation' depends on the data set.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Wolfgang&lt;/P&gt;</description>
      <pubDate>Thu, 14 Jan 2010 13:02:28 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabWindows-CVI/GoodnessOfFit-misbehaving/m-p/1053442#M45117</guid>
      <dc:creator>Wolfgang</dc:creator>
      <dc:date>2010-01-14T13:02:28Z</dc:date>
    </item>
    <item>
      <title>Re: GoodnessOfFit misbehaving</title>
      <link>https://ni.lithium.com/t5/LabWindows-CVI/GoodnessOfFit-misbehaving/m-p/1056070#M45191</link>
      <description>&lt;P&gt;Hi Wolfgang, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;could you post an example so I can see what input values you are using?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards, &lt;/P&gt;</description>
      <pubDate>Tue, 19 Jan 2010 15:40:42 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabWindows-CVI/GoodnessOfFit-misbehaving/m-p/1056070#M45191</guid>
      <dc:creator>AndreasStark</dc:creator>
      <dc:date>2010-01-19T15:40:42Z</dc:date>
    </item>
    <item>
      <title>Re: GoodnessOfFit misbehaving</title>
      <link>https://ni.lithium.com/t5/LabWindows-CVI/GoodnessOfFit-misbehaving/m-p/1080275#M45708</link>
      <description>&lt;P&gt;Hi Andreas,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thanks to the assistance of Luis who pointed out how to save variable values to a file I can now provide one data set showing 'unexpected' behavior.&lt;/P&gt;&lt;P&gt;This is not the original problem as outlined above but it could be related. &lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;OK, after fitting a data set I am calling &lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;GoodnessOfFit ( y_selected,&amp;nbsp;y_fit_1,&amp;nbsp;weights,&amp;nbsp;fit_points, ( fit_points - coefficients_1 ),&amp;nbsp;&amp;amp;sse, &amp;amp;r_square,&amp;nbsp;&amp;amp;rmse );&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;and receive a r_square value that is negative... For me this is unexpected if I believe in the name square....&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The return status is 'No Analysis Error' (0).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am attaching the data that shows this result, with fit_points = 24064, coefficients_1 = 3 and the result r_square = -8.719...e-1&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Wolfgang&lt;/P&gt;</description>
      <pubDate>Fri, 26 Feb 2010 17:33:52 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabWindows-CVI/GoodnessOfFit-misbehaving/m-p/1080275#M45708</guid>
      <dc:creator>Wolfgang</dc:creator>
      <dc:date>2010-02-26T17:33:52Z</dc:date>
    </item>
  </channel>
</rss>

