<?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 simulation experiment in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/simulation-experiment/m-p/481657#M72595</link>
    <description>&lt;P&gt;I want to make a simulation experiment, generate 12 random variables, each variable contains 100 observations, so that the variables are subject to heterogeneity problem, and follow the normal distribution&lt;BR /&gt;The experiment is repeated 10,000 times.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;# I don't know how to do this with JMPpro&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
    <pubDate>Sat, 10 Jun 2023 23:47:33 GMT</pubDate>
    <dc:creator>Raaed</dc:creator>
    <dc:date>2023-06-10T23:47:33Z</dc:date>
    <item>
      <title>simulation experiment</title>
      <link>https://community.jmp.com/t5/Discussions/simulation-experiment/m-p/481657#M72595</link>
      <description>&lt;P&gt;I want to make a simulation experiment, generate 12 random variables, each variable contains 100 observations, so that the variables are subject to heterogeneity problem, and follow the normal distribution&lt;BR /&gt;The experiment is repeated 10,000 times.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;# I don't know how to do this with JMPpro&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Sat, 10 Jun 2023 23:47:33 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/simulation-experiment/m-p/481657#M72595</guid>
      <dc:creator>Raaed</dc:creator>
      <dc:date>2023-06-10T23:47:33Z</dc:date>
    </item>
    <item>
      <title>Re: simulation experiment</title>
      <link>https://community.jmp.com/t5/Discussions/simulation-experiment/m-p/481697#M72598</link>
      <description>&lt;P&gt;I don't know what the heterogeneity problem is, but the rest might look like this:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;dt = As Table( J( 100 * 10000, 12, Random Normal( 0, 1 ) ) );
dt &amp;lt;&amp;lt; New Column( "group", formula( Floor( (Row() - 1) / 100 ) + 1 ) );
dt &amp;lt;&amp;lt; runformulas;
dt:group &amp;lt;&amp;lt; deleteformula;
dt &amp;lt;&amp;lt; Go To( group );
dt &amp;lt;&amp;lt; Move Selected Columns( To first );&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Do your analysis with the group variable.&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="12 million random normal numbers" style="width: 999px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/41990i379A8DF483D7FD7F/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture.PNG" alt="12 million random normal numbers" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;12 million random normal numbers&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 24 Apr 2022 02:18:54 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/simulation-experiment/m-p/481697#M72598</guid>
      <dc:creator>Craige_Hales</dc:creator>
      <dc:date>2022-04-24T02:18:54Z</dc:date>
    </item>
    <item>
      <title>Re: simulation experiment</title>
      <link>https://community.jmp.com/t5/Discussions/simulation-experiment/m-p/481699#M72599</link>
      <description>&lt;P&gt;Summary might be a good start&lt;/P&gt;
&lt;P&gt;&lt;CODE class=" language-jsl"&gt;&lt;/CODE&gt;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;dt = As Table( J( 100 * 10000, 12, Random Normal( 0, 1 ) ) );
dt &amp;lt;&amp;lt; New Column( "group", formula( Floor( (Row() - 1) / 100 ) + 1 ) );
dt &amp;lt;&amp;lt; runformulas;
dt:group &amp;lt;&amp;lt; deleteformula;
dt &amp;lt;&amp;lt; Go To( group );
dt &amp;lt;&amp;lt; Move Selected Columns( To first );

dtsummary = dt &amp;lt;&amp;lt; Summary(
    Group( :group ),
    Mean( :Col1 ),
    Min( :Col1 ),
    Max( :Col1 ),
    Std Dev( :Col1 ),
    Mean( :Col2 ),
    Min( :Col2 ),
    Max( :Col2 ),
    Std Dev( :Col2 ),
    Freq( "None" ),
    Weight( "None" )
);

