<?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: How to create an CDF plot in Graph Builder in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/How-to-create-an-CDF-plot-in-Graph-Builder/m-p/158240#M40083</link>
    <description>&lt;P&gt;Sorry. I did not notice the discrepency before. JMP Help says:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;For&amp;nbsp;&lt;SPAN class="EquationVariables"&gt;N&lt;/SPAN&gt;&amp;nbsp;nonmissing scores, the probability score of a value is computed as the averaged rank of that value divided by&amp;nbsp;&lt;SPAN class="EquationVariables"&gt;N&lt;/SPAN&gt;&amp;nbsp;+&amp;nbsp;1. This column is similar to the empirical cumulative distribution function.&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So they are not the same. I can't find a substitute.&lt;/P&gt;</description>
    <pubDate>Fri, 22 Feb 2019 21:25:40 GMT</pubDate>
    <dc:creator>Mark_Bailey</dc:creator>
    <dc:date>2019-02-22T21:25:40Z</dc:date>
    <item>
      <title>How to create an CDF plot in Graph Builder</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-create-an-CDF-plot-in-Graph-Builder/m-p/155675#M40064</link>
      <description>&lt;P&gt;What would be the best way to create a CDF plot in Graph Builder, comparable to Fit Y by X (CDF / CumProb), but with the functionality of Graph Builder like Overlay, Group, Color etc.?&lt;/P&gt;</description>
      <pubDate>Fri, 22 Feb 2019 15:15:39 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-create-an-CDF-plot-in-Graph-Builder/m-p/155675#M40064</guid>
      <dc:creator>Thomas1</dc:creator>
      <dc:date>2019-02-22T15:15:39Z</dc:date>
    </item>
    <item>
      <title>Re: How to create an CDF plot in Graph Builder</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-create-an-CDF-plot-in-Graph-Builder/m-p/156504#M40069</link>
      <description>&lt;P&gt;Here's an example using repeated sequences of probabilities, and quantiles of those probabilities for different distributions:&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="NormalCDFs.PNG" style="width: 673px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/15784i52F551001769B3E3/image-size/large?v=v2&amp;amp;px=999" role="button" title="NormalCDFs.PNG" alt="NormalCDFs.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Here's the script for the table I made to illustrate:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;New Table( "Untitled",
	Add Rows( 8040 ),
	New Script(
		"Normal CDFs",
		Graph Builder(
			Size( 526, 452 ),
			Show Control Panel( 0 ),
			Variables( X( :Quantile ), Y( :Probability ), Overlay( :Distribution ) ),
			Elements( Line( X, Y, Legend( 18 ) ) )
		)
	),
	New Column( "Probability",
		Numeric,
		"Continuous",
		Format( "Best", 12 ),
		Formula( 1 / (1 + Exp( -Sequence( -10, 10, 0.1, 1 ) )) )
	),
	New Column( "Quantile",
		Numeric,
		"Continuous",
		Format( "Best", 12 ),
		Formula( Normal Quantile( :Probability, :mu, :sigma ) )
	),
	New Column( "mu",
		Numeric,
		"Continuous",
		Format( "Best", 12 ),
		Formula( Sequence( 1, 10, 1, 402 ) )
	),
	New Column( "sigma",
		Numeric,
		"Continuous",
		Format( "Best", 12 ),
		Formula( Sequence( 2, 2.5, 0.5, 402 ) )
	),
	New Column( "Distribution",
		Character,
		"Nominal",
		Formula( "Normal(" || Char( :mu ) || ", " || Char( :sigma ) || ")" ),
		Set Selected
	)
)&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 22 Feb 2019 16:48:36 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-create-an-CDF-plot-in-Graph-Builder/m-p/156504#M40069</guid>
      <dc:creator>cwillden</dc:creator>
      <dc:date>2019-02-22T16:48:36Z</dc:date>
    </item>
    <item>
      <title>Re: How to create an CDF plot in Graph Builder</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-create-an-CDF-plot-in-Graph-Builder/m-p/156833#M40075</link>
      <description>&lt;P&gt;Use the &lt;STRONG&gt;Distribution&lt;/STRONG&gt; platform to get the probabilities. Click the red triangle for the variable in Distribution and select &lt;STRONG&gt;Save&lt;/STRONG&gt; &amp;gt; &lt;STRONG&gt;Prob Scores&lt;/STRONG&gt;. Now use this new data column in the Y role in &lt;STRONG&gt;Graph Builder&lt;/STRONG&gt; and the original data column in the X role.&lt;/P&gt;</description>
      <pubDate>Fri, 22 Feb 2019 18:03:48 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-create-an-CDF-plot-in-Graph-Builder/m-p/156833#M40075</guid>
      <dc:creator>Mark_Bailey</dc:creator>
      <dc:date>2019-02-22T18:03:48Z</dc:date>
    </item>
    <item>
      <title>Re: How to create an CDF plot in Graph Builder</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-create-an-CDF-plot-in-Graph-Builder/m-p/157601#M40079</link>
      <description>&lt;P&gt;Thanks for your support. I did try the&amp;nbsp; Prob Score method. However I got different&amp;nbsp;result for the zero potion of the attached&amp;nbsp;file. The Distribution and the CDF Plot from the Y by X Platform are delivering&amp;nbsp;a zero portion of 60.4 %.&lt;/P&gt;&lt;P&gt;Graph builder and&amp;nbsp;Prob Score are delivering&amp;nbsp;a 30 % for the zero portion.&lt;/P&gt;</description>
      <pubDate>Fri, 22 Feb 2019 19:33:19 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-create-an-CDF-plot-in-Graph-Builder/m-p/157601#M40079</guid>
      <dc:creator>Thomas1</dc:creator>
      <dc:date>2019-02-22T19:33:19Z</dc:date>
    </item>
    <item>
      <title>Re: How to create an CDF plot in Graph Builder</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-create-an-CDF-plot-in-Graph-Builder/m-p/157666#M40080</link>
      <description>&lt;P&gt;Thanks for fast reply and interesting&amp;nbsp;samples&amp;nbsp;&lt;SPAN&gt;Cameron. What must be done to create a CDF Plot in Graph Builder&amp;nbsp;the attached Data similar&amp;nbsp;to the CDF plot result from the Y bx X platform?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 22 Feb 2019 19:44:12 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-create-an-CDF-plot-in-Graph-Builder/m-p/157666#M40080</guid>
      <dc:creator>Thomas1</dc:creator>
      <dc:date>2019-02-22T19:44:12Z</dc:date>
    </item>
    <item>
      <title>Re: How to create an CDF plot in Graph Builder</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-create-an-CDF-plot-in-Graph-Builder/m-p/158240#M40083</link>
      <description>&lt;P&gt;Sorry. I did not notice the discrepency before. JMP Help says:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;For&amp;nbsp;&lt;SPAN class="EquationVariables"&gt;N&lt;/SPAN&gt;&amp;nbsp;nonmissing scores, the probability score of a value is computed as the averaged rank of that value divided by&amp;nbsp;&lt;SPAN class="EquationVariables"&gt;N&lt;/SPAN&gt;&amp;nbsp;+&amp;nbsp;1. This column is similar to the empirical cumulative distribution function.&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So they are not the same. I can't find a substitute.&lt;/P&gt;</description>
      <pubDate>Fri, 22 Feb 2019 21:25:40 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-create-an-CDF-plot-in-Graph-Builder/m-p/158240#M40083</guid>
      <dc:creator>Mark_Bailey</dc:creator>
      <dc:date>2019-02-22T21:25:40Z</dc:date>
    </item>
    <item>
      <title>Re: How to create an CDF plot in Graph Builder</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-create-an-CDF-plot-in-Graph-Builder/m-p/158316#M40085</link>
      <description>&lt;P&gt;Here's an example with 4 Poisson distributions:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;New Table( "Poisson CDF Example",
	Add Rows( 200 ),
	New Script(
		"Poisson CDF Comparison",
		Graph Builder(
			Size( 526, 452 ),
			Show Control Panel( 0 ),
			Variables( X( :X ), Y( :Probability ), Overlay( :Distribution ) ),
			Elements( Line( X, Y, Legend( 19 ), Connection( "Step" ) ) ),
			SendToReport(
				Dispatch(
					{},
					"X",
					ScaleBox,
					{Min( -1 ), Max( 12 ), Inc( 10 ), Minor Ticks( 1 )}
				)
			)
		)
	),
	New Column( "Distribution",
		Character,
		"Nominal",
		Formula( "Pois(" || Char( :Lambda ) || ")" )
	),
	New Column( "Lambda",
		Numeric,
		"Continuous",
		Format( "Best", 12 ),
		Formula( If( Row() &amp;lt; 51, 0.5, Row() &amp;lt; 101, 2, Row() &amp;lt; 151, 4, 1.25 ) )
	),
	New Column( "X",
		Numeric,
		"Continuous",
		Format( "Best", 12 ),
		Formula( Sequence( -1, 48, 1, 1 ) )
	),
	New Column( "Probability",
		Numeric,
		"Continuous",
		Format( "Best", 12 ),
		Formula( Poisson Distribution( :Lambda, :X ) ),
		Set Selected
	)
)&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;The key with a step function CDF is to turn off the smoother line in Graph Builder, and connect the points using Line.&amp;nbsp; Then change Connection in the control panel to "Step".&lt;/P&gt;</description>
      <pubDate>Fri, 22 Feb 2019 21:50:41 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-create-an-CDF-plot-in-Graph-Builder/m-p/158316#M40085</guid>
      <dc:creator>cwillden</dc:creator>
      <dc:date>2019-02-22T21:50:41Z</dc:date>
    </item>
    <item>
      <title>Re: How to create an CDF plot in Graph Builder</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-create-an-CDF-plot-in-Graph-Builder/m-p/158520#M40089</link>
      <description>&lt;P&gt;Thanks&amp;nbsp;&lt;SPAN&gt;Cameron for providing solutions for the Poisson&amp;nbsp;distribution and the hint for connection the points&amp;nbsp;step wise. I did use the Poisson&amp;nbsp;numbers only to generate the data.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;What would be the way for a given data set without knowing&amp;nbsp;how they are distributed to create a CDF plot?&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 22 Feb 2019 23:27:28 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-create-an-CDF-plot-in-Graph-Builder/m-p/158520#M40089</guid>
      <dc:creator>Thomas1</dc:creator>
      <dc:date>2019-02-22T23:27:28Z</dc:date>
    </item>
    <item>
      <title>Re: How to create an CDF plot in Graph Builder</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-create-an-CDF-plot-in-Graph-Builder/m-p/158633#M40090</link>
      <description>&lt;P&gt;Would you fit a parametric distribution to them or would you use something like Kaplan-Meier to fit the CDF to the data?&lt;BR /&gt;&lt;BR /&gt;Also, if you don’t have tons of data for each group, just putting the fitted CDF values for your data against the actual data values will probably leave some gaps in the plotted CDF. That’s why I created a sequence of values to plot so I make sure I fill in the whole range.&lt;BR /&gt;&lt;BR /&gt;This makes it a 2 step process. 1. fit distributions to each group of data and get the distribution parameter estimates. 2. Create a data table to plot the CDF probabilities (computed with column formulas) against a sequence of values that covers the range.&lt;BR /&gt;&lt;BR /&gt;This is a laborious process, but would be ok if you don’t have tons of groups and only need to do it once. If you need something robust, you probably need a scripted solution&lt;/P&gt;</description>
      <pubDate>Mon, 25 Feb 2019 15:37:41 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-create-an-CDF-plot-in-Graph-Builder/m-p/158633#M40090</guid>
      <dc:creator>cwillden</dc:creator>
      <dc:date>2019-02-25T15:37:41Z</dc:date>
    </item>
    <item>
      <title>Re: How to create an CDF plot in Graph Builder</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-create-an-CDF-plot-in-Graph-Builder/m-p/282032#M54585</link>
      <description>&lt;P&gt;This is a very nice chart. It would help if you can give the same example using counts and not probability. I suppose calculating the probability is frequency/total? the problem is binning the counts...&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Sun, 26 Jul 2020 13:30:30 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-create-an-CDF-plot-in-Graph-Builder/m-p/282032#M54585</guid>
      <dc:creator>ezorlo</dc:creator>
      <dc:date>2020-07-26T13:30:30Z</dc:date>
    </item>
    <item>
      <title>Re: How to create an CDF plot in Graph Builder</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-create-an-CDF-plot-in-Graph-Builder/m-p/608644#M81011</link>
      <description>&lt;P&gt;Concerning&amp;nbsp;&lt;SPAN&gt;&lt;EM&gt;&lt;STRONG&gt;CDF plot in Graph Builder&lt;/STRONG&gt;&lt;/EM&gt;, please refer to&amp;nbsp;&lt;LI-MESSAGE title="how to make cumulative probability plots in JMP?" uid="522747" url="https://community.jmp.com/t5/Discussions/how-to-make-cumulative-probability-plots-in-JMP/m-p/522747#U522747" discussion_style_icon_css="lia-mention-container-editor-message lia-img-icon-forum-thread lia-fa-icon lia-fa-forum lia-fa-thread lia-fa"&gt;&lt;/LI-MESSAGE&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 27 Jun 2023 18:57:59 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-create-an-CDF-plot-in-Graph-Builder/m-p/608644#M81011</guid>
      <dc:creator>hogi</dc:creator>
      <dc:date>2023-06-27T18:57:59Z</dc:date>
    </item>
    <item>
      <title>Re: How to create an CDF plot in Graph Builder</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-create-an-CDF-plot-in-Graph-Builder/m-p/697203#M88269</link>
      <description>&lt;P&gt;And here is a wish from 2022 to directly&amp;nbsp;&lt;LI-MESSAGE title="Add CDFs to Graph Builder" uid="551634" url="https://community.jmp.com/t5/JMP-Wish-List/Add-CDFs-to-Graph-Builder/m-p/551634#U551634" discussion_style_icon_css="lia-mention-container-editor-message lia-img-icon-idea-thread lia-fa-icon lia-fa-idea lia-fa-thread lia-fa"&gt;&lt;/LI-MESSAGE&gt;&amp;nbsp;by&amp;nbsp;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/12313"&gt;@BHarris&lt;/a&gt;&amp;nbsp;.&lt;/P&gt;</description>
      <pubDate>Sun, 12 Nov 2023 16:10:35 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-create-an-CDF-plot-in-Graph-Builder/m-p/697203#M88269</guid>
      <dc:creator>hogi</dc:creator>
      <dc:date>2023-11-12T16:10:35Z</dc:date>
    </item>
    <item>
      <title>Re: How to create an CDF plot in Graph Builder</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-create-an-CDF-plot-in-Graph-Builder/m-p/794858#M97155</link>
      <description>&lt;P&gt;From the discussion there:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="hogi_0-1725427551528.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/67877i09C5712010B10371/image-size/medium?v=v2&amp;amp;px=400" role="button" title="hogi_0-1725427551528.png" alt="hogi_0-1725427551528.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;dt = Open( "$DOWNLOADS/CDF_Data.jmp" );
