<?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: Distributions and Curves Intersection in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Distributions-and-Curves-Intersection/m-p/418787#M66781</link>
    <description>&lt;P&gt;Hey Jim, What are the M, S and max values?&lt;/P&gt;</description>
    <pubDate>Thu, 16 Sep 2021 17:54:44 GMT</pubDate>
    <dc:creator>shampton82</dc:creator>
    <dc:date>2021-09-16T17:54:44Z</dc:date>
    <item>
      <title>Distributions and Curves Intersection</title>
      <link>https://community.jmp.com/t5/Discussions/Distributions-and-Curves-Intersection/m-p/260096#M51043</link>
      <description>&lt;P&gt;Dear Community I have a need to be solved (I do not found similar question in blog).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have 2 set of data.&lt;/P&gt;&lt;P&gt;I created the 2 distributions.&lt;/P&gt;&lt;P&gt;I "aks to JMP" to found the better curve fit for each single distribution.&lt;/P&gt;&lt;P&gt;Now I need to found the intersetion point (X= ...) between the 2 curves.&lt;/P&gt;&lt;P&gt;In attachement you can find the example of dataset and the visualization of what I need.&lt;/P&gt;&lt;P&gt;Thanks in advance for your feedback.&lt;/P&gt;&lt;P&gt;Best Regards.&lt;/P&gt;&lt;P&gt;Simone&lt;/P&gt;</description>
      <pubDate>Thu, 23 Apr 2020 15:38:18 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Distributions-and-Curves-Intersection/m-p/260096#M51043</guid>
      <dc:creator>Simone1</dc:creator>
      <dc:date>2020-04-23T15:38:18Z</dc:date>
    </item>
    <item>
      <title>Re: Distributions and Curves Intersection</title>
      <link>https://community.jmp.com/t5/Discussions/Distributions-and-Curves-Intersection/m-p/260105#M51045</link>
      <description>&lt;P&gt;I believe that there is no direct way. That is to say, there is no platform with this capability. You could use the Minimize() function with the difference between the two probability density functions using their respective estimated distribution parameters in a script. The independent variable is the quantile.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please provide data and examples in JMP files, not Excel files in the future.&lt;/P&gt;</description>
      <pubDate>Thu, 23 Apr 2020 16:34:19 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Distributions-and-Curves-Intersection/m-p/260105#M51045</guid>
      <dc:creator>Mark_Bailey</dc:creator>
      <dc:date>2020-04-23T16:34:19Z</dc:date>
    </item>
    <item>
      <title>Re: Distributions and Curves Intersection</title>
      <link>https://community.jmp.com/t5/Discussions/Distributions-and-Curves-Intersection/m-p/261501#M51208</link>
      <description>&lt;P&gt;Dear Mark,&lt;/P&gt;&lt;P&gt;thank you for the feedback.&lt;/P&gt;&lt;P&gt;I "hoped" there was some capability to do this in JMP...&lt;/P&gt;&lt;P&gt;Regarding you suggestion... I will try to follow it (even if I'm not an expert in the JMP Script).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Have you a good day.&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Simone&lt;/P&gt;</description>
      <pubDate>Mon, 27 Apr 2020 08:43:18 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Distributions-and-Curves-Intersection/m-p/261501#M51208</guid>
      <dc:creator>Simone1</dc:creator>
      <dc:date>2020-04-27T08:43:18Z</dc:date>
    </item>
    <item>
      <title>Re: Distributions and Curves Intersection</title>
      <link>https://community.jmp.com/t5/Discussions/Distributions-and-Curves-Intersection/m-p/261510#M51211</link>
      <description>&lt;P&gt;Here is a crude script that will get you the values.&amp;nbsp; Not sure it will work for all comparisons...but it might.&amp;nbsp; Try it out.&amp;nbsp; The results display in the log.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here( 1 );
dt = Current Data Table();

// Change these values to the actual values of the 2 distributions
m1 = 203.315;
s1 = 203.33 - m1;
max1 = 203.37;
m2 = 203.345;
s2 = 203.355 - m2;
max2 = 203.4;

If( Normal Density( min(m1,m2), mu = m1, sigma = s1 ) &amp;gt; Normal Density( min(m1,m2), mu = m2, sigma = s2 ),
	mh = m1;
	sh = s1;
	ml = m2;
	sl = s2;
,
	mh = m2;
	sh = s2;
	ml = m1;
	sl = s1;
);

For( i = ml, i &amp;lt;= Min( max1, max2 ), i = i + ((Min( max1, max2 ) - ml) / 1000000),
	r = i;
	nd1 = Normal Density( r, mu = mh, sigma = sh );
	nd2 = Normal Density( r, mu = ml, sigma = sl );
	lastnd1 = nd1;
	lastnd2 = nd2;
	lasti = i;
	If( nd2 &amp;gt; nd1,
		x = Mean( i, lasti ); y = Mean( nd1, nd2, lastnd1, lastnd2 );
		show(x,y) ;
		Break();
	);
);&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 27 Apr 2020 10:54:59 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Distributions-and-Curves-Intersection/m-p/261510#M51211</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2020-04-27T10:54:59Z</dc:date>
    </item>
    <item>
      <title>Re: Distributions and Curves Intersection</title>
      <link>https://community.jmp.com/t5/Discussions/Distributions-and-Curves-Intersection/m-p/261731#M51257</link>
      <description>&lt;P&gt;Hello Jim,&lt;/P&gt;&lt;P&gt;thanks for the feedback.&lt;/P&gt;&lt;P&gt;I will apply it!&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Simone&lt;/P&gt;</description>
      <pubDate>Mon, 27 Apr 2020 21:59:13 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Distributions-and-Curves-Intersection/m-p/261731#M51257</guid>
      <dc:creator>Simone1</dc:creator>
      <dc:date>2020-04-27T21:59:13Z</dc:date>
    </item>
    <item>
      <title>Re: Distributions and Curves Intersection</title>
      <link>https://community.jmp.com/t5/Discussions/Distributions-and-Curves-Intersection/m-p/261843#M51270</link>
      <description>&lt;P&gt;Once you have the formula columns saved (in this case for two Gaussians), you can get a long way by using the &lt;A href="https://www.jmp.com/support/help/en/15.1/#page/jmp/display-coordinates-and-temporary-reference-lines.shtml" target="_self"&gt;crosshair tool&lt;/A&gt;.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;But if you want an 'exact' answer, you could define an auxiliary formula column and use 'Maximize Desirability' in the &lt;A href="https://www.jmp.com/support/help/en/15.1/#page/jmp/profiler.shtml" target="_self"&gt;Profiler&lt;/A&gt; (see the attached table). But note that you still need to inspect the plots, and use the &lt;A href="https://www.jmp.com/support/help/en/15.1/#page/jmp/response-limits.shtml" target="_self"&gt;Response Limits&lt;/A&gt;&amp;nbsp;column property to restrict the range of the optimization appropriately. In this example, I also used this property with the two original columns (with a weight of zero) just to allow all three columns to be profiled at the same time.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;Before:&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot 2020-04-28 at 10.36.37.png" style="width: 451px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/23521iBAB95E3D58A462F5/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screenshot 2020-04-28 at 10.36.37.png" alt="Screenshot 2020-04-28 at 10.36.37.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;After:&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot 2020-04-28 at 10.36.58.png" style="width: 437px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/23523iB7EBF256CFB71F96/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screenshot 2020-04-28 at 10.36.58.png" alt="Screenshot 2020-04-28 at 10.36.58.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 28 Apr 2020 09:56:58 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Distributions-and-Curves-Intersection/m-p/261843#M51270</guid>
      <dc:creator>ian_jmp</dc:creator>
      <dc:date>2020-04-28T09:56:58Z</dc:date>
    </item>
    <item>
      <title>Re: Distributions and Curves Intersection</title>
      <link>https://community.jmp.com/t5/Discussions/Distributions-and-Curves-Intersection/m-p/261911#M51279</link>
      <description>&lt;P&gt;Thanks Ian.&lt;/P&gt;&lt;P&gt;Appreciated your good feedback.&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Simone&lt;/P&gt;</description>
      <pubDate>Tue, 28 Apr 2020 12:41:31 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Distributions-and-Curves-Intersection/m-p/261911#M51279</guid>
      <dc:creator>Simone1</dc:creator>
      <dc:date>2020-04-28T12:41:31Z</dc:date>
    </item>
    <item>
      <title>Re: Distributions and Curves Intersection</title>
      <link>https://community.jmp.com/t5/Discussions/Distributions-and-Curves-Intersection/m-p/418787#M66781</link>
      <description>&lt;P&gt;Hey Jim, What are the M, S and max values?&lt;/P&gt;</description>
      <pubDate>Thu, 16 Sep 2021 17:54:44 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Distributions-and-Curves-Intersection/m-p/418787#M66781</guid>
      <dc:creator>shampton82</dc:creator>
      <dc:date>2021-09-16T17:54:44Z</dc:date>
    </item>
    <item>
      <title>Re: Distributions and Curves Intersection</title>
      <link>https://community.jmp.com/t5/Discussions/Distributions-and-Curves-Intersection/m-p/418788#M66782</link>
      <description>&lt;P&gt;Mean, Sigma and Max&lt;/P&gt;</description>
      <pubDate>Thu, 16 Sep 2021 18:10:03 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Distributions-and-Curves-Intersection/m-p/418788#M66782</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2021-09-16T18:10:03Z</dc:date>
    </item>
  </channel>
</rss>

