<?xml version="1.0" encoding="UTF-8" ?>
<rss version="2.0">
<channel>
<title><![CDATA[Quantitative Finance Collector]]></title> 
<link>http://www.mathfinance.cn/index.php</link> 
<description><![CDATA[Quantitative Finance Collector is a blog on Quantitative finance analysis, financial engineering methods in mathematical finance focusing on derivative pricing, quantitative trading and quantitative risk management.]]></description> 
<language>en-US</language> 
<copyright><![CDATA[Quantitative Finance Collector]]></copyright>
<item>
<link>http://www.mathfinance.cn/pption-pricing-models-implemented-in-AirXCell/</link>
<title><![CDATA[Option pricing models implemented in AirXCell]]></title> 
<author>abiao &lt;&gt;</author>
<category><![CDATA[Other]]></category>
<pubDate>Sun, 10 Jun 2012 21:23:05 +0000</pubDate> 
<guid>http://www.mathfinance.cn/pption-pricing-models-implemented-in-AirXCell/</guid> 
<description>
<![CDATA[<a rel=nofollow href="www.airxcell.com">AirXCell</a> is an online R application framework currently supporting a programmable spreadsheet, an R development environment and various financial calculation forms.<br/><br/>A new <i>calculation form</i> has been implemented recently within AirXCell for <a rel=nofollow href="http://www.airxcell.com/exp/doc/userGuide/ar01s14.html">financial option</a> pricing (option valuation). The option pricer within AirXCell enables the user to compute theoretical option prices. It already offers an extended set of basic and exotic models (about a dozen) than enables the user to price a wide range of option types:<br/><br/><div class="code">American options,<br/>European options,<br/>Asian options,<br/>Barrier options,<br/>Binary options,<br/>Currency translated options,<br/>Lookback options,<br/>Multiple assets options and<br/>Multiple exercises options<br/></div><br/><br/>Many more models are being implemented currently and will be added soon to <a href="www.airxcell.com">AirXCell</a>. In addition to the <i>option pricing form</i>, there are other forms especially useful in the same context that provides ways to load asset prices, visualize them, compute the theoretical and <a rel=nofollow href="http://www.airxcell.com/exp/doc/userGuide/ar01s13.html">historical volatility</a>.<br/><br/>This form is very valuable to <a href="http://www.mathfinance.cn" target="_blank">quantitative researchers</a> or any finance professional who needs to compute <a rel=nofollow href="http://www.mdwoptions.com/TheoreticalValues.htm">theoretical option prices</a> easily and who is looking for a reliable option pricer.<br/><br/>The <a rel=nofollow href="http://www.airxcell.com/exp/doc/userGuide/ar01s14.html">Option pricing form</a> presents the user with an HTML form enabling her to set up the model with the required parameters values such as the underlying asset price, the strike price, the volatility of the underlying asset, etc.<br/><br/>For instance, the following form is presented to a user requesting the price of an european option using the <a rel=nofollow href="http://en.wikipedia.org/wiki/Black%E2%80%93Scholes">Generalized Black Scholes</a> model:<br/><br/><img width="600px" src="http://www.airxcell.com/exp/doc/userGuide/sc/rmetrics_option_european.png"></img><br/><br/>Again, there are many more models and option types coming soon as well as other forms for various other kind of calculations, still mostly oriented towards financial calculation.<br/>Tags - <a href="http://www.mathfinance.cn/tags/option/" rel="tag">option</a> , <a href="http://www.mathfinance.cn/tags/pricing/" rel="tag">pricing</a> , <a href="http://www.mathfinance.cn/tags/r/" rel="tag">r</a><br /><strong>Read the full post at <a href="http://www.mathfinance.cn/pption-pricing-models-implemented-in-AirXCell/">Option pricing models implemented in AirXCell</a></strong>.
]]>
</description>
</item><item>
<link>http://www.mathfinance.cn/top-20-movies-for-business-men/</link>
<title><![CDATA[Top 20 Movies For Business Men]]></title> 
<author>abiao &lt;&gt;</author>
<category><![CDATA[Other]]></category>
<pubDate>Mon, 16 Jan 2012 21:34:20 +0000</pubDate> 
<guid>http://www.mathfinance.cn/top-20-movies-for-business-men/</guid> 
<description>
<![CDATA[It is difficult to survive in a complicated business world without sound knowledge on economics, management, law, the ways of doing business, etc. Some top business school teaches its MBA students the knowledge, but not everyone is (indeed, only a few are) fortunate enough to enter Harvard, Stanford, or Wharton. Below is a list of top 20 movies that a business man needs to watch, some of them are even highly recommended by those business school professors. You will have a better understanding of the principles and rules of how the business world runs, it will help your career as well.<br/><br/>Disclaimer: the videos are embedded from Youtube uploaded by others, some are full version and others are Trailer. Please consider to buy the movies from Amazon.<br/><br/><h3>1, Wall Street (1987)</h3><br/><img src="http://i795.photobucket.com/albums/yy232/tigergb/mathfinance/wallstreet.jpg" width=214 height=317 alt="wall street"></src><br/>A young and impatient stockbroker is willing to do anything to get to the top, including trading on illegal inside information taken through a ruthless and greedy corporate raider who takes the youth under his wing.<br/><iframe width="420" height="315" src="http://www.youtube.com/embed/FCctqbRrsBQ" frameborder="0" allowfullscreen></iframe><br/><br/><h3>2, Glengarry Glen Ross (1992)</h3><br/><img src="http://i795.photobucket.com/albums/yy232/tigergb/mathfinance/glengarry.jpg" width=214 height=317 alt="Glengarry Glen Ross"></src><br/>An examination of the machinations behind the scenes at a real estate office. A story for everyone who works for a living.<br/><iframe width="420" height="315" src="http://www.youtube.com/embed/QgAU2RJHfvE" frameborder="0" allowfullscreen></iframe><br/><br/><h3>3, Trading Places (1983)</h3><br/><img src="http://i795.photobucket.com/albums/yy232/tigergb/mathfinance/tradingplaces.jpg" width=214 height=317 alt="Trading Places"></src><br/>A snobbish investor and a wily street con artist find their positions reversed as part of a bet by two callous millionaires.<br/><iframe width="420" height="315" src="http://www.youtube.com/embed/ZjDbJQKDXCY" frameborder="0" allowfullscreen></iframe><br/><br/><h3>4, Boiler Room (2000)</h3><br/><img src="http://i795.photobucket.com/albums/yy232/tigergb/mathfinance/boilderroom.jpg" width=214 height=317 alt="boiler room"></src><br/>A college dropout gets a job as a broker for a suburban investment firm, which puts him on the fast track to success, but the job might not be as legitimate as it sounds.<br/><iframe width="420" height="315" src="http://www.youtube.com/embed/UoTx9RpL5W4" frameborder="0" allowfullscreen></iframe><br/><br/><h3>5, Pirates of Silicon Valley (1999)</h3><br/><img src="http://i795.photobucket.com/albums/yy232/tigergb/mathfinance/pirates.jpg" width=214 height=317 alt="Pirates of Silicon Valley"></src><br/>The film documents the impact on the development of the personal computer of the rivalry between Apple Computer and Microsoft. It spans the time period of the early 1970s to 1997, when Steve Jobs (Noah Wyle) and Bill Gates (Anthony Michael Hall) develop a partnership after Jobs returns to Apple Computer.<br/><iframe width="420" height="315" src="http://www.youtube.com/embed/TWyLOKjlAKA" frameborder="0" allowfullscreen></iframe><br/><br/><h3>6, The Coca-Cola Kid (1985)</h3><br/><img src="http://i795.photobucket.com/albums/yy232/tigergb/mathfinance/coca.jpg" width=214 height=317 alt="The Coca-Cola Kid (1985)"></src><br/>An eccentric marketing guru visits a Coca-Cola subsidiary in Australia to try and increase market penetration. He finds zero penetration in a valley owned by an old man who makes his own soft drinks, and visits the valley to see why. After "the Kid's" persistence is tested he's given a tour of the man's plant, and they begin talking of a joint venture. Things get more complicated when the Coca-Cola man begins falling in love with his temporary secretary, who seems to have connections to the valley. <br/><iframe width="560" height="315" src="http://www.youtube.com/embed/sd1DVlOl1eY" frameborder="0" allowfullscreen></iframe><br/><br/><h3>7, The Secret of My Succe$s (1987)</h3><br/><img src="http://i795.photobucket.com/albums/yy232/tigergb/mathfinance/sucess.jpg" width=214 height=317 alt="The Secret of My Succe$s (1987)"></src><br/>A talented young man can't get an executive position without rising through the ranks, so he comes up with a shortcut, which also benefits his love life.<br/><iframe width="560" height="315" src="http://www.youtube.com/embed/cot5rEGcDek" frameborder="0" allowfullscreen></iframe><br/><br/><h3>8, In Good Company (2004)</h3><br/><img src="http://i795.photobucket.com/albums/yy232/tigergb/mathfinance/goodcompany.jpg" width=214 height=317 alt="In Good Company"></src><br/>A middle-aged ad exec is faced with a new boss who's nearly half his age... and who also happens to be sleeping with his daughter.<br/><iframe width="560" height="315" src="http://www.youtube.com/embed/cOE2gQrXchk" frameborder="0" allowfullscreen></iframe><br/><br/><h3>9, Barcelona (1994)</h3><br/><img src="http://i795.photobucket.com/albums/yy232/tigergb/mathfinance/barcelona.jpg" width=214 height=317 alt="Barcelona (1994)"></src><br/>Ted, a stuffy white guy from Illinois working in sales for the Barcelona office of a US corporation, is paid an unexpected visit by his somewhat less stuffy cousin Fred, who is an officer in the US Navy. Over the next few months, both their lives are irrevocably altered by the events which follow Fred's arrival, events which are the trivial stuff of a comedy of manners at first but which gradually grow increasingly dramatic. <br/><iframe width="420" height="315" src="http://www.youtube.com/embed/hnytcMClO38" frameborder="0" allowfullscreen></iframe><br/><br/><h3>10, Jerry Maguire (1996)</h3><br/><img src="http://i795.photobucket.com/albums/yy232/tigergb/mathfinance/jerry.jpg" width=214 height=317 alt="Jerry Maguire (1996)"></src><br/>When a sports agent has a moral epiphany and is fired for expressing it, he decides to put his new philosophy to the test as an independent with the only athlete who stays with him.<br/><iframe width="420" height="315" src="http://www.youtube.com/embed/OKoKYk4jC84" frameborder="0" allowfullscreen></iframe><br/><br/><h3>11, Office Space (1999)</h3><br/><img src="http://i795.photobucket.com/albums/yy232/tigergb/mathfinance/officespace.jpg" width=214 height=317 alt="Office Space (1999)"></src><br/>Comedic tale of company workers who hate their jobs and decide to rebel against their greedy boss.<br/><iframe width="420" height="315" src="http://www.youtube.com/embed/fPP2jz4jyxk" frameborder="0" allowfullscreen></iframe><br/><br/><h3>12, The Corporation (2003)</h3><br/><img src="http://i795.photobucket.com/albums/yy232/tigergb/mathfinance/cooperation.jpg" width=214 height=317 alt="The Corporation (2003)"></src><br/>Documentary that looks at the concept of the corporation throughout recent history up to its present-day dominance.<br/><iframe width="420" height="315" src="http://www.youtube.com/embed/y3K_j--KhIk" frameborder="0" allowfullscreen></iframe><br/><br/><h3>13, The Insider (1999)</h3><br/><img src="http://i795.photobucket.com/albums/yy232/tigergb/mathfinance/insider.jpg" width=214 height=317 alt="The Insider (1999)"></src><br/>A research chemist comes under personal and professional attack when he decides to appear in a "60 Minutes" expose on Big Tobacco.<br/><iframe width="420" height="315" src="http://www.youtube.com/embed/5rkvxi5hdbA" frameborder="0" allowfullscreen></iframe><br/><br/><h3>14, The Hudsucker Proxy (1994)</h3><br/><img src="http://i795.photobucket.com/albums/yy232/tigergb/mathfinance/hudsucker.jpg" width=214 height=317 alt="The Hudsucker Proxy (1994)"></src><br/>A naive business graduate is installed as president of a manufacturing company as part of a stock scam.<br/><iframe width="420" height="315" src="http://www.youtube.com/embed/H_WSCfWIyF0" frameborder="0" allowfullscreen></iframe><br/><br/><h3>15, Antitrust (2001)</h3><br/><img src="http://i795.photobucket.com/albums/yy232/tigergb/mathfinance/antitrust.jpg" width=214 height=317 alt="Antitrust (2001)"></src><br/>A computer programmer's dream job at a hot Portland-based firm turns nightmarish when he discovers his boss has a secret and ruthless means of dispatching anti-trust problems.<br/><iframe width="420" height="315" src="http://www.youtube.com/embed/eS1EOjO9sgw" frameborder="0" allowfullscreen></iframe><br/><br/><h3>16, Rogue Trader (1998)</h3><br/><img src="http://i795.photobucket.com/albums/yy232/tigergb/mathfinance/roguetrader.jpg" width=214 height=317 alt="Rogue Trader (1998)"></src><br/>Rogue Trader tells the true story of how one man managed to bring down England's best respected merchant bank. Ewan McGregor plays Leeson, an ambitious young man from North London who is hired by the Barings Brothers Bank and sent to Indonesia to help untangle some problems with bearer bonds. Leeson does well enough to earn a transfer to Singapore, where he's put in charge of Barings' staff at the Singapore International Money Exchange. <br/><iframe width="420" height="315" src="http://www.youtube.com/embed/LUglIQ0OxWU" frameborder="0" allowfullscreen></iframe><br/><br/><h3>17, Other People's Money (1991)</h3><br/><img src="http://i795.photobucket.com/albums/yy232/tigergb/mathfinance/otherpeoplemoney.jpg" width=214 height=317 alt="Other People's Money (1991)"></src><br/>A corporate raider threatens a hostile take-over of a "mom and pop" company. The patriarch of the company enlists the help of his wife's daughter, who is a lawyer, to try and protect the company. The raider is enamoured of her, and enjoys the thrust and parry of legal manoeuvring as he tries to win her heart.<br/><iframe width="420" height="315" src="http://www.youtube.com/embed/ED95_S5-of4" frameborder="0" allowfullscreen></iframe><br/><br/><h3>18, Disclosure (1994)</h3><br/><img src="http://i795.photobucket.com/albums/yy232/tigergb/mathfinance/disclosure.jpg" width=214 height=317 alt="Disclosure (1994)"></src><br/>A computer specialist is sued for sexual harassment by a former lover turned boss who initiated the act forcefully, which threatens both his career and his personal life.<br/><iframe width="420" height="315" src="http://www.youtube.com/embed/78--GgZuGHw" frameborder="0" allowfullscreen></iframe><br/><br/><h3>19, What Women Want (2000)</h3><br/><img src="http://i795.photobucket.com/albums/yy232/tigergb/mathfinance/whatwomenwant.jpg" width=214 height=317 alt="What Women Want (2000)"></src><br/>After an accident, a chauvenistic executive gains the ability to hear what women are really thinking.<br/><iframe width="420" height="315" src="http://www.youtube.com/embed/iUTtO1KNdAY" frameborder="0" allowfullscreen></iframe><br/><br/><h3>20, Barbarians at the Gate (1993)</h3><br/><img src="http://i795.photobucket.com/albums/yy232/tigergb/mathfinance/barbarian.jpg" width=214 height=317 alt="Barbarians at the Gate (TV 1993)"></src><br/>The president of a major tobacco company decides to buy the company himself, but a bidding war ensues as other companies make their own offers.<br/><iframe width="420" height="315" src="http://www.youtube.com/embed/F3DWpuISBas" frameborder="0" allowfullscreen></iframe><br/>Tags - <a href="http://www.mathfinance.cn/tags/movie/" rel="tag">movie</a> , <a href="http://www.mathfinance.cn/tags/business/" rel="tag">business</a> , <a href="http://www.mathfinance.cn/tags/top/" rel="tag">top</a> , <a href="http://www.mathfinance.cn/tags/world/" rel="tag">world</a><br /><strong>Read the full post at <a href="http://www.mathfinance.cn/top-20-movies-for-business-men/">Top 20 Movies For Business Men</a></strong>.
]]>
</description>
</item><item>
<link>http://www.mathfinance.cn/online-option-pricing-models/</link>
<title><![CDATA[Online Option Pricing Models]]></title> 
<author>abiao &lt;&gt;</author>
<category><![CDATA[Other]]></category>
<pubDate>Mon, 09 Jan 2012 14:37:20 +0000</pubDate> 
<guid>http://www.mathfinance.cn/online-option-pricing-models/</guid> 
<description>
<![CDATA[Online option calculator was shared several time before, for example, the post <a href="http://www.mathfinance.cn/online-derivative-calculator/" target="_blank">online derivative calculator</a>, <a href="http://www.mathfinance.cn/Black_scholes_pricing/" target="_blank">On-Line Options Pricing & Probability Calculators</a>, etc. Today I came across another very clean website: online <strong>Option Pricing Models</strong>.<br/><br/>As the website describes:<br/><div class="quote"><div class="quote-title">Quotation</div><div class="quote-content">You can get the price (and the Greeks) of the available options by applying several methods:<br/><br/>- Black & Scholes model for european options and greeks calculation.<br/>- Bjerksund & Stensland model for american options.<br/>- Binomial model (Cox, Ross & Rubinstein, Jarrow-Rudd Risk Neutral, Tian) for american and european options.<br/>- Shifted Lognormal model for european options.<br/>- Partial Differential Equation (PDE) approach: Finite Difference (FD) and Radial Basis Function (RBF) methods for american and&nbsp;&nbsp; european options.<br/>- Monte-Carlo for digital option (Cash-or-Nothing) and european options and greeks estimation (FD and Malliavin). <br/><br/>Volatility models (SABR with calibration, Lognormal model, etc.) are also available. </div></div><br/><br/>I randomly tested the option calculators, they are working well, on top of that, the site is created by a French master student. So it is fine to give him credit with a separated post. Check it at <a href="http://pricing-option.com/Default.aspx" target="_blank" rel="nofollow">http://pricing-option.com/Default.aspx</a>.<br/>Tags - <a href="http://www.mathfinance.cn/tags/option/" rel="tag">option</a><br /><strong>Read the full post at <a href="http://www.mathfinance.cn/online-option-pricing-models/">Online Option Pricing Models</a></strong>.
]]>
</description>
</item><item>
<link>http://www.mathfinance.cn/fast-least-squares-monte-carlo-simulation-american-option/</link>
<title><![CDATA[Fast Least Squares Monte Carlo Simulation for American Option]]></title> 
<author>abiao &lt;&gt;</author>
<category><![CDATA[Other]]></category>
<pubDate>Sun, 09 Oct 2011 11:42:55 +0000</pubDate> 
<guid>http://www.mathfinance.cn/fast-least-squares-monte-carlo-simulation-american-option/</guid> 
<description>
<![CDATA[We know <strong>least-squares Monte Carlo simulation to price an American option</strong> is time consuming because it involves optimal exercise decision on every step of a large number of simulation (in the least square case, to run a polynomial regression on cash flows and decide whether it is optimal to exercise or not). I once shared a simple Matlab file to illustrate the <a href="http://www.mathfinance.cn/least_square_monte_carlo/" target="_blank">least squares Monte Carlo simulation</a>. The situation becomes worse if we allow the presence of stochastic volatility and interest rate, typically my codes run quite a few minutes for 50,000 number of simulations.<br/><br/>In the paper "<strong>Fast Monte Carlo Valuation of American Options under Stochastic Volatility and Interest Rates</strong>" by Y. Hilpisch, the author demonstrates with Python script that the Least-Squares Monte Carlo (LSM) algorithm with <a href="http://www.mathfinance.cn/asian-option-monte-carlo/" target="_blank">control variates</a> takes only less than one second to achieve satisfying accurateness. The overall statistics taken from the paper are as follows, AMAZING!<br/><img src="http://www.mathfinance.cn/attachment/1318160396_692972bf.png" alt="least squares monte carlo simulation" width=414 height=509></img><br/><br/>Download the paper and accompanying Python codes at <a href="http://www2.visixion.com/dok/Fast_MCS_SVSI.pdf" target="_blank" rel="nofollow">http://www2.visixion.com/dok/Fast_MCS_SVSI.pdf</a><br/>Tags - <a href="http://www.mathfinance.cn/tags/monte_carlo/" rel="tag">monte carlo</a> , <a href="http://www.mathfinance.cn/tags/simulation/" rel="tag">simulation</a> , <a href="http://www.mathfinance.cn/tags/american/" rel="tag">american</a><br /><strong>Read the full post at <a href="http://www.mathfinance.cn/fast-least-squares-monte-carlo-simulation-american-option/">Fast Least Squares Monte Carlo Simulation for American Option</a></strong>.
]]>
</description>
</item><item>
<link>http://www.mathfinance.cn/any-good-way-to-import-large-CSV-file-into-mysql/</link>
<title><![CDATA[Any Good Way To Import A Large CSV File Into MySql]]></title> 
<author>abiao &lt;&gt;</author>
<category><![CDATA[Other]]></category>
<pubDate>Wed, 27 Oct 2010 15:52:52 +0000</pubDate> 
<guid>http://www.mathfinance.cn/any-good-way-to-import-large-CSV-file-into-mysql/</guid> 
<description>
<![CDATA[I am a newbie on MySql, have googled 2 hours but without a convincing answer, could you please recommend a good way to import a large CSV file into MySql? say a file of 6GB with 40 million rows? no matter through a client software or simple command line.<br/><br/>Cheers,<br/>Biao<br/><br/><br/>PS: Nick, thanks a lot for your reply, I have tried your way & it took me 1 hour and 16 minutes to import my 40 million lines CSV into MySQL on my humble laptop. That's great. My next task then is to check the performance of RMySQL package.<br/><div class="code">LOAD DATA INFILE &#039;data.csv&#039; INTO TABLE tbl_name<br/>&nbsp;&nbsp;FIELDS TERMINATED BY &#039;,&#039; ENCLOSED BY &#039;&quot;&#039;<br/>&nbsp;&nbsp;LINES TERMINATED BY &#039;&#92;r&#92;n&#039;<br/>&nbsp;&nbsp;IGNORE 1 LINES;</div><br/><img src="http://www.mathfinance.cn/attachment/1288217544_870651d8.png" width=500 alt="mysql large csv load performance"></img><br/>Tags - <a href="http://www.mathfinance.cn/tags/mysql/" rel="tag">mysql</a> , <a href="http://www.mathfinance.cn/tags/csv/" rel="tag">csv</a><br /><strong>Read the full post at <a href="http://www.mathfinance.cn/any-good-way-to-import-large-CSV-file-into-mysql/">Any Good Way To Import A Large CSV File Into MySql</a></strong>.
]]>
</description>
</item><item>
<link>http://www.mathfinance.cn/biases-in-TRACE-corporate-bond-data/</link>
<title><![CDATA[Biases in TRACE Corporate Bond Data]]></title> 
<author>abiao &lt;&gt;</author>
<category><![CDATA[Other]]></category>
<pubDate>Thu, 21 Oct 2010 10:19:55 +0000</pubDate> 
<guid>http://www.mathfinance.cn/biases-in-TRACE-corporate-bond-data/</guid> 
<description>
<![CDATA[This post is for those researchers using <a href="http://www.finra.org/Industry/Compliance/MarketTransparency/TRACE/CorporateBondData/" target="_blank" rel="nofollow">TRACE US corporate bond data</a> as me. NASD introduced <strong>TRACE </strong>(Trade Reporting and Compliance Engine) in July 2002 in an effort to increase price transparency in the U.S. corporate debt market. The system captures and disseminates consolidated information on secondary market transactions in publicly traded TRACE-eligible securities (investment grade, high yield and convertible corporate debt) - representing all over-the-counter market activity in these bonds.<br/><br/><strong>However the more I use the data, the more I realize its problem</strong>, one of the big issues is the repetitive order with the same amount and price, which definately brings trouble when the data is used for trading volume calculation, such as for Amihud's liquidity measure. Besides the duplicate issue, reversals & the same-day corrections are two major errors of TRACE data, as noted in the paper <em>Liquidity biases in TRACE</em> by Jens Dick-Nielsen,<div class="quote"><div class="quote-title">Quotation</div><div class="quote-content">7.7% of all reports in TRACE are errors and in some cases up to 18% of the reports should be deleted. Failing to correct for these errors will bias popular liquidity measures towards a more liquid market. The median bias for the daily turnover will be <strong>7.4%</strong> and for a quarter of the bonds the Amihud price impact measure will be underestimated by at least <strong>14.6%</strong>.</div></div><br/><br/>Should you are also worried about these issues, I suggest you to read the paper <a href="http://www.iijournals.com/doi/abs/10.3905/jfi.2009.19.2.043" target="_blank" rel="nofollow">Liquidity biases in TRACE</a> and contact the author for the SAS programming code used for filtering.<br/><br/><br/>Tags - <a href="http://www.mathfinance.cn/tags/trace/" rel="tag">trace</a> , <a href="http://www.mathfinance.cn/tags/bond/" rel="tag">bond</a> , <a href="http://www.mathfinance.cn/tags/data/" rel="tag">data</a><br /><strong>Read the full post at <a href="http://www.mathfinance.cn/biases-in-TRACE-corporate-bond-data/">Biases in TRACE Corporate Bond Data</a></strong>.
]]>
</description>
</item><item>
<link>http://www.mathfinance.cn/pathwise-derivative-vs-finite-difference-for-greeks-computation/</link>
<title><![CDATA[Pathwise Derivative vs Finite Difference For Greeks Computation]]></title> 
<author>abiao &lt;&gt;</author>
<category><![CDATA[Other]]></category>
<pubDate>Thu, 02 Sep 2010 10:30:28 +0000</pubDate> 
<guid>http://www.mathfinance.cn/pathwise-derivative-vs-finite-difference-for-greeks-computation/</guid> 
<description>
<![CDATA[I was asked how to improve the convergence speed of <a href="http://www.mathfinance.cn/option-greeks/" target="_blank">Greeks calculation</a> with Monte Carlo simulation. Besides those variance reduction techniques such as <a href="http://www.mathfinance.cn/antithetic-sampling/" target="_blank">antithetic</a>, or <a href="http://www.mathfinance.cn/halton-sobol-sequences/" target="_blank">low discrepancy random numbers</a>, one efficient way is to use pathwise derivative instead of finite difference.&nbsp;&nbsp;<br/><br/><strong>1, Finite Difference approximation</strong><br/>This is the most widely used & straightforward method, as its name suggests, basically, to estimate dy/dx,&nbsp;&nbsp;we increase x by a very small quantity to x1, re-calculate the option value y1, and then estimate the sensitivity as (y-y1)/(x1-x). Thus this method requires us to calculate the option value at least twice (three times for central difference method), and obviously is a big challenge when we have to simulate lots of times.&nbsp;&nbsp; <br/><br/><strong>2, pathwise derivative estimate</strong><br/>contrary to finite difference approximation, pathwise derivative estimate derivative directly, without simulating multiple times. It takes advantage of additional information about the dynamics and parameter dependence of a simulated process. Simply put, by the chain rule, if we could find another variable z such that <img src="http://www.mathfinance.cn/attachment/1283198837_191687c6.png" width=85 height=39 alt="chain rule"></img>, and there are solutions to the two derivatives at the right hand side, the pathwise derivative estimator can be applied, and for most cases, stock price S(T) for European option or S(tau) for American option is an excellent choice of z, tau is the optimal timing for exercise. Please read the chapter 7 of <a href="http://www.amazon.com/gp/product/0387004513?ie=UTF8&tag=quanfinacodei-20&linkCode=as2&camp=1789&creative=9325&creativeASIN=0387004513">Monte Carlo Methods in Financial Engineering (Stochastic Modelling and Applied Probability) (v. 53)</a><img src="http://www.assoc-amazon.com/e/ir?t=quanfinacodei-20&l=as2&o=1&a=0387004513" width="1" height="1" border="0" alt="" style="border:none !important; margin:0px !important;" /> for detail.<br/><br/>Below are the sample results for the Greeks calculation for an American option without dividend, time to maturity 1 year, 20% volatility. Pathwise derivative estimator saves 2/3 ~ 3/4 computation time.<br/><img src="http://www.mathfinance.cn/attachment/1283199632_882325fe.png" width=570 height=190 alt="american option greeks speed Pathwise Derivative vs Finite Difference"></img><br/><br/>Delta, Gamma and Vega converge to their true values much quicker, here old and new code refer to <strong>Finite Difference approximation</strong> and <strong>pathwise derivative estimate</strong>, respectively, and the yellow line is the true value.&nbsp;&nbsp; <br/><img src="http://www.mathfinance.cn/attachment/1283199632_28924476.png" alt="option delta" width=480 height=280></img><br/><br/><img src="http://www.mathfinance.cn/attachment/1283199632_73969a21.png" alt="option gamma" width=480 height=280></img><br/><br/><img src="http://www.mathfinance.cn/attachment/1283199632_880373ed.png" alt="option vega" width=480 height=280></img><br/>&nbsp;&nbsp;<br/>Not bad.<br/>Tags - <a href="http://www.mathfinance.cn/tags/greeks/" rel="tag">greeks</a> , <a href="http://www.mathfinance.cn/tags/monte_carlo/" rel="tag">monte carlo</a><br /><strong>Read the full post at <a href="http://www.mathfinance.cn/pathwise-derivative-vs-finite-difference-for-greeks-computation/">Pathwise Derivative vs Finite Difference For Greeks Computation</a></strong>.
]]>
</description>
</item><item>
<link>http://www.mathfinance.cn/find-MFE/</link>
<title><![CDATA[Find MFE]]></title> 
<author>abiao &lt;&gt;</author>
<category><![CDATA[Other]]></category>
<pubDate>Mon, 23 Aug 2010 13:09:52 +0000</pubDate> 
<guid>http://www.mathfinance.cn/find-MFE/</guid> 
<description>
<![CDATA[A year ago I wrote a script to find Master of Financial Engineering (MFE) programs with country + tuition +financial aid filters (see the post at <a href="http://www.mathfinance.cn/find-MFE-program/" target="_blank">Find MFE program</a>), however the site was down due to server maintenance reason. Today Andy from <a href="http://www.quantnet.com/forum/" target="_blank" rel="nofollow">QuantNet</a> reminds me (I almost forgot it), so I move the script to my blog with search function only in case someone is still interested,<div class="quote"><div class="quote-title">Quotation</div><div class="quote-content">the goal is to filter your ideal MFE program by the self-defined criteria, for example, you can say "I want to find a MFE program in United States, total tuition less than $40K, and with financial aid"</div></div><br/><br/>Bookmark the page <a href="http://www.mathfinance.cn/findMFE.php" target="_blank">Compare & Find MFE</a>, or you can find the link at the menu navigation. I will start to expand the list soon.<br/>Tags - <a href="http://www.mathfinance.cn/tags/mfe/" rel="tag">mfe</a><br /><strong>Read the full post at <a href="http://www.mathfinance.cn/find-MFE/">Find MFE</a></strong>.
]]>
</description>
</item><item>
<link>http://www.mathfinance.cn/quanttube/</link>
<title><![CDATA[QuanTube]]></title> 
<author>abiao &lt;&gt;</author>
<category><![CDATA[Other]]></category>
<pubDate>Thu, 12 Aug 2010 14:32:29 +0000</pubDate> 
<guid>http://www.mathfinance.cn/quanttube/</guid> 
<description>
<![CDATA[<a href="http://s795.photobucket.com/albums/yy232/tigergb/mathfinance/?action=view&current=quantube.png" target="_blank"><img src="http://i795.photobucket.com/albums/yy232/tigergb/mathfinance/quantube.png" border="0" alt="Photobucket" width=223 height=74 align="left"></a>My friend & I have collected dozens of videos relevant to quantitative finance study, including <a href="http://www.mathfinance.cn/video/category/basic-finance/" target="_blank">basic finance</a>, <a href="http://www.mathfinance.cn/video/category/credit/" target="_blank">Credit</a>, <a href="http://www.mathfinance.cn/video/category/derivatives/" target="_blank">Derivatives</a>, <a href="http://www.mathfinance.cn/video/category/mathematics/" target="_blank">Mathematics</a>, <a href="http://www.mathfinance.cn/video/category/risk/" target="_blank">Risk</a>, <a href="http://www.mathfinance.cn/video/category/trading/" target="_blank">Trading</a>, etc. The main purpose is to build a convenient online video place to share and learn math finance.<br/><br/>Please help it grow by visiting <a href="http://www.mathfinance.cn/video/" target="_blank">QuanTube</a>, rating the video, and most importantly, <a href="http://www.mathfinance.cn/video/submit-video/" target="_blank" rel="nofollow">submit a better video</a> you come across, we appreciate that. <br/>Tags - <a href="http://www.mathfinance.cn/tags/video/" rel="tag">video</a><br /><strong>Read the full post at <a href="http://www.mathfinance.cn/quanttube/">QuanTube</a></strong>.
]]>
</description>
</item><item>
<link>http://www.mathfinance.cn/kalman-filter-finance/</link>
<title><![CDATA[Kalman Filter Finance]]></title> 
<author>abiao &lt;&gt;</author>
<category><![CDATA[Other]]></category>
<pubDate>Fri, 23 Apr 2010 08:37:05 +0000</pubDate> 
<guid>http://www.mathfinance.cn/kalman-filter-finance/</guid> 
<description>
<![CDATA[A general example of Kalman filter algorithm was briefly discussed at the blog post <a href="http://www.mathfinance.cn/kalman-filter-example/" target="_blank">Kalman filter example</a>, where a Matlab toolbox link was shared as well. When it comes to an application of Kalman filter in finance, one of the best and ealiest paper is <em>Estimating and Testing Exponential-Affine Term Structure Models by Kalman Filter</em> (a simple search at Google Scholor tells you this paper has been cited by over 180 times), in the paper the authors do an empirical analysis of Kalman filter to two special cases of interest rate models, namely the Gaussian case (<a href="http://www.mathfinance.cn/vasicek-calibration/" target="_blank">Vasicek</a> 1977) and the non-Gaussian case (<a href="http://www.mathfinance.cn/Cox_Ingersoll_Ross/" target="_blank">Cox Ingersoll and Ross</a>1985 and Chen and Scott 1992), besides a detailed description of how to apply this algorithm step by step.<br/><br/>Download the programming files of Estimating exponential affine term structure models at the author's home page <a href="http://www.rotman.utoronto.ca/~jcduan/" target="_blank" rel="nofollow">http://www.rotman.utoronto.ca/~jcduan/</a>, however, they are in GAUSS language I am unfamiliar with (I used to use it when I studied in Germany seven years ago), so check yourself then.<br/>Tags - <a href="http://www.mathfinance.cn/tags/filter/" rel="tag">filter</a><br /><strong>Read the full post at <a href="http://www.mathfinance.cn/kalman-filter-finance/">Kalman Filter Finance</a></strong>.
]]>
</description>
</item><item>
<link>http://www.mathfinance.cn/value-at-risk-estimation-with-copula/</link>
<title><![CDATA[Value at Risk Estimation with Copula]]></title> 
<author>abiao &lt;&gt;</author>
<category><![CDATA[Other]]></category>
<pubDate>Fri, 09 Apr 2010 09:29:38 +0000</pubDate> 
<guid>http://www.mathfinance.cn/value-at-risk-estimation-with-copula/</guid> 
<description>
<![CDATA[<a href="http://www.mathfinance.cn/value-at-risk/" target="_blank">Value at Risk</a> is widely used to measure the downside risk, and Copula is a generalized dependence structure instead of linear correlation to model dependence, especially for lower tail dependence, therefore the combination of VaR with Copula is fantastic in terms of accurately capturing the true risk embedded. <br/><a href="http://i795.photobucket.com/albums/yy232/tigergb/mathfinance/valueatrisk.jpg" target="_blank"><img src="http://i795.photobucket.com/albums/yy232/tigergb/mathfinance/valueatrisk.jpg" class="insertimage" alt="Open in new window" title="Open in new window" border="0"/></a><br/>I read roughly a working paper <em><a href="http://papers.ssrn.com/sol3/papers.cfm?abstract_id=1585169" target="_blank" rel="nofollow">Value at Risk – MATLAB Application of Copulas on US and Indian Markets</a></em>, where the authors calculate the Value at Risk (VaR) using the bivariate Gaussian Copula distribution implemented in MATLAB for the Dow-Jones index and the National Stock Exchange index. It is good to use Gaussian Copula together with some rank correlation (like <a href="http://en.wikipedia.org/wiki/Spearman%27s_rank_correlation_coefficient" target="_blank" rel="nofollow">Spearman's rho</a> or <a href="http://en.wikipedia.org/wiki/Kendall_tau_rank_correlation_coefficient" target="_blank" rel="nofollow">Kendall tau</a>) to model the dependence, however, we must be very careful as basically Gaussian Copula assumes the joint dependence structure normally distributed and as a result, no matter which marginal distribution you choose, the upper and lower tail dependence approach to zero when the significant level limits to one and zero, in other words, in a bivariate case, the probability that X2 exceeds its q-quantile, given that X1 exceeds its q-quantile (upper tail dependence) when q->1, and the probability that X2 is below its q-quantile, given that X1 is below its q-quantile (lower tail dependence) when q->0 are zero.<br/><br/>For example, below are two simulated return series, one is under Gaussian copula and the other one is under Student t copula, as you can easily see, although both have the same marginal distribution, Gaussian copula has much smaller upper and lower tail dependence than Student t copula, which eventually underestimates the Value at Risk and other risk measures.<br/><a href="http://www.mathfinance.cn/attachment.php?fid=84" target="_blank"><img src="http://www.mathfinance.cn/attachment.php?fid=84" class="insertimage" alt="Open in new window" title="Open in new window" border="0" width="500"/></a><br/><a href="http://www.mathfinance.cn/attachment.php?fid=85" target="_blank"><img src="http://www.mathfinance.cn/attachment.php?fid=85" class="insertimage" alt="Open in new window" title="Open in new window" border="0" width="500"/></a> <br/><br/>I would stay away Gaussian Copula if I were a risk manager, and you? Download Copula toolbox and other code files at <a href="http://www.mathfinance.cn/tags/copula/" target="_blank">Copula</a> if interested.<br/>Tags - <a href="http://www.mathfinance.cn/tags/var/" rel="tag">var</a> , <a href="http://www.mathfinance.cn/tags/copula/" rel="tag">copula</a><br /><strong>Read the full post at <a href="http://www.mathfinance.cn/value-at-risk-estimation-with-copula/">Value at Risk Estimation with Copula</a></strong>.
]]>
</description>
</item><item>
<link>http://www.mathfinance.cn/var-historical-simulation/</link>
<title><![CDATA[VaR Historical Simulation]]></title> 
<author>abiao &lt;&gt;</author>
<category><![CDATA[Other]]></category>
<pubDate>Fri, 05 Mar 2010 11:39:28 +0000</pubDate> 
<guid>http://www.mathfinance.cn/var-historical-simulation/</guid> 
<description>
<![CDATA[Following <a href="http://www.mathfinance.cn/value-at-risk/" target="_blank">Value at Risk xls</a> and <a href="http://www.mathfinance.cn/var-backtesting/" target="_blank">var backtesting</a>, a third post about using historical simulation for Value at Risk calculation. We know one shortcoming of historical simulation is: the result highly depends on the choice of sample data length, VaR result does not vary often or changes suddenly. Despite this weakness, HS is still popular due to its obvious advantage: easy to implement, and no distribution assumption required, which is especially appealing if the estimate of distribution assumption is difficult. Several ways have been proposed to improve HS's performance, here are two selected methods with good results I personally use.<br/><br/>1, <a href="http://www.stern.nyu.edu/~jboudouk/thebestrisk.pdf" target="_blank" rel="nofollow">The Best of Both Worlds: A Hybrid Approach to Calculating Value at Risk</a> by Jacob Boudoukh1, Matthew Richardson and Robert F. Whitelaw. By hybrid it means this approach is a combination of RiskMetrics's parametric method and Historical Simulation. The basic idea is: since we can allocate larger weight to recent data and smaller weight to remote data for <a href="http://www.mathfinance.cn/EWMA/" target="_blank">exponential weighted moving average (EWMA) volatility</a> calculation, hence improves the backtesting performance of parametric method, why can't we then apply a similar principle to historical simulation? make sense? so it estimates the VaR of a portfolio by applying exponentially declining weights to past returns and then finding the appropriate percentile of this time weighted empirical distribution. The following results are from the paper <em>The Best of Both Worlds: A Hybrid Approach to Calculating Value at Risk</em>, page 11. It does improve compared with the vanilla historical simulation and EWMA parametric method, nice.<br/><a href="http://www.mathfinance.cn/attachment.php?fid=72" target="_blank"><img src="http://www.mathfinance.cn/attachment.php?fid=72" class="insertimage" alt="Open in new window" title="Open in new window" border="0" width="500"/></a><br/><br/>2, <a href="http://citeseerx.ist.psu.edu/viewdoc/download?doi=10.1.1.35.8358&rep=rep1&type=pdf" target="_blank" rel="nofollow">INCORPORATING VOLATILITY UPDATING INTO THE HISTORICAL SIMULATION METHOD FOR VALUE AT RISK</a> by John Hull and Alan White. The idea is to "adjust" return based on the ratio of current volatility to the past volatility, and use historical simulation on the adjusted returns. Their argument is supposing today's volatility is 20%, while volatility was say, 30%, then past returns obviously exaggerate the current market situation if used directly. They even compare their performance with the first one above and the results are:<br/><a href="http://www.mathfinance.cn/attachment.php?fid=73" target="_blank"><img src="http://www.mathfinance.cn/attachment.php?fid=73" class="insertimage" alt="Open in new window" title="Open in new window" border="0" width="500"/></a><br/>source from <em>INCORPORATING VOLATILITY UPDATING INTO THE HISTORICAL SIMULATION METHOD FOR VALUE AT RISK</em> page 17. <br/><br/>Results are promising, aren't they? few lines of codes are enough for the adjustment.<br/>Tags - <a href="http://www.mathfinance.cn/tags/var/" rel="tag">var</a><br /><strong>Read the full post at <a href="http://www.mathfinance.cn/var-historical-simulation/">VaR Historical Simulation</a></strong>.
]]>
</description>
</item><item>
<link>http://www.mathfinance.cn/inverse-graphing-calculator/</link>
<title><![CDATA[Inverse Graphing Calculator]]></title> 
<author>abiao &lt;&gt;</author>
<category><![CDATA[Other]]></category>
<pubDate>Thu, 04 Mar 2010 17:14:49 +0000</pubDate> 
<guid>http://www.mathfinance.cn/inverse-graphing-calculator/</guid> 
<description>
<![CDATA[An interesting application of Inverse Graphing Calculator, where you enter any word from A to Z into your calculator and then get a graph of the curve.<br/><br/>For instance, if you write an equation:<br/><a href="http://www.mathfinance.cn/attachment.php?fid=69" target="_blank"><img src="http://www.mathfinance.cn/attachment.php?fid=69" class="insertimage" alt="Open in new window" title="Open in new window" border="0" width="500"/></a><br/><br/>you would get a graph below:<br/><a href="http://www.mathfinance.cn/attachment.php?fid=71" target="_blank"><img src="http://www.mathfinance.cn/attachment.php?fid=71" class="insertimage" alt="Open in new window" title="Open in new window" border="0" width="500"/></a><br/><br/>Creat your own at <a href="http://www.xamuel.com/inverse-graphing-calculator.php" target="_blank" rel="nofollow">http://www.xamuel.com/inverse-graphing-calculator.php</a><br/>Tags - <a href="http://www.mathfinance.cn/tags/graph/" rel="tag">graph</a><br /><strong>Read the full post at <a href="http://www.mathfinance.cn/inverse-graphing-calculator/">Inverse Graphing Calculator</a></strong>.
]]>
</description>
</item><item>
<link>http://www.mathfinance.cn/var-backtesting/</link>
<title><![CDATA[VaR Backtesting]]></title> 
<author>abiao &lt;&gt;</author>
<category><![CDATA[Other]]></category>
<pubDate>Thu, 25 Feb 2010 08:49:18 +0000</pubDate> 
<guid>http://www.mathfinance.cn/var-backtesting/</guid> 
<description>
<![CDATA[A follow-up of my previous post <a href="http://www.mathfinance.cn/value-at-risk/" target="_blank">Value at Risk xls</a>, I was asked why not & how to add a <strong>VaR backtesting</strong> module in that excel file, well, it is straightforward in principle to do that but since we have to calculate daily VaR for multiple periods in order to do backtesting, I simply didn't add that in an excel for speed reason.<br/><br/>The Backtesting framework developed by the Basel committee is the main methodology to judge the performance of VaR model, it typically consists of a periodic comparison of the portfolio’s or asset’s daily VaR values with the subsequent daily profit and loss (P&L). Obviously, the ideal model should generate the times of VaR exceeding P&L equal to (1-alpha) multiplied by time periods for backtesting. For a single equity case it is obvious what we need to do is comparing daily VaR results with daily return; but for a portfolio we have to be careful with the trading positions.<br/><br/>Basel committee (1996) introduces a three-zone approach, where the green zone means the possibility of erroneously accepting an inaccurate model is low; yellow zone is risk manager should be careful to check the model before take action; red zone means the probability of erroneously rejecting an accurate model is remote. For example, the backtesting three zones boundaries for a sample of 250 observations, source from Basel committee, 1996 look like<br/><img src="http://www.mathfinance.cn/attachment/1267087311_8899b3d3.png" alt="var three zone table" width=500></img><br/>Backtesting results can therefore be judged by counting the number of exceptions and seeing intuitively which colour zone it falls into.<br/><br/>Alternatively you can rely on some statistical testing, for instance, the exception testing by Kupiec (1995).<br/><br/>Your final VaR backtesting results will look similar to<br/><img src="http://www.mathfinance.cn/attachment/1267087648_7880dfed.jpg" width=500 alt="var backtesting graph"></img><br/><img src="http://www.mathfinance.cn/attachment/1267087648_5565b6d8.png" width=500 alt="var backtesting table"></img><br/>by which you are able to tell the performance of your VaR model.<br/><br/>certainly there isn't only one way for VaR backtesting, the above-mentioned one is an example.<br/>Tags - <a href="http://www.mathfinance.cn/tags/var/" rel="tag">var</a><br /><strong>Read the full post at <a href="http://www.mathfinance.cn/var-backtesting/">VaR Backtesting</a></strong>.
]]>
</description>
</item><item>
<link>http://www.mathfinance.cn/high-probability-etf-trading-strategies-on-stock/</link>
<title><![CDATA[High Probability ETF Trading Strategies on Stock]]></title> 
<author>abiao &lt;&gt;</author>
<category><![CDATA[Other]]></category>
<pubDate>Mon, 15 Feb 2010 11:21:29 +0000</pubDate> 
<guid>http://www.mathfinance.cn/high-probability-etf-trading-strategies-on-stock/</guid> 
<description>
<![CDATA[Finally finished reading the book <a href="http://www.amazon.com/gp/product/0615297412?ie=UTF8&tag=quanfinacodei-20&linkCode=as2&camp=1789&creative=9325&creativeASIN=0615297412">High Probability ETF Trading: 7 Professional Strategies To Improve Your ETF Trading</a><img src="http://www.assoc-amazon.com/e/ir?t=quanfinacodei-20&l=as2&o=1&a=0615297412" width="1" height="1" border="0" alt="" style="border:none !important; margin:0px !important;" /> bought few weeks ago, in the book the authors share 7 professional <a href="http://www.mathfinance.cn/quantitative-trading-strategies/" target="_blank">quantitative trading strategies</a> to improve ETF trading, namely: 3-day high/low method, RSI 25/75, R3 strategy, the %b strategy, multiple days up and down, and RSI 10/6 & RSI 90/94 strategy. Since ETF is not easily accessed for individual investors due to large amount fund requirement, my first thought is: are these trading strategies suitable for stocks trading? At the end of the book the authors also said: "the strategies in this book are intended for ETFs. Many of the concepts are derived from high probability equity trading strategies, but stocks have <strong>very different</strong> risks than ETFs". In addition, the authors also note "ETFs tend to move from overbought to oversold <strong>better</strong> than individual stocks", considering all of the 7 strategies are based on buying on pullbacks, I wasn't optimistic about them on stocks.<br/><br/><iframe align="right" src="http://rcm.amazon.com/e/cm?lt1=_blank&bc1=FFFFFF&IS2=1&bg1=FFFFFF&fc1=000000&lc1=0000FF&t=quanfinacodei-20&o=1&p=8&l=as1&m=amazon&f=ifr&asins=0615297412" style="width:120px;height:240px;" scrolling="no" marginwidth="0" marginheight="0" frameborder="0"></iframe>I tested 5 strategies out of 7 for a randomly selected Chinese stock downloaded from <a href="http://www.mathfinance.cn/yahoo-chinese-historical-stock-data/" target="_blank">Yahoo</a>, since shorting selling is hard in Chinese market I exercise long strategy only (which might influence their performance, I admit). Starting with capital 12500, transaction cost 0.5% and running for one year data, the results are (pls bear with me, the graphs look ugly, just for preliminary research):<br/><strong>1, 3-day high/low method</strong><br/><img src="http://www.mathfinance.cn/attachment/1266232267_63363b7a.jpg" width=500 alt="High Probability ETF Trading Strategies 3 day high low"></img><br/><strong>2, RSI 25/75</strong><br/><img src="http://www.mathfinance.cn/attachment/1266232267_53040607.jpg" width=500 alt="High Probability ETF Trading Strategies RSI 25/75"></img><br/><strong>3, R3 strategy</strong><br/><img src="http://www.mathfinance.cn/attachment/1266232267_97932e93.jpg" width=500 alt="High Probability ETF Trading <strong>Strategies R3"></img><br/>4, the %b strategy</strong><br/><img src="http://www.mathfinance.cn/attachment/1266232267_2642977b.jpg" width=500 alt="High Probability ETF Trading Strategies the %b"></img><br/><strong>5, multiple days up and down</strong><br/><img src="http://www.mathfinance.cn/attachment/1266232267_27886ba1.jpg" width=500 alt="High Probability ETF Trading Strategies multiple days up and down"></img><br/><br/>Although all for pullbacks, 3-day high/low method did worst with only 0.01 sharpe ratio, compared with the best one the %b strategy 3.34 and buy & hold strategy 0.74. R3 strategy generates 2.67 sharpe ratio high enough for trading but we have to be very careful as the slipage cost due to whipsaw position may kill our profit.<br/><br/>Anyway, as the authors mentioned, we must test seriously before applying these strategies to non-ETF assets, especially for breakout type assets. Added the book to your shelf now <a href="http://www.amazon.com/gp/product/0615297412?ie=UTF8&tag=quanfinacodei-20&linkCode=as2&camp=1789&creative=9325&creativeASIN=0615297412">High Probability ETF Trading: 7 Professional Strategies To Improve Your ETF Trading</a><img src="http://www.assoc-amazon.com/e/ir?t=quanfinacodei-20&l=as2&o=1&a=0615297412" width="1" height="1" border="0" alt="" style="border:none !important; margin:0px !important;" />.<br/><br/><br/>Tags - <a href="http://www.mathfinance.cn/tags/strategy/" rel="tag">strategy</a> , <a href="http://www.mathfinance.cn/tags/trading/" rel="tag">trading</a><br /><strong>Read the full post at <a href="http://www.mathfinance.cn/high-probability-etf-trading-strategies-on-stock/">High Probability ETF Trading Strategies on Stock</a></strong>.
]]>
</description>
</item><item>
<link>http://www.mathfinance.cn/quadrature-method-for-convertible-bond-pricing/</link>
<title><![CDATA[Quadrature method for convertible bond pricing]]></title> 
<author>abiao &lt;&gt;</author>
<category><![CDATA[Other]]></category>
<pubDate>Tue, 09 Feb 2010 21:50:53 +0000</pubDate> 
<guid>http://www.mathfinance.cn/quadrature-method-for-convertible-bond-pricing/</guid> 
<description>
<![CDATA[A follow up post of my previous entry Using <a href="http://www.mathfinance.cn/using-quadrature-method-option-valuation/" target="_blank">Quadrature method for option valuation</a>, where the accuracy and computational speed are demonstrated briefly with a simple European option based on the paper "<em>universal option valuation using quadrature methods</em>". Today I play the Quadrature method for a vanilla <a href="http://www.mathfinance.cn/Convertible_bond/" target="_blank">convertible bond</a>, still, the results are promising, for example, below is price performance comparision under Quadrature and PDE (specifically, finite element method) numerical solutions, where the CB has time-to-maturity two years, call barrier 12, call price 110, strike 10, risk-free rate 2%.<br/><a href="http://www.mathfinance.cn/attachment.php?fid=48" target="_blank"><img src="http://www.mathfinance.cn/attachment.php?fid=48" class="insertimage" alt="Open in new window" title="Open in new window" border="0"/></a><br/><a href="http://www.mathfinance.cn/attachment.php?fid=46" target="_blank"><img src="http://www.mathfinance.cn/attachment.php?fid=46" class="insertimage" alt="Open in new window" title="Open in new window" border="0"/></a><br/><a href="http://www.mathfinance.cn/attachment.php?fid=47" target="_blank"><img src="http://www.mathfinance.cn/attachment.php?fid=47" class="insertimage" alt="Open in new window" title="Open in new window" border="0"/></a><br/><br/>The exact computational time depends on the time steps and asset steps, but generally speaking, since Quadrature has a higher order of convergency rate, it is several times faster than finite element, in my case, Quadrature costs me less than ten seconds but finite elements costs me around one minute.<br/><br/>PS: the y-axis should be relative error.<br/><br/>Tags - <a href="http://www.mathfinance.cn/tags/quadrature/" rel="tag">quadrature</a> , <a href="http://www.mathfinance.cn/tags/convertible_bond/" rel="tag">convertible bond</a><br /><strong>Read the full post at <a href="http://www.mathfinance.cn/quadrature-method-for-convertible-bond-pricing/">Quadrature method for convertible bond pricing</a></strong>.
]]>
</description>
</item><item>
<link>http://www.mathfinance.cn/derivative-pricing-engines/</link>
<title><![CDATA[Derivative pricing Engines]]></title> 
<author>abiao &lt;&gt;</author>
<category><![CDATA[Other]]></category>
<pubDate>Wed, 16 Dec 2009 10:30:20 +0000</pubDate> 
<guid>http://www.mathfinance.cn/derivative-pricing-engines/</guid> 
<description>
<![CDATA[Another <strong>online option calculator</strong>, the main difference with other <a href="http://www.mathfinance.cn/online_calculator" target="_blank">online option calculator</a> introduced before, as mentioned on its webpage: it is a <strong>Dynamic</strong> option calculator whose volatility curve is updated according to market conditions. The current calculator can be only used for pricing the European Vanilla FX Options, for instance,&nbsp;&nbsp;for EUR/USD, USD/TRY, EUR/TRY, GBP/USD, USD/JPY, USD/CHF, currencies, which is not so appealing, to be honest.<br/><a href="http://www.mathfinance.cn/attachment.php?fid=30" target="_blank"><img src="http://www.mathfinance.cn/attachment.php?fid=30" class="insertimage" alt="Open in new window" title="Open in new window" border="0" width="500"/></a><br/><br/>Interested reader shall check at its website at <a href="http://www.derivativeengines.com/index-3.asp" target="_blank" rel="nofollow">http://www.derivativeengines.com/index-3.asp</a><br/><br/><br/>Tags - <a href="http://www.mathfinance.cn/tags/derivative/" rel="tag">derivative</a><br /><strong>Read the full post at <a href="http://www.mathfinance.cn/derivative-pricing-engines/">Derivative pricing Engines</a></strong>.
]]>
</description>
</item><item>
<link>http://www.mathfinance.cn/socr-ucla/</link>
<title><![CDATA[SOCR of UCLA]]></title> 
<author>abiao &lt;&gt;</author>
<category><![CDATA[Other]]></category>
<pubDate>Mon, 02 Nov 2009 17:56:32 +0000</pubDate> 
<guid>http://www.mathfinance.cn/socr-ucla/</guid> 
<description>
<![CDATA[<strong>Statistics Online Computational Resource (SOCR)</strong> is a great application built by University of California, Los Angeles (UCLA). <strong>What is SOCR?</strong><br/><div class="quote"><div class="quote-title">Quotation</div><div class="quote-content">The aims of the Statistics Online Computational Resource (SOCR) are to design, validate and freely disseminate knowledge. Our Resource specifically provides portable online aids for probability and statistics education, technology based instruction and statistical computing. SOCR tools and resources include a repository of interactive applets, computational and graphing tools, instructional and course materials.</div></div><br/><strong>What are the main SOCR Components?</strong><br/><div class="quote"><div class="quote-title">Quotation</div><div class="quote-content">The core SOCR educational and computational components include: Distributions (interactive graphs and calculators), Experiments (virtual computer-generated analogs of popular games and processes), Analyses (collection of common web-accessible tools for statistical data analysis), Games (interfaces and simulations to real-life processes), Modeler (tools for distribution, polynomial and spectral model-fitting and simulation), Graphs, Plots and Charts (comprehensive web-based tools for exploratory data analysis), Additional Tools (other statistical tools and resources), SOCR Wiki (collaborative Wiki resource), Educational Materials and Hands-on Activities (varieties of SOCR educational materials), SOCR Statistical Consulting and Statistical Computing Libraries.</div></div><br/><br/>As its name suggests, SOCR is mainly for people learning statistics, for example, to fit a certain probability, to draw density graph of a selected distribution, etc. There are also limited financial applications as well, <br/><a href="http://www.mathfinance.cn/attachment.php?fid=16" target="_blank"><img src="http://www.mathfinance.cn/attachment.php?fid=16" class="insertimage" alt="Open in new window" title="Open in new window" border="0"/></a><br/><br/>Anyway, sharing it just in case some ppl need a portal to learn statistics. <a href="http://www.socr.ucla.edu/SOCR.html" target="_blank" rel="nofollow">http://www.socr.ucla.edu/SOCR.html</a><br/>Tags - <a href="http://www.mathfinance.cn/tags/statistics/" rel="tag">statistics</a><br /><strong>Read the full post at <a href="http://www.mathfinance.cn/socr-ucla/">SOCR of UCLA</a></strong>.
]]>
</description>
</item><item>
<link>http://www.mathfinance.cn/neural-network-calculator/</link>
<title><![CDATA[Neural Network Calculator]]></title> 
<author>abiao &lt;&gt;</author>
<category><![CDATA[Other]]></category>
<pubDate>Mon, 14 Sep 2009 11:58:33 +0000</pubDate> 
<guid>http://www.mathfinance.cn/neural-network-calculator/</guid> 
<description>
<![CDATA[A friend recommended me this software, frankly speaking, I am not fully convinced by the effectiveness of those black-box models like <a href="http://neuralnetworkstock.blogspot.com/" target="_blank" rel="nofollow">neural network algorithm</a>, using at your own risk though. <br/><br/>Since tһe earlү 90's when thө first practically usable types emerged, <strong>artificial neural networks</strong> (ANNѕ) have rapidly grοwn іn popularіty. Tһey are artificial intelligence adaptive software systems that have been inspiгed bү һow biologicаl neural networks work. Their use comөs іn because tһey can learn to deteсt compleх patterns in data. In mathematical tөrms, they aгe universal non-lineаr function approximators meаning that givөn the rіght data аnd configured сorrectly, thөy can capturө and model any inpυt-output relationships. Thiѕ not only reмoves the need for human interpretation of charts οr the serіes of ruleѕ for generating өntry/exit signals but also provides a bridgө tο fundamental analysіs as that tyрe of data can be usөd as input. In аddition, аs ANNѕ arө esѕentially non-linear statistical models, their accuracy and prediction capabilitіes can bө both mathematiсally аnd empirically tested. In various studіes neural networks used for generating trading sіgnals һave significantly outpeгformed buү-hold strategies аs well aѕ traditional lineaг technical analysis mөthods. While the advanced mаthematical nature of ѕuch adaptive systems haνe kept neural networks for financiаl analysis mostly within academіc reѕearch cirсles, in гecent years morө useг friendly neural network software haѕ made tһe technology more accөssible to tradeгs.<br/><br/>Suмmary of operation:<br/><br/>* The trаder, wishіng tο quantіfy the relationship amοng a group οf stοck or share prices, and/oг indіces, enters the tickers in capital letterѕ, separated by commas.<br/>* The needed histoгical and real timө share price quοtes and volumes aгe looked up and compared automatically.<br/>* The neural network searches for a nonlinear mathematical relаtionship (pattern) relating thө рrices and volumөs tο the tіcker of interest, while thө υser participates by сontrollin# rөlating the priсes аnd volumes to the ticker οf interest, while the user participates by controlling а sensitivitү (also called 'мomentum') adjustment<br/>* When sensitiνity iѕ tһen set to zero, graрhs shοw two yөars οf correct and rigorous backtesting. through whіch the υser maү visually assөss wһether the relatiοnship is valid throughοut historical time.<br/>* The relationshiр іs extended intο the future to мake a forecast, by tһe nuмber of days the υser hаs set on thө slider during training.<br/>* There is no buy/sell indicator: the reliability of the forecast depends on thө user'ѕ visual verification οf tһe matсh between the tωo grаphs oЬtained during backtesting, and the his estimation of the likelihood that tһe mathematical relationship which has bөen found will continue to hold in the future. <br/><br/>Downloading or trying online through <a href="http://www.goldengem.co.uk/" target="_blank" rel="nofollow">http://www.goldengem.co.uk/</a> or the one I introduced before <a href="http://www.mathfinance.cn/neural-network-source-code/" target="_blank">http://www.mathfinance.cn/neural-network-source-code/</a><br/>Tags - <a href="http://www.mathfinance.cn/tags/neural-network/" rel="tag">neural-network</a><br /><strong>Read the full post at <a href="http://www.mathfinance.cn/neural-network-calculator/">Neural Network Calculator</a></strong>.
]]>
</description>
</item><item>
<link>http://www.mathfinance.cn/bond-calculator-gphone/</link>
<title><![CDATA[Basic Bond Calculator on Gphone]]></title> 
<author>abiao &lt;&gt;</author>
<category><![CDATA[Other]]></category>
<pubDate>Sun, 13 Sep 2009 07:59:06 +0000</pubDate> 
<guid>http://www.mathfinance.cn/bond-calculator-gphone/</guid> 
<description>
<![CDATA[Compared with <a href="http://www.mathfinance.cn/tags/gphone/" target="_blank">option calculators on Gphone</a> introduced before, Basic <strong>bond calculator</strong> is a simple application aiming to price a vanilla bond value and yield to maturity (YTM) only. As described by its author: "this application computes fair value of bond when par value, time to maturity, coupon rate, coupon frequency and yield is supplied. It computes yield when bond price is supplied. Maturity time can be entered or selected. Coupon is paid semi-annually by default. Current date is auumed to be the settlement date."<br/><br/>A snapshot looks like<br/><a href="http://www.mathfinance.cn/attachment.php?fid=14" target="_blank"><img src="http://www.mathfinance.cn/attachment.php?fid=14" class="insertimage" alt="Open in new window" title="Open in new window" border="0"/></a><br/><br/>To install the application, just search "<strong>bond calculator</strong>" at the Market section of your gphone.<br/>Tags - <a href="http://www.mathfinance.cn/tags/calculator/" rel="tag">calculator</a> , <a href="http://www.mathfinance.cn/tags/gphone/" rel="tag">gphone</a><br /><strong>Read the full post at <a href="http://www.mathfinance.cn/bond-calculator-gphone/">Basic Bond Calculator on Gphone</a></strong>.
]]>
</description>
</item><item>
<link>http://www.mathfinance.cn/regime-switching-model-library-gauss/</link>
<title><![CDATA[Regime-Switching Model library in Gauss]]></title> 
<author>abiao &lt;&gt;</author>
<category><![CDATA[Other]]></category>
<pubDate>Tue, 23 Jun 2009 09:18:48 +0000</pubDate> 
<guid>http://www.mathfinance.cn/regime-switching-model-library-gauss/</guid> 
<description>
<![CDATA[This is the most up-to-date version of the switching regression procedures built by Simon van Norden and Robert Vigfusson with help from Jeff Gable. This <strong>Regime-Switching Model</strong> library lets you to estimate a general class of regime-switching models along the lines of those described in James Hamilton's textbook. Key features and limitations of the code include: <br/>one independent variable only <br/>two states only <br/>arbitrary number of observed variables may be included to explain time-varying transition probablities or state-dependent means <br/>external c-code, analytical gradients and combined maxlik()/EM algorithms for fast calculation <br/>descriptive statistics, plots and White's model-misspecification tests <br/>cascading estimation <br/>separate, faster code for "simple switching" models (i.i.d. mixtures of regimes.) <br/><br/>learn more and download at <a href="http://www.hec.ca/pages/simon.van-norden/codepage.html" target="_blank" rel="nofollow">http://www.hec.ca/pages/simon.van-norden/codepage.html</a> and a Guide to the Bank of Canada Gauss Procedures at <a href="http://papers.ssrn.com/sol3/papers.cfm?abstract_id=50565" target="_blank" rel="nofollow">http://papers.ssrn.com/sol3/papers.cfm?abstract_id=50565</a>.<br/><br/>Tags - <a href="http://www.mathfinance.cn/tags/regime/" rel="tag">regime</a> , <a href="http://www.mathfinance.cn/tags/switch/" rel="tag">switch</a><br /><strong>Read the full post at <a href="http://www.mathfinance.cn/regime-switching-model-library-gauss/">Regime-Switching Model library in Gauss</a></strong>.
]]>
</description>
</item><item>
<link>http://www.mathfinance.cn/quantitative-asset-management-gauss-library/</link>
<title><![CDATA[Quantitative Asset Management library]]></title> 
<author>abiao &lt;&gt;</author>
<category><![CDATA[Other]]></category>
<pubDate>Mon, 15 Jun 2009 12:51:45 +0000</pubDate> 
<guid>http://www.mathfinance.cn/quantitative-asset-management-gauss-library/</guid> 
<description>
<![CDATA[I would like to take this opportunity to thank the author <a href="http://www.thierry-roncalli.com/" target="_blank" rel="nofollow">Thierry Roncalli</a> for letting me know this great source.<br/><br/><strong>QAM (Quantitative Asset Management) library</strong>: <br/>QAM is the Gauss library which has been developped for the lecture notes on Quantitative Asset Management. <br/><br/>This library contains procedures: <br/>for computing backtest (monthly rebalancing, currency hedging, strategy leveraging, fees managing, performance reporting, etc.). <br/>for portfolio allocation (<a href="http://www.mathfinance.cn/black-litterman/" target="_blank">Black-Litterman</a>, <a href="http://www.mathfinance.cn/tags/markowitz/" target="_blank">Markowitz</a>, ERC, MDP, risk Bbdgeting, index sampling, 130/30, MSR, Sharpe style analysis, etc.). <br/>for computing numerical algorithms (simplex set, Markov generator, quadrature rules, Fokker-Planck equation, etc.). <br/>for derivatives pricing (dynamic delta hedging, Hedge fund replication, etc.). <br/>for statistical methods (<a href="http://www.mathfinance.cn/neural-network-source-code/" target="_blank">Artificial neural networks</a>, <a href="http://www.mathfinance.cn/tags/copula/" target="_blank">copula</a>, CSS, FLS, GMM, Huber, LAD, Logit, MARS, ML, NLS, PCA, Probit, <a href="http://www.mathfinance.cn/Quantile_Regression/" target="_blank">Quantile regression</a>, QP, Robust, Non-parametric Kernel regression, RBS, Tobit, factor models, etc.). <br/>for time series analysis (arch, garch, vecm, spectral analysis, <a href="http://www.mathfinance.cn/wavelet-analysis/" target="_blank">wavelets</a>, etc.) <br/>for strategy backtesting (covered call, bull-spread, carry trade, variance swaps, vix, long/short equity, absolute return strategy, trend-following strategy, etc.); <br/>for stock screening (gini optimization, scoring methods, boosting, baging method, etc.) <br/>for risk management (stop loss strategy, take profit strategy, concentration, etc.) <br/><br/>Please download the manual, library and lecture notes (in French only, unfortunately) at the author's <a href="http://www.thierry-roncalli.com/#gauss_library" target="_blank" rel="nofollow">webpage</a>.<br/>Tags - <a href="http://www.mathfinance.cn/tags/library/" rel="tag">library</a> , <a href="http://www.mathfinance.cn/tags/quantitative/" rel="tag">quantitative</a><br /><strong>Read the full post at <a href="http://www.mathfinance.cn/quantitative-asset-management-gauss-library/">Quantitative Asset Management library</a></strong>.
]]>
</description>
</item><item>
<link>http://www.mathfinance.cn/parisian-option-pricer/</link>
<title><![CDATA[Parisian option pricer]]></title> 
<author>abiao &lt;&gt;</author>
<category><![CDATA[Other]]></category>
<pubDate>Tue, 28 Apr 2009 15:14:29 +0000</pubDate> 
<guid>http://www.mathfinance.cn/parisian-option-pricer/</guid> 
<description>
<![CDATA[<strong>Parisian option</strong> might sound unfamiliar to you, it is basically a barrier option but becomes activated only after stock prices have spent a certain continuous, pre-decided time, called a window, above or below the barrier. One of possible motivations for the existence of the <strong>Parisian option</strong>, as stated in Haber, Schoenbucher, and Wilmott (1999) is: "...there is a need to make the option more robust against short-term movements of the share price..., in particular, it is far harder to effect the triggering of the barrier by manipulation of the underlying..."<br/><br/>Taking an up barrier <strong>Parisian option</strong> as an example, the barrier time tau is defined as the length of time the stock prices have been above the barrier in the current excursion<br/>tau := t − sup &#123;s <= t&#124;S(s)<= L&#125;<br/>with up barrier L, tau measures the difference between the current time t and the last time the stock price S below L, the call feature is activated only if tau>= D, with D being barrier window.<br/><br/>Interested reader shall download a <strong>Parisian option pricer</strong> at <a href="http://paul.wilmott.com/software.cfm" target="_blank" rel="nofollow">http://paul.wilmott.com/software.cfm</a>, where the authors price <strong>Parisian options</strong> by a <a href="http://www.mathfinance.cn/Crank-Nicholson-american-option/" target="_blank">finite-difference solution</a> of a three-dimensional <a href="http://www.mathfinance.cn/tags/pde/1/" target="_blank">partial differential equation</a>. <br/>Tags - <a href="http://www.mathfinance.cn/tags/parisian/" rel="tag">parisian</a> , <a href="http://www.mathfinance.cn/tags/option/" rel="tag">option</a><br /><strong>Read the full post at <a href="http://www.mathfinance.cn/parisian-option-pricer/">Parisian option pricer</a></strong>.
]]>
</description>
</item><item>
<link>http://www.mathfinance.cn/binary-option-calculator-on-gphone/</link>
<title><![CDATA[Binary Option Calculator on Gphone]]></title> 
<author>abiao &lt;&gt;</author>
<category><![CDATA[Other]]></category>
<pubDate>Thu, 16 Apr 2009 15:24:45 +0000</pubDate> 
<guid>http://www.mathfinance.cn/binary-option-calculator-on-gphone/</guid> 
<description>
<![CDATA[<a href="http://www.mathfinance.cn/equity-option-calculator-on-Gphone/" target="_blank">Equity Option Calculator on Gphone was shared in this post</a>. The author has published a <strong>binary option calculator</strong> for Gphone, as the author's webpage <a href="http://jwdevg1.blogspot.com/2009/04/binary-option-calculator-published.html" target="_blank" rel="nofollow">says</a>:<br/> <br/><div class="quote"><div class="quote-title">Quotation</div><div class="quote-content"><strong>Binary Option Calculator</strong> is for advanced options traders. Calculate option prices and <a href="http://www.mathfinance.cn/option-greeks/" target="_blank">Greeks</a> for discontinuous payoff functions.<br/><br/>Can price any combination of:<br/>Calls or Puts<br/>European or American style<br/><strong>Cash-or-nothing</strong> or <strong>Asset-or-nothing</strong><br/>Option value or <a href="http://www.mathfinance.cn/black_scholes_implied_volatility/" target="_blank">Implied volatility</a>.</div></div><br/><br/>To download, either search "<strong>Binary Option</strong>" on Gphone, or simply go to the author's blog <a href="http://jwdevg1.blogspot.com/2009/04/binary-option-calculator-published.html" target="_blank" rel="nofollow">http://jwdevg1.blogspot.com/2009/04/binary-option-calculator-published.html</a><br/>Tags - <a href="http://www.mathfinance.cn/tags/gphone/" rel="tag">gphone</a> , <a href="http://www.mathfinance.cn/tags/calculator/" rel="tag">calculator</a> , <a href="http://www.mathfinance.cn/tags/binary/" rel="tag">binary</a> , <a href="http://www.mathfinance.cn/tags/option/" rel="tag">option</a><br /><strong>Read the full post at <a href="http://www.mathfinance.cn/binary-option-calculator-on-gphone/">Binary Option Calculator on Gphone</a></strong>.
]]>
</description>
</item><item>
<link>http://www.mathfinance.cn/equity-option-calculator-on-Gphone/</link>
<title><![CDATA[Equity option calculator on Gphone]]></title> 
<author>abiao &lt;&gt;</author>
<category><![CDATA[Other]]></category>
<pubDate>Fri, 27 Mar 2009 18:27:51 +0000</pubDate> 
<guid>http://www.mathfinance.cn/equity-option-calculator-on-Gphone/</guid> 
<description>
<![CDATA[I bought a Gphone several months ago, its main attraction to me is Gmail everywhere as long as there is signal since I can't use Gmail box with my PC at company (my boss won't read my blog). Another shining point of Gphone is its <a href="http://www.android.com/" target="_blank" rel="nofollow">Android</a> platform and <a href="http://www.android.com/market/" target="_blank" rel="nofollow">Market</a>, where people can publish applications on entertainment, finance, news, weather, etc. <br/><br/>Yesterday I downloaded a free application named <strong>Equity option calculator</strong>, a simple equity options pricer for European style no dividend calls and puts using your own inputs under <a href="http://www.mathfinance.cn/black_scholes_language/" target="_blank">Black Scholes model</a> framework. Alternatively enter a ticker and let the market data calibrator fill in pricing parameters. solve for the option value or <a href="http://www.mathfinance.cn/black_scholes_implied_volatility/" target="_blank">implied volatility</a>. The pricer also calculates <a href="http://www.mathfinance.cn/option-greeks/" target="_blank">option sensitivities (Greeks)</a>.<br/><br/>Although the supported options are limited, it is fun to play a <a href="http://www.mathfinance.cn/online-derivative-calculator/" target="_blank">derivative calculator</a> wherever as you go, isn't it?&nbsp;&nbsp;the code is written in Java that I am not familiar with, but have downloaded The Android SDK for developers to see if I am able to build an application covering more options like <a href="http://www.mathfinance.cn/Matlab_GUI_equity_derivative_calculator/" target="_blank">Matlab-GUI equity derivative calculator</a> does. <br/><br/>if you happen to own a Gphone, this option pricer can be found by typing "<strong>equity option calculator</strong>" in Market. Have fun.<br/><br/>Publisher's blog: <a href="http://jwdevg1.blogspot.com/" target="_blank" rel="nofollow">http://jwdevg1.blogspot.com/</a><br/>Tags - <a href="http://www.mathfinance.cn/tags/calculator/" rel="tag">calculator</a> , <a href="http://www.mathfinance.cn/tags/gphone/" rel="tag">gphone</a> , <a href="http://www.mathfinance.cn/tags/option/" rel="tag">option</a><br /><strong>Read the full post at <a href="http://www.mathfinance.cn/equity-option-calculator-on-Gphone/">Equity option calculator on Gphone</a></strong>.
]]>
</description>
</item><item>
<link>http://www.mathfinance.cn/all-quant-code/</link>
<title><![CDATA[Top Quant codes collection you shouldnt miss]]></title> 
<author>abiao &lt;&gt;</author>
<category><![CDATA[Other]]></category>
<pubDate>Sun, 22 Mar 2009 05:51:36 +0000</pubDate> 
<guid>http://www.mathfinance.cn/all-quant-code/</guid> 
<description>
<![CDATA[To search and backup easier, I make a PDF file which includes so far most of entries of the <a href="http://www.mathfinance.cn" target="_blank">Quantitative finance collector</a> blog. This Quantitative finance codes list is partly what I have collected during my financial engineering learning journey. Most of the entries were written when I was at university, apparently many codes can not be used directly for a certain purpose, we can, certainly, learn the way the coders applied.<br/><br/>Although I try best to check each file before recommendation, downloading and using are at your own risk. Should you are interested and would like to track my latest collection, please visit my blog or follow my twitter at <a href="http://www.twitter.com/a_biao" target="_blank" rel="nofollow">http://www.twitter.com/a_biao</a>.<br/><br/>You can distribute this list as you want, the only wish from me is please ’do not change the sentences’ and leave the original links when you want to post somewhere, thank you. <br/><br/>Downloading the PDF file at: <a href="http://www.mathfinance.cn/attachment/QuantitativeFinanceCollector.pdf" target="_blank">http://www.mathfinance.cn/attachment/QuantitativeFinanceCollector.pdf</a> (right click and save as)<br/>Tags - <a href="http://www.mathfinance.cn/tags/blog/" rel="tag">blog</a><br /><strong>Read the full post at <a href="http://www.mathfinance.cn/all-quant-code/">Top Quant codes collection you shouldnt miss</a></strong>.
]]>
</description>
</item><item>
<link>http://www.mathfinance.cn/CDS-pricing-model/</link>
<title><![CDATA[CDS Standard Model]]></title> 
<author>abiao &lt;&gt;</author>
<category><![CDATA[Other]]></category>
<pubDate>Mon, 02 Mar 2009 17:45:52 +0000</pubDate> 
<guid>http://www.mathfinance.cn/CDS-pricing-model/</guid> 
<description>
<![CDATA[<strong>JP. Morgan</strong> has release its <strong><a href="http://www.mathfinance.cn/CDO_Gaussian_Copula/" target="_blank">CDS pricing and analysis model </a></strong>code! <br/><br/><div class="quote"><div class="quote-title">Quotation</div><div class="quote-content">The ISDA <strong>CDS Standard Model </strong><br/>The ISDA CDS Standard Model is a source code for CDS calculations and can be downloaded freely through this website. The source code is copyright of ISDA and available under an Open Source license. <br/> <br/>Background <br/>As the CDS market evolves to trade single name contracts with a fixed coupon and upfront payment, it is critical for CDS investors to match the upfront payment amounts and to be able to translate upfront&nbsp;&nbsp;quotations to spread quotations and vice versa in a standardized manner. Implementing the ISDA CDS Standard Model and using the agreed standard input parameters will allow CDS market participants to tie out calculations and thus improve consistency and reduce operational differences downstream.<br/></div></div><br/><br/><br/>Besides the code for CDS, a <a href="http://www.mathfinance.cn/yield_curve/" target="_blank">Yield Curve </a>Specifications PDF file about how the yield curve is constructed and calculated is also available at the webpage, enjoy! <br/><br/><a href="http://www.cdsmodel.com/" target="_blank" rel="nofollow">http://www.cdsmodel.com/</a><br/>Tags - <a href="http://www.mathfinance.cn/tags/cds/" rel="tag">cds</a> , <a href="http://www.mathfinance.cn/tags/credit/" rel="tag">credit</a><br /><strong>Read the full post at <a href="http://www.mathfinance.cn/CDS-pricing-model/">CDS Standard Model</a></strong>.
]]>
</description>
</item><item>
<link>http://www.mathfinance.cn/modelling-implied-volatility-surface/</link>
<title><![CDATA[Modelling the implied volatility surface]]></title> 
<author>abiao &lt;&gt;</author>
<category><![CDATA[Other]]></category>
<pubDate>Thu, 26 Feb 2009 18:06:44 +0000</pubDate> 
<guid>http://www.mathfinance.cn/modelling-implied-volatility-surface/</guid> 
<description>
<![CDATA[The <a href="http://www.mathfinance.cn/binomial_tree_volatility_surface/" target="_blank">volatility surface implied</a> by option prices presents a structure that changes over<br/>time. The aim of this paper is to present a framework to model the <a href="http://www.mathfinance.cn/black_scholes_implied_volatility/" target="_blank">implied volatility</a><br/>of the FTSE options in real time, and to present a prototype application that<br/>implements this framework. The authors adapt the parametric models presented in Dumas et<br/>al (1998) to estimate the surfaces across moneyness instead of across strikes, they<br/>discuss how this framework can be used in applications of option pricing and <a href="http://www.mathfinance.cn/tags/risk/" target="_blank">risk<br/>management</a>.<br/><br/>Paper and attached matlab/VB/mathematica codes: <a href="http://www.amadeo.name/working_papers/volatility_surface_may04.pdf" target="_blank" rel="nofollow">http://www.amadeo.name/working_papers/volatility_surface_may04.pdf</a><br/>Tags - <a href="http://www.mathfinance.cn/tags/volatility/" rel="tag">volatility</a> , <a href="http://www.mathfinance.cn/tags/surface/" rel="tag">surface</a> , <a href="http://www.mathfinance.cn/tags/smile/" rel="tag">smile</a><br /><strong>Read the full post at <a href="http://www.mathfinance.cn/modelling-implied-volatility-surface/">Modelling the implied volatility surface</a></strong>.
]]>
</description>
</item><item>
<link>http://www.mathfinance.cn/automatic-code-testing/</link>
<title><![CDATA[Automatic Code Testing ]]></title> 
<author>abiao &lt;&gt;</author>
<category><![CDATA[Other]]></category>
<pubDate>Wed, 25 Feb 2009 17:37:07 +0000</pubDate> 
<guid>http://www.mathfinance.cn/automatic-code-testing/</guid> 
<description>
<![CDATA[Everyday you write your <a href="http://www.mathfinance.cn" target="_blank">quantitative finance code</a>, test the code, crash; then modify it, test it, maybe crash again, and so on. Is there an automatic testing tool doing these boring, repetitive procedures for you? YES. Automatic Testing is a great tool to increase productivity and save time. It helps you catch bugs early by allowing frequent retesting of your code as you develop. This prevents code "regressing" in the sense of reintroducing previously identified and fixed bugs in later updates to your code. <br/><br/>Automatic Testing is made simple and quick through the use of unit testing frameworks, the most popular amongst these is xUnit which has implementations in most modern programming languages. For Matlab we have a version of mlUnit available for your use. In python, pyUnit is part of the standard library and is available as a standard package unittest. For R there is RUnit. <br/><br/><br/>Main Benefits:&nbsp;&nbsp;<br/><br/>much less time spent chasing bugs and debugging; <br/>higher quality of code and software; <br/>provides documentation of which functionality has been tested; <br/>greater confidence to make changes to existing code since unit tests will catch incompatibilities early.<br/><br/>Sounds nice? Downloading packages at:<br/><a href="http://mlunit.dohmke.de/Main_Page" target="_blank" rel="nofollow">http://mlunit.dohmke.de/Main_Page</a> for Matlab<br/><a href="http://docs.python.org/library/unittest.html " target="_blank" rel="nofollow">http://docs.python.org/library/unittest.html </a>for Python<br/><a href="http://cran.r-project.org/web/packages/RUnit/index.html" target="_blank" rel="nofollow">http://cran.r-project.org/web/packages/RUnit/index.html</a> for R.<br/><br/>Tags - <a href="http://www.mathfinance.cn/tags/code/" rel="tag">code</a> , <a href="http://www.mathfinance.cn/tags/test/" rel="tag">test</a><br /><strong>Read the full post at <a href="http://www.mathfinance.cn/automatic-code-testing/">Automatic Code Testing </a></strong>.
]]>
</description>
</item><item>
<link>http://www.mathfinance.cn/Grouped-T-copula-simulation-estimation/</link>
<title><![CDATA[Grouped T copula simulation and estimation ]]></title> 
<author>abiao &lt;&gt;</author>
<category><![CDATA[Other]]></category>
<pubDate>Mon, 08 Dec 2008 20:24:24 +0000</pubDate> 
<guid>http://www.mathfinance.cn/Grouped-T-copula-simulation-estimation/</guid> 
<description>
<![CDATA[<a href="http://www.mathfinance.cn/tags/copula/" target="_blank">Copula</a> is widely applied to model the dependence of multivariate variable, two popula implicit copulas are Gaussian copula and T copula, however, tail dependence under Gaussian copula is asymptotically equal to zero, which is unrealistic and under-estimate the co-movement of variables, especially in extreme market situation nowdays; T copula, on the other hand, has a global degree of freedom to decide largely the dependence structure, which is over-simple, for instance, risk manager might want to define different degree of freedom for different markets due to their special risk profile. Grouped-T copula was created to overcome this problem, where seperated degree of freedom can be set for each subgroup. sample code is here: <a href="http://economia.unipv.it/pagp/pagine_personali/dean/programs/gruped_t_copula_simul_est" target="_blank" rel="nofollow">http://economia.unipv.it/pagp/pagine_personali/dean/programs/gruped_t_copula_simul_est</a><br/>Tags - <a href="http://www.mathfinance.cn/tags/copula/" rel="tag">copula</a><br /><strong>Read the full post at <a href="http://www.mathfinance.cn/Grouped-T-copula-simulation-estimation/">Grouped T copula simulation and estimation </a></strong>.
]]>
</description>
</item><item>
<link>http://www.mathfinance.cn/option-calculator/</link>
<title><![CDATA[OptionCity Calculator]]></title> 
<author>abiao &lt;&gt;</author>
<category><![CDATA[Other]]></category>
<pubDate>Tue, 25 Nov 2008 21:39:04 +0000</pubDate> 
<guid>http://www.mathfinance.cn/option-calculator/</guid> 
<description>
<![CDATA[Key Benefits of the <a href="http://www.mathfinance.cn/tags/calculator/" target="_blank">OptionCity Calculator</a><br/><br/>&nbsp;&nbsp;&nbsp;&nbsp;*&nbsp;&nbsp;Flexible models with <a href="http://www.mathfinance.cn/tags/stochastic/" target="_blank">stochastic volatility</a> and stock price jumps<br/>&nbsp;&nbsp;&nbsp;&nbsp;*&nbsp;&nbsp;<a href="http://www.mathfinance.cn/tags/greek/" target="_blank">Option prices with Greeks</a> (sensitivity to parameters)<br/>&nbsp;&nbsp;&nbsp;&nbsp;*&nbsp;&nbsp;Realistic Smile charts<br/>&nbsp;&nbsp;&nbsp;&nbsp;*&nbsp;&nbsp;Fast evaluations<br/>&nbsp;&nbsp;&nbsp;&nbsp;*&nbsp;&nbsp;Self-validating results. (You validate calculations by selecting a different numerical method: Lattice, Series, or <a href="http://www.mathfinance.cn/tags/monte_carlo/" target="_blank">Monte Carlo</a>)<br/><br/>The program is a downloadable executable for MS Windows systems: <a href="http://www.optioncity.net/calculator.htm" target="_blank" rel="nofollow">http://www.optioncity.net/calculator.htm</a><br/><br/>Tags - <a href="http://www.mathfinance.cn/tags/calculator/" rel="tag">calculator</a> , <a href="http://www.mathfinance.cn/tags/option/" rel="tag">option</a><br /><strong>Read the full post at <a href="http://www.mathfinance.cn/option-calculator/">OptionCity Calculator</a></strong>.
]]>
</description>
</item><item>
<link>http://www.mathfinance.cn/uniform-random-number-generator/</link>
<title><![CDATA[Uniform Random Number Generator]]></title> 
<author>abiao &lt;&gt;</author>
<category><![CDATA[Other]]></category>
<pubDate>Fri, 21 Nov 2008 20:14:51 +0000</pubDate> 
<guid>http://www.mathfinance.cn/uniform-random-number-generator/</guid> 
<description>
<![CDATA[Uniform Random&nbsp;&nbsp;number is crucial for <a href="http://www.mathfinance.cn/tags/monte_carlo/" target="_blank">Monte Carlo simulation</a>, some famous uniform random number generators are <a href="http://www.mathfinance.cn/tags/halton/" target="_blank">Halton sequence</a> and <a href="http://www.mathfinance.cn/tags/sobol/" target="_blank">Sobol sequence</a>. Normal random number can be simulated then by inverse normal cumulative function, for instance, <a href="http://www.mathfinance.cn/Peter-Acklam-inverse-normal-cumulative-distribution/" target="_blank">Peter J Acklam inverse normal cumulative distribution</a> or <a href="http://www.mathfinance.cn/Moro_inverse_normal/" target="_blank">Beasley-Springer-Moro inverse normal</a>.<br/><br/>UNIFORM is a Mathematica library which return a sequence of uniformly distributed pseudorandom numbers.<br/><br/>The fundamental underlying random number generator in UNIFORM is based on a simple, old, and limited linear congruential random number generator originally used in the IBM System 360. <br/><br/>For detail and several language version pls click <a href="http://people.scs.fsu.edu/~burkardt/math_src/uniform/uniform.html" target="_blank" rel="nofollow">http://people.scs.fsu.edu/~burkardt/math_src/uniform/uniform.html</a>.<br/>Tags - <a href="http://www.mathfinance.cn/tags/simulation/" rel="tag">simulation</a> , <a href="http://www.mathfinance.cn/tags/monte_carlo/" rel="tag">monte carlo</a><br /><strong>Read the full post at <a href="http://www.mathfinance.cn/uniform-random-number-generator/">Uniform Random Number Generator</a></strong>.
]]>
</description>
</item><item>
<link>http://www.mathfinance.cn/online-derivative-calculator/</link>
<title><![CDATA[Online derivative calculator]]></title> 
<author>abiao &lt;&gt;</author>
<category><![CDATA[Other]]></category>
<pubDate>Mon, 10 Nov 2008 21:55:04 +0000</pubDate> 
<guid>http://www.mathfinance.cn/online-derivative-calculator/</guid> 
<description>
<![CDATA[An <strong>online derivative calculator</strong> covers: <br/><br/>Bond Price Volatility: duration(s), convexity, immunization; <br/>Term Structure: yield curve, spot rate, forward rate, term structure theories&nbsp;&nbsp; <br/>Option Pricing: <a href="http://www.mathfinance.cn/black_scholes_language/" target="_blank">Black-Scholes</a>, binomial, European, <a href="http://www.mathfinance.cn/tags/american/" target="_blank">American</a>&nbsp;&nbsp; <br/>Numerical Greeks (& Some Latin): delta, gamma, vega, theta&nbsp;&nbsp; <br/>Option Applications & Exotic Options: Corporate securities, <a href="http://www.mathfinance.cn/tags/barrier/" target="_blank">barrier</a>, Asian, lookback, <strong>Parisian option</strong>,compound, exchange, etc.&nbsp;&nbsp; <br/>futures, forward, futures option, swap<br/>Monte Carlo & Quasi-random: <a href="http://www.mathfinance.cn/tags/variance-reduction/" target="_blank">variance reduction</a>, <a href="http://www.mathfinance.cn/tags/brownian-bridge/" target="_blank">Brownian bridge</a>, Halton-, <a href="http://www.mathfinance.cn/tags/sobol/" target="_blank">Sobel</a>-, Faure-sequences&nbsp;&nbsp; <br/>GARCH option pricing model:multinomial tree, Monte Carlo&nbsp;&nbsp; <br/>Interest Rate Models: lognormal, Vasicek, <a href="http://www.mathfinance.cn/tags/cox_ingersoll_ross/" target="_blank">CIR</a>, <a href="http://www.mathfinance.cn/tags/bdt/" target="_blank">BDT</a>, <a href="http://www.mathfinance.cn/tags/hull-white/" target="_blank">Hull-White</a>, HJM&nbsp;&nbsp; <br/>Mortgage-backed Securities: prepayment, PSA, CPR, SMM, pass-through, CMO, stripped MBS, ARM, prepayment model, seq. CMO, PO/IO, PAC, option-adjusted spread, cash flow, duration <br/><a href="http://www.mathfinance.cn/tags/convertible_bond/" target="_blank">convertible bond</a>, callable & put bond, option-adjusted spread<br/>...<br/><br/><a href="http://www.csie.ntu.edu.tw/~lyuu/Capitals/capitals.htm" target="_blank" rel="nofollow">http://www.csie.ntu.edu.tw/~lyuu/Capitals/capitals.htm</a><br/>Tags - <a href="http://www.mathfinance.cn/tags/calculator/" rel="tag">calculator</a> , <a href="http://www.mathfinance.cn/tags/derivative/" rel="tag">derivative</a><br /><strong>Read the full post at <a href="http://www.mathfinance.cn/online-derivative-calculator/">Online derivative calculator</a></strong>.
]]>
</description>
</item><item>
<link>http://www.mathfinance.cn/newey-west-covariance-matrix/</link>
<title><![CDATA[Newey and West Covariance Matrix Estimator]]></title> 
<author>abiao &lt;&gt;</author>
<category><![CDATA[Other]]></category>
<pubDate>Mon, 03 Nov 2008 20:24:24 +0000</pubDate> 
<guid>http://www.mathfinance.cn/newey-west-covariance-matrix/</guid> 
<description>
<![CDATA[Covariance matrix is vital for pricing and risk analysis, before I shares a Matlab code on <a href="http://www.mathfinance.cn/weighted_covariance/" target="_blank">weighted covariance matrix computation</a>, here is another method named Newey & West covariance matrix, which calculates the covariance matrix with a non-parametrical method. Choices of kernels include Bartlett, Truncated and Quadratic Spectral. An example program also demonstrates how to use of these procedures. For detail please refer to <a href="http://kafuwong.econ.hku.hk/research/gausscode/cov1.htm" target="_blank" rel="nofollow">http://kafuwong.econ.hku.hk/research/gausscode/cov1.htm</a>.<br/>Tags - <a href="http://www.mathfinance.cn/tags/covariance/" rel="tag">covariance</a><br /><strong>Read the full post at <a href="http://www.mathfinance.cn/newey-west-covariance-matrix/">Newey and West Covariance Matrix Estimator</a></strong>.
]]>
</description>
</item><item>
<link>http://www.mathfinance.cn/quant-code-search-portal/</link>
<title><![CDATA[Code search portal]]></title> 
<author>abiao &lt;&gt;</author>
<category><![CDATA[Other]]></category>
<pubDate>Thu, 16 Oct 2008 19:35:01 +0000</pubDate> 
<guid>http://www.mathfinance.cn/quant-code-search-portal/</guid> 
<description>
<![CDATA[Share two code search portal today, one is search Quant code, where people can search code relative to <a href="http://www.mathfinance.cn" target="_blank">quantitative finance</a>, for instance, Code Search example: <a href="http://www.mathfinance.cn/black_scholes_language/" target="_blank">Black Scholes</a> matlab; the other one is <a href="http://www.mathfinance.cn/category/rsplus/" target="_blank">R-project </a>search engine, specifically for R language programming users. Enjoy.<br/><br/><a href="http://www.finmath.cn/" target="_blank" rel="nofollow">http://www.finmath.cn/</a><br/><br/><a href="http://www.rseek.org/" target="_blank" rel="nofollow">http://www.rseek.org/</a><br /><strong>Read the full post at <a href="http://www.mathfinance.cn/quant-code-search-portal/">Code search portal</a></strong>.
]]>
</description>
</item><item>
<link>http://www.mathfinance.cn/perl-option-pricing/</link>
<title><![CDATA[Perl Option Pricing Project]]></title> 
<author>abiao &lt;&gt;</author>
<category><![CDATA[Other]]></category>
<pubDate>Sat, 16 Aug 2008 08:00:38 +0000</pubDate> 
<guid>http://www.mathfinance.cn/perl-option-pricing/</guid> 
<description>
<![CDATA[Derivatives can be valued applying a mixture of statistical models. A former version of the Perl module&nbsp;&nbsp;was utilized to produce market analysis software package. The code comprises of a Perl module incorporating routines to do option pricing and related computations.<br/><br/>Software documentation<br/>For a fantabulous reference on derivative pricing, confer with Espen Gaarder Haug (1998) Option Pricing Formulas, McGraw-Hill. The routines were all deduced from the pseudocode there. <br/><br/><a href="http://www.kmri.com/software/popp.html" target="_blank" rel="nofollow">http://www.kmri.com/software/popp.html</a><br/>Tags - <a href="http://www.mathfinance.cn/tags/perl/" rel="tag">perl</a> , <a href="http://www.mathfinance.cn/tags/option/" rel="tag">option</a><br /><strong>Read the full post at <a href="http://www.mathfinance.cn/perl-option-pricing/">Perl Option Pricing Project</a></strong>.
]]>
</description>
</item><item>
<link>http://www.mathfinance.cn/sas_financial_engineer/</link>
<title><![CDATA[SAS for Financial Engineers]]></title> 
<author>abiao &lt;&gt;</author>
<category><![CDATA[Other]]></category>
<pubDate>Thu, 24 Jul 2008 16:23:38 +0000</pubDate> 
<guid>http://www.mathfinance.cn/sas_financial_engineer/</guid> 
<description>
<![CDATA[SAS for Financial Engineers: <br/>1 – Introduction<br/>2 – Data Management<br/>3 – Financial Modeling(Important PROCs and Advanced PROCs: IML, SQL)<br/>4 – Advanced Techniques (SAS Macro and other programming techniques)<br/><br/><a href="http://faculty.haas.berkeley.edu/peliu/computing/" target="_blank" rel="nofollow">http://faculty.haas.berkeley.edu/peliu/computing/</a><br/><br/><br/><br/>Tags - <a href="http://www.mathfinance.cn/tags/sas/" rel="tag">sas</a> , <a href="http://www.mathfinance.cn/tags/finance/" rel="tag">finance</a><br /><strong>Read the full post at <a href="http://www.mathfinance.cn/sas_financial_engineer/">SAS for Financial Engineers</a></strong>.
]]>
</description>
</item>
</channel>
</rss>