<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>Monte-Carlo on Gary Evans website</title>
    <link>http://www.taumuon.co.uk/categories/monte-carlo/</link>
    <description>Recent content in Monte-Carlo on Gary Evans website</description>
    <generator>Hugo</generator>
    <language>en-gb</language>
    <lastBuildDate>Mon, 25 Aug 2014 00:00:00 +0000</lastBuildDate>
    <atom:link href="http://www.taumuon.co.uk/categories/monte-carlo/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>Monte Carlo double barrier option pricing on GPU using C&#43;&#43; AMP</title>
      <link>http://www.taumuon.co.uk/blog/2014-08-25-monte-carlo-double-barrier-option-pricing-on-gpu-using-c-amp/</link>
      <pubDate>Mon, 25 Aug 2014 00:00:00 +0000</pubDate>
      <guid>http://www.taumuon.co.uk/blog/2014-08-25-monte-carlo-double-barrier-option-pricing-on-gpu-using-c-amp/</guid>
      <description>&lt;p&gt;I converted the double barrier option pricing code from my last post to run on the GPU, using C++ AMP, and got an 80% speedup.&lt;/p&gt;&#xA;&lt;p&gt;This is running on a low powered Acer V5-122p laptop with an AMD A6-1450 processor with an integrated Radeon HD 8250 GPU.&lt;/p&gt;&#xA;&lt;p&gt;The gist is here: &lt;a href=&#34;https://gist.github.com/taumuon/bbeeb9e2c1f5082a2699&#34; target=&#34;_blank&#34; rel=&#34;noopener noreffer &#34;&gt;https://gist.github.com/taumuon/bbeeb9e2c1f5082a2699&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;To be fair, I converted the CPU code to be otherwise identical to the gpu code. Instead of populating an array of the sample path, it instead for each point just determines whether the value breaches the upper or lower barriers and uses the last value for the payoff.&lt;/p&gt;</description>
    </item>
    <item>
      <title>Monte Carlo pricing of Exotic Options in Functional Style C&#43;&#43;</title>
      <link>http://www.taumuon.co.uk/blog/2014-08-04-monte-carlo-pricing-of-exotic-options-in-functional-style-c/</link>
      <pubDate>Mon, 04 Aug 2014 00:00:00 +0000</pubDate>
      <guid>http://www.taumuon.co.uk/blog/2014-08-04-monte-carlo-pricing-of-exotic-options-in-functional-style-c/</guid>
      <description>&lt;p&gt;My last blog post was about &lt;a href=&#34;http://www.taumuon.co.uk/2014/04/monte-carlo-pricing-of-exotic-options-in-f.html&#34; target=&#34;_blank&#34; rel=&#34;noopener noreffer &#34;&gt;pricing of exotic options using F#&lt;/a&gt;. In that post I said &amp;ldquo;Apart from the Monte Carlo code, the fact that in F# all functions are in the curried form means that composing the payoff functions using partial function application is beautiful. This would be lambda hell to replicate in C#.&amp;rdquo;&lt;/p&gt;&#xA;&lt;p&gt;The OO version of this would probably be built via composition: having a class implementing a IPayoff interface (implemented for Call and Put), and that would be used in implementations of IPathPayof, which would be implemented by AsianArithmeticMean, DoubleBarrier etc. The use of OO is to pull out the common implementation, but there&amp;rsquo;s no state associated with any of these classes - it feels much nicer using function composition.&lt;/p&gt;</description>
    </item>
    <item>
      <title>Monte Carlo pricing of Exotic Options in F#</title>
      <link>http://www.taumuon.co.uk/blog/2014-04-25-monte-carlo-pricing-of-exotic-options-in-f/</link>
      <pubDate>Fri, 25 Apr 2014 00:00:00 +0000</pubDate>
      <guid>http://www.taumuon.co.uk/blog/2014-04-25-monte-carlo-pricing-of-exotic-options-in-f/</guid>
      <description>&lt;p&gt;I&amp;rsquo;ve recently completed all exercises for the MOOC &lt;a href=&#34;https://iversity.org/courses/monte-carlo-methods-in-finance&#34; target=&#34;_blank&#34; rel=&#34;noopener noreffer &#34;&gt;Monte Carlo methods in Finance&lt;/a&gt;, ran by the University of Madrid on Iversity. The course was excellent, both in its content and delivery.&lt;/p&gt;&#xA;&lt;p&gt;The course started off by refreshing probability theory (cdf, pdf etc) and quickly moved onto generating random numbers, Brownian motion and stochastic differential equations followed by the pricing of options and calculating risk.&lt;br&gt;&#xA;The final week&amp;rsquo;s homework is on the Monte Carlo calculation of a portfolio&amp;rsquo;s risk, using copulas with Student&amp;rsquo;s t distribution, but as that week&amp;rsquo;s homework is still running I&amp;rsquo;m blogging about the penultimate week&amp;rsquo;s homework.&lt;/p&gt;</description>
    </item>
    <item>
      <title>MOOCs</title>
      <link>http://www.taumuon.co.uk/blog/2014-01-24-moocs/</link>
      <pubDate>Fri, 24 Jan 2014 00:00:00 +0000</pubDate>
      <guid>http://www.taumuon.co.uk/blog/2014-01-24-moocs/</guid>
      <description>&lt;p&gt;I&amp;rsquo;ve just enrolled on Iversity&amp;rsquo;s Monte Carlo Methods in Finance course, and have converted some of week 1&amp;rsquo;s Matlab demo code over to F# and Deedle: &lt;a href=&#34;https://gist.github.com/taumuon/8602365&#34; target=&#34;_blank&#34; rel=&#34;noopener noreffer &#34;&gt;https://gist.github.com/taumuon/8602365&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;I spent the latter half of last year diving into various online courses. I completed Coursera&amp;rsquo;s Mathematical Methods for Quantitative Finance, and also followed along with a number of other courses to varying levels of completeness.&lt;/p&gt;&#xA;&lt;p&gt;I completed three weeks assignments of Udacity&amp;rsquo;s Cuda programming course.  Week three was painful due to an error in the reference code, and week 4 was crashing due to a memory exception. I was using a GPU emulator in Ubuntu, and decided that it would be easier with real hardware. I watched the remaining videos and found the parallel algorithms explanations useful.&lt;/p&gt;</description>
    </item>
    <item>
      <title>Monte Carlo C&#43;&#43; AMP</title>
      <link>http://www.taumuon.co.uk/blog/2012-05-21-monte-carlo-c-amp/</link>
      <pubDate>Mon, 21 May 2012 00:00:00 +0000</pubDate>
      <guid>http://www.taumuon.co.uk/blog/2012-05-21-monte-carlo-c-amp/</guid>
      <description>&lt;p&gt;This blog is starting to look very inconsistent – my last blog post was talking about starting to write a game, and now I’ve gone onto a totally different topic. Due to time the game’s gone onto, if not the back burner, then a gentle simmer. I’ve got to balance doing &lt;em&gt;cool stuff&lt;/em&gt; with keeping on top of various technologies that may be relevant as a contractor, and having a life!&lt;/p&gt;</description>
    </item>
  </channel>
</rss>