dtsummary &amp;lt;&amp;lt; Graph Builder(
    Size( 653, 452 ),
    Show Control Panel( 0 ),
    Variables(
        X( :group ),
        Y( :"Mean(Col1)"n ),
        Y( :"Min(Col1)"n, Position( 1 ) ),
        Y( :"Max(Col1)"n, Position( 1 ) ),
        Y( :"Std Dev(Col1)"n, Position( 1 ) ),
        Y( :"Mean(Col2)"n, Position( 1 ) ),
        Y( :"Min(Col2)"n, Position( 1 ) ),
        Y( :"Max(Col2)"n, Position( 1 ) ),
        Y( :"Std Dev(Col2)"n, Position( 1 ) )
    ),
    Elements(
        Points(
            X,
            Y( 1 ),
            Y( 2 ),
            Y( 3 ),
            Y( 4 ),
            Y( 5 ),
            Y( 6 ),
            Y( 7 ),
            Y( 8 ),
            Legend( 7 )
        )
    )
);
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;CODE class=" language-jsl"&gt;&lt;/CODE&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Color!" style="width: 812px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/41991iFA52067AFA73F318/image-size/large?v=v2&amp;amp;px=999" role="button" title="Untitled 4 By (group) - Graph Builder.png" alt="Color!" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;Color!&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 24 Apr 2022 02:57:30 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/simulation-experiment/m-p/481699#M72599</guid>
      <dc:creator>Craige_Hales</dc:creator>
      <dc:date>2022-04-24T02:57:30Z</dc:date>
    </item>
    <item>
      <title>Re: simulation experiment</title>
      <link>https://community.jmp.com/t5/Discussions/simulation-experiment/m-p/481700#M72600</link>
      <description>&lt;P&gt;Dear Sir&amp;nbsp;&lt;A href="https://community.jmp.com/t5/user/viewprofilepage/user-id/982" target="_blank" rel="noopener"&gt;Craige_Hales&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you very much for helping me,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I wanted to do a simulation experiment:&lt;BR /&gt;Number of random variables = 12&lt;BR /&gt;The number of observations in each variable = 100&lt;BR /&gt;And that resulting variables are suffering from Heteroscedasticity problem&lt;/P&gt;&lt;P&gt;# With possibility of repeating the experiment 10,000 times&lt;/P&gt;</description>
      <pubDate>Sun, 24 Apr 2022 04:02:02 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/simulation-experiment/m-p/481700#M72600</guid>
      <dc:creator>Raaed</dc:creator>
      <dc:date>2022-04-24T04:02:02Z</dc:date>
    </item>
    <item>
      <title>Re: simulation experiment</title>
      <link>https://community.jmp.com/t5/Discussions/simulation-experiment/m-p/481702#M72601</link>
      <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Scre-04-24 072717.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/41992i9C034B80A3EDC023/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Scre-04-24 072717.png" alt="Scre-04-24 072717.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;the source:&lt;/P&gt;&lt;P&gt;&lt;A href="https://ideas.repec.org/p/ems/eureir/6941.html" target="_blank"&gt;Random-Coefficient periodic autoregression (repec.org)&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 24 Apr 2022 04:29:41 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/simulation-experiment/m-p/481702#M72601</guid>
      <dc:creator>Raaed</dc:creator>
      <dc:date>2022-04-24T04:29:41Z</dc:date>
    </item>
    <item>
      <title>Re: simulation experiment</title>
      <link>https://community.jmp.com/t5/Discussions/simulation-experiment/m-p/481767#M72609</link>
      <description>&lt;P&gt;check out a search like this &lt;A href="https://www.google.com/search?q=site%3Ajmp.com+Heteroscedasticity" target="_self"&gt;https://www.google.com/search?q=site%3Ajmp.com+Heteroscedasticity&lt;/A&gt;&amp;nbsp; to find previous questions that might have good answers in the community. In the google search GUI you can do that with &lt;EM&gt;&lt;STRONG&gt;site:jmp.com&lt;/STRONG&gt;&lt;/EM&gt; to limit the results:&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="site:jmp.com Heteroscedasticity" style="width: 875px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/41994i0A2CBAD175F85FE0/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screenshot_2022-04-24_10-48-40.png" alt="site:jmp.com Heteroscedasticity" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;site:jmp.com Heteroscedasticity&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'm not a statistician. The data above is random. The source you point at suggests the data should have some sort of repeat across seasons...not completely random. If 1..12 represents months of the year, it might not make sense to have a January column, a February column, ... &amp;nbsp; It might make a lot more sense to have a date column and a value column.&lt;/P&gt;
