<?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 simulate a Weiner process in SAS in SAS/IML Software and Matrix Computations</title>
    <link>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/How-to-simulate-a-Weiner-process-in-SAS/m-p/203413#M2121</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Tom! &lt;STRONG&gt;&lt;A _jive_internal="true" class="jiveTT-hover-user jive-username-link" data-avatarid="-1" data-externalid="" data-presence="null" data-userid="826192" data-username="eagles_dare13" href="https://communities.sas.com/people/eagles_dare13" id="jive-82619249423718141273186"&gt;eagles_dare13&lt;/A&gt;&lt;/STRONG&gt;, I moved this thread to the SAS/IML community.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anna&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 11 Jun 2015 17:30:39 GMT</pubDate>
    <dc:creator>AnnaBrown</dc:creator>
    <dc:date>2015-06-11T17:30:39Z</dc:date>
    <item>
      <title>How to simulate a Weiner process in SAS</title>
      <link>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/How-to-simulate-a-Weiner-process-in-SAS/m-p/203411#M2119</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is there a way to simulate data points that have been drawn from a Geometric Brownian Motion (Weiner Process)?&lt;/P&gt;&lt;P&gt;I am looking at this function:&lt;A href="http://support.sas.com/documentation/cdl/en/lrdict/64316/HTML/default/viewer.htm#a001466748.htm" title="http://support.sas.com/documentation/cdl/en/lrdict/64316/HTML/default/viewer.htm#a001466748.htm"&gt;SAS(R) 9.2 Language Reference: Dictionary, Fourth Edition&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But I don't see an option for a Weiner process.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I know the Black Scholes internally simulates a Weiner process but is it possible to see what a set of 10,000 numbers drawn from a Weiner process looks like?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Jun 2015 13:36:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/How-to-simulate-a-Weiner-process-in-SAS/m-p/203411#M2119</guid>
      <dc:creator>eagles_dare13</dc:creator>
      <dc:date>2015-06-11T13:36:30Z</dc:date>
    </item>
    <item>
      <title>Re: How to simulate a Weiner process in SAS</title>
      <link>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/How-to-simulate-a-Weiner-process-in-SAS/m-p/203412#M2120</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I suggest you post this under the "SAS Statistical Procedures" and "SAS/IML Software and Matrix Computations" forums, I think you'll be more likely to catch the eye of someone familiar with this topic.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Tom&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Jun 2015 17:13:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/How-to-simulate-a-Weiner-process-in-SAS/m-p/203412#M2120</guid>
      <dc:creator>TomKari</dc:creator>
      <dc:date>2015-06-11T17:13:08Z</dc:date>
    </item>
    <item>
      <title>Re: How to simulate a Weiner process in SAS</title>
      <link>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/How-to-simulate-a-Weiner-process-in-SAS/m-p/203413#M2121</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Tom! &lt;STRONG&gt;&lt;A _jive_internal="true" class="jiveTT-hover-user jive-username-link" data-avatarid="-1" data-externalid="" data-presence="null" data-userid="826192" data-username="eagles_dare13" href="https://communities.sas.com/people/eagles_dare13" id="jive-82619249423718141273186"&gt;eagles_dare13&lt;/A&gt;&lt;/STRONG&gt;, I moved this thread to the SAS/IML community.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anna&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Jun 2015 17:30:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/How-to-simulate-a-Weiner-process-in-SAS/m-p/203413#M2121</guid>
      <dc:creator>AnnaBrown</dc:creator>
      <dc:date>2015-06-11T17:30:39Z</dc:date>
    </item>
    <item>
      <title>Re: How to simulate a Weiner process in SAS</title>
      <link>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/How-to-simulate-a-Weiner-process-in-SAS/m-p/203414#M2122</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'll show you the standard Weiner process (mean=0, std dev=1) and you can generalize it if necessary.&lt;/P&gt;&lt;P&gt;A reference is &lt;A class="active_link" href="https://me.ucsb.edu/~moehlis/APC591/tutorials/tutorial7/node2.html"&gt;https://me.ucsb.edu/~moehlis/APC591/tutorials/tutorial7/node2.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The key observation is that the STEP SIZES of the Weiner process are Gaussian distribution, so you can use the RAND function in the DATA step to simulate the step sizes. In SAS/IML, you can use the RANDGEN or RANDFUN functions to generate the normally distributed step sizes.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc iml;&lt;BR /&gt;/* simulate N time steps from Weiner process on interval [0,Tf] */&lt;BR /&gt;N = 1000; &lt;BR /&gt;Tf = 5; &lt;BR /&gt;call randseed(12345);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/* algorithm: step sizes are normally distributed */&lt;BR /&gt;N = N-1;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; /* X(0)=0, so N-1 random values */&lt;BR /&gt;dt = Tf/N;&lt;BR /&gt;sd = sqrt(dt);&lt;BR /&gt;steps = randfun(N, "Normal", 0, sd); /* random step sizes */&lt;BR /&gt;x = 0 // cusum(steps);&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; /* X(0)=0 */&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Jun 2015 18:47:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/How-to-simulate-a-Weiner-process-in-SAS/m-p/203414#M2122</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2015-06-11T18:47:03Z</dc:date>
    </item>
    <item>
      <title>Re: How to simulate a Weiner process in SAS</title>
      <link>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/How-to-simulate-a-Weiner-process-in-SAS/m-p/203415#M2123</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you. I copied your code but am getting:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ERROR: Invocation of unresolved module RANDFUN&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Jun 2015 18:54:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/How-to-simulate-a-Weiner-process-in-SAS/m-p/203415#M2123</guid>
      <dc:creator>eagles_dare13</dc:creator>
      <dc:date>2015-06-11T18:54:12Z</dc:date>
    </item>
    <item>
      <title>Re: How to simulate a Weiner process in SAS</title>
      <link>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/How-to-simulate-a-Weiner-process-in-SAS/m-p/203416#M2124</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Then replace that line with&lt;/P&gt;&lt;P&gt;steps = j(N,1);&lt;/P&gt;&lt;P&gt;call randgen(steps, "Normal", 0, sd); /* random step sizes */&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Jun 2015 19:07:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/How-to-simulate-a-Weiner-process-in-SAS/m-p/203416#M2124</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2015-06-11T19:07:08Z</dc:date>
    </item>
  </channel>
</rss>

