<?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: Goodness of Fit in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Goodness-of-Fit/m-p/803872#M98143</link>
    <description>&lt;P&gt;I don't know of any such cases - but it seems to me that they should not exist.&amp;nbsp; Since the initial unrestricted fit minimizes some loss function, I would think that a restricted fit can do no better - unless the algorithm for the initial fit was suboptimal.&amp;nbsp; For example, if a local, but not global, solution was found then perhaps restricting the parameters to a different part of the decision space might find a better solution.&amp;nbsp; But conceptually, it seems to me that a restricted fit should never be better than an unrestricted fit.&amp;nbsp; Does that make sense?&lt;/P&gt;</description>
    <pubDate>Mon, 07 Oct 2024 13:03:05 GMT</pubDate>
    <dc:creator>dlehman1</dc:creator>
    <dc:date>2024-10-07T13:03:05Z</dc:date>
    <item>
      <title>Goodness of Fit</title>
      <link>https://community.jmp.com/t5/Discussions/Goodness-of-Fit/m-p/803592#M98062</link>
      <description>&lt;P&gt;Dear Community,&lt;/P&gt;&lt;P&gt;I have one question on the Goodness of Fit Test.&lt;/P&gt;&lt;P&gt;I created the data distribution.&lt;/P&gt;&lt;P&gt;I launch the Goodness of Fit Test and the result (for example) is: Simulated p-value = 0.1440&lt;/P&gt;&lt;P&gt;I change the maximum (or the minimum) in the X-axis... and re-launch the Goodness of Fif... and the Simulated p-value is different.&lt;/P&gt;&lt;P&gt;For me it's strange... because I do not understand how the only change of X-scale can impact the the calculation of Goodness of fit.&lt;/P&gt;&lt;P&gt;Thanks for your feedback.&lt;/P&gt;&lt;P&gt;Simone&lt;/P&gt;</description>
      <pubDate>Fri, 04 Oct 2024 15:04:11 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Goodness-of-Fit/m-p/803592#M98062</guid>
      <dc:creator>Simon_Italy</dc:creator>
      <dc:date>2024-10-04T15:04:11Z</dc:date>
    </item>
    <item>
      <title>Re: Goodness of Fit</title>
      <link>https://community.jmp.com/t5/Discussions/Goodness-of-Fit/m-p/803613#M98065</link>
      <description>&lt;P&gt;The key is the word 'simulated.' In some cases, a closed-form solution or approximation is unavailable for a quantity such as this p-value. In such cases, we use a simulation to derive the p-value. The simulation is based on a large number of random samples. These samples are not reproducible, but the result, if the number is large, is reasonably stable.&lt;/P&gt;</description>
      <pubDate>Fri, 04 Oct 2024 15:11:33 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Goodness-of-Fit/m-p/803613#M98065</guid>
      <dc:creator>Mark_Bailey</dc:creator>
      <dc:date>2024-10-04T15:11:33Z</dc:date>
    </item>
    <item>
      <title>Re: Goodness of Fit</title>
      <link>https://community.jmp.com/t5/Discussions/Goodness-of-Fit/m-p/803624#M98067</link>
      <description>&lt;P&gt;I hope you can expand on your response.&amp;nbsp; I was going to say:&amp;nbsp; I haven't used the goodness of fit option but I have often fit distributions to data using other software.&amp;nbsp; I would expect the fit to change if you fix some parameters rather than just running the goodness of fit test with no parameter restrictions.&amp;nbsp; Once you restrict the parameters, I would expect the goodness of fit to be reduced since you have introduced a constraint that was not in the original goodness of fit.&amp;nbsp; For example, if you allow the mean in a normal distribution to be fit to the data and then compare it to a fit where you restrict the mean to a particular value, I would think that the fit can only become worse, not better.&amp;nbsp; Please explain some more about this.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I was going to add one comment to the original task.&amp;nbsp; If I have a lot of data, I almost always find that you can reject the hypothesis that the data came from the specified distribution.&amp;nbsp; So, I rarely find the hypothesis test of interest.&amp;nbsp; I find the visualization of the fits far more informative.&amp;nbsp; Often the fit looks quite close even though the p-value is often &amp;lt;.0001.&amp;nbsp; The question cited a p value of 0.144 so clearly that data is different than what I have worked with - either simulated data from a known distribution, or a more well behaved data generating process.&amp;nbsp; I would imagine that the visualization looks very close as well.&amp;nbsp; In such a case, fixing the parameters at values other than what was fit should reduce this p-value (worsen the fit) substantially, according to how I am thinking.&amp;nbsp; Is that correct?&lt;/P&gt;</description>
      <pubDate>Fri, 04 Oct 2024 15:19:45 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Goodness-of-Fit/m-p/803624#M98067</guid>
      <dc:creator>dlehman1</dc:creator>
      <dc:date>2024-10-04T15:19:45Z</dc:date>
    </item>
    <item>
      <title>Re: Goodness of Fit</title>
      <link>https://community.jmp.com/t5/Discussions/Goodness-of-Fit/m-p/803858#M98139</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/53879"&gt;@dlehman1&lt;/a&gt;&amp;nbsp;/; Good questions.&lt;/P&gt;
