<?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/implied-binomial-tree/</link>
<title><![CDATA[Implied Binomial Tree]]></title> 
<author>abiao &lt;&gt;</author>
<category><![CDATA[VBA/Excel]]></category>
<pubDate>Wed, 06 Apr 2011 21:44:58 +0000</pubDate> 
<guid>http://www.mathfinance.cn/implied-binomial-tree/</guid> 
<description>
<![CDATA[<a href="http://www.mathfinance.cn/black_scholes_language/" target="_blank">Black Scholes model</a> assumes stock price follows GBM with constant volatility, however, the market implied volatilities of stock options often show "the volatility smile", which decreases with the strike level, and increases with the time to maturity. There are various proposed extensions of this GBM model to account for "the volatility smile". One approach is the <strong>implied binomial tree</strong> technique proposed by Rubinstein (1994), in which the author assumes the stock prices are generated by a modified random walk where the underlying assets volatility depends on both stock price and time, therefore it is an modification of basic <a href="http://www.mathfinance.cn/nine-ways-implement-binomial-tree-option-pricing/" target="_blank">Binomial tree</a> method. <br/><br/><strong>Implied binomial tree</strong> uses the observable market option prices in order to estimate the implied distribution, to construct such a tree, optimization routine generally applies and technically it is more difficult than a basic <a href="http://www.mathfinance.cn/nine-ways-implement-binomial-tree-option-pricing/" target="_blank">Binomial tree</a>. Here is a good paper implementing the implied binomial tree using an Excel spreadsheet without VBA. It demonstrates both the optimization needed to generate implied ending risk-neutral probabilities from a set of actual option prices and the backwards recursion needed to solve for the entire implied tree. <br/><br/>Download the paper and accompanying excel file at <a href="http://www.kelleyschool.com/papers.html" target="_blank" rel="nofollow">http://www.kelleyschool.com/papers.html</a>.<br/>Tags - <a href="http://www.mathfinance.cn/tags/binomial/" rel="tag">binomial</a> , <a href="http://www.mathfinance.cn/tags/excel/" rel="tag">excel</a><br /><strong>Read the full post at <a href="http://www.mathfinance.cn/implied-binomial-tree/">Implied Binomial Tree</a></strong>.
]]>
</description>
</item><item>
<link>http://www.mathfinance.cn/excel-for-volatility-calculation/</link>
<title><![CDATA[Excel for Volatility Calculation]]></title> 
<author>abiao &lt;&gt;</author>
<category><![CDATA[VBA/Excel]]></category>
<pubDate>Sun, 03 Apr 2011 09:37:45 +0000</pubDate> 
<guid>http://www.mathfinance.cn/excel-for-volatility-calculation/</guid> 
<description>
<![CDATA[Another excel / VBA source for volatility calculation, including option based volatility such as <a href="http://www.mathfinance.cn/black_scholes_implied_volatility/" target="_blank">implied volatility of Black Scholes model</a>, <a href="http://www.mathfinance.cn/modelling-implied-volatility-surface/" target="_blank">volatility surface</a> construction, Heston parameters estimation from option prices, etc; and a list of time series volatility calculation, for example, ARCH, ARIMA, EGARCH, <a href="http://www.mathfinance.cn/EWMA/" target="_blank">EWMA</a>, <a href="http://www.mathfinance.cn/garch/" target="_blank">GARCH</a>, GJR...<br/><br/>One thing you should be aware is some of the files involve a call to <a href="http://www.nag.co.uk/numeric/nagandexcel.asp" target="_blank" rel="nofollow">NAG library</a>, one of the major benefits of the NAG Library is its inherent flexibility, it can be used by programmers developing in traditional languages, or by users of modern software packages and programming environments, like Microsoft Excel. Both of my former company and my current university have NAG library installed, so download & read more at your choice at <a href="http://php.portals.mbs.ac.uk/SerHuangPoon/Teaching/DataandProgrammes/tabid/973/Default.aspx" target="_blank" rel="nofollow">http://php.portals.mbs.ac.uk/SerHuangPoon/Teaching/DataandProgrammes/tabid/973/Default.aspx</a> and <a href="http://www.nag.co.uk/numeric/nagandexcel.asp" target="_blank" rel="nofollow">http://www.nag.co.uk/numeric/nagandexcel.asp</a><br/>Tags - <a href="http://www.mathfinance.cn/tags/excel/" rel="tag">excel</a> , <a href="http://www.mathfinance.cn/tags/volatility/" rel="tag">volatility</a><br /><strong>Read the full post at <a href="http://www.mathfinance.cn/excel-for-volatility-calculation/">Excel for Volatility Calculation</a></strong>.
]]>
</description>
</item><item>
<link>http://www.mathfinance.cn/vba-finance/</link>
<title><![CDATA[VBA Finance]]></title> 
<author>abiao &lt;&gt;</author>
<category><![CDATA[VBA/Excel]]></category>
<pubDate>Thu, 31 Mar 2011 10:00:18 +0000</pubDate> 
<guid>http://www.mathfinance.cn/vba-finance/</guid> 
<description>
<![CDATA[Visual Basic in finance application has been introduced many times in this blog, one especially useful book was reviewed in an old post <a href="http://www.mathfinance.cn/option-pricing-models-volatility-using-excel-VBA/" target="_blank">Option Pricing Models and Volatility Using Excel-VBA</a>. Here is another <strong>VBA finance</strong> site perhaps of your interest. As the site describes:<br/><div class="quote"><div class="quote-title">Quotation</div><div class="quote-content">The purpose of this site is to provide financial professionals with VBA code snippets and complete projects that can be useful in their work and development. <br/>Our portfolio includes examples of:<br/>&nbsp;&nbsp;&nbsp;&nbsp;* Data Extraction from different sources like Bloomberg and Reuters, internet sites like Yahoo and CBOE and financial systems like Murex<br/>&nbsp;&nbsp;&nbsp;&nbsp;* Incorporating email capabilities with the VBA code which can be very useful when distributing reports on a frequent basis<br/>&nbsp;&nbsp;&nbsp;&nbsp;* User defined functions and general topics like Add-ins, User Forms, utilizing the memory effectively, working with databases, etc ...<br/>&nbsp;&nbsp;&nbsp;&nbsp;* VBA overview, syntax, keywords, classes<br/>&nbsp;&nbsp;&nbsp;&nbsp;* Some useful Windows API functions and how to employ them<br/>&nbsp;&nbsp;&nbsp;&nbsp;* Complete projects utilizing some of the examples above </div></div><br/><br/>at the moment the number of VBA codes is only a few, some useful files include:<br/>Swaps Tool:&nbsp;&nbsp;Comprehensive tool to manage equity swap resets and set up new deal templates <br/>Dividend Points: Retrieves Index Weights and Dividends Data from Bloomberg and Calculates Index Dividend Points<br/>CA Tool: Dividends and Corporate Actions notification tool<br/>Volatility: Building Volatilty Surface and using the SABR model for calibration<br/>Trading Tool: Simple tool to set buy/sell targets and track prices and dividends <br/><br/>Visit <a href="http://www.vbafin.com/index.php" target="_blank" rel="nofollow">the site</a> if you are looking for <strong>VBA finance</strong> codes.<br/>Tags - <a href="http://www.mathfinance.cn/tags/vba/" rel="tag">vba</a> , <a href="http://www.mathfinance.cn/tags/excel/" rel="tag">excel</a><br /><strong>Read the full post at <a href="http://www.mathfinance.cn/vba-finance/">VBA Finance</a></strong>.
]]>
</description>
</item><item>
<link>http://www.mathfinance.cn/download-multiple-stock-quotes-from-yahoo-finance/</link>
<title><![CDATA[Download Multiple Stock Quotes From Yahoo Finance]]></title> 
<author>abiao &lt;&gt;</author>
<category><![CDATA[VBA/Excel]]></category>
<pubDate>Wed, 15 Sep 2010 10:20:24 +0000</pubDate> 
<guid>http://www.mathfinance.cn/download-multiple-stock-quotes-from-yahoo-finance/</guid> 
<description>
<![CDATA[AAN left comments yesterday at the post <a href="http://www.mathfinance.cn/download-historical-stock-price" target="_blank">Download historical stock price</a> saying the methods I shared are either only for a single stock historical prices, such as <a href="http://www.mathfinance.cn/yahoo-chinese-historical-stock-data/" target="_blank">Yahoo chinese historical stock data</a>, or for multiple stocks quotes of the latest trading day, like <a href="http://www.mathfinance.cn/excellent-yahoo-finance-data-downloader/" target="_blank">Excellent Yahoo Finance Data Downloader</a>, however, what he (and many others I guess) wants is an Excel to <strong>download multiple stocks historical quotes</strong> from Yahoo finance, fair enough.<br/><br/>Although I don't recommend to do this in Excel as it becomes messy with more and more stocks added, I attach a sample excel with Macro for <strong>multiple stocks quotes downloading</strong>. <br/><strong>PS</strong>: the main part of the macro is from <a href="http://www.mrexcel.com/forum/showthread.php?t=66516&page=2" target="_blank" rel="nofollow">http://www.mrexcel.com/forum/showthread.php?t=66516&page=2</a>, what I did was modifying the code, allowing users to re-load data, which isn't permitted and returns an error in the original code.<br/><br/>Steps:<br/><strong>1</strong>, download the attached excel, open it and enable data connections if your excel warns you for security reason;<br/><strong>2</strong>, fill in the stocks symbols, start & end date you need in the sheet "Input", <br/><img src="http://www.mathfinance.cn/attachment/1284545288_2963a421.png" alt="yahoo finance download table" width=241 height=85></img><br/><strong>3</strong>, go to macros -> view macro -> select the macro "Get_Yahoo_finance" -> run. Historical stocks prices, volumes will be downloaded from Yahoo Finance with each stock in one seperate sheet;<br/><strong>4</strong>, should you need to re-load the data, or add more symbols, always re-do step 2.<br/><br/><a href="attachment.php?fid=129">Click to download</a><br/>BTW: you are welcomed to download free real time stock quotes <a href="http://www.mathfinance.cn/free-download-data.html" target="_blank" rel="nofollow">ADVFN</a>.<br/><br/><br/>Tags - <a href="http://www.mathfinance.cn/tags/data/" rel="tag">data</a> , <a href="http://www.mathfinance.cn/tags/yahoo/" rel="tag">yahoo</a><br /><strong>Read the full post at <a href="http://www.mathfinance.cn/download-multiple-stock-quotes-from-yahoo-finance/">Download Multiple Stock Quotes From Yahoo Finance</a></strong>.
]]>
</description>
</item><item>
<link>http://www.mathfinance.cn/option-pricing-models-volatility-using-excel-VBA/</link>
<title><![CDATA[Option Pricing Models and Volatility Using Excel-VBA]]></title> 
<author>abiao &lt;&gt;</author>
<category><![CDATA[VBA/Excel]]></category>
<pubDate>Fri, 27 Aug 2010 09:53:17 +0000</pubDate> 
<guid>http://www.mathfinance.cn/option-pricing-models-volatility-using-excel-VBA/</guid> 
<description>
<![CDATA[VBA week...<br/><a href="http://www.amazon.com/gp/product/0471794643?ie=UTF8&tag=quanfinacodei-20&linkCode=as2&camp=1789&creative=9325&creativeASIN=0471794643" target="_blank"><img src="http://www.mathfinance.cn/images/51vDViRzoxL_SL160_.jpg" border="0" alt="Option Pricing Models and Volatility Using Excel-VBA" width=129 height=160 align=left></a><strong>Option Pricing Models and Volatility Using Excel-VBA</strong> is the best book I have read this year, recommended by a friend of mine couple of days ago. I didn't look positive at it at the beginning as there are dozes of books on similar topics and to be honest, I never heard of the author (now I know he works in industry). However, the more pages I dig, the less willing to stop & happier I feel as the author explains the volatility staff relevant to option pricing SOOOOO well and in plain language. More importantly, there are accompanying VBA codes for almost every example, if that's no enough, the author provides VBA solutions to the exercise as well, which encourage the readers to practice & make our hands dirty, unlike many other books do.<br/><br/>The book starts with complex number, how to write macro code for it; followed by selected root-finding algorithms, and weighted least square regression; then introduces numerical integration, tree-building, black scholes, Heston model, GARCH, implied volatility, parameter estimation, etc. Preview is worth a thousand words, check yourself below:<br/><iframe frameborder="0" scrolling="no" style="border:0px" src="http://books.google.com/books?id=tOethW9fYtwC&lpg=PP1&dq=Option%20Pricing%20Models%20and%20Volatility%20Using%20Excel-VBA&pg=PP1&output=embed" width=500 height=500></iframe><br/><br/>I am sure you will get excited & learn as much as I do, <strong>strongly recommend</strong> to add it to your bookshelf <a href="http://www.amazon.com/gp/product/0471794643?ie=UTF8&tag=quanfinacodei-20&linkCode=as2&camp=1789&creative=9325&creativeASIN=0471794643">Option Pricing Models and Volatility Using Excel-VBA</a><img src="http://www.assoc-amazon.com/e/ir?t=quanfinacodei-20&l=as2&o=1&a=0471794643" width="1" height="1" border="0" alt="" style="border:none !important; margin:0px !important;" /><br/>Tags - <a href="http://www.mathfinance.cn/tags/option/" rel="tag">option</a> , <a href="http://www.mathfinance.cn/tags/excel/" rel="tag">excel</a> , <a href="http://www.mathfinance.cn/tags/volatility/" rel="tag">volatility</a><br /><strong>Read the full post at <a href="http://www.mathfinance.cn/option-pricing-models-volatility-using-excel-VBA/">Option Pricing Models and Volatility Using Excel-VBA</a></strong>.
]]>
</description>
</item><item>
<link>http://www.mathfinance.cn/numerical-recipes-in-VB/</link>
<title><![CDATA[Numerical Recipes in VB]]></title> 
<author>abiao &lt;&gt;</author>
<category><![CDATA[VBA/Excel]]></category>
<pubDate>Wed, 25 Aug 2010 11:37:43 +0000</pubDate> 
<guid>http://www.mathfinance.cn/numerical-recipes-in-VB/</guid> 
<description>
<![CDATA[Followup of my last post <a href="http://www.mathfinance.cn/excel-VBA-finance/" target="_blank">Excel VBA Finance</a>. Mike left a comment & shared another great source <strong>Numerical Recipes in VB</strong>.<br/><br/>A summary of this recipes:<br/><div class="quote"><div class="quote-title">Quotation</div><div class="quote-content">The following VB libraries are very useful for numerical computing, mathematical modeling and customized financial algorithm development. All the functions were designed to make computations on arrays (i.e., vectors or matrices) simply and quickly. I have shared comprehensive and robust optimization routines that enable calibration of financial models. <br/><br/>Mathematical Algorithms<br/>Math Codes<br/>Standard Modules: 126<br/>Function Procedures: 1029<br/>Total Lines of Code: 44725<br/>Math Project Details<br/><br/>Horror Matrices and Other Mathematical Poetry<br/><br/>Quantitative Financial Algorithms<br/>Quant Codes<br/>Standard Modules: 56<br/>Function Procedures: 269<br/>Total Lines of Code: 15671<br/>Quant Project Details</div></div><br/><br/>Too many functions to be introduced in one post, so feel free to check yourself at <a href="http://www.rnfc.org/ivey/" target="_blank" rel="nofollow">http://www.rnfc.org/ivey/</a><br/>Tags - <a href="http://www.mathfinance.cn/tags/excel/" rel="tag">excel</a> , <a href="http://www.mathfinance.cn/tags/vba/" rel="tag">vba</a><br /><strong>Read the full post at <a href="http://www.mathfinance.cn/numerical-recipes-in-VB/">Numerical Recipes in VB</a></strong>.
]]>
</description>
</item><item>
<link>http://www.mathfinance.cn/excel-VBA-finance/</link>
<title><![CDATA[Excel VBA Finance]]></title> 
<author>abiao &lt;&gt;</author>
<category><![CDATA[VBA/Excel]]></category>
<pubDate>Fri, 20 Aug 2010 20:08:28 +0000</pubDate> 
<guid>http://www.mathfinance.cn/excel-VBA-finance/</guid> 
<description>
<![CDATA[Came across an old site <strong>Excel VBA finance application</strong>: <a href="http://www.vbnum.com/" target="_blank" rel="nofollow">http://www.vbnum.com/</a>, as the mainpage explains,<div class="quote"><div class="quote-title">Quotation</div><div class="quote-content">Download well written EXCEL VBA code, for finance and mathematical applications. This site is designed for practitioners, researchers, and students as a tool for programming in EXCEL VBA. Users of this site can search for commonly used finance or math code, post their own code and participate in the VB Numerical Methods discussion Forum.</div></div><br/><br/>For instance, <a href="http://www.vbnum.com/finance/" target="_blank" rel="nofollow"><strong>Finance VBA</strong></a> section includes <a href="http://www.mathfinance.cn/garch/" target="_blank">GARCH</a>, <a href="http://www.mathfinance.cn/black_scholes_language/" target="_blank">black scholes</a>, <a href="http://www.mathfinance.cn/nine-ways-implement-binomial-tree-option-pricing/" target="_blank">Binomial tree option pricing</a>, implied volatility, several other exotic option pricing, etc.<br/><br/>and <a href="http://www.vbnum.com/math/" target="_blank" rel="nofollow">Math VBA</a> has random number simulation, regression, different interpolation methods...<br/><br/>Check it out yourself.<br/>Tags - <a href="http://www.mathfinance.cn/tags/vba/" rel="tag">vba</a> , <a href="http://www.mathfinance.cn/tags/excel/" rel="tag">excel</a><br /><strong>Read the full post at <a href="http://www.mathfinance.cn/excel-VBA-finance/">Excel VBA Finance</a></strong>.
]]>
</description>
</item><item>
<link>http://www.mathfinance.cn/excellent-free-csv-splitter/</link>
<title><![CDATA[Excellent Free CSV Splitter]]></title> 
<author>abiao &lt;&gt;</author>
<category><![CDATA[VBA/Excel]]></category>
<pubDate>Fri, 06 Aug 2010 16:19:33 +0000</pubDate> 
<guid>http://www.mathfinance.cn/excellent-free-csv-splitter/</guid> 
<description>
<![CDATA[Share an excellent free CSV splitter I found recently, as my csv file is too large to be openned in <a href="http://www.mathfinance.cn/category/matlab/" target="_blank">Matlab</a> & <a href="http://www.mathfinance.cn/category/rsplus/" target="_blank">R</a>, I have to split the csv into several smaller files. As far as I have tried, Matlab & R warn "short of memory" for reading csv file larger than 10,000,000 number of rows (it may be varied across computers), while my tick-by-tick corporate bond data has nearly 30,000,000 number of rows.<br/><br/>This CSV splitter allows you to split your large file into several smaller files either by number of lines or by max pieces,<br/><a href="http://i795.photobucket.com/albums/yy232/tigergb/mathfinance/csvsplitter.jpg" target="_blank"><img src="http://i795.photobucket.com/albums/yy232/tigergb/mathfinance/csvsplitter.jpg" class="insertimage" alt="Open in new window" title="Open in new window" border="0" width="500"/></a><br/><br/>The amazing point of it is the smaller files keep the original header of the big csv file, very cool. Download the free csv splitter <a href="http://www.fxfisherman.com/downloads/csv-splitter-1.1.zip" target="_blank" rel="nofollow">here</a>.<br/>Tags - <a href="http://www.mathfinance.cn/tags/csv/" rel="tag">csv</a> , <a href="http://www.mathfinance.cn/tags/tool/" rel="tag">tool</a><br /><strong>Read the full post at <a href="http://www.mathfinance.cn/excellent-free-csv-splitter/">Excellent Free CSV Splitter</a></strong>.
]]>
</description>
</item><item>
<link>http://www.mathfinance.cn/isin-cusip-conversion/</link>
<title><![CDATA[Isin Cusip Conversion]]></title> 
<author>abiao &lt;&gt;</author>
<category><![CDATA[VBA/Excel]]></category>
<pubDate>Thu, 05 Aug 2010 21:38:11 +0000</pubDate> 
<guid>http://www.mathfinance.cn/isin-cusip-conversion/</guid> 
<description>
<![CDATA[<strong>Long time no blog</strong>. Just to let you know I am still alive, busy with my own PhD research, collecting & cleaning data, programming, making my hands dirty...<br/><br/>Data massaging is not fun, what makes us more upset is different data providers have their own data format, name, code, etc., matching the data from several sources is not so easy, for example, <a href="https://wrds-web.wharton.upenn.edu/wrds/" target="_blank" rel="nofollow">WRDS</a> includes <a href="http://en.wikipedia.org/wiki/Cusip" target="_blank" rel="nofollow">CUSIP</a> code while Datastream provides <a href="http://en.wikipedia.org/wiki/International_Securities_Identification_Number" target="_blank" rel="nofollow">ISIN</a>. I didn't understand why they do business like that but now I get it, similar as those cell phone manufacturers have distinct chargers and plug-in, not because it's hard to standardize, but a way to impose customers to use always their own products.<br/><br/>Anyway, you can <strong>convert ISIN code to CUSIP</strong> easily once you understand the rule, ISIN is a 12-digit number while CUSIP is a 9-digit one (at least the case for US corporate bond), so what you need to do is to first strip off the first 2 characters representing country code and then remove the last digit which is a check digit for catching error. <br/><br/>Suppose your ISIN code is in cell A1, <strong>ISIN CUSIP conversion</strong> can be done easily in Excel as "=left(right(A1, 10), 9)", for instance, ISIN US885797AB65 equals CUSIP 885797AB6.<br/><br/>As always, I have been looking for <a href="http://www.mathfinance.cn/post-your-article-on-this-blog/" target="_blank">guest writers</a>. <br/>Tags - <a href="http://www.mathfinance.cn/tags/isin/" rel="tag">isin</a> , <a href="http://www.mathfinance.cn/tags/cusip/" rel="tag">cusip</a><br /><strong>Read the full post at <a href="http://www.mathfinance.cn/isin-cusip-conversion/">Isin Cusip Conversion</a></strong>.
]]>
</description>
</item><item>
<link>http://www.mathfinance.cn/excellent-yahoo-finance-data-downloader/</link>
<title><![CDATA[Excellent Yahoo Finance Data Downloader]]></title> 
<author>abiao &lt;&gt;</author>
<category><![CDATA[VBA/Excel]]></category>
<pubDate>Mon, 21 Jun 2010 09:28:23 +0000</pubDate> 
<guid>http://www.mathfinance.cn/excellent-yahoo-finance-data-downloader/</guid> 
<description>
<![CDATA[Although I have shared several ways to download data from Yahoo Finance, for instance, <a href="http://www.mathfinance.cn/yahoo-chinese-historical-stock-data/" target="_blank">Yahoo chinese historical stock data</a>, <a href="http://www.mathfinance.cn/Yahoo_option_price/" target="_blank">download option price data from Yahoo</a>, I have to admit the one I recommend today is the best and most comprehensive ever. It supports dozens of tags to download, besides what we normally need for closing price, volumn, daily high, and daily low, including (click the graph to see a clearer picture):<br/><a href="http://i795.photobucket.com/albums/yy232/tigergb/mathfinance/yahoofinancetag.gif" target="_blank"><img src="http://i795.photobucket.com/albums/yy232/tigergb/mathfinance/yahoofinancetag.gif" class="insertimage" alt="Open in new window" title="Open in new window" border="0" width="500"/></a><br/><br/>Massive, isn't it? download the csv file and also a file for option data at <a href="http://www.gummy-stuff.org/Yahoo-data.htm" target="_blank" rel="nofollow">http://www.gummy-stuff.org/Yahoo-data.htm</a><br/>Tags - <a href="http://www.mathfinance.cn/tags/data/" rel="tag">data</a> , <a href="http://www.mathfinance.cn/tags/yahoo/" rel="tag">yahoo</a><br /><strong>Read the full post at <a href="http://www.mathfinance.cn/excellent-yahoo-finance-data-downloader/">Excellent Yahoo Finance Data Downloader</a></strong>.
]]>
</description>
</item><item>
<link>http://www.mathfinance.cn/kalman-filter-example/</link>
<title><![CDATA[Kalman Filter Example]]></title> 
<author>abiao &lt;&gt;</author>
<category><![CDATA[VBA/Excel]]></category>
<pubDate>Thu, 15 Apr 2010 16:25:12 +0000</pubDate> 
<guid>http://www.mathfinance.cn/kalman-filter-example/</guid> 
<description>
<![CDATA[The kalman filter is a time series estimation algorithm that is mainly used combined with <a href="http://www.mathfinance.cn/maximum-likelihood-estimation/" target="_blank">maximum likelihood approach</a> to estimate parameters for given data. Compared with pure maximum likelihood, which typically assumes that the data series is observed without errors, and obtains the state variables by inversion, Kalman filter assumes that all data is observed with measurement errors, which is one of the big reasons why it becomes more and more popular in economics and finance, as many models in these fields depend on data that are either non-observable, for example, bond prices are observable but interest rates are not; energy future prices are easily observed but underlying assets are not, etc.; or subject to noise, such as due to bid-ask spreads.<br/><a href="http://i795.photobucket.com/albums/yy232/tigergb/mathfinance/kalmanfilter-1.jpg" target="_blank"><img src="http://i795.photobucket.com/albums/yy232/tigergb/mathfinance/kalmanfilter-1.jpg" class="insertimage" alt="Open in new window" title="Open in new window" border="0" width="200"/></a><br/>There are two basic equations of a Kalman filter: the measurement equation and the transition equation, as the names suggest, the measurement equation relates an unobserved variable (such as interest rates) to an observable variable (such as bond prices), and the transition equation allows the unobserved variable to change over time, for example, interest rates follow a <a href="http://www.mathfinance.cn/Cox_Ingersoll_Ross/" target="_blank">Cox Ingersoll Ross (CIR) process</a>. Essentially Kalman filter is a recursive algorithm, it starts with initial values for the state variables and a measure of the certainty of the guess, and then use these initial values to predict the value of the measurement equation, since the variables in the measurement equation are observed, we can calculate the prediction error, together with a kalman gain factor, to update the values in the transition equation, repeat the process for the next time period and finally we are able to estimate the parameters values by maximum likelihood. The following steps outline the specific procedures of a <strong>kalman filter example</strong>:<br/><br/><div class="code">Step 1: writing down the measurement equation and transition equation, initializing the state vector;<br/>Step 2: forecasting the measurement equation given the initial values;<br/>Step 3: updating the inference about the state vector incorporating kalman gain matrix and the prediction error;<br/>Step 4: forecasting the state vector of the next time period conditioning on the updated values of the previous period;<br/>Step 5: calculating the log-likelihood function under a certain distribution assumption and maximize the log-likelihood, usually a Gaussian distribution is applied.</div><br/><br/>For a detailed Kalman filter example in excel, please read the paper "<a href="http://papers.ssrn.com/sol3/papers.cfm?abstract_id=715301" target="_blank" rel="nofollow">A simplified approach to understanding the kalman filter technique</a>" for detail, I also wrote a sample tutorial file trying to mimic the results but failed, possible reasons are poor performance of solver in excel and the small simulated sample periods. Interested readers can choose to download a <a href="http://www.mathfinance.cn/Kalman_filter/" target="_blank">Kalman filter toolbox for Matlab</a>.<br/><a href="attachment.php?fid=86">Click to download</a><br/><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-example/">Kalman Filter Example</a></strong>.
]]>
</description>
</item><item>
<link>http://www.mathfinance.cn/financial-analytics-risk-management-tools/</link>
<title><![CDATA[Financial Analytics  Risk Management Tools]]></title> 
<author>abiao &lt;&gt;</author>
<category><![CDATA[VBA/Excel]]></category>
<pubDate>Tue, 23 Feb 2010 18:04:15 +0000</pubDate> 
<guid>http://www.mathfinance.cn/financial-analytics-risk-management-tools/</guid> 
<description>
<![CDATA[Found a site providing financial analytics & risk management tools, FinCalc, as introduced by its webmaster: "FinCalc provides you with the tools to build advanced financial functions under Excel.&nbsp;&nbsp; ...FinCalc covers bonds, money market, futures, options and interest rate derivatives."<br/><br/>Key points are:<br/>Calendar with business holidays for the major financial centers.<br/>Bond analytics: yield to maturity, duration, accrued interest; valuation functions and sensitivity measures; bond cash flows; forward price and repo rate.<br/>Derivatives: valuation functions and sensitivity measures european and <a href="http://www.mathfinance.cn/tags/american/" target="_blank">american options</a>; exotic options.<br/>Discount curve construction based on money market rates,short term futures and swap rates. <br/>Interest rates derivatives: valuation and sensitivity for swaps,<a href="http://www.mathfinance.cn/swaption-valuation/" target="_blank">swaptions</a>, caps & floors.<br/>Credit derivatives: valuation and sensitivity for <a href="http://www.mathfinance.cn/CDS-pricing-model/" target="_blank">CDS</a>.<br/>Portfolio analytics: volatility, expected return, tracking error, value at risk, portfolio optimization on an absolute basis or relative to a benchmark.<br/>User friendliness: meaningful function and parameter names; user's manual, numerous examples and applications.<br/>Excel add-in and examples to download.<br/><br/>For example, after downloading FinCalc.xla, opening it and other files saved in a same directory, a user is able to use the following modules:<br/><a href="http://www.mathfinance.cn/attachment.php?fid=58" target="_blank"><img src="http://www.mathfinance.cn/attachment.php?fid=58" class="insertimage" alt="Open in new window" title="Open in new window" border="0"/></a><br/><br/>The author protects the macro code with password, unfortunately. Check <a href="http://homepage.hispeed.ch/FinCalc/Index.htm" target="_blank" rel="nofollow">http://homepage.hispeed.ch/FinCalc/Index.htm</a> if interested.<br/>Tags - <a href="http://www.mathfinance.cn/tags/risk/" rel="tag">risk</a> , <a href="http://www.mathfinance.cn/tags/excel/" rel="tag">excel</a><br /><strong>Read the full post at <a href="http://www.mathfinance.cn/financial-analytics-risk-management-tools/">Financial Analytics  Risk Management Tools</a></strong>.
]]>
</description>
</item><item>
<link>http://www.mathfinance.cn/value-at-risk/</link>
<title><![CDATA[Value at Risk xls]]></title> 
<author>abiao &lt;&gt;</author>
<category><![CDATA[VBA/Excel]]></category>
<pubDate>Fri, 19 Feb 2010 18:04:07 +0000</pubDate> 
<guid>http://www.mathfinance.cn/value-at-risk/</guid> 
<description>
<![CDATA[A blog reader wrote me an email few weeks ago regarding if it is possible to share an excel for <strong>Value at Risk xls calculation</strong>, I didn't notice that email until recently, sorry for that. So this afternoon I created a naive excel xls file with VBA macro code available. <br/><br/>Before checking the excel, few sentences explaining <strong>Value at Risk calculation</strong> are necessary: Value at Risk (VaR) is the maximum loss not exceeded with a given confidence level 0<alpha<1 over a given period of time tau. Formally, VaR is given by the largest number r such that the return x smaller than r is no larger than (1 − alpha), obviously, VaR is thus simply a quantile of the return distribution, the following graph illustrates the notion of VaR, where the vertical line is at the value of 95% VaR.<br/><a href="http://www.mathfinance.cn/attachment/1266601673_311818a2.jpg" target="_blank"><img src="http://www.mathfinance.cn/attachment/1266601673_311818a2.jpg" class="insertimage" alt="Open in new window" title="Open in new window" border="0" width="561" height="420"/></a><br/><br/>Given confidence level and horizon day, the crucial point for quantile estimation is to find a suitable distribution of underlying risk factors, once distribution is known, VaR and ES can be easily calculated by the definition. Mina and Xiao (2001) explains in detail three popular methods to compute VaR: parametric approach (the simplest one is delta-normal), Monte Carlo simulation (MC) and Historical simulation (HS). I am not going to talk in detail how to calculate them as interested reader can refer to the paper or the book by John Hull, a short comparison of the above-mentioned three approaches are listed below,<br/>• HS<br/>– easy to implement, no distribution assumption;<br/>– highly depends on the choice of sample data length, VaR result does not vary often or changes suddenly.<br/>• MC<br/>– flexible, almost suitable for any distribution;<br/>– assumption of risk factors return required, time consuming.<br/>• Parametric<br/>– easy to implement, not hard to understand;<br/>– assumption of risk factors return required, too simple assumption or too exotic to implement.<br/><br/><iframe align="left" src="http://rcm.amazon.com/e/cm?t=quanfinacodei-20&o=1&p=8&l=as1&asins=0071464956&fc1=000000&IS2=1&lt1=_blank&m=amazon&lc1=0000FF&bc1=000000&bg1=FFFFFF&f=ifr" style="width:120px;height:240px;" scrolling="no" marginwidth="0" marginheight="0" frameborder="0"></iframe>Attached is the <strong>ValueatRisk.xls</strong> file, where for simplicity, I treat volatility as normal standard deviation, Value at Risk is computed by delta-normal, monte carlo simulation and historical simultion for <strong>any single equity</strong>, you have to make sure internet is accessible for <a href="http://www.mathfinance.cn/download-historical-stock-price/" target="_blank">downloading data from Yahoo</a>. Please keep in mind this file is created for illustration only, use at your own risk.<br/><br/>To use it, you need to fill in several parameters including:<br/><a href="http://www.mathfinance.cn/attachment.php?fid=55" target="_blank"><img src="http://www.mathfinance.cn/attachment.php?fid=55" class="insertimage" alt="Open in new window" title="Open in new window" border="0"/></a><br/>where you can change stock symbol "IBM" to any stock you want, as long as its trading prices are available at Yahoo finance. <br/><br/>Please let me know any error, cheers.<br/>Excel:<br/><a href="attachment.php?fid=110">Click to download</a><br/>Macro Code:<br/><a href="attachment.php?fid=111">Click to download</a><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/value-at-risk/">Value at Risk xls</a></strong>.
]]>
</description>
</item><item>
<link>http://www.mathfinance.cn/SIMTOOLS-FORMLIST-excel-add-ins/</link>
<title><![CDATA[SIMTOOLS and FORMLIST Excel add-ins]]></title> 
<author>abiao &lt;&gt;</author>
<category><![CDATA[VBA/Excel]]></category>
<pubDate>Wed, 27 May 2009 16:22:01 +0000</pubDate> 
<guid>http://www.mathfinance.cn/SIMTOOLS-FORMLIST-excel-add-ins/</guid> 
<description>
<![CDATA[Simtools.xla and Formlist.xla are add-ins for Microsoft Excel (version 5 and later). Simtools adds statistical functions and procedures for doing <a href="http://www.mathfinance.cn/tags/monte_carlo/" target="_blank">Monte Carlo simulation</a> and risk analysis in spreadsheets. Formlist is a simple auditing tool that adds procedures for displaying the formulas of any selected range.<br/><br/>Selected features include:<br/><a href="http://www.mathfinance.cn/Moro_inverse_normal/" target="_blank">Inverse cumulative-probability functions</a>;<br/>Functions for working with correlations among random variables;<br/>Functions for decision analysis;<br/>Functions for analyzing discrete probability distributions;<br/>Functions for regression analysis;<br/>Functions for randomly generating discrete distributions;<br/><br/>Download Simtools.xla and Formlist.xla add-ins and instructions at <a href="http://home.uchicago.edu/~rmyerson/addins.htm" target="_blank" rel="nofollow">http://home.uchicago.edu/~rmyerson/addins.htm</a><br/>Tags - <a href="http://www.mathfinance.cn/tags/excel/" rel="tag">excel</a><br /><strong>Read the full post at <a href="http://www.mathfinance.cn/SIMTOOLS-FORMLIST-excel-add-ins/">SIMTOOLS and FORMLIST Excel add-ins</a></strong>.
]]>
</description>
</item><item>
<link>http://www.mathfinance.cn/creditmetrics-spreadsheet/</link>
<title><![CDATA[CreditMetrics spreadsheet]]></title> 
<author>abiao &lt;&gt;</author>
<category><![CDATA[VBA/Excel]]></category>
<pubDate>Thu, 21 May 2009 19:23:34 +0000</pubDate> 
<guid>http://www.mathfinance.cn/creditmetrics-spreadsheet/</guid> 
<description>
<![CDATA[<strong>CreditMetrics</strong> is a framework for measuring credit risk of portfolios of traditional credit investments (for example, loans, commitments to lend, financial letters of credit), fixed income products, and market-driven instruments subject to counterparty default (swaps, forwards, etc.).<br/><br/>It is a lot more complex than RiskMetrics, and thus requires a deliberate inspection. Actually, within the <strong>CreditMetrics</strong> framework, users are confronted with a mixture of choices. For instance, <strong>CreditMetrics</strong> grants users to follow one of four different approaches to calculating correlation among several credit types-historical data, bond spreads, equity correlations or consistent constants.<br/><br/><a href="http://pachome2.pacific.net.sg/~coolwind/software.htm" target="_blank" rel="nofollow">Here</a> is an Excel 7.0 spreadsheet demonstrating how to use <strong>CreditMetrics</strong> to compute credit risk of a portfolio, technical document is free to download at <a href="http://www.ma.hw.ac.uk/~mcneil/F79CR/CMTD1.pdf" target="_blank" rel="nofollow">http://www.ma.hw.ac.uk/~mcneil/F79CR/CMTD1.pdf</a>. Functions for calculating the <strong>CreditMetrics risk model</strong> in R are at: <a href="http://cran.r-project.org/web/packages/CreditMetrics/index.html" target="_blank" rel="nofollow">http://cran.r-project.org/web/packages/CreditMetrics/index.html</a><br/>Tags - <a href="http://www.mathfinance.cn/tags/creditmetrics/" rel="tag">creditmetrics</a> , <a href="http://www.mathfinance.cn/tags/spreadsheet/" rel="tag">spreadsheet</a><br /><strong>Read the full post at <a href="http://www.mathfinance.cn/creditmetrics-spreadsheet/">CreditMetrics spreadsheet</a></strong>.
]]>
</description>
</item><item>
<link>http://www.mathfinance.cn/free-financial-spreadsheets/</link>
<title><![CDATA[Free Financial Spreadsheets]]></title> 
<author>abiao &lt;&gt;</author>
<category><![CDATA[VBA/Excel]]></category>
<pubDate>Mon, 11 May 2009 15:50:09 +0000</pubDate> 
<guid>http://www.mathfinance.cn/free-financial-spreadsheets/</guid> 
<description>
<![CDATA[Long ago I shared a <a href="http://www.mathfinance.cn/Financial_model_library/" target="_blank">Financial Model Excel Spreadsheets Library by Thomas Ho</a>, here is another long list of <strong>free financial excel spreadsheets</strong> for financial planning and analysis, although most of them are for corporate finance practitioners in my view, there are some samples which might be of your interest, for example:<br/><br/>Risk Premium - Calculates the implied risk premium in a market.<br/>NPV & IRR&nbsp;&nbsp;- Explains Internal Rate of Return, compares projects, etc.<br/><a href="http://www.mathfinance.cn/black_scholes_language/" target="_blank">Black Scholes Option Pricing </a> - Excel add on for the pricing of options. <br/>Forex&nbsp;&nbsp;- Foreign market exchange simulation for Excel <br/>Breakeven Analysis&nbsp;&nbsp;- Pricing and breakeven analysis for optimal pricing <br/>Option Trading Workbook - Educational toolkit for using Excel for Options <br/>EVA Model - Template worksheets for calculating Economic Value Added (EVA)<br/>...<br/><br/>Download at <a href="http://www.exinfm.com/free_spreadsheets.html" target="_blank" rel="nofollow">http://www.exinfm.com/free_spreadsheets.html</a><br/>Tags - <a href="http://www.mathfinance.cn/tags/excel/" rel="tag">excel</a><br /><strong>Read the full post at <a href="http://www.mathfinance.cn/free-financial-spreadsheets/">Free Financial Spreadsheets</a></strong>.
]]>
</description>
</item><item>
<link>http://www.mathfinance.cn/stress-test-analysis/</link>
<title><![CDATA[Stress test analysis]]></title> 
<author>abiao &lt;&gt;</author>
<category><![CDATA[VBA/Excel]]></category>
<pubDate>Fri, 01 May 2009 10:01:45 +0000</pubDate> 
<guid>http://www.mathfinance.cn/stress-test-analysis/</guid> 
<description>
<![CDATA[In recent months and years both practitioners and regulators have embraced the idea of supplementing VaR estimates with <strong><a href="http://www.mathfinance.cn/tags/stress-testing/" target="_blank">stress-testing</a></strong>. Today <a href="http://www.bloomberg.com/apps/news?pid=20601087&sid=aVlgKH_MT_mo&refer=home" target="_blank" rel="nofollow">The Federal Reserve is postponing the release of <strong>stress tests </strong>on the biggest U.S. banks</a>. Risk managers are beginning to place an emphasis and expend resources on developing more and better <strong>stress test analysis</strong>. <br/><br/>Here is a good introductory paper aiming to give you a rough idea <strong>how to do stress test</strong>, to help demystify <strong>stress tests</strong>, and illustrate their strengths and weaknesses. The author use an Excel-based exercise with institution-by-institution data through <strong>stress testing </strong>for credit risk, interest rate and exchange rate risks, liquidity risk and contagion risk in the design of <strong>stress testing scenarios</strong>. The purpose of the workbook is to illustrate <strong>basic stress tests </strong>(and related tools) that can be used to assess risks in a small and relatively non-complex banking system, using a realistic (but fictional) example.<br/><br/>Paper is available at <a href="http://papers.ssrn.com/sol3/papers.cfm?abstract_id=973989&rec=1&srcabs=181931" target="_blank" rel="nofollow">http://papers.ssrn.com/sol3/papers.cfm?abstract_id=973989&rec=1&srcabs=181931</a>.<br/><br/>Tags - <a href="http://www.mathfinance.cn/tags/stress-testing/" rel="tag">stress-testing</a><br /><strong>Read the full post at <a href="http://www.mathfinance.cn/stress-test-analysis/">Stress test analysis</a></strong>.
]]>
</description>
</item><item>
<link>http://www.mathfinance.cn/finite-difference-method-for-excel/</link>
<title><![CDATA[Finite Difference Method for EXCEL]]></title> 
<author>abiao &lt;&gt;</author>
<category><![CDATA[VBA/Excel]]></category>
<pubDate>Wed, 29 Apr 2009 14:04:17 +0000</pubDate> 
<guid>http://www.mathfinance.cn/finite-difference-method-for-excel/</guid> 
<description>
<![CDATA[<strong>Finite difference method</strong> has been repeatedly introduced to solve <a href="http://www.mathfinance.cn/tags/pde/1/" target="_blank">partial differential equation (PDE)</a>, for example, in past entries <a href="http://www.mathfinance.cn/Crank-Nicholson-american-option/" target="_blank">Crank-Nicholson finite difference solution of American option</a>, <a href="http://www.mathfinance.cn/crank-nicolson-pde/" target="_blank">Crank-Nicolson for a European put</a>, <a href="http://www.mathfinance.cn/psor-lcp/" target="_blank">PSOR for American option</a>, etc.<br/><br/>here is a <strong>Finite Difference Method for EXCEL</strong> addin which contains macro to solve numerically partial differential equations (PDE) and ordinary differential equations (ODE) with the <strong>Finite Differences Method (FD)</strong>. Seems it can only be applied for two dimensional problem, but should be enough for normal cases me meet.<br/><br/>Document and macro are at: <a href="http://digilander.libero.it/foxes/diffequ/fdsolver_review.htm" target="_blank" rel="nofollow">http://digilander.libero.it/foxes/diffequ/fdsolver_review.htm</a><br/>Tags - <a href="http://www.mathfinance.cn/tags/pde/" rel="tag">pde</a> , <a href="http://www.mathfinance.cn/tags/finite-difference/" rel="tag">finite-difference</a><br /><strong>Read the full post at <a href="http://www.mathfinance.cn/finite-difference-method-for-excel/">Finite Difference Method for EXCEL</a></strong>.
]]>
</description>
</item><item>
<link>http://www.mathfinance.cn/volatility-forecasting-trading/</link>
<title><![CDATA[Volatility Forecasting and Trading ]]></title> 
<author>abiao &lt;&gt;</author>
<category><![CDATA[VBA/Excel]]></category>
<pubDate>Mon, 27 Apr 2009 16:46:40 +0000</pubDate> 
<guid>http://www.mathfinance.cn/volatility-forecasting-trading/</guid> 
<description>
<![CDATA[Excel spreadsheets of the course <strong>Volatility Forecasting and Trading</strong> taught by Professor Ser-Huang Poon at Manchester business school, mainly including:<br/><br/>Estimation and Forecasts :<br/>What is Volatility? <br/><a href="http://www.mathfinance.cn/historical-volatility-estimation/" target="_blank">Volatility estimation </a><br/>Data frequency vs. reference period <br/>Realised volatility, quadratic variation and bipower variation <br/>Market microstructure issue <br/>Volatility Forecast and Evaluation <br/>Error statistics <br/>Test for significant difference <br/>Regression based efficiency tests <br/>Volatility Time series models <br/>Historical vol model <br/><a href="http://www.mathfinance.cn/EWMA/" target="_blank">Exponential smoothing, EWMA</a>, <a href="http://www.mathfinance.cn/forecast-volatility-regime-switching-GARCH-model/" target="_blank">Regime switching </a><br/>ARCH <br/><a href="http://www.mathfinance.cn/Garchkit/" target="_blank">GARCH</a>, IGARCH, EGARCH, GJR-GARCH <br/>Short vs. Long memory models <br/><a href="http://www.mathfinance.cn/Heston_Stochastic_Volatility/" target="_blank">Stochastic Volatility Models</a><br/>Extension to Multivriate and Jumps <br/><a href="http://www.mathfinance.cn/tags/var/" target="_blank">VaR (Value at risk) </a><br/>...<br/><br/>more about pdf lectures and excel sample codes are at: <a href="http://www.personal.mbs.ac.uk/spoon/VolatilityForecastingAndTrading.htm" target="_blank" rel="nofollow">http://www.personal.mbs.ac.uk/spoon/VolatilityForecastingAndTrading.htm</a><br/><a href="http://www.personal.mbs.ac.uk/spoon/DataProgrammes.htm" target="_blank" rel="nofollow">http://www.personal.mbs.ac.uk/spoon/DataProgrammes.htm</a><br/>Tags - <a href="http://www.mathfinance.cn/tags/volatility/" rel="tag">volatility</a><br /><strong>Read the full post at <a href="http://www.mathfinance.cn/volatility-forecasting-trading/">Volatility Forecasting and Trading </a></strong>.
]]>
</description>
</item><item>
<link>http://www.mathfinance.cn/download-historical-stock-price/</link>
<title><![CDATA[Download historical stock price]]></title> 
<author>abiao &lt;&gt;</author>
<category><![CDATA[VBA/Excel]]></category>
<pubDate>Thu, 23 Apr 2009 15:47:44 +0000</pubDate> 
<guid>http://www.mathfinance.cn/download-historical-stock-price/</guid> 
<description>
<![CDATA[A friend of mine asks me how to <strong>download stock historical price</strong> automatically with Excel, here are two ways I have played:<br/><br/>1, using Excel 2003/2002 Add-in to download from MSN Money Stock Quotes. This add-in for Microsoft Office Excel 2003 and Microsoft Excel 2002 allows you to <strong>get dynamic stock quotes</strong> from the MSN Money Web site. The add-in allows you to easily gather and study the stocks of interest to you.<br/><a href="http://www.microsoft.com/downloads/details.aspx?FamilyID=485FCCD8-9305-4535-B939-3BF0A740A9B1&displaylang=en" target="_blank" rel="nofollow">http://www.microsoft.com/downloads/details.aspx?FamilyID=485FCCD8-9305-4535-B939-3BF0A740A9B1&displaylang=en</a><br/><br/>2, using the following macro to download from Yahoo finance. where you have to input start, end date and stock symbol<div class="code">Sub GetData()<br/><br/>&nbsp;&nbsp;&nbsp;&nbsp;Dim DataSheet As Worksheet<br/>&nbsp;&nbsp;&nbsp;&nbsp;Dim EndDate As Date<br/>&nbsp;&nbsp;&nbsp;&nbsp;Dim StartDate As Date<br/>&nbsp;&nbsp;&nbsp;&nbsp;Dim Symbol As String<br/>&nbsp;&nbsp;&nbsp;&nbsp;Dim qurl As String<br/>&nbsp;&nbsp;&nbsp;&nbsp;Dim nQuery As Name<br/>&nbsp;&nbsp;&nbsp;&nbsp;<br/>&nbsp;&nbsp;&nbsp;&nbsp;Application.ScreenUpdating = False<br/>&nbsp;&nbsp;&nbsp;&nbsp;Application.DisplayAlerts = False<br/>&nbsp;&nbsp;&nbsp;&nbsp;Application.Calculation = xlCalculationManual<br/>&nbsp;&nbsp;&nbsp;&nbsp;<br/>&nbsp;&nbsp;&nbsp;&nbsp;Set DataSheet = ActiveSheet<br/>&nbsp;&nbsp;<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;StartDate = DataSheet.Range(&quot;B1&quot;).Value<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;EndDate = DataSheet.Range(&quot;B2&quot;).Value<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Symbol = DataSheet.Range(&quot;B3&quot;).Value<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Range(&quot;C7&quot;).CurrentRegion.ClearContents<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;qurl = &quot;http://ichart.yahoo.com/table.csv?s=&quot; &amp; Symbol<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;qurl = qurl &amp; &quot;&amp;a=&quot; &amp; Month(StartDate) - 1 &amp; &quot;&amp;b=&quot; &amp; Day(StartDate) &amp; _<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&quot;&amp;c=&quot; &amp; Year(StartDate) &amp; &quot;&amp;d=&quot; &amp; Month(EndDate) - 1 &amp; &quot;&amp;e=&quot; &amp; _<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Day(EndDate) &amp; &quot;&amp;f=&quot; &amp; Year(EndDate) &amp; &quot;&amp;g=&quot; &amp; Range(&quot;E3&quot;) &amp; &quot;&amp;q=q&amp;y=0&amp;z=&quot; &amp; _<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Symbol &amp; &quot;&amp;x=.csv&quot;<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Range(&quot;b5&quot;) = qurl<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <br/>QueryQuote:<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; With ActiveSheet.QueryTables.Add(Connection:=&quot;URL;&quot; &amp; qurl, Destination:=DataSheet.Range(&quot;C7&quot;))<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;.BackgroundQuery = True<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;.TablesOnlyFromHTML = False<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;.Refresh BackgroundQuery:=False<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;.SaveData = True<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;End With<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Range(&quot;C7&quot;).CurrentRegion.TextToColumns Destination:=Range(&quot;C7&quot;), DataType:=xlDelimited, _<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;TextQualifier:=xlDoubleQuote, ConsecutiveDelimiter:=False, Tab:=True, _<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Semicolon:=False, Comma:=True, Space:=False, other:=False<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Range(Range(&quot;C7&quot;), Range(&quot;C7&quot;).End(xlDown)).NumberFormat = &quot;mmm d/yy&quot;<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Range(Range(&quot;D7&quot;), Range(&quot;G7&quot;).End(xlDown)).NumberFormat = &quot;0.00&quot;<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Range(Range(&quot;H7&quot;), Range(&quot;H7&quot;).End(xlDown)).NumberFormat = &quot;0,000&quot;<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Range(Range(&quot;I7&quot;), Range(&quot;I7&quot;).End(xlDown)).NumberFormat = &quot;0.00&quot;<br/><br/>End Sub</div><br/><br/>In Matlab there is build-in function named "fetch" for requesting data from Yahoo! data servers. <br/>Tags - <a href="http://www.mathfinance.cn/tags/download/" rel="tag">download</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/download-historical-stock-price/">Download historical stock price</a></strong>.
]]>
</description>
</item><item>
<link>http://www.mathfinance.cn/black-scholes-on-excel/</link>
<title><![CDATA[Black Scholes on excel]]></title> 
<author>abiao &lt;&gt;</author>
<category><![CDATA[VBA/Excel]]></category>
<pubDate>Sun, 05 Apr 2009 11:49:41 +0000</pubDate> 
<guid>http://www.mathfinance.cn/black-scholes-on-excel/</guid> 
<description>
<![CDATA[<strong>Excel Add In (Visual Basic) for <a href="http://www.mathfinance.cn/black_scholes_language/" target="_blank">Black Scholes</a></strong>, Numerical Integration and <a href="http://www.mathfinance.cn/tags/density/" target="_blank">Probability Density Estimation</a><br/><br/>&nbsp;&nbsp;&nbsp;&nbsp;This is a MS Excel Add In (with Visual Basic Source Code) for several separated issues:<br/><br/>&nbsp;&nbsp;&nbsp;&nbsp;1. Numerical Integration<br/><br/>&nbsp;&nbsp;&nbsp;&nbsp;2. Golden Section Search for Max/Min<br/><br/>&nbsp;&nbsp;&nbsp;&nbsp;3. Probability Density Estimation Using Kernels<br/><br/>&nbsp;&nbsp;&nbsp;&nbsp;4. <strong>Black Scholes Option Valuation</strong>, <a href="http://www.mathfinance.cn/black_scholes_implied_volatility/" target="_blank">Implied Volatility</a> and <a href="http://www.mathfinance.cn/option-greeks/" target="_blank">Option Greeks</a><br/>&nbsp;&nbsp;&nbsp;&nbsp;Many of these functions can also be used in standalone Visual Basic applications.<br/><br/>&nbsp;&nbsp;&nbsp;&nbsp;Read Installation and Use Instructions. Download Excel Add-In and Visual Basic source code as a zip file or as tar.gz file at <a href="http://www.iimahd.ernet.in/~jrvarma/software.php" target="_blank" rel="nofollow">http://www.iimahd.ernet.in/~jrvarma/software.php</a><br/>Tags - <a href="http://www.mathfinance.cn/tags/black_scholes/" rel="tag">black scholes</a><br /><strong>Read the full post at <a href="http://www.mathfinance.cn/black-scholes-on-excel/">Black Scholes on excel</a></strong>.
]]>
</description>
</item><item>
<link>http://www.mathfinance.cn/option-pricing-excel/</link>
<title><![CDATA[Option pricing with excel]]></title> 
<author>abiao &lt;&gt;</author>
<category><![CDATA[VBA/Excel]]></category>
<pubDate>Fri, 20 Mar 2009 22:14:26 +0000</pubDate> 
<guid>http://www.mathfinance.cn/option-pricing-excel/</guid> 
<description>
<![CDATA[A nice paper on step-by-step <strong>option pricing with excel</strong>, VBA codes are included in the paper as well. <br/><br/>The authors first briefly review the principles of pricing by no arbitrage in a <a href="http://www.mathfinance.cn/avoid-oscillation-Binomial-tree/" target="_blank">binomial tree</a>, and show how this can be implemented in Excel; then move to continuous-time model - <a href="http://www.mathfinance.cn/Black_scholes_pricing/" target="_blank">Black scholes pricing</a> model; after a short discussion on the parameter estimation issues, they turn to two numerical methods for pricing, which are <a href="http://www.mathfinance.cn/tags/monte_carlo/" target="_blank">Monte Carlo simulation</a> and <a href="http://www.mathfinance.cn/implicit-explicit-pde/" target="_blank">Finite difference for Partial differential equation (PDE)</a>; at last, option hedging is introduced, advantages and disadvantages of spreadsheets in general and Excel in particular are analyzed shortly. <br/><br/>Download paper "<strong>Option pricing with the Excel</strong>" at <a href="http://www.math.ku.dk/~rolf/REV.excelpaper.pdf" target="_blank" rel="nofollow">http://www.math.ku.dk/~rolf/REV.excelpaper.pdf</a><br/>Tags - <a href="http://www.mathfinance.cn/tags/option/" rel="tag">option</a> , <a href="http://www.mathfinance.cn/tags/excel/" rel="tag">excel</a><br /><strong>Read the full post at <a href="http://www.mathfinance.cn/option-pricing-excel/">Option pricing with excel</a></strong>.
]]>
</description>
</item><item>
<link>http://www.mathfinance.cn/interest-rate-modeling-excel/</link>
<title><![CDATA[Interest Rate Modeling in Excel]]></title> 
<author>abiao &lt;&gt;</author>
<category><![CDATA[VBA/Excel]]></category>
<pubDate>Tue, 18 Nov 2008 20:44:20 +0000</pubDate> 
<guid>http://www.mathfinance.cn/interest-rate-modeling-excel/</guid> 
<description>
<![CDATA[<a href="http://www.mathfinance.cn/tags/yield/" target="_blank">Interest Rate Modeling</a> including:<br/><br/><a href="http://www.mathfinance.cn/tags/nelson-siegel/" target="_blank">Nelson Siegel Yield Curve Model</a><br/>Nelson Siegel Yield Curve Model with Svensson 1994 Extension<br/>One-Factor Interest Rate Models (<a href="http://www.mathfinance.cn/tags/vasicek/" target="_blank">Vasicek</a>. <a href="http://www.mathfinance.cn/tags/cox_ingersoll_ross/" target="_blank">Cox, Ingersoll & Ross</a>)<br/>Interest Rate Trinomial Tree - <a href="http://www.mathfinance.cn/tags/hull-white/" target="_blank">Hull & White</a> Method<br/><br/><a href="http://www.mngt.waikato.ac.nz/kurt/frontpage/modelmainpages/InterestRateModels.htm" target="_blank" rel="nofollow">http://www.mngt.waikato.ac.nz/kurt/frontpage/modelmainpages/InterestRateModels.htm</a><br/>Tags - <a href="http://www.mathfinance.cn/tags/yield/" rel="tag">yield</a><br /><strong>Read the full post at <a href="http://www.mathfinance.cn/interest-rate-modeling-excel/">Interest Rate Modeling in Excel</a></strong>.
]]>
</description>
</item><item>
<link>http://www.mathfinance.cn/Hull-White-term-structure-model/</link>
<title><![CDATA[Hull-White Term Structure Model]]></title> 
<author>abiao &lt;&gt;</author>
<category><![CDATA[VBA/Excel]]></category>
<pubDate>Tue, 28 Oct 2008 20:08:28 +0000</pubDate> 
<guid>http://www.mathfinance.cn/Hull-White-term-structure-model/</guid> 
<description>
<![CDATA[Accompanying Excel of&nbsp;&nbsp; "Implementation of <strong>Hull White's No-Arbitrage Term Structure Model</strong>" by Eugen Puschkarski, including:<br/><br/>HEDGE.XLS:&nbsp;&nbsp; Calculation of hedge parameters<br/>CALIBRAT.XLS:&nbsp;&nbsp;Calibration of the model to market data, calculation of optimal volatility parameters<br/>AMERICAN.XLS:&nbsp;&nbsp;Valuation of <a href="http://www.mathfinance.cn/american-options/" target="_blank">American style option</a><br/>CALLABLE.XLS:&nbsp;&nbsp;Valuation of callable, putable bonds<br/>CAP.XLS:&nbsp;&nbsp;Valuation of Caps and Floors, comparison of analytical and&nbsp;&nbsp; numerical solution<br/>COUPON.XLS:&nbsp;&nbsp;Pricing of an option on a coupon bond<br/>BINARY.XLS:&nbsp;&nbsp;Valuation of binary options of an accrual swap<br/>CONVERG2.XLS:&nbsp;&nbsp;Analysis of convergence behaviour of the numerical solution<br/>CONVERG3.XLS:&nbsp;&nbsp;Analysis of convergence behaviour if cash flows between&nbsp;&nbsp; nodes do occur<br/>FLOATER1.XLS:&nbsp;&nbsp;Valuation of standard and non-standard floater<br/>NUM.XLS:&nbsp;&nbsp;Numerical valuation of zero coupon bond options<br/>SWAP.XLS:&nbsp;&nbsp; <a href="http://www.mathfinance.cn/swaption-valuation/" target="_blank">Calculation of swaptions</a><br/><br/>Paper and Excel file can be found at <a href="http://www.angelfire.com/ny/financeinfo/research.html" target="_blank" rel="nofollow">http://www.angelfire.com/ny/financeinfo/research.html</a><br/>wiki(Hull-White model)<br/>Tags - <a href="http://www.mathfinance.cn/tags/hull-white/" rel="tag">hull-white</a> , <a href="http://www.mathfinance.cn/tags/yield/" rel="tag">yield</a><br /><strong>Read the full post at <a href="http://www.mathfinance.cn/Hull-White-term-structure-model/">Hull-White Term Structure Model</a></strong>.
]]>
</description>
</item><item>
<link>http://www.mathfinance.cn/decompose-rating-transition-matrices/</link>
<title><![CDATA[Decomposing rating transition matrices]]></title> 
<author>abiao &lt;&gt;</author>
<category><![CDATA[VBA/Excel]]></category>
<pubDate>Fri, 10 Oct 2008 19:01:28 +0000</pubDate> 
<guid>http://www.mathfinance.cn/decompose-rating-transition-matrices/</guid> 
<description>
<![CDATA[Spreadsheet for the calculation of:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br/> - the diagonal decomposition MDM^-1&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br/> - the generating matrix A of the ratings process&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br/> - the time-dependent transition matrix P(t)&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br/><br/><a href="http://www.schonbucher.de/risk/index.html" target="_blank" rel="nofollow">http://www.schonbucher.de/risk/index.html</a><br/>spreadsheet <a href="http://www.schonbucher.de/risk/rating_case.xls" target="_blank" rel="nofollow">http://www.schonbucher.de/risk/rating_case.xls</a><br/>Tags - <a href="http://www.mathfinance.cn/tags/rating/" rel="tag">rating</a><br /><strong>Read the full post at <a href="http://www.mathfinance.cn/decompose-rating-transition-matrices/">Decomposing rating transition matrices</a></strong>.
]]>
</description>
</item><item>
<link>http://www.mathfinance.cn/ols-regression-missing-value/</link>
<title><![CDATA[OLS Regression with missing values]]></title> 
<author>abiao &lt;&gt;</author>
<category><![CDATA[VBA/Excel]]></category>
<pubDate>Tue, 07 Oct 2008 21:20:49 +0000</pubDate> 
<guid>http://www.mathfinance.cn/ols-regression-missing-value/</guid> 
<description>
<![CDATA[Excel provides a handy function called LINEST that allows the user to make OLS regressions in an very quick and simple fashion. Unfortunately, the function fails if some values are missing in the data.<br/><br/>Here is a small program that addresss this shortcoming. After installing this add-in, you can simply say LINESTNA(...) instead of LINEST(...) and the problem with the missing values is gone.<br/><br/>The program first extracts the rows that do not contain any missing values, and then calls Excel's LINEST to perform the estimation with the cleaned data. The data have to be organized column-wise.<br/><br/><a href="http://www.wwz.unibas.ch/ds/abt/wirtschaftstheorie/personen/yvan/software/#c6714" target="_blank" rel="nofollow">http://www.wwz.unibas.ch/ds/abt/wirtschaftstheorie/personen/yvan/software/#c6714</a><br/>Tags - <a href="http://www.mathfinance.cn/tags/regression/" rel="tag">regression</a><br /><strong>Read the full post at <a href="http://www.mathfinance.cn/ols-regression-missing-value/">OLS Regression with missing values</a></strong>.
]]>
</description>
</item><item>
<link>http://www.mathfinance.cn/vasicek-calibration/</link>
<title><![CDATA[Vasicek Model calibration and simulation]]></title> 
<author>abiao &lt;&gt;</author>
<category><![CDATA[VBA/Excel]]></category>
<pubDate>Tue, 30 Sep 2008 15:02:56 +0000</pubDate> 
<guid>http://www.mathfinance.cn/vasicek-calibration/</guid> 
<description>
<![CDATA[Entries <a href="http://www.mathfinance.cn/vasicek-model-estimation/" target="_blank">Vasicek estimation</a> and <a href="http://www.mathfinance.cn/vasicek-binomial-tree/" target="_blank">Vasicek model in binomial tree</a> introduced how to estimate Vasicek model parameters, how to implement Vasicek interest rate model in binomial tree, which can be further used to price option on bonds, for instance. Here i share another two excel files demonstrating how to calibrate a Vasicek model to a given term structure and simulate Vasicek zero bond prices and the path of the short rate.<br/><br/>Download at <a href="http://www.mathematik.uni-kl.de/~korn/korn2b.htm" target="_blank" rel="nofollow">http://www.mathematik.uni-kl.de/~korn/korn2b.htm</a>, besides Vasicek short rate model, <a href="http://www.mathfinance.cn/Cox_Ingersoll_Ross/" target="_blank">CIR</a>, Dothan and Exponential Vasicek are also included in one file.<br/>Tags - <a href="http://www.mathfinance.cn/tags/vasicek/" rel="tag">vasicek</a><br /><strong>Read the full post at <a href="http://www.mathfinance.cn/vasicek-calibration/">Vasicek Model calibration and simulation</a></strong>.
]]>
</description>
</item><item>
<link>http://www.mathfinance.cn/real-options-analysis/</link>
<title><![CDATA[Real option case study]]></title> 
<author>abiao &lt;&gt;</author>
<category><![CDATA[VBA/Excel]]></category>
<pubDate>Mon, 22 Sep 2008 20:29:27 +0000</pubDate> 
<guid>http://www.mathfinance.cn/real-options-analysis/</guid> 
<description>
<![CDATA[Nth much to say, for those of you interested into applying <a href="http://www.mathfinance.cn/real-option-valuation/" target="_blank">real option valuation</a> model in real situation. <br/><br/>Doc file and Excel sheet can be downloaded here <a href="http://faculty.fuqua.duke.edu/~charvey/Teaching/BA456_2002/LogiTech/" target="_blank" rel="nofollow">http://faculty.fuqua.duke.edu/~charvey/Teaching/BA456_2002/LogiTech/</a>.<br/>Tags - <a href="http://www.mathfinance.cn/tags/real-option/" rel="tag">real-option</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/real-options-analysis/">Real option case study</a></strong>.
]]>
</description>
</item><item>
<link>http://www.mathfinance.cn/Constant-maturity-swap-pricing/</link>
<title><![CDATA[Constant Maturity Swap (CMS) option pricing]]></title> 
<author>abiao &lt;&gt;</author>
<category><![CDATA[VBA/Excel]]></category>
<pubDate>Sat, 13 Sep 2008 11:46:45 +0000</pubDate> 
<guid>http://www.mathfinance.cn/Constant-maturity-swap-pricing/</guid> 
<description>
<![CDATA[Constant maturity swap is a type of interest rate swap where the rate of interest of any single leg is readjusted in a periodic manner in case of market swap rate but not with the LIBOR (London Interbank Offered Rate) or any other floating reference index rate. In other words, it may also be said that the constant maturity swap actually allows the purchasers to fix the duration of the received flows on a swap. Constant maturity swap is also known as CMS. The Constant Maturity Swaps may be of two types - Single Currency Swaps or Cross Currency Swaps. <br/><br/>Pricing of cms option and a cms floor using the generalized Black-Scholes formula with a convexity adjustment Excel sample file: <a href="http://www.finmath.net/spreadsheets/CMS%20Option.zip" target="_blank" rel="nofollow">http://www.finmath.net/spreadsheets/CMS%20Option.zip</a>, at the same page <a href="http://www.finmath.net/spreadsheets/" target="_blank" rel="nofollow">http://www.finmath.net/spreadsheets/</a> you can also find <a href="http://www.mathfinance.cn/swaption-valuation/" target="_blank">pricing of swaption</a> using the generalized Black-Scholes formula.<br/><br/>wiki(Constant maturity swap)<br/><br/>Tags - <a href="http://www.mathfinance.cn/tags/cms/" rel="tag">cms</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/Constant-maturity-swap-pricing/">Constant Maturity Swap (CMS) option pricing</a></strong>.
]]>
</description>
</item><item>
<link>http://www.mathfinance.cn/normal-inverse-gaussian-pricing/</link>
<title><![CDATA[Normal Inverse Gaussian option pricer]]></title> 
<author>abiao &lt;&gt;</author>
<category><![CDATA[VBA/Excel]]></category>
<pubDate>Fri, 12 Sep 2008 15:33:44 +0000</pubDate> 
<guid>http://www.mathfinance.cn/normal-inverse-gaussian-pricing/</guid> 
<description>
<![CDATA[<div class="quote"><div class="quote-title">Quotation</div><div class="quote-content">To price and hedge derivative securities, it is crucial to have a good model of the probability distribution of the underlying product. The most famous continuous-time model is the celebrated <a href="http://www.mathfinance.cn/black_scholes_language/" target="_blank">Black Scholes model</a>, which uses the Normal distribution to fit the log returns of the underlying.<br/><br/>As we know from empirical research, one of the main problems with the Black–Scholes model is that the data suggest that the log returns of stocks/indices are not Normally distributed as in the Black–Scholes model. The log returns of most financial assets do not follow a Normal law. They are skewed and have an actual kurtosis higher than that of the Normal distribution. Other more flexible distributions are needed.<br/><br/>Moreover, not only do we need a more flexible static distribution, but in order to model the behaviour through time we need more flexible stochastic processes (which generalize Brownian motion). Looking at the definition of Brownian motion, we would like to have a similar,i.e. with independent and stationary increments, process, based on a more general distribution than the normal. However, in order to define such a stochastic process with independent and stationary increments, the distribution has to be infinitely divisible, such processes are called Lévy processes, one example of such process is <strong>normal inverse gaussian</strong> (NIG).</div></div><br/><br/>Normal Inverse Gauss option pricer (with Esscher transform correction), Excel + DLL, and a Maple worksheet with short explanations can be downloaded at <a href="http://www.axelvogt.de/axalom/NIG_tiny_withDLL.zip" target="_blank" rel="nofollow">http://www.axelvogt.de/axalom/NIG_tiny_withDLL.zip</a>, more are at the main page of author <a href="http://www.axelvogt.de/axalom/index.html" target="_blank" rel="nofollow">http://www.axelvogt.de/axalom/index.html</a>.<br/><br/><br/>Tags - <a href="http://www.mathfinance.cn/tags/nig/" rel="tag">nig</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/normal-inverse-gaussian-pricing/">Normal Inverse Gaussian option pricer</a></strong>.
]]>
</description>
</item><item>
<link>http://www.mathfinance.cn/bootstrapping-yield-curve/</link>
<title><![CDATA[Bootstrapping interest rate curve]]></title> 
<author>abiao &lt;&gt;</author>
<category><![CDATA[VBA/Excel]]></category>
<pubDate>Mon, 08 Sep 2008 15:49:13 +0000</pubDate> 
<guid>http://www.mathfinance.cn/bootstrapping-yield-curve/</guid> 
<description>
<![CDATA[Bootstrapping is a technique for building a <a href="http://www.mathfinance.cn/yield_curve/" target="_blank">zero-coupon yield curve</a> from the prices of a set of coupon bonds through forward replacement.<br/><br/>Using these zero-coupon bonds we can deduce forward and spot rates for all time to maturities by making a couple of assumptions (including linear interpolation). The term structure of spot rates is recovered from the bond yields by solving for them recursively, this iterative process is called the BootStrap Method.<br/><br/><a href="http://janroman.dhis.org/stud/Bootstrap_2006.xls" target="_blank" rel="nofollow">http://janroman.dhis.org/stud/Bootstrap_2006.xls</a> shows how to implement Boostrapping method in Excel, more can be found at his website <a href="http://janroman.dhis.org/index_eng2.html" target="_blank" rel="nofollow">http://janroman.dhis.org/index_eng2.html</a>.<br/><br/>Tags - <a href="http://www.mathfinance.cn/tags/bootstrapping/" rel="tag">bootstrapping</a> , <a href="http://www.mathfinance.cn/tags/yield/" rel="tag">yield</a><br /><strong>Read the full post at <a href="http://www.mathfinance.cn/bootstrapping-yield-curve/">Bootstrapping interest rate curve</a></strong>.
]]>
</description>
</item><item>
<link>http://www.mathfinance.cn/bermudan-swaption/</link>
<title><![CDATA[Term Structure Lattice to Price Bermudan swaption]]></title> 
<author>abiao &lt;&gt;</author>
<category><![CDATA[VBA/Excel]]></category>
<pubDate>Sat, 06 Sep 2008 10:58:56 +0000</pubDate> 
<guid>http://www.mathfinance.cn/bermudan-swaption/</guid> 
<description>
<![CDATA[The modelling philosophy for term-structure models is somewhat different to the modelling philosophy for equity models. In the latter case, stock price dynamics are usually specified under the physical probability measure, P, before their dynamics under an EMM, Q, are determined. For example, in the binomial Black-Scholes framework a unique Q is easily determined after the P-dynamics of the stock-price are given. Moreover, it is easy to check that the model does not allow any arbitrage: we just need d < R < u.<br/><br/>In contrast, with term-structure models we often assume that zero-coupon bonds of every maturity exists and it is not always easy to directly specify their P-dynamics in an arbitrage-free manner that it is economically satisfactory. For example, in a T-period binomial model there are O(T) zero-coupon bond prices that we need to specify at each node. Checking that the model is arbitrage-free and that bond price processes have suitable properties (e.g. implied interest rates are always non-negative) can be a cumbersome task. As a result, we usually work with term structure models where we directly specify an EMM, Q, and price all securities using this EMM. By construction, such a model is arbitrage free. Moreover, by leaving some parameters initially unspecified (e.g. short-rate values at nodes or Q-probabilities along branches in a lattice model) we can then calibrate them so that security prices in the model coincide with security prices observed in the market.<br/><br/>In the lecture notes of <a href="http://www.columbia.edu/~mh2078/TS05.html" target="_blank" rel="nofollow">Term Structure Models-Spring 2005</a> professor Martin Haugh introduces how to price a Bermudan<a href="http://www.mathfinance.cn/swaption-valuation/" target="_blank"> swaption</a> with term structure lattice, precisely speaking, binomial tree, there he cailibrates both Ho-Lee and <a href="http://www.mathfinance.cn/Black_Derman_Toy/" target="_blank">Black Derman Toy Model</a> and use the calibrated interested rate model to price a Bermudan swaption as an example.<br/><br/>lecture notes about this topic is <a href="http://www.columbia.edu/~mh2078/TS05/lattice_models.pdf" target="_blank" rel="nofollow">http://www.columbia.edu/~mh2078/TS05/lattice_models.pdf</a> and<br/>sample spreedsheet is <a href="http://www.columbia.edu/~mh2078/TS05/Term_Structure_Lattices.xls" target="_blank" rel="nofollow">http://www.columbia.edu/~mh2078/TS05/Term_Structure_Lattices.xls</a><br/>wiki(Bermudan swaption)<br/>Tags - <a href="http://www.mathfinance.cn/tags/swaption/" rel="tag">swaption</a> , <a href="http://www.mathfinance.cn/tags/bermudan/" rel="tag">bermudan</a><br /><strong>Read the full post at <a href="http://www.mathfinance.cn/bermudan-swaption/">Term Structure Lattice to Price Bermudan swaption</a></strong>.
]]>
</description>
</item><item>
<link>http://www.mathfinance.cn/swaption-valuation/</link>
<title><![CDATA[Swaption valuation]]></title> 
<author>abiao &lt;&gt;</author>
<category><![CDATA[VBA/Excel]]></category>
<pubDate>Thu, 28 Aug 2008 16:10:54 +0000</pubDate> 
<guid>http://www.mathfinance.cn/swaption-valuation/</guid> 
<description>
<![CDATA[A swaption is an over-the-counter&nbsp;&nbsp;derivative on a swap. Normally, the underlying swap is a vanilla interest rate swap. Nevertheless, "swaption" could be applied to relate to a derivative about whatever kind of swap.<br/><br/>Swaptions could be&nbsp;&nbsp; European, American, or even Bermudan type. They can be physically settled, in which case a derivative is really participated into at exercise date. They can&nbsp;&nbsp;be cash settled as well, in which example the market price of the underlying swap is cleared at maturity. <br/><br/>it is frequently more handy to address in terms of two common kinds of swaption:<br/><br/>A payer swaption is a call option on a pay-fixed swap, the swaption holder has the right to pay fixed rate on a swap.<br/><br/>A receiver swaption is a call option on a receive fixed swap, the swaption holder has the right to receive fixed rate on a swap.<br/><br/>a spreedsheet showing how to price a swaption using Black's model can be downloaded at:<br/><a href="http://www.volopta.com/files/Swaption_Price_from_Black_Model.xls" target="_blank" rel="nofollow">www.volopta.com/files/Swaption_Price_from_Black_Model.xls</a><br/>wiki(Swaption)<br/>Tags - <a href="http://www.mathfinance.cn/tags/swaption/" rel="tag">swaption</a><br /><strong>Read the full post at <a href="http://www.mathfinance.cn/swaption-valuation/">Swaption valuation</a></strong>.
]]>
</description>
</item><item>
<link>http://www.mathfinance.cn/nelson-siegel-term-structure/</link>
<title><![CDATA[Nelson Siegel interest rate model calibration]]></title> 
<author>abiao &lt;&gt;</author>
<category><![CDATA[VBA/Excel]]></category>
<pubDate>Tue, 26 Aug 2008 15:02:39 +0000</pubDate> 
<guid>http://www.mathfinance.cn/nelson-siegel-term-structure/</guid> 
<description>
<![CDATA[Often we need to model the yield curve for bond pricing and risk analysis purpose, for instance, <br/><br/>The valuation of products requires the modelling of the entire covariance structure. Historical estimation of such large covariance matrices is statistically not tractable anymore.<br/>Need strong structure to be imposed on the co-movements of financial quantities of interest.<br/>Specify the dynamics of a small number of variables (e.g. PCA).<br/>Correlation structure among observable quantities can now be obtained analytically or numerically.<br/>Simultaneous pricing of dierent options and hedging instruments in a consistent framework.<br/><br/>There are dozens of interest rate models used by practioners, Nelson-Siegel term structure model is one of them gained popularity. here is a spreedsheet showing how to fit Extended Nelson Siegel Spot Rate with Solver.<br/><br/><br/><a href="http://janroman.dhis.org/" target="_blank" rel="nofollow">http://janroman.dhis.org/</a><br/><a href="http://janroman.dhis.org/finance/Excel/NelsonSiegelYieldCurveModel.xls" target="_blank" rel="nofollow">http://janroman.dhis.org/finance/Excel/NelsonSiegelYieldCurveModel.xls</a><br/>wiki(Nelson-Siegel)<br/>Tags - <a href="http://www.mathfinance.cn/tags/yield/" rel="tag">yield</a> , <a href="http://www.mathfinance.cn/tags/nelson-siegel/" rel="tag">nelson-siegel</a><br /><strong>Read the full post at <a href="http://www.mathfinance.cn/nelson-siegel-term-structure/">Nelson Siegel interest rate model calibration</a></strong>.
]]>
</description>
</item><item>
<link>http://www.mathfinance.cn/finance-iq-test/</link>
<title><![CDATA[Finance IQ test]]></title> 
<author>abiao &lt;&gt;</author>
<category><![CDATA[VBA/Excel]]></category>
<pubDate>Sat, 23 Aug 2008 22:13:13 +0000</pubDate> 
<guid>http://www.mathfinance.cn/finance-iq-test/</guid> 
<description>
<![CDATA[Weekend Time! interested into doing a short test on your finance IQ? Finance IQ is designed to test your knowledge in finance. The questions database includes various categories to choose, for instance, you can choose to test your Risk IQ or Options IQ, level could be from as easy as the definition of European option, <a href="http://www.mathfinance.cn/black_scholes_language/" target="_blank" rel="nofollow">black scholes</a> to <a href="http://www.garp.com" target="_blank" rel="nofollow">FRM </a> test or even more advanced.<br/><br/>Take a rest & have fun. <br/>Kind reminding: today is the last day of Beijing Olimpic and closing ceremony will be staging.<br/><a href="http://www.fintools.com/docs/FinanceIQ.xls" target="_blank" rel="nofollow">http://www.fintools.com/docs/FinanceIQ.xls </a><br/>Tags - <a href="http://www.mathfinance.cn/tags/iq/" rel="tag">iq</a><br /><strong>Read the full post at <a href="http://www.mathfinance.cn/finance-iq-test/">Finance IQ test</a></strong>.
]]>
</description>
</item><item>
<link>http://www.mathfinance.cn/markowitz-efficient-frontier/</link>
<title><![CDATA[Markowitz Efficient Frontier stock portfolio]]></title> 
<author>abiao &lt;&gt;</author>
<category><![CDATA[VBA/Excel]]></category>
<pubDate>Thu, 21 Aug 2008 16:51:35 +0000</pubDate> 
<guid>http://www.mathfinance.cn/markowitz-efficient-frontier/</guid> 
<description>
<![CDATA[The efficient frontier was initiative specified by Markowitz in his innovative&nbsp;&nbsp;report . The theory deals an amounts of risky products and searches an optimal portfolio based on those possible investments.<br/><br/>Given a time interval, we could impute expected returns and volatilities. We could also specify a correlation of returns. The&nbsp;&nbsp;"optimal" portfolio can be formed in two methods:<br/><br/> first:&nbsp;&nbsp; for a certain level of volatility, count all portfolios that equal this volatility. amongst them all, choose the one with highest expected return.<br/>second: for a given expected return, count all portfolios having this expected return. Choose the one which has the lowest volatility.<br/><br/>often numerical calculation is applied for optimization as we have additional constraints on the optimal portfolio, for instance, weight limits, etc. below is an Excel file demonstrating many assets Efficient Portfolio can be generated.<br/><br/><a href="http://faculty.washington.edu/ezivot/econ483/3firmPortfolioExample.xls" target="_blank" rel="nofollow">http://faculty.washington.edu/ezivot/econ483/3firmPortfolioExample.xls</a><br/>wiki(Capital asset pricing model)<br/>Tags - <a href="http://www.mathfinance.cn/tags/markowitz/" rel="tag">markowitz</a> , <a href="http://www.mathfinance.cn/tags/optimization/" rel="tag">optimization</a><br /><strong>Read the full post at <a href="http://www.mathfinance.cn/markowitz-efficient-frontier/">Markowitz Efficient Frontier stock portfolio</a></strong>.
]]>
</description>
</item><item>
<link>http://www.mathfinance.cn/sabr-stochastic-volatility/</link>
<title><![CDATA[SABR stochastic volatility model]]></title> 
<author>abiao &lt;&gt;</author>
<category><![CDATA[VBA/Excel]]></category>
<pubDate>Mon, 18 Aug 2008 07:37:35 +0000</pubDate> 
<guid>http://www.mathfinance.cn/sabr-stochastic-volatility/</guid> 
<description>
<![CDATA[A suitable characteristic of any local and <a href="http://www.mathfinance.cn/calibration_Heston/" target="_blank">stochastic volatility model </a>is that the model can yield the same prices of the vanilla options that were applied as inputs to the calibration of the model. failure to do so will clearly cause the model not arbitrage free and generate it nearly useless.<br/><br/>A substantial point of the SABR model is that the prices of vanilla options can be computed&nbsp;&nbsp;in almost closed form&nbsp;&nbsp;(Subject to the precise of a series expansion). Basically it has been shown that the price of a vanilla option under the SABR model is yielded by the suitable Black model, given that the correct implied volatility is employed.<br/><br/><br/>SABR code in VBA and C is available together with a PDF:<br/><a href="http://www.axelvogt.de/axalom/SABR.pdf" target="_blank" rel="nofollow">http://www.axelvogt.de/axalom/SABR.pdf</a><br/><a href="http://www.axelvogt.de/axalom/SABR_Code_VB_and_C.txt" target="_blank" rel="nofollow">http://www.axelvogt.de/axalom/SABR_Code_VB_and_C.txt</a><br/><br/>wiki(SABR Volatility Model)<br/>Tags - <a href="http://www.mathfinance.cn/tags/stochastic/" rel="tag">stochastic</a> , <a href="http://www.mathfinance.cn/tags/volatility/" rel="tag">volatility</a><br /><strong>Read the full post at <a href="http://www.mathfinance.cn/sabr-stochastic-volatility/">SABR stochastic volatility model</a></strong>.
]]>
</description>
</item><item>
<link>http://www.mathfinance.cn/equity-linked-notes/</link>
<title><![CDATA[Equity linked notes ]]></title> 
<author>abiao &lt;&gt;</author>
<category><![CDATA[VBA/Excel]]></category>
<pubDate>Wed, 13 Aug 2008 08:26:25 +0000</pubDate> 
<guid>http://www.mathfinance.cn/equity-linked-notes/</guid> 
<description>
<![CDATA[An Equity-Linked Note (ELN) is a debt tool that differs from a normal fixed-income security due to the coupon is depend on the return of a single stock, basket of stocks or equity index. An ELN is a principal secured instrument Commonly configured to generate 100% of the original investment at due date, but differs from a standard fixed-coupon bond because its coupon is decided by the performance of the underlying equity.<br/><br/>This spreadsheet calculates the price and embedded option value of equity linked notes, together with other option, Robeco-Reverse convertible, for example.<br/><br/><a href="http://www.ulb.ac.be/cours/solvay/farber/exceltips.htm" target="_blank" rel="nofollow">http://www.ulb.ac.be/cours/solvay/farber/exceltips.htm</a><br/><a href="http://www.ulb.ac.be/cours/solvay/farber/VUB/08%20Lecture%202.xls" target="_blank" rel="nofollow">http://www.ulb.ac.be/cours/solvay/farber/VUB/08%20Lecture%202.xls</a><br/>wiki(Equity linked note)<br/>Tags - <a href="http://www.mathfinance.cn/tags/eln/" rel="tag">eln</a><br /><strong>Read the full post at <a href="http://www.mathfinance.cn/equity-linked-notes/">Equity linked notes </a></strong>.
]]>
</description>
</item><item>
<link>http://www.mathfinance.cn/real-option-valuation/</link>
<title><![CDATA[Real Option Models in Valuation]]></title> 
<author>abiao &lt;&gt;</author>
<category><![CDATA[VBA/Excel]]></category>
<pubDate>Sun, 10 Aug 2008 09:03:52 +0000</pubDate> 
<guid>http://www.mathfinance.cn/real-option-valuation/</guid> 
<description>
<![CDATA[<strong>Real Option good example in Corporate Finance&nbsp;&nbsp;&nbsp;&nbsp;</strong><br/><br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;This example approximates the economic value of the option to extend in an investing project. it can also be used to appraise the value of strategic options.<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;This example calculates the value of the option to postpone an investment project.<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;This example estimates the value of fiscal tractability, i.e, the sustenance of extra debt capability or back-up funding.<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;This example estimates the value of the option to give up a project or investment.<br/><br/><strong>Real Option Models in Valuation&nbsp;&nbsp; </strong><br/><br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;A example that applies option pricing to measure the equity in a company; most well suitable for largely levered firms in trouble.<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;A model that applies option pricing to evaluate a natural resource firm; useful for measuring oil or mining companies.<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;A model that applies option pricing to appraise a product patent or option; useful for valuing the patents that a company may declare.<br/><br/><br/><a href="http://pages.stern.nyu.edu/~adamodar/New_Home_Page/spreadsh.htm#optincf" target="_blank" rel="nofollow">http://pages.stern.nyu.edu/~adamodar/New_Home_Page/spreadsh.htm#optincf</a><br/>wiki(Real option)<br/>Tags - <a href="http://www.mathfinance.cn/tags/real-option/" rel="tag">real-option</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/real-option-valuation/">Real Option Models in Valuation</a></strong>.
]]>
</description>
</item><item>
<link>http://www.mathfinance.cn/brinson-performance-attribution/</link>
<title><![CDATA[Brinson performance attribution]]></title> 
<author>abiao &lt;&gt;</author>
<category><![CDATA[VBA/Excel]]></category>
<pubDate>Sat, 09 Aug 2008 07:31:43 +0000</pubDate> 
<guid>http://www.mathfinance.cn/brinson-performance-attribution/</guid> 
<description>
<![CDATA[Performance attribution is used as a way to check the relative performance of portfolio against selected Benchmark, the difference of which is called active return. Brinson method decomposes active return to asset selection effect and industry selection effect, helping investor realize where the active return is from, which asset or industry has a biggest&nbsp;&nbsp;contribution to the active return of portfolio, ect.<br/><br/><br/><a href="http://www.barra.com/products/spreadsheets/stockselection.xls" target="_blank" rel="nofollow">http://www.barra.com/products/spreadsheets/stockselection.xls</a><br/>wiki(Performance attribution)<br/>Tags - <a href="http://www.mathfinance.cn/tags/performance/" rel="tag">performance</a><br /><strong>Read the full post at <a href="http://www.mathfinance.cn/brinson-performance-attribution/">Brinson performance attribution</a></strong>.
]]>
</description>
</item><item>
<link>http://www.mathfinance.cn/value-warrant-dilution/</link>
<title><![CDATA[Valuing Warrants under dilution]]></title> 
<author>abiao &lt;&gt;</author>
<category><![CDATA[VBA/Excel]]></category>
<pubDate>Thu, 07 Aug 2008 07:17:27 +0000</pubDate> 
<guid>http://www.mathfinance.cn/value-warrant-dilution/</guid> 
<description>
<![CDATA[Usually, when a call option on a stock is exercised, the party with the short position acquires shares that have already been issued and sells them to the counterparty, however, warrants, executive stock options as well, are options that work slightly differently, they are written by a company on its own stock, when they are exercised, the company issues more of its own stock and sells them to the option holder for the strike price. the exercise of a warrant therefore leads to an increase in the number of shares of the company's stock that are outstanding, which has the dilution effect on the price of warrant as a result.<br/><br/>often we ignore this dilution effect as it might be small, here is a spreedsheet model for valuing options that result in dilution of the underlying stock if you do want to consider it.<br/><br/><br/><a href="http://pages.stern.nyu.edu/~adamodar/New_Home_Page/spreadsh.htm#basicoption" target="_blank" rel="nofollow">http://pages.stern.nyu.edu/~adamodar/New_Home_Page/spreadsh.htm#basicoption</a><br/><br/>Tags - <a href="http://www.mathfinance.cn/tags/warrant/" rel="tag">warrant</a><br /><strong>Read the full post at <a href="http://www.mathfinance.cn/value-warrant-dilution/">Valuing Warrants under dilution</a></strong>.
]]>
</description>
</item><item>
<link>http://www.mathfinance.cn/Monte_Carlo_Chooser_Option/</link>
<title><![CDATA[Monte Carlo Chooser Option]]></title> 
<author>abiao &lt;&gt;</author>
<category><![CDATA[VBA/Excel]]></category>
<pubDate>Sun, 03 Aug 2008 08:36:56 +0000</pubDate> 
<guid>http://www.mathfinance.cn/Monte_Carlo_Chooser_Option/</guid> 
<description>
<![CDATA[Chooser option gives the holder the right to choose it is a call or put option at a prescriped strike price and date. here is a sample spreedsheet pricing chooser option with Monte Carlo simulation.<br/><br/><a href="http://fisher.utstat.toronto.edu/sjaimung/courses/2008-2009/sta2502/main.htm" target="_blank" rel="nofollow">http://fisher.utstat.toronto.edu/sjaimung/courses/2008-2009/sta2502/main.htm</a><br/><br/><br/><br/>Tags - <a href="http://www.mathfinance.cn/tags/monte_carlo/" rel="tag">monte carlo</a> , <a href="http://www.mathfinance.cn/tags/chooser/" rel="tag">chooser</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/Monte_Carlo_Chooser_Option/">Monte Carlo Chooser Option</a></strong>.
]]>
</description>
</item><item>
<link>http://www.mathfinance.cn/Derivative_calculator/</link>
<title><![CDATA[Entire Equity and Monetary Option Formulas]]></title> 
<author>abiao &lt;&gt;</author>
<category><![CDATA[VBA/Excel]]></category>
<pubDate>Thu, 31 Jul 2008 08:31:01 +0000</pubDate> 
<guid>http://www.mathfinance.cn/Derivative_calculator/</guid> 
<description>
<![CDATA[lots of equity and monetary option model available in VBA, for instance, Black Scholes 1973, you can download them or calculate the formula online.<br/><br/>http://www.montegodata.co.uk/Consult/Derivative/Derivatives.html<br/><br/><br/>Tags - <a href="http://www.mathfinance.cn/tags/derivative/" rel="tag">derivative</a> , <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/Derivative_calculator/">Entire Equity and Monetary Option Formulas</a></strong>.
]]>
</description>
</item><item>
<link>http://www.mathfinance.cn/Fama_decomposition/</link>
<title><![CDATA[Famas Return Decomposition]]></title> 
<author>abiao &lt;&gt;</author>
<category><![CDATA[VBA/Excel]]></category>
<pubDate>Tue, 29 Jul 2008 07:54:42 +0000</pubDate> 
<guid>http://www.mathfinance.cn/Fama_decomposition/</guid> 
<description>
<![CDATA[A sample spreedsheet demonstrating how to decompose Fama's return into several sources.<br/><br/>http://clem.mscd.edu/~mayest/FIN4600/Files/famadcmp.xls<br/><br/><br/>Tags - <a href="http://www.mathfinance.cn/tags/fama/" rel="tag">fama</a><br /><strong>Read the full post at <a href="http://www.mathfinance.cn/Fama_decomposition/">Famas Return Decomposition</a></strong>.
]]>
</description>
</item><item>
<link>http://www.mathfinance.cn/Receiver_Swaption/</link>
<title><![CDATA[Receiver Swaption Price]]></title> 
<author>abiao &lt;&gt;</author>
<category><![CDATA[VBA/Excel]]></category>
<pubDate>Tue, 29 Jul 2008 07:51:54 +0000</pubDate> 
<guid>http://www.mathfinance.cn/Receiver_Swaption/</guid> 
<description>
<![CDATA[Calcualtes the price of a receiver swaption (bp).<br/><br/>http://www.vbnumericalmethods.com/finance/<br/><br/><br/>wiki(Swaption)<br/>Tags - <a href="http://www.mathfinance.cn/tags/swaption/" rel="tag">swaption</a><br /><strong>Read the full post at <a href="http://www.mathfinance.cn/Receiver_Swaption/">Receiver Swaption Price</a></strong>.
]]>
</description>
</item><item>
<link>http://www.mathfinance.cn/EWMA/</link>
<title><![CDATA[EWMA Volatility]]></title> 
<author>abiao &lt;&gt;</author>
<category><![CDATA[VBA/Excel]]></category>
<pubDate>Mon, 28 Jul 2008 08:11:24 +0000</pubDate> 
<guid>http://www.mathfinance.cn/EWMA/</guid> 
<description>
<![CDATA[VB function to calculate 'exponentially weighted moving average' volatilites (=RiskMetrics volatility forecasting) with or without assuming a zero mean return.<br/><br/><a href="http://www.andreassteiner.net/performanceanalysis/?Downloads:VBA" target="_blank" rel="nofollow">http://www.andreassteiner.net/performanceanalysis/?Downloads:VBA</a><br/><br/><br/>wiki(EWMA)<br/>Tags - <a href="http://www.mathfinance.cn/tags/volatility/" rel="tag">volatility</a><br /><strong>Read the full post at <a href="http://www.mathfinance.cn/EWMA/">EWMA Volatility</a></strong>.
]]>
</description>
</item><item>
<link>http://www.mathfinance.cn/black_scholes_implied_volatility/</link>
<title><![CDATA[Black Scholes Implied Volatility]]></title> 
<author>abiao &lt;&gt;</author>
<category><![CDATA[VBA/Excel]]></category>
<pubDate>Mon, 28 Jul 2008 08:08:59 +0000</pubDate> 
<guid>http://www.mathfinance.cn/black_scholes_implied_volatility/</guid> 
<description>
<![CDATA[Calculates the implied volatility of an european option using bi-section method. This function uses the super black scholes function.<br/><br/><a href="http://www.vbnum.com/finance/" target="_blank" rel="nofollow">http://www.vbnum.com/finance/</a><br/><br/><br/>wiki(Implied volatility)<br/>Tags - <a href="http://www.mathfinance.cn/tags/black_scholes/" rel="tag">black scholes</a> , <a href="http://www.mathfinance.cn/tags/volatility/" rel="tag">volatility</a><br /><strong>Read the full post at <a href="http://www.mathfinance.cn/black_scholes_implied_volatility/">Black Scholes Implied Volatility</a></strong>.
]]>
</description>
</item><item>
<link>http://www.mathfinance.cn/Outperformance_Options/</link>
<title><![CDATA[Outperformance Options Price]]></title> 
<author>abiao &lt;&gt;</author>
<category><![CDATA[VBA/Excel]]></category>
<pubDate>Sun, 27 Jul 2008 10:04:26 +0000</pubDate> 
<guid>http://www.mathfinance.cn/Outperformance_Options/</guid> 
<description>
<![CDATA[Computes the price of an outperformance option.<br/><br/>http://www.vbnumericalmethods.com/finance/<br/><br/>wiki(Exotic option)<br/>Tags - <a href="http://www.mathfinance.cn/tags/outperformance/" rel="tag">outperformance</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/Outperformance_Options/">Outperformance Options Price</a></strong>.
]]>
</description>
</item><item>
<link>http://www.mathfinance.cn/Rainbow_option/</link>
<title><![CDATA[Rainbow Option Price]]></title> 
<author>abiao &lt;&gt;</author>
<category><![CDATA[VBA/Excel]]></category>
<pubDate>Sun, 27 Jul 2008 10:02:22 +0000</pubDate> 
<guid>http://www.mathfinance.cn/Rainbow_option/</guid> 
<description>
<![CDATA[Calculates the price of a (two-coloured rainbow) option delivering the best of two risky assets or cash.<br/><br/>http://www.vbnumericalmethods.com/finance/<br/><br/><br/>wiki(Rainbow option)<br/>Tags - <a href="http://www.mathfinance.cn/tags/rainbow/" rel="tag">rainbow</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/Rainbow_option/">Rainbow Option Price</a></strong>.
]]>
</description>
</item><item>
<link>http://www.mathfinance.cn/Convertible_bond/</link>
<title><![CDATA[CONVERTIBLE BOND PRICING MODEL]]></title> 
<author>abiao &lt;&gt;</author>
<category><![CDATA[VBA/Excel]]></category>
<pubDate>Sun, 27 Jul 2008 09:55:49 +0000</pubDate> 
<guid>http://www.mathfinance.cn/Convertible_bond/</guid> 
<description>
<![CDATA[A simple spreadsheet to price convertible bond based on Espen Gaarder Haage's binomial tree model which was originally developed by Goldman-Sachs. <br/><br/>http://www.yieldcurve.com/Mktsoftware/excelCB.htm<br/><br/>wiki(Convertible bond)<br/>Tags - <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/Convertible_bond/">CONVERTIBLE BOND PRICING MODEL</a></strong>.
]]>
</description>
</item>
</channel>
</rss>