<?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: Fitting multiple normal mixture to data in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Fitting-multiple-normal-mixture-to-data/m-p/372924#M62280</link>
    <description>&lt;P&gt;I think this can be done in the distribution platform -&amp;gt; fit normal 3 mixture, see screenshot.&lt;/P&gt;&lt;P&gt;Probably you have to transform your target column to integers, so that frequency role in distribution platform works, see example script below. The script will generate a table, and you can execute the graph builder and distribution platform.&lt;/P&gt;&lt;P&gt;If you need to fit more complex curves, you may have a look at reliability platform or for custom defined fitting nonlinear platform, the latter one is very powerful, but tricky to fit.&lt;/P&gt;&lt;P&gt;There are also other posts dealing with this issue:&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.jmp.com/t5/Discussions/How-to-plot-individual-peak-fit-curves-on-histogram-fitted-2/m-p/46100" target="_blank"&gt;Solved: How to plot individual peak fit curves on histogram (fitted 2 normal mixture) - JMP User Community&lt;/A&gt;&lt;/P&gt;&lt;P&gt;BR&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="Georg_0-1617179132564.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/31740i2C1E1E5690658614/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Georg_0-1617179132564.png" alt="Georg_0-1617179132564.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;New Table( "20210331_NormalMixture",
	Add Rows( 100 ),
	New Script(
		"density vs. x",
		Graph Builder(
			Variables( X( :x ), Y( :density ) ),
			Elements( Points( X, Y, Legend( 6 ) ), Smoother( X, Y, Legend( 7 ) ) )
		)
	),
	New Script(
		"Distribution of x",
		Distribution(
			Freq( :density ),
			Continuous Distribution( Column( :x ), Fit Normal 3 Mixture ),
			SendToReport(
				Dispatch( {"x"}, "Compare Distributions", OutlineBox, {Close( 1 )} ),
				Dispatch( {"x"}, "Quantiles", OutlineBox, {Close( 1 )} ),
				Dispatch( {"x"}, "Summary Statistics", OutlineBox, {Close( 1 )} )
			)
		)
	),
	New Column( "x",
		Numeric,
		"Continuous",
		Format( "Best", 12 ),
		Formula( Row() ),
		Set Display Width( 53 )
	),
	New Column( "density",
		Numeric,
		"Continuous",
		Format( "Best", 12 ),
		Formula(
			Round(
				1000000000 * Normal Mixture Density(
					:x,
					[20, 40, 70],
					[10, 10, 10],
					[0.2, 0.6, 0.2]
				)
			)
		),
		Set Selected,
		Set Display Width( 91 )
	)
);&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Wed, 31 Mar 2021 08:39:32 GMT</pubDate>
    <dc:creator>Georg</dc:creator>
    <dc:date>2021-03-31T08:39:32Z</dc:date>
    <item>
      <title>Fitting multiple normal mixture to data</title>
      <link>https://community.jmp.com/t5/Discussions/Fitting-multiple-normal-mixture-to-data/m-p/372841#M62277</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I would like to get multiple normal mixture fitting to my data similar to what is presented here&amp;nbsp;&lt;/P&gt;&lt;P&gt;arXiv:1306.5856 &lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Electron_1-1617139876211.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/31726i938D8A6242E34CBE/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Electron_1-1617139876211.png" alt="Electron_1-1617139876211.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Any thought on how this can done in JMP or JSL? Can I set a lower/upper limit on each peak locations in exchange for, likely, worse fits?&lt;/P&gt;</description>
      <pubDate>Sun, 11 Jun 2023 11:12:33 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Fitting-multiple-normal-mixture-to-data/m-p/372841#M62277</guid>
      <dc:creator>Electron</dc:creator>
      <dc:date>2023-06-11T11:12:33Z</dc:date>
    </item>
    <item>
      <title>Re: Fitting multiple normal mixture to data</title>
      <link>https://community.jmp.com/t5/Discussions/Fitting-multiple-normal-mixture-to-data/m-p/372870#M62278</link>
      <description>&lt;P&gt;There is a similar capability in the Distribution Platform if you use a Shadowgram option and then you can place 2 and 3 mixture distributions on the Shadowgram&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="shadow.PNG" style="width: 318px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/31730i587702A68814CC10/image-size/large?v=v2&amp;amp;px=999" role="button" title="shadow.PNG" alt="shadow.PNG" /&gt;&lt;/span&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 31 Mar 2021 00:08:25 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Fitting-multiple-normal-mixture-to-data/m-p/372870#M62278</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2021-03-31T00:08:25Z</dc:date>
    </item>
    <item>
      <title>Re: Fitting multiple normal mixture to data</title>
      <link>https://community.jmp.com/t5/Discussions/Fitting-multiple-normal-mixture-to-data/m-p/372924#M62280</link>
      <description>&lt;P&gt;I think this can be done in the distribution platform -&amp;gt; fit normal 3 mixture, see screenshot.&lt;/P&gt;&lt;P&gt;Probably you have to transform your target column to integers, so that frequency role in distribution platform works, see example script below. The script will generate a table, and you can execute the graph builder and distribution platform.&lt;/P&gt;&lt;P&gt;If you need to fit more complex curves, you may have a look at reliability platform or for custom defined fitting nonlinear platform, the latter one is very powerful, but tricky to fit.&lt;/P&gt;&lt;P&gt;There are also other posts dealing with this issue:&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.jmp.com/t5/Discussions/How-to-plot-individual-peak-fit-curves-on-histogram-fitted-2/m-p/46100" target="_blank"&gt;Solved: How to plot individual peak fit curves on histogram (fitted 2 normal mixture) - JMP User Community&lt;/A&gt;&lt;/P&gt;&lt;P&gt;BR&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="Georg_0-1617179132564.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/31740i2C1E1E5690658614/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Georg_0-1617179132564.png" alt="Georg_0-1617179132564.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;New Table( "20210331_NormalMixture",
	Add Rows( 100 ),
	New Script(
		"density vs. x",
		Graph Builder(
			Variables( X( :x ), Y( :density ) ),
			Elements( Points( X, Y, Legend( 6 ) ), Smoother( X, Y, Legend( 7 ) ) )
		)
	),
	New Script(
		"Distribution of x",
		Distribution(
			Freq( :density ),
			Continuous Distribution( Column( :x ), Fit Normal 3 Mixture ),
			SendToReport(
				Dispatch( {"x"}, "Compare Distributions", OutlineBox, {Close( 1 )} ),
				Dispatch( {"x"}, "Quantiles", OutlineBox, {Close( 1 )} ),
				Dispatch( {"x"}, "Summary Statistics", OutlineBox, {Close( 1 )} )
			)
		)
	),
	New Column( "x",
		Numeric,
		"Continuous",
		Format( "Best", 12 ),
		Formula( Row() ),
		Set Display Width( 53 )
	),
	New Column( "density",
		Numeric,
		"Continuous",
		Format( "Best", 12 ),
		Formula(
			Round(
				1000000000 * Normal Mixture Density(
					:x,
					[20, 40, 70],
					[10, 10, 10],
					[0.2, 0.6, 0.2]
				)
			)
		),
		Set Selected,
		Set Display Width( 91 )
	)
);&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 31 Mar 2021 08:39:32 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Fitting-multiple-normal-mixture-to-data/m-p/372924#M62280</guid>
      <dc:creator>Georg</dc:creator>
      <dc:date>2021-03-31T08:39:32Z</dc:date>
    </item>
  </channel>
</rss>