&lt;P&gt;(1) So, I rarely find the hypothesis test of interest. I find the visualization of the fits far more informative. Often the fit looks quite close even though the p-value is often &amp;lt;.0001. The question cited a p value of 0.144 so clearly that data is different than what I have worked with - either simulated data from a known distribution, or a more well behaved data generating process.&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;Yup, this is very common. You can get into an "overpowered" situation when your sample size is large; in this case, small&amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;(and perhaps negligible) departures from the distribution will result in rejecting the distribution.&amp;nbsp; I too, look at plots etc. to&amp;nbsp; &amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;assess any&amp;nbsp;meaningful departure from the hypothesized distribution.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;(2)&amp;nbsp;&lt;SPAN&gt;I would expect the fit to change if you fix some parameters rather than just running the goodness of fit test with no parameter restrictions.&amp;nbsp; Once you restrict the parameters, I would expect the goodness of fit to be reduced since you have introduced a constraint that was not in the original goodness of fit.&amp;nbsp; For example, if you allow the mean in a normal distribution to be fit to the data and then compare it to a fit where you restrict the mean to a particular value, I would think that the fit can only become worse, not better.&amp;nbsp; Please explain some more about this.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;In general, I'd expect the fit to be worse and that the GOF test would reflect this. Can you provide an example of&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;where this is not the case?&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 07 Oct 2024 11:53:48 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Goodness-of-Fit/m-p/803858#M98139</guid>
      <dc:creator>MRB3855</dc:creator>
      <dc:date>2024-10-07T11:53:48Z</dc:date>
    </item>
    <item>
      <title>Re: Goodness of Fit</title>
      <link>https://community.jmp.com/t5/Discussions/Goodness-of-Fit/m-p/803861#M98141</link>
      <description>&lt;P&gt;I don't understand your question (2).&amp;nbsp; It sounds like we are in agreement:&amp;nbsp; restricting the parameters should result in the fit being worse.&amp;nbsp; That is what I said and sounds like you are saying.&lt;/P&gt;</description>
      <pubDate>Mon, 07 Oct 2024 12:00:57 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Goodness-of-Fit/m-p/803861#M98141</guid>
      <dc:creator>dlehman1</dc:creator>
      <dc:date>2024-10-07T12:00:57Z</dc:date>
    </item>
    <item>
      <title>Re: Goodness of Fit</title>
      <link>https://community.jmp.com/t5/Discussions/Goodness-of-Fit/m-p/803862#M98142</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/53879"&gt;@dlehman1&lt;/a&gt;&amp;nbsp;: Yes, we are in agreement! I was just wondering if you have an example where this is not the case?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 07 Oct 2024 12:12:59 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Goodness-of-Fit/m-p/803862#M98142</guid>
      <dc:creator>MRB3855</dc:creator>
      <dc:date>2024-10-07T12:12:59Z</dc:date>
    </item>
    <item>
      <title>Re: Goodness of Fit</title>
      <link>https://community.jmp.com/t5/Discussions/Goodness-of-Fit/m-p/803872#M98143</link>
      <description>&lt;P&gt;I don't know of any such cases - but it seems to me that they should not exist.&amp;nbsp; Since the initial unrestricted fit minimizes some loss function, I would think that a restricted fit can do no better - unless the algorithm for the initial fit was suboptimal.&amp;nbsp; For example, if a local, but not global, solution was found then perhaps restricting the parameters to a different part of the decision space might find a better solution.&amp;nbsp; But conceptually, it seems to me that a restricted fit should never be better than an unrestricted fit.&amp;nbsp; Does that make sense?&lt;/P&gt;</description>
      <pubDate>Mon, 07 Oct 2024 13:03:05 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Goodness-of-Fit/m-p/803872#M98143</guid>
      <dc:creator>dlehman1</dc:creator>
      <dc:date>2024-10-07T13:03:05Z</dc:date>
    </item>
    <item>
      <title>Re: Goodness of Fit</title>
      <link>https://community.jmp.com/t5/Discussions/Goodness-of-Fit/m-p/803873#M98144</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/53879"&gt;@dlehman1&lt;/a&gt;&amp;nbsp;: Agreed. I suppose there &lt;EM&gt;could&lt;/EM&gt; be some caveats:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;- Parameter estimation method. MoM (Method of Moments), MLE, etc.&amp;nbsp; For the sake of discussion, say we assume a normal distribution. The MLE (and MoM estimate) for &lt;FONT face="symbol"&gt;s&lt;/FONT&gt; is different (smaller than) than the unbiased estimate that is "typically" used.&amp;nbsp; Which estimate of &lt;FONT face="symbol"&gt;s&lt;/FONT&gt; (given &lt;FONT face="symbol"&gt;m&lt;/FONT&gt; is estimated by the sample mean) would result in a better "fit" w.r.t. a GOF test?&amp;nbsp; I'm not sure. And I recognize, that in this example, both estimators are consistent and for large n the difference between them is vanishingly small.&lt;/P&gt;
&lt;P&gt;- If a simulation is used to assess GOF, I suppose there could be a non-zero probability that, in certain situations, our intuition here seems to fail us (via simulation error).&amp;nbsp; But to my way of thinking, that seems very remote.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Loads of food for thought here!&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 08 Oct 2024 10:13:55 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Goodness-of-Fit/m-p/803873#M98144</guid>
      <dc:creator>MRB3855</dc:creator>
      <dc:date>2024-10-08T10:13:55Z</dc:date>
    </item>
    <item>
      <title>Re: Goodness of Fit</title>
      <link>https://community.jmp.com/t5/Discussions/Goodness-of-Fit/m-p/808705#M98826</link>
      <description>&lt;P&gt;Dear Mark,&lt;/P&gt;&lt;P&gt;thanks and sorry for my late feedback... I had some issue in the registration to the Community.&lt;/P&gt;&lt;P&gt;Now is all ok.&lt;/P&gt;&lt;P&gt;Thanks again for your feedback.&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Simone&lt;/P&gt;</description>
      <pubDate>Mon, 28 Oct 2024 17:02:59 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Goodness-of-Fit/m-p/808705#M98826</guid>
      <dc:creator>Simon_Italy</dc:creator>
      <dc:date>2024-10-28T17:02:59Z</dc:date>
    </item>
  </channel>
</rss>