&lt;TABLE border="1" width="100%"&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD width="50%" height="30px"&gt;date&lt;/TD&gt;
&lt;TD width="50%" height="30px"&gt;value&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="50%" height="30px"&gt;2020/01&lt;/TD&gt;
&lt;TD width="50%" height="30px"&gt;7&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="50%" height="30px"&gt;2020/02&lt;/TD&gt;
&lt;TD width="50%" height="30px"&gt;6&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="50%" height="30px"&gt;2020/03&lt;/TD&gt;
&lt;TD width="50%" height="30px"&gt;8&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I looked up &lt;A href="https://www.google.com/search?q=Heteroscedasticity" target="_self"&gt;Heteroscedasticity&lt;/A&gt; and suspect you'll need a different approach to generating your random numbers so they actually exhibit that trait. Otherwise it is just random with nothing interesting but the mu and sigma passed to random normal, as seen in the graph above.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Just guessing, and way out on a limb...I think you'd have to generate a random mu (normal? uniform?), and a sigma based on that mu, and then use RandomNormal(mu,sigma). Or I might be completely wrong.&lt;/P&gt;</description>
      <pubDate>Sun, 24 Apr 2022 14:52:42 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/simulation-experiment/m-p/481767#M72609</guid>
      <dc:creator>Craige_Hales</dc:creator>
      <dc:date>2022-04-24T14:52:42Z</dc:date>
    </item>
    <item>
      <title>Re: simulation experiment</title>
      <link>https://community.jmp.com/t5/Discussions/simulation-experiment/m-p/481771#M72613</link>
      <description>&lt;P&gt;Dear Sir&lt;/P&gt;&lt;P&gt;First, thank you very much for helping.&lt;/P&gt;&lt;P&gt;In fact, your&amp;nbsp;script above, comes close to what I want,&lt;BR /&gt;but I don't know how to make the variables heterogeneous in variance.&lt;BR /&gt;I don't know how to modify your script, such that:&lt;/P&gt;&lt;P&gt;Number of random variables = 12&lt;BR /&gt;The number of observations in each variable = 100&lt;BR /&gt;And that resulting variables are suffering from Heteroscedasticity problem&lt;/P&gt;&lt;P&gt;With possibility of repeating the experiment 10,000 times&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;</description>
      <pubDate>Sun, 24 Apr 2022 19:22:04 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/simulation-experiment/m-p/481771#M72613</guid>
      <dc:creator>Raaed</dc:creator>
      <dc:date>2022-04-24T19:22:04Z</dc:date>
    </item>
    <item>
      <title>Re: simulation experiment</title>
      <link>https://community.jmp.com/t5/Discussions/simulation-experiment/m-p/481772#M72614</link>
      <description>&lt;P&gt;"how to make the variables heterogeneous in variance" - does that mean each column needs a different sigma? Do you need 12 randomly chosen sigma values? &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;"Heteroscedasticity problem" - does that mean you have a function in mind for changing the sigma based on mu? And a function for choosing mu, probably randomly? (I don't have any expertise here, just guessing after a 30 second read.)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I think you'll want to do this using nested for loops. My original suggestion is too simple. You could also use column formulas, but a JSL script will be easier to manage. Nested loops would look something like this&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;m = J( 100 * 10000, 12, 0 );

for(row=1, row&amp;lt;=nrows(m), row+=1,
   for(col=1, col&amp;lt;=ncols(m), col+=1,
        m[row,col] = HSD(row,col);
    );
);&lt;BR /&gt;&lt;BR /&gt;dt = astable(m)&lt;BR /&gt;&lt;BR /&gt;...
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;You have to write the "HSD" user written function with what you actually want.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You might also want to change the 10000 repeats to 2 or 3 repeats until you decide what the analysis should do. I used summary because it packs all 10K analyses into a data table. You might want to run a platform 10K times, grabbing some results, then closing the platform. You don't want 10K platforms open at once because JMP will run out of memory.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 24 Apr 2022 20:57:06 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/simulation-experiment/m-p/481772#M72614</guid>
      <dc:creator>Craige_Hales</dc:creator>
      <dc:date>2022-04-24T20:57:06Z</dc:date>
    </item>
  </channel>
</rss>

