<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>The Tasgall Group &#187; Quant</title>
	<atom:link href="http://www.tasgall.com/category/quant/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.tasgall.com</link>
	<description>Peering into the Cauldron of the Gods...</description>
	<lastBuildDate>Sat, 24 Jul 2010 00:48:55 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>American Pie</title>
		<link>http://www.tasgall.com/2008/03/12/right-on-target/</link>
		<comments>http://www.tasgall.com/2008/03/12/right-on-target/#comments</comments>
		<pubDate>Wed, 12 Mar 2008 07:43:28 +0000</pubDate>
		<dc:creator>Quicksilver</dc:creator>
				<category><![CDATA[Commentary]]></category>
		<category><![CDATA[Quant]]></category>
		<category><![CDATA[Research]]></category>
		<category><![CDATA[Trading]]></category>

		<guid isPermaLink="false">http://www.tasgall.com/2008/03/12/right-on-target/</guid>
		<description><![CDATA[
Most of my thoughts about bottoms recently have focused more on the beach-bathing variety I&#8217;m starting to see as spring creeps back to the beach. But since everyone is wondering about the market bottom, I&#8217;ll bounce the proverbial quarter off of it and see how high it goes.
I&#8217;ve talked before about market &#8220;gravity&#8221; and price [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.tasgall.com/web/2008/03/2007_10_11_mclust.jpg" title="S&amp;P 500 Price Clusters - 2007-10-11"></a></p>
<p>Most of my thoughts about bottoms recently have focused more on the beach-bathing variety I&#8217;m starting to see as spring creeps back to the beach. But since everyone is wondering about the market bottom, I&#8217;ll bounce the proverbial quarter off of it and see how high it goes.</p>
<p>I&#8217;ve talked before about market &#8220;gravity&#8221; and price clusters that attract future bids. It&#8217;s based on basic auction theory: the price that attracts the most bidding represents the best guess at the value of an item even if people who really want the item badly (or are ill-informed or excited) will pay more (or in reverse auctions, less).</p>
<p>I&#8217;ve advanced my work on the idea by taking to the computer and working with the R statistical platform to analyze markets from an auction theory perspective.</p>
<p>So how does the S&amp;P look in this context?<span id="more-606"></span>Well, I thought it made the most sense to take a snapshot as of the most recent major high, which in this case is 10-17-2007. I went back to an arbitrary 01-01-2005, just enough to make sure that I had prices included well below the recent low. Below is the output after the close on 10-17-2007. The right-hand panel is a display price on the x-axis and density on the y. Think of density as proportional to the popularity of a price. The dotted lines mark the peaks of detected clusters. These are the prices that stand out as most important. The left-hand panel attempts to delineate the clusters. Think of it as the current sphere of influence on price. The same dotted lines appear here. Each black bar corresponds to the range of prices around each dotted line price. When price is in a certain bar, it is most likely testing the value of the associated dotted line. Obviously, there was an attempt to make them mutually exclusive for clarity, but that in no way means they are. Just because price may fall in one cluster doesn&#8217;t mean it has no probability of belonging to another nearby cluster.</p>
<p><a href="http://www.tasgall.com/web/2008/03/2007_10_11_mclust.jpg" title="S&amp;P 500 Price Clusters - 2007-10-11"><img width="182" src="http://www.tasgall.com/web/2008/03/2007_10_11_mclust.thumbnail.jpg" alt="S&amp;P 500 Price Clusters - 2007-10-11" height="109" style="width: 240px; height: 164px" /></a></p>
<p><a rel="attachment wp-att-607" href="http://www.tasgall.com/2008/03/12/right-on-target/sp-500-price-clusters-2007-10-11/" title="S&amp;P 500 Price Clusters - 2007-10-11"></a></p>
<p>Now look at the red line. That is the recent low. Let me reiterate here that these charts were produced with data only up through the market&#8217;s high in October. This fingerprint was already in place as price retraced. While that sinks in, look at the solid vertical line. That is the Tuesday rally&#8217;s close. Notice that while price move into another sphere of influence, it is still contained in the lower mass of price density. I&#8217;ll leave the forecasts to others but a pull back to the read line would be like warm apple pie to the market. It&#8217;s familiar and &#8220;safe&#8221;. Maybe what the market wants is some time to move sideways in this general area for a while.</p>
<p>I&#8217;m facinated that when the fear hit, everyone ran right to the most popular price of the last three years. In some way that makes me feel comforted. Could fear lead to a rational conclusion? Was it mere chance? Maybe. This is just one example pulled out of thin air. But the fact that I didn&#8217;t know what I would find but that I knew I&#8217;d likely find exactly what I did leaves me a bit breathless&#8230;in a good way.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.tasgall.com/2008/03/12/right-on-target/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Volatility Analysis</title>
		<link>http://www.tasgall.com/2008/01/05/volatility-analysis/</link>
		<comments>http://www.tasgall.com/2008/01/05/volatility-analysis/#comments</comments>
		<pubDate>Sat, 05 Jan 2008 11:09:31 +0000</pubDate>
		<dc:creator>Jason G.</dc:creator>
				<category><![CDATA[Quant]]></category>

		<guid isPermaLink="false">http://www.tasgall.com/2008/01/05/volatility-analysis/</guid>
		<description><![CDATA[I ran into this interesting post over at the Bespoke website&#8230;
While most would agree that the stock market has certainly been more volatile this year, putting it in perspective with the long term trend shows that by at least one measure, the S&#38;P 500 was less volatile this year than its long term average.
The chart [...]]]></description>
			<content:encoded><![CDATA[<p>I ran into <a href="http://bespokeinvest.typepad.com/bespoke/2007/12/volatility-what.html">this interesting post over at the Bespoke website</a>&#8230;</p>
<p style="margin-left: 36pt">While most would agree that the stock market has certainly been more volatile this year, putting it in perspective with the long term trend shows that by at least one measure, the S&amp;P 500 was less volatile this year than its long term average.</p>
<p style="margin-left: 36pt">The chart below summarizes the average absolute daily price change in the S&amp;P 500 by year.  In 2007, the average worked out to 72 basis points, which means that, on average, the S&amp;P 500 had a daily move (up or down) of 0.72% versus an average of 0.75% since 1928.  While this year was more volatile than the last three years, prior to those years, the last time the market was this &#8216;placid&#8217; was in 1996.</p>
<p style="text-align: center; margin-left: 36pt"><img src="http://www.tasgall.com/wordpress/../web/2008/01/010108-1709-volatilitya1.png" /></p>
<p>While this is a very good point and good analysis, I decided to do a little of my own analysis and found&#8230;  I don&#8217;t have as much data as Bespoke does.  Going back to 1950 (the furthest back I can go with <a href="http://finance.yahoo.com/q/hp?s=%5EGSPC">free and easily available data from Yahoo Finance</a>), the average daily change is 0.62%.  That makes sense, considering that I couldn&#8217;t include the 1930s when volatility was so high.</p>
<p>Despite that, I forged on to find a few interesting things&#8230;  if I look at the 30 day moving average of daily price change, we get a slightly different picture.  The average volatility for 2007 has been skewed lower from the low-volatility of the first 6 months of the year.  Outside of the last three years, the last time volatility was this high/low was early 2002 when the markets were mid-patriot rally.</p>
<p style="text-align: center"><img src='http://www.tasgall.com/wordpress/../web/2008/01/volatility_30dma.jpg' alt='volatility_30dma.jpg' /></p>
<p>Similarly, it is worth looking at volatility on multi-day time frames, such as weekly price change or monthly price change.  As we go to longer time frames, the changes look more similar to the first chart that Bespoke published.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.tasgall.com/2008/01/05/volatility-analysis/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Throwing A Fit</title>
		<link>http://www.tasgall.com/2007/07/27/throwing-a-fit/</link>
		<comments>http://www.tasgall.com/2007/07/27/throwing-a-fit/#comments</comments>
		<pubDate>Fri, 27 Jul 2007 18:02:54 +0000</pubDate>
		<dc:creator>Quicksilver</dc:creator>
				<category><![CDATA[Quant]]></category>
		<category><![CDATA[Trading]]></category>

		<guid isPermaLink="false">http://www.tasgall.com/2007/07/27/throwing-a-fit/</guid>
		<description><![CDATA[Given that the big news is the big market down day (and, as I write, the aftershock), I figured it was the perfect time to try some of the concepts I learned in Why Stock Markets Crash. Sornette provides a non-linear model formula that he attempts to fit to markets and notes that when this model [...]]]></description>
			<content:encoded><![CDATA[<p>Given that the big news is the big market down day (and, as I write, the aftershock), I figured it was the perfect time to try some of the concepts I learned in <em>Why Stock Markets Crash</em>. Sornette provides a non-linear model formula that he attempts to fit to markets and notes that when this model finds a good fit, it often does so right before major crashes. This concept relates directly to talks of singularities. Basically, exponential growth, peppered with log-periodic (equally spaced on a log chart but closer and closer together on a standard chart) waves, results in a singularity or critical time where a crash is highly <em>likely</em>.</p>
<p>There are several parameters that need to be optimized and, since it&#8217;s non-linear, it requires some major computation power. All those parameters make it more difficult because, during fitting, you happen upon local minima that aren&#8217;t the real best minimum. So you have to run the optimization several times with different starting seed values and hopefully converge on the answer.</p>
<p>So enter Java. I wrote a program that would read in market data (S&amp;P 500 since the &#8216;03 bottom) and try to perform a fit to the model.<span id="more-491"></span> If no good fit is found, you can assume that perhaps we aren&#8217;t in a singularity pathway at the moment. If you do get a decent fit, then it tells you  a bubble might be forming and gives you the estimated time for the singularity. It should be noted that by singularity, I don&#8217;t mean the big one that is talked about in technology circa 2050. I just mean the end of any greater-than-exponential growth path. In other words, mini-singularities happen, like in 1987 and 1929.</p>
<p>My code is very crude and by no means am I an expert in curve-fitting but I figured it would be fun to see if I could get any good fits and if the various minima would agree on a general time that a major bubble and crash might be likely. Of course, crashes can occur any time but if the precursors of this model are present, you can get a bead on it. Sornette points out that the model gets more accurate as the real time approaches. Modeling too early will give no good results. Also, all those local minima might disagree wildly, leading to inconclusive results. What you are watching for is when all the answer are starting to flash red lights around the same time.</p>
<p> So is yesterday&#8217;s big drop a precursor to a major crash? Has another 1987 started? Well, the answer is: not by Sornette&#8217;s model at least. Nothing about the rise in price from the 2003 bottom would lead one to believe that a exponential, log-periodic bubble is in place. The critical times of all the decent fits I could create were years in the future and also all over the map. Here is a chart showing the market data (denoised and coverted to log values) overlaid with the best model:</p>
<p> <a href="http://www.tasgall.com/web/2007/07/sp_500_bubble.jpg" title="S&amp;P 500 Crash Model 2007-07-27"><img src="http://www.tasgall.com/web/2007/07/sp_500_bubble.thumbnail.jpg" alt="S&amp;P 500 Crash Model 2007-07-27" /></a></p>
<p> I&#8217;ve extrapolated the model out to the estimated singularity time. As you can see, the best the model could determine was that we are in an early stage of a bubble at best. Please understand that the extrapolation is not saying that that is the likely path. Only that if the market does play out as a bubble, the behavior since 2003 doesn&#8217;t reflect it yet. Interestingly, this is in agreement with most value models that show no significant overpricing in the stock market like we saw in 2000.</p>
<p>Crashes don&#8217;t need these precursors to happen nor are they guaranteed when the precursors are there (though it is highly likely to a significant degree). Lack of evidence doesn&#8217;t equal evidence of lack. But it does mean that a bubble in the mathematical sense that Sornette lays out isn&#8217;t reflected in today&#8217;s market as far as my crude code can tell. Take it for what it&#8217;s worth.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.tasgall.com/2007/07/27/throwing-a-fit/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>(Every Girl&#8217;s Crazy &#8216;Bout A) Sharpe-Dressed Man</title>
		<link>http://www.tasgall.com/2007/07/06/every-girls-crazy-bout-a-sharpe-dressed-man/</link>
		<comments>http://www.tasgall.com/2007/07/06/every-girls-crazy-bout-a-sharpe-dressed-man/#comments</comments>
		<pubDate>Fri, 06 Jul 2007 16:05:29 +0000</pubDate>
		<dc:creator>Quicksilver</dc:creator>
				<category><![CDATA[Commentary]]></category>
		<category><![CDATA[Quant]]></category>

		<guid isPermaLink="false">http://www.tasgall.com/2007/07/06/every-girls-crazy-bout-a-sharpe-dressed-man/</guid>
		<description><![CDATA[I&#8217;ve read plenty of vitrol about the Sharpe Ratio (return divided by volatility) and how dangerous is can be and how insufficient it is as a measure of risk, but I&#8217;ve never been one to go all black &#38; white about any piece of information. I find it hard to believe that something valuable can&#8217;t [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve read plenty of vitrol about the Sharpe Ratio (return divided by volatility) and how dangerous is can be and how insufficient it is as a measure of risk, but I&#8217;ve never been one to go all black &amp; white about any piece of information. I find it hard to believe that something valuable can&#8217;t be gleaned from what it is saying to an investor, at least on a relative scale. My current experience with UP (Uberman&#8217;s Portfolio) has brought it to my attention just how much of an uphill battle we often create for ourselves when we invest. Part of why UP has done well in recent times is that it&#8217;s a rare blend of high yields on reasonable volatility with very dynamic risk control capabilities such as low costs and small incremental lot size. In other words, the Sharpe Ratios in the forex world are historically high. The volatility of the markets, especially when diversified, is not a large multiple of the yields.<span id="more-143"></span></p>
<p>Now take a look at the US stock markets. The S&amp;P 500 has a long-term Sharpe Ratio of less that 0.5. To put this in perspective, it&#8217;s generally considered &#8220;good&#8221; if an investment strategy has a Sharpe Ratio near 1 and hopefully greater. What this means is that relative the return one can expect from stocks, the volatility is way to high. Now this sounded like an oversimplification to me so I decided to perform a little test. I took the full set of SPDR ETFs, representing various sectors and build a sort of UP-like portfolio out of them. It was nearly impossible to create a portfolio that could manage a decent Sharpe Ratio and consequenly a resonable yield/drawdown ratio. This was based purely on dividend yields mind you and so doesn&#8217;t factor in market timing. But I think the point remains valid because any investment can be made good with brilliant timing. I wanted to compare market-neutral strategies so that I was truly taking what the market is willing to give me no questions asked: yield and volatility. Yield in currencies are interest rates and yield in stocks are dividends. So the conclusion seems to be that unless you are a good timer, stocks are an uphill battle with risk. Certain investments have volatilities closure to their yield than others. I just think it&#8217;s amazing that something as popular as stocks have so steep a profile. Stock volatilities are almost always double digits and often over 20% long-term. Most currencies top out at 10-12% historically. Yet yields are similar. All else being equal, the choice seems obvious&#8230;for now. Things can change tomorrow and I&#8217;m not trying to tout currencies above all else. I&#8217;m just trying to point how what&#8217;s important when thinking about your portfolio of whatever.</p>
<p>Of course, one might feel they have a better sense of timing in one versus the other and that shouldn&#8217;t be discounted. But if anything, stocks are far from being the more &#8220;conservative&#8221; everyman investment they are made out to be, while more exotic things like forex seem to be much more suited to the risk-averse if handled with some basic care. It&#8217;s the overuse of leverage (see Jason&#8217;s posts on hedge funds), which you don&#8217;t have to use, that deserves the blame for this rep. This is just one facet of any investment decision so I don&#8217;t mean to overgeneralize. In fact, I&#8217;m reminded of the old adage that the greater the risk the greater the reward. I&#8217;m just going out on a limb to see what fruit I might find.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.tasgall.com/2007/07/06/every-girls-crazy-bout-a-sharpe-dressed-man/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Seeking Alpha</title>
		<link>http://www.tasgall.com/2006/08/27/seeking-alpha/</link>
		<comments>http://www.tasgall.com/2006/08/27/seeking-alpha/#comments</comments>
		<pubDate>Sun, 27 Aug 2006 23:47:22 +0000</pubDate>
		<dc:creator>Quicksilver</dc:creator>
				<category><![CDATA[Quant]]></category>
		<category><![CDATA[Tactics]]></category>
		<category><![CDATA[Trading]]></category>

		<guid isPermaLink="false">http://www.tasgall.com/2006/08/27/seeking-alpha/</guid>
		<description><![CDATA[No, not the blog (or rather the blog of other blogs).  I mean specifically the alpha that they are seeking.  What is it?  Well alpha can be what Investopedia says it is but try this on for size:
alpha = returns of investment  –  (volatility of investment / volatility of benchmark) * returns of benchmark
What this is is a measure [...]]]></description>
			<content:encoded><![CDATA[<p>No, not the blog (or rather the blog of other blogs).  I mean specifically the alpha that they are seeking.  What is it?<span id="more-232"></span>  Well alpha can be what <a href="http://www.investopedia.com/terms/a/alpha.asp" target="_blank">Investopedia</a> says it is but try this on for size:</p>
<p>alpha = returns of investment  –  (volatility of investment / volatility of benchmark) * returns of benchmark</p>
<p>What this is is a measure of relative performance or advantage.  To stand higher than a benchmark, like an index for example, an investment must not only provide higher returns but do so with proportionally lower volatility.  If an investment doubles the returns of the index but also doubles the volatility (i.e. risk), then the alpha is zero and the investment provides no real advantage.  So the conclusion is <em>seek alpha at all times</em>.  Sounds easy enough, right?</p>
<blockquote><p><font color="#000000">Finding alpha is more important than ever, but it hasn’t become any easier.  And the cost is rising.</font></p></blockquote>
<p><font color="#000000">So investing is hard work.  But alpha is what you should work hard to find.</font></p>
]]></content:encoded>
			<wfw:commentRss>http://www.tasgall.com/2006/08/27/seeking-alpha/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Get Your Hump On</title>
		<link>http://www.tasgall.com/2006/07/21/get-your-hump-on/</link>
		<comments>http://www.tasgall.com/2006/07/21/get-your-hump-on/#comments</comments>
		<pubDate>Fri, 21 Jul 2006 23:49:13 +0000</pubDate>
		<dc:creator>Quicksilver</dc:creator>
				<category><![CDATA[Quant]]></category>

		<guid isPermaLink="false">http://www.tasgall.com/2006/07/21/get-your-hump-on/</guid>
		<description><![CDATA[Ok, as promised, a primer on density profiles or meta-MarketProfiles or whatever you want to call them.
To begin, grab yourself some data.  Good ol&#8217; OHLC data.  Any timeframe will do as we have been discussing in the &#8220;You Are My Density&#8221; thread.  I realize that daily data is by far and away the most commonly [...]]]></description>
			<content:encoded><![CDATA[<p>Ok, as promised, a primer on density profiles or meta-MarketProfiles or whatever you want to call them.</p>
<p><span id="more-122"></span>To begin, grab yourself some data.  Good ol&#8217; OHLC data.  Any timeframe will do as we have been discussing in the &#8220;You Are My Density&#8221; thread.  I realize that daily data is by far and away the most commonly availble free data so don&#8217;t be afraid to use it even though I recommend 30 minute data or hourly if you can get it.  Now, throw out the open and close.  Well, don&#8217;t literally throw it out but you won&#8217;t need it to make the chart.  What you are left with are a bunch of high-low ranges for each time period.  How many time periods?  I usually don&#8217;t like to work with less that 250 periods and I avoid after-market periods and weekends data because they aren&#8217;t active enough to be given the same weight (or any at all).  In addition to the 250 period chart, I like to make a 500 and a 1000 period chart for reference.</p>
<p>So if you have a vertical column of highs and lows, create a horizontal group of buckets for your chart price axis.  If you have enough space, make a bucket for every possible price tick from the highest high to the lowest low of your data set.  Or otherwise make some bigger buckets, like every 5 or 10 ticks.  Now put a &#8221;1&#8243; in every bucket that the high-low range for that period covers.  For example, if the range of some market is 70-65 during one time period, and you have buckets every 0.5 then you&#8217;ve put a 1 in the 65.00, the 65.5, the 66.00 etc. all the way up to 70.00.  Do this for each time period then add up all your columns into a histogram.  That&#8217;s it.</p>
<p>Here is an <a id="p126" href="http://www.tasgall.com/wp-content/uploads/2006/07/spx_density.zip">example</a> worksheet. I used daily SPX prices from Yahoo!  I figured using this data would be appreciated since it&#8217;s the most readily available.  Across the top are the buckets I created, one at each whole number.  The rest of the worksheet is the 1s and 0s used to flag the buckets at each time period.  The very last row is the sum of each column and is the final histogram that I charted.</p>
<p>Now you should be able to create these for anything you wish.</p>
<p>P.S. I included an exponentially-weighted version of the chart on the second tab if you want to play with that concept.  I tend to do this to my data often.  You can play with the weights. If you want, say a 200 day exponential weighting then the weight is 2/(200+1) or ~0.01.  This would go in the formula in place of the 0.008 I used (~250 days).  You could also just right the formula to accept some input from some cell but I was in a hurry.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.tasgall.com/2006/07/21/get-your-hump-on/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Mmmmmm&#8230;Burrrgerrrs&#8230;</title>
		<link>http://www.tasgall.com/2006/07/17/mmmmmmburrrgerrrs/</link>
		<comments>http://www.tasgall.com/2006/07/17/mmmmmmburrrgerrrs/#comments</comments>
		<pubDate>Mon, 17 Jul 2006 20:23:29 +0000</pubDate>
		<dc:creator>Quicksilver</dc:creator>
				<category><![CDATA[Commentary]]></category>
		<category><![CDATA[Quant]]></category>

		<guid isPermaLink="false">http://www.tasgall.com/2006/07/17/mmmmmmburrrgerrrs/</guid>
		<description><![CDATA[This is by far the tastiest morsel of economic data I&#8217;ve ever seen:
Big Mac Index
Now, do you want fries with that?
]]></description>
			<content:encoded><![CDATA[<p>This is by far the tastiest morsel of economic data I&#8217;ve ever seen:</p>
<p><a href="http://www.oanda.com/products/bigmac/bigmac.shtml">Big Mac Index</a></p>
<p>Now, do you want fries with that?</p>
]]></content:encoded>
			<wfw:commentRss>http://www.tasgall.com/2006/07/17/mmmmmmburrrgerrrs/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>&#8220;Darling, there is nothing like Monte this time of year!&#8221;</title>
		<link>http://www.tasgall.com/2006/07/13/darling-there-is-nothing-like-monte-this-time-of-year/</link>
		<comments>http://www.tasgall.com/2006/07/13/darling-there-is-nothing-like-monte-this-time-of-year/#comments</comments>
		<pubDate>Fri, 14 Jul 2006 03:14:03 +0000</pubDate>
		<dc:creator>Quicksilver</dc:creator>
				<category><![CDATA[Quant]]></category>

		<guid isPermaLink="false">http://www.tasgall.com/2006/07/13/darling-there-is-nothing-like-monte-this-time-of-year/</guid>
		<description><![CDATA[I promised a quick lesson in the do-it-yourself Monte Carlo analysis so here goes.
First, some supplies: 
MCSim Excel Add-In: Just drop this in Application Data\Microsoft\AddIns under your Documents and Settings directory.  Then, in Excel, Tools/Add-Ins&#8230; to install.
Resample Demo: A demo worksheet to show how to create a random sample from your raw data.
To begin, look at the [...]]]></description>
			<content:encoded><![CDATA[<p>I promised a quick lesson in the do-it-yourself Monte Carlo analysis so here goes.</p>
<p>First, some supplies: </p>
<p><a id="p76" href="http://www.tasgall.com/wp-content/uploads/2006/07/MCSim.xla">MCSim Excel Add-In</a>: Just drop this in Application Data\Microsoft\AddIns under your Documents and Settings directory.  Then, in Excel, Tools/Add-Ins&#8230; to install.</p>
<p><a id="p79" href="http://www.tasgall.com/wp-content/uploads/2006/07/DD%20Resample.xls">Resample Demo</a>: A demo worksheet to show how to create a random sample from your raw data.</p>
<p>To begin<span id="more-78"></span>, look at the column labeled <em>Resampled</em> in the Excel demo.  Here you can see a formula that you can use to create a random data set with replacement from your actual raw data.  Note that the data in the first column are meant to represent PL numbers of some system or daily stock price changes.  After resampling, I can create a series that represents the chart for my phantom stock or whatever this is.  Now every time you press F9, you see a new random sample based on your real data.</p>
<p>Now for MCSim.  Select the cell for the max drawdown.  Go to Tools/MCSim&#8230;(assuming you installed it), change the reps to something low like 100 and click <em>Proceed</em>.  After a while, you&#8217;ll have your results.  You&#8217;ll want to use more reps when you want to do a serious analysis but it will take much longer.  Your results will show you the average, SD, Max and Min of the variable you measured, in this case the Maximum Drawdown.  The answer I got (your result might be slightly different with so few reps) was about 26% with a SD of 12.6%.  The max was 88%.  So quite a volatile set of data but you can begin to see how this is useful.  This would tell you that if you wanted to limit drawdowns to no more than 10% you&#8217;d probably want to trade this system or stock at about 40% of the size that was used to create this data set and probably less since you should consider the SD too.  Say that you wanted to base it off of +2 SDs.  You&#8217;d then need to limit things to 20% of the size (10/(26+12.6*2)) to control your risk appropriately.  In fact, I included a cell called <em>Scale</em> that you can use to adjust the leverage of the sample series and then rerun your MC simulation.  Think of it as the percent of equity you&#8217;d use to purchase this stock.</p>
<p>Hopefully, you can imagine many uses of the MCSim.  Basically it works for any formula result you want to test as long as somewhere on the page, the formula result is linked to a RAND() function so its value changes on recalculation.  I think this tool is invaluable and should be used by investors of all types to help shed light on the all important question of risk and position sizing.  It&#8217;s not a perfect tool and doesn&#8217;t erase risk but it certainly helps you understand it.</p>
<p>P.S.  There is another Excel Add-In that contains both a resample function and and Monte Carlo simulator among hundreds of other obscure things called <a href="http://www.cse.csiro.au/poptools/">PopTools</a> that seems very good.  Give it a try as an alternative to the above tools.  I thought it would be easier to share MCSim but PopTools is probably a more powerful tool and having a Resample function that doesn&#8217;t require writing that complicated formula I gave you is nice.  It&#8217;s also light years faster, completing the 100 reps in less than 1 second.  Also, Jason, the PopTools simulator will allow you to put in a test criteria like &#8220;How many times did it exceed 10%&#8221; which should be perfect for your drawdown analysis techniques.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.tasgall.com/2006/07/13/darling-there-is-nothing-like-monte-this-time-of-year/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Get Me An IV&#8230;Stat!</title>
		<link>http://www.tasgall.com/2006/06/17/get-me-an-ivstat/</link>
		<comments>http://www.tasgall.com/2006/06/17/get-me-an-ivstat/#comments</comments>
		<pubDate>Sat, 17 Jun 2006 05:22:27 +0000</pubDate>
		<dc:creator>Quicksilver</dc:creator>
				<category><![CDATA[Quant]]></category>
		<category><![CDATA[Tactics]]></category>

		<guid isPermaLink="false">http://www.tasgall.com/2006/06/17/get-me-an-ivstat/</guid>
		<description><![CDATA[Need to calculate the implied volatility of an at-the-money option on the fly and you left your Nobel laureates at home?  Not a problem&#8230;
IV = 40 x p / SQRT(t)
where p is the price of the option (as a % of the underlying) and t is trading days until expiration.
That&#8217;s all.  Forget all the complications [...]]]></description>
			<content:encoded><![CDATA[<p>Need to calculate the implied volatility of an at-the-money option on the fly and you left your Nobel laureates at home?  Not a problem&#8230;</p>
<p><strong>IV = 40 x p / SQRT(t)</strong></p>
<p>where p is the price of the option (as a % of the underlying) and t is trading days until expiration.</p>
<p>That&#8217;s all.  Forget all the complications of the million dollar formula as this gives you all you need.  However, it only works at-the-money, but then again so does Black-Scholes.</p>
<p>So what if the price is between strikes so there is no at-the-money?  Well here is another spiffy formula:</p>
<p><strong>CM = 1.04 &#8211; 0.04 * R</strong></p>
<p>where R is the ratio of the more expensive to least expensive options that are nearest to the money.  Just multiply your option price p above by CM and there you have it: the price converted to the at-the-money equivalent.</p>
<p> </p>
]]></content:encoded>
			<wfw:commentRss>http://www.tasgall.com/2006/06/17/get-me-an-ivstat/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