new column("one_Nr", formula(1));


dt &amp;lt;&amp;lt; Graph Builder(
	Variables(
		X( :Data ),
		Y( :"Cumulative Probability[Data]"n ),
		Y( :one_Nr, Position( 1 ) ),
		//Y( :Prob DataX, Position( 1 ) ) // enable after saving the data to the table
	),
	Elements(
		Points( X, Y( 1 ), Y( 3 ), Legend( 11 ) ),
		Points( X, Y( 2 ), Legend( 2 ), Summary Statistic( "Cumulative Percent" ) ),
		Line(
			X,
			Legend( 3 ),
			Connection( "Step" ),
			Summary Statistic( "Cumulative Percent" ),
			Interval Style( "Band" )
		)
	),
	SendToReport(
		Dispatch( {}, "400", ScaleBox,
			{Legend Model(
				11,
				Properties(
					1,
					{Marker( "FilledCircle" ), Marker Size( 6 )},
					Item ID( "Prob Data", 1 )
				)
			), Legend Model(
				2,
				Properties( 0, {Marker Size( 10 )}, Item ID( "Sum %(one_Nr)", 1 ) )
			), Legend Model(
				3,
				Properties( 0, {Line Color( 8 )}, Item ID( "Count", 1 ) )
			)}
		)
	)
);&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;BR /&gt;If the missing&amp;nbsp;&lt;EM&gt;horizontal line and first step from the left edge at 0 to the first point's x-value and up (&lt;A href="https://community.jmp.com/t5/JMP-Wish-List/Add-CDFs-to-Graph-Builder/idc-p/794708/highlight/true#M6210" target="_blank" rel="noopener"&gt;link&lt;/A&gt;&amp;nbsp;) &lt;/EM&gt;is OK for you,&lt;BR /&gt;the approach via "Line" + "Cumulative Percent" (purple line) is a nice shortcut.&lt;/P&gt;</description>
      <pubDate>Wed, 04 Sep 2024 05:42:01 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-create-an-CDF-plot-in-Graph-Builder/m-p/794858#M97155</guid>
      <dc:creator>hogi</dc:creator>
      <dc:date>2024-09-04T05:42:01Z</dc:date>
    </item>
  </channel>
</rss>

