<?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>QUANTITATIVE RESEARCH AND TRADING</title>
	<atom:link href="http://jonathankinlay.com/index.php/feed/" rel="self" type="application/rss+xml" />
	<link>http://jonathankinlay.com</link>
	<description>The latest theories, models and investment strategies in quantitative research and trading</description>
	<lastBuildDate>Wed, 19 Dec 2012 10:01:59 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.4.2</generator>
		<item>
		<title>Implied Volatility in Merton&#8217;s Jump Diffusion Model</title>
		<link>http://jonathankinlay.com/index.php/2012/12/implied-volatility-in-mertons-jump-diffusion-model/</link>
		<comments>http://jonathankinlay.com/index.php/2012/12/implied-volatility-in-mertons-jump-diffusion-model/#comments</comments>
		<pubDate>Sun, 02 Dec 2012 18:35:44 +0000</pubDate>
		<dc:creator>Jonathan</dc:creator>
				<category><![CDATA[Options]]></category>
		<category><![CDATA[Stochastic Differential Equations]]></category>
		<category><![CDATA[Volatility Modeling]]></category>
		<category><![CDATA[Jump Diffusion]]></category>
		<category><![CDATA[Smile]]></category>
		<category><![CDATA[Volatility]]></category>

		<guid isPermaLink="false">http://jonathankinlay.com/?p=503</guid>
		<description><![CDATA[The &#8220;implied volatility&#8221; corresponding to an option price is the value of the volatility parameter for which the Black-Scholes model gives the same price. A well-known phenomenon in market option prices is the &#8220;volatility smile&#8221;, in which the implied volatility increases for strike values away from the spot price. The jump diffusion model is a...]]></description>
			<content:encoded><![CDATA[<p>The &#8220;implied volatility&#8221; corresponding to an option price is the value of the volatility parameter for which the Black-Scholes model gives the same price. A well-known phenomenon in market option prices is the &#8220;volatility smile&#8221;, in which the implied volatility increases for strike values away from the spot price. The jump diffusion model is a generalization of Black\[Dash]Scholes in which the stock price has randomly occurring jumps in addition to the random walk behavior. One of the interesting properties of this model is that it displays the volatility smile effect. In this Demonstration, we explore the Black-Scholes implied volatility of option prices (equal for both put and call options) in the jump diffusion model. The implied volatility is modeled as a function of the ratio of option strike price to spot price.</p>
<p><script type="text/javascript" src="http://www.wolfram.com/cdf-player/plugin/v2.1/cdfplugin.js"></script><br />
<script type="text/javascript">
var cdf = new cdfplugin();
cdf.embed('http://jonathankinlay.com/wp-content/uploads/ImpliedVolatilityInMertonsJumpDiffusionModel.cdf', 634, 1063);
</script></p>
]]></content:encoded>
			<wfw:commentRss>http://jonathankinlay.com/index.php/2012/12/implied-volatility-in-mertons-jump-diffusion-model/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Option Prices in the Variance Gamma Model</title>
		<link>http://jonathankinlay.com/index.php/2012/11/option-prices-in-the-variance-gamma-model-2/</link>
		<comments>http://jonathankinlay.com/index.php/2012/11/option-prices-in-the-variance-gamma-model-2/#comments</comments>
		<pubDate>Fri, 23 Nov 2012 09:30:26 +0000</pubDate>
		<dc:creator>Jonathan</dc:creator>
				<category><![CDATA[Mathematica]]></category>
		<category><![CDATA[Options]]></category>
		<category><![CDATA[Volatility Modeling]]></category>
		<category><![CDATA[Smile]]></category>
		<category><![CDATA[Volatility]]></category>

		<guid isPermaLink="false">http://jonathankinlay.com/?p=490</guid>
		<description><![CDATA[]]></description>
			<content:encoded><![CDATA[<p><script type="text/javascript" src="http://www.wolfram.com/cdf-player/plugin/v2.1/cdfplugin.js"></script><br />
<script type="text/javascript">
var cdf = new cdfplugin();
cdf.embed('http://jonathankinlay.com/wp-content/uploads/Option-Prices-in-the-Variance-Gamma-Model.cdf', 634, 1063);
</script></p>
]]></content:encoded>
			<wfw:commentRss>http://jonathankinlay.com/index.php/2012/11/option-prices-in-the-variance-gamma-model-2/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Measuring Toxic Flow for Trading &amp; Risk Management</title>
		<link>http://jonathankinlay.com/index.php/2011/09/measuring-toxic-flow-for-trading-risk-management/</link>
		<comments>http://jonathankinlay.com/index.php/2011/09/measuring-toxic-flow-for-trading-risk-management/#comments</comments>
		<pubDate>Mon, 19 Sep 2011 00:23:06 +0000</pubDate>
		<dc:creator>Jonathan</dc:creator>
				<category><![CDATA[Algorithmic Trading]]></category>
		<category><![CDATA[ARMA]]></category>
		<category><![CDATA[Direction Prediction]]></category>
		<category><![CDATA[Econometrics]]></category>
		<category><![CDATA[Econophysics]]></category>
		<category><![CDATA[Forecasting]]></category>
		<category><![CDATA[High Frequency Finance]]></category>
		<category><![CDATA[Market Microstructure]]></category>
		<category><![CDATA[Order Flow]]></category>
		<category><![CDATA[Risk Management]]></category>
		<category><![CDATA[Time Series Modeling]]></category>
		<category><![CDATA[Toxic Flow]]></category>

		<guid isPermaLink="false">http://jonathankinlay.com/?p=459</guid>
		<description><![CDATA[A common theme of microstructure modeling is that trade flow is often predictive of market direction.  One concept in particular that has gained traction is flow toxicity, i.e. flow where resting orders tend to be filled more quickly than expected, while aggressive orders rarely get filled at all, due to the participation of informed traders trading...]]></description>
			<content:encoded><![CDATA[<p>A common theme of microstructure modeling is that trade flow is often predictive of market direction.  One concept in particular that has gained traction is flow toxicity, i.e. flow where resting orders tend to be filled more quickly than expected, while aggressive orders rarely get filled at all, due to the participation of informed traders trading against uninformed traders.  The fundamental insight from microstructure research is that the order arrival process is informative of subsequent price moves in general and toxic flow in particular.  This is turn has led researchers to try to measure the probability of informed trading  (PIN).  One recent attempt to model flow toxicity, the Volume-Synchronized Probability of Informed Trading (VPIN)metric, seeks to estimate PIN based on volume imbalance and trade intensity.  A major advantage of this approach is that it does not require the estimation of unobservable parameters and, additionally, updating VPIN in trade time rather than clock time improves its predictive power.  VPIN has potential applications both in high frequency trading strategies, but also in risk management, since highly toxic flow is likely to lead to the withdrawal of liquidity providers, setting up the conditions for a flash-crash” type of market breakdown.</p>
<p>The procedure for estimating VPIN is as follows.  We begin by grouping sequential trades into equal volume buckets of size V.  If the last trade needed to complete a bucket was for a size greater than needed, the excess size is given to the next bucket.  Then we classify trades within each bucket into two volume groups:  Buys (V(t)<sub>B</sub>) and Sells (V(t)<sub>S</sub>), with V = V(t)<sub>B </sub>+ V(t)<sub>S</sub><br />
The Volume-Synchronized Probability of Informed Trading is then derived as:</p>
<p><a href="http://jonathankinlay.com/index.php/2011/09/measuring-toxic-flow-for-trading-risk-management/vpin-2/" rel="attachment wp-att-465"><img class="aligncenter size-full wp-image-465" title="VPIN" src="http://jonathankinlay.com/wp-content/uploads/VPIN.png" alt="" width="750" height="66" /></a></p>
<p>Typically one might choose to estimate VPIN using a moving average over n buckets, with n being in the range of 50 to 100.</p>
<p>Another related statistic of interest is the single-period signed VPIN. This will take a value of between -1 and =1, depending on the proportion of buying to selling during a single period t.</p>
<p><a href="http://jonathankinlay.com/index.php/2011/09/measuring-toxic-flow-for-trading-risk-management/single-period-vpin/" rel="attachment wp-att-466"><img class="aligncenter size-medium wp-image-466" title="Single Period VPIN" src="http://jonathankinlay.com/wp-content/uploads/Single-Period-VPIN-300x225.png" alt="" width="300" height="225" /></a></p>
<p style="text-align: center;">Fig 1. Single-Period Signed VPIN for the ES Futures Contract</p>
<p style="text-align: left;">It turns out that quote revisions condition strongly on the signed VPIN. For example, in tests of the ES futures contract, we found that the change in the midprice from one volume bucket the next  was highly correlated to the prior bucket’s signed VPIN, with a coefficient of 0.5.  In other words, market participants offering liquidity will adjust their quotes in a way that directly reflects the direction and intensity of toxic flow, which is perhaps hardly surprising.</p>
<p>Of greater interest is the finding that there is a small but statistically significant dependency of price changes, as measured by first buy (sell) trade price to last sell (buy) trade price, on the prior period’s signed VPIN.  The correlation is positive, meaning that strongly toxic flow in one direction has a tendency  to push prices in the same direction during the subsequent period. Moreover, the single period signed VPIN turns out to be somewhat predictable, since its autocorrelations are statistically significant at two or more lags.  A simple linear auto-regression ARMMA(2,1) model produces an R-square of around 7%, which is small, but statistically significant.</p>
<p>A more useful model, however , can be constructed by introducing the idea of Markov states and allowing the regression model to assume different parameter values (and error variances) in each state.  In the Markov-state framework, the system transitions from one state to another with conditional probabilities that are estimated in the model.</p>
<p>An example of such a model  for the signed VPIN in ES is shown below. Note that the model R-square is over 27%, around 4x larger than for a standard linear ARMA model.</p>
<p>We can describe the regime-switching model in the following terms.  In the regime 1 state  the model has two significant autoregressive terms and one significant moving average term (ARMA(2,1)).  The AR1 term is large and positive, suggesting that trends in VPIN tend to be reinforced from one period to the next. In other words, this is a momentum state. In the regime 2 state the AR2 term is not significant and the AR1 term is large and negative, suggesting that changes in VPIN in one period tend to be reversed in the following period, i.e. this is a mean-reversion state.</p>
<p>The state transition probabilities indicate that the system is in mean-reversion mode for the majority of the time, approximately around 2 periods out of 3.  During these periods, excessive flow in one direction during one period tends to be corrected in the<br />
ensuring period.  But in the less frequently occurring state 1, excess flow in one direction tends to produce even more flow in the same direction in the following period.  This first state, then, may be regarded as the regime characterized by toxic flow.</p>
<p><strong><span style="text-decoration: underline;">Markov State Regime-Switching Model</span></strong></p>
<p>Markov Transition Probabilities</p>
<p>P(.|1)       P(.|2)</p>
<p>P(1|.)        0.54916      0.27782</p>
<p>P(2|.)       0.45084      0.7221</p>
<p>Regime 1:</p>
<p>AR1           1.35502    0.02657   50.998        0</p>
<p>AR2         -0.33687    0.02354   -14.311        0</p>
<p>MA1          0.83662    0.01679   49.828        0</p>
<p>Error Variance^(1/2)           0.36294     0.0058</p>
<p>Regime 2:</p>
<p>AR1      -0.68268    0.08479    -8.051        0</p>
<p>AR2       0.00548    0.01854    0.296    0.767</p>
<p>MA1     -0.70513    0.08436    -8.359        0</p>
<p>Error Variance^(1/2)           0.42281     0.0016</p>
<p>Log Likelihood = -33390.6</p>
<p>Schwarz Criterion = -33445.7</p>
<p>Hannan-Quinn Criterion = -33414.6</p>
<p>Akaike Criterion = -33400.6</p>
<p>Sum of Squares = 8955.38</p>
<p>R-Squared =  0.2753</p>
<p>R-Bar-Squared =  0.2752</p>
<p>Residual SD =  0.3847</p>
<p>Residual Skewness = -0.0194</p>
<p>Residual Kurtosis =  2.5332</p>
<p>Jarque-Bera Test = 553.472     {0}</p>
<p>Box-Pierce (residuals):         Q(9) = 13.9395 {0.124}</p>
<p>Box-Pierce (squared residuals): Q(12) = 743.161     {0}</p>
<p>&nbsp;</p>
<p><strong><span style="text-decoration: underline;">A Simple Trading Strategy</span></strong></p>
<p>One way to try to monetize the predictability of the VPIN model is to use the forecasts to take directional positions in the ES<br />
contract.  In this simple simulation we assume that we enter a long (short) position at the first buy (sell) price if the forecast VPIN exceeds some threshold value 0.1  (-0.1).  The simulation assumes that we exit the position at the end of the current volume bucket, at the last sell (buy) trade price in the bucket.</p>
<p>This simple strategy made 1024 trades over a 5-day period from 8/8 to 8/14, 90% of which were profitable, for a total of $7,675 – i.e. around ½ tick per trade.</p>
<p>The simulation is, of course, unrealistically simplistic, but it does give an indication of the prospects for  more realistic version of the strategy in which, for example, we might rest an order on one side of the book, depending on our VPIN forecast.</p>
<p><a href="http://jonathankinlay.com/index.php/2011/09/measuring-toxic-flow-for-trading-risk-management/pl/" rel="attachment wp-att-467"><img class="aligncenter size-medium wp-image-467" title="Trade PL" src="http://jonathankinlay.com/wp-content/uploads/PL-300x225.png" alt="" width="300" height="225" /></a></p>
<p style="text-align: center;">Figure 2 – Cumulative Trade PL</p>
<p><strong><span style="text-decoration: underline;">References</span></strong></p>
<p>Easley, D., Lopez de Prado, M., O’Hara, M., Flow Toxicity and Volatility in a High frequency World, Johnson School Research paper Series # 09-2011, 2011</p>
<p>Easley, D. and M. O‟Hara (1987), &#8220;Price, Trade Size, and Information in Securities Markets&#8221;, Journal of Financial Economics, 19.</p>
<p>Easley, D. and M. O‟Hara (1992a), <em>&#8220;Adverse Selection and Large Trade Volume: The Implications for Market Efficiency&#8221;</em>,<br />
Journal of Financial and Quantitative Analysis, 27(2), June, 185-208.</p>
<p>Easley, D. and M. O‟Hara (1992b), <em>“Time and the process of security price adjustment”</em>, Journal of Finance, 47, 576-605.</p>
<p>&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://jonathankinlay.com/index.php/2011/09/measuring-toxic-flow-for-trading-risk-management/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Generalized Regression</title>
		<link>http://jonathankinlay.com/index.php/2011/06/generalized-regression/</link>
		<comments>http://jonathankinlay.com/index.php/2011/06/generalized-regression/#comments</comments>
		<pubDate>Sun, 05 Jun 2011 17:34:10 +0000</pubDate>
		<dc:creator>Jonathan</dc:creator>
				<category><![CDATA[Financial Engineering]]></category>
		<category><![CDATA[Regression]]></category>
		<category><![CDATA[Financial engineering]]></category>

		<guid isPermaLink="false">http://jonathankinlay.com/?p=446</guid>
		<description><![CDATA[Linear regression is one of the most useful applications in the financial engineer&#8217;s tool-kit, but it suffers from a rather restrictive set of assumptions that limit its applicability in areas of research that are characterized by their focus on highly non-linear or correlated variables.  The latter problem, referred to as colinearity (or multicolinearity) arises very...]]></description>
			<content:encoded><![CDATA[<p><a href="http://en.wikipedia.org/wiki/Linear_regression" target="_blank">Linear regression</a> is one of the most useful applications in the financial engineer&#8217;s tool-kit, but it suffers from a rather restrictive set of assumptions that limit its applicability in areas of research that are characterized by their focus on highly non-linear or correlated variables.  The latter problem, referred to as colinearity (or <a href="http://en.wikipedia.org/wiki/Multicollinearity" target="_blank">multicolinearity</a>) arises very frequently in financial research, because asset processes are often somewhat (or even highly) correlated.  In a colinear system, one can test for the overall significant of the regression relationship, but one is unable to distinguish which of the explanatory variables is individually significant.  Furthermore, the estimates of the model paramaters, the weights applied to each explanatory variable, tend to be biased.</p>
<p>Over time, many attempts have been made to address this issue, one well-known example being ridge regression.  More recent attempts include lasso, elastic net and what I term generalized regression, which appear to offer significant advantages vs traditional regression techniques in situations where the variables are correlated.</p>
<p>In this note, I examine a variety of these technqiues and attempt to illustrate and compare their effectiveness.</p>
<p><a rel="attachment wp-att-451" href="http://jonathankinlay.com/index.php/2011/06/generalized-regression/generalized-regression-graphic-3/"><img class="aligncenter size-medium wp-image-451" title="Generalized Regression Graphic" src="http://jonathankinlay.com/wp-content/uploads/Generalized-Regression-Graphic2-300x191.jpg" alt="" width="300" height="191" /></a></p>
<p>You can downlaod a <a title="Generalized Regression pdf" href="http://www.jonathankinlay.com/Articles/Generalized%20Regression/Generalized%20Regression.pdf" target="_blank">pdf </a>here.</p>
<p>A <em>Mathematica </em>notebook is also available <a href="http://www.jonathankinlay.com/Articles/Generalized%20Regression/Generalized%20Regression.nb">here</a>.</p>
<p>&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://jonathankinlay.com/index.php/2011/06/generalized-regression/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Hiring High Frequency Quant/Traders</title>
		<link>http://jonathankinlay.com/index.php/2011/05/hiring-quanttraders/</link>
		<comments>http://jonathankinlay.com/index.php/2011/05/hiring-quanttraders/#comments</comments>
		<pubDate>Thu, 26 May 2011 18:29:52 +0000</pubDate>
		<dc:creator>Jonathan</dc:creator>
				<category><![CDATA[High Frequency Finance]]></category>
		<category><![CDATA[High Frequency Trading]]></category>
		<category><![CDATA[Jobs]]></category>
		<category><![CDATA[Quant/Traders]]></category>
		<category><![CDATA[Recruitment]]></category>
		<category><![CDATA[Chicago]]></category>

		<guid isPermaLink="false">http://jonathankinlay.com/?p=437</guid>
		<description><![CDATA[I am hiring in Chicago for exceptional HF Quant/Traders in Equities, F/X, Futures &#38; Fixed Income.  Remuneration for these roles, which will be dependent on qualifications and experience, will be in line with the highest market levels. Role Working closely with team members including developers, traders and quantitative researchers, the central focus of the role will be...]]></description>
			<content:encoded><![CDATA[<p>I am hiring in Chicago for exceptional HF Quant/Traders in Equities, F/X, Futures &amp; Fixed Income.  Remuneration for these roles, which will be dependent on qualifications and experience, will be in line with the highest market levels.</p>
<p><strong>Role<br />
</strong>Working closely with team members including developers, traders and quantitative researchers, the central focus of the role will be to research and develop high frequency trading strategies in equities, fixed income, foreign exchange and related commodities markets.</p>
<p><strong>Responsibilities</strong><br />
The analyst will have responsibility of taking an idea from initial conception through research, testing and implementation.  The work will entail:</p>
<ul>
<li>Formulation of mathematical and econometric models for market microstructure</li>
<li>Data collation, normalization and analysis</li>
<li>Model prototyping and programming</li>
<li>Strategy development, simulation, back-testing and implementation</li>
<li>Execution strategy &amp; algorithms</li>
</ul>
<p><strong>Qualifications &amp; Experience</strong></p>
<ul>
<li>Minimum 5 years in quantitative research with a leading proprietary trading firm, hedge fund, or investment bank</li>
<li>In-depth knowledge of Equities, F/X and/or futures markets, products and operational infrastructure</li>
<li>High frequency data management &amp; data mining techniques</li>
<li>Microstructure modeling</li>
<li>High frequency econometrics (cointegration, VAR,error correction models, GARCH, panel data models, etc.)</li>
<li>Machine learning, signal processing, state space modeling and pattern recognition</li>
<li>Trade execution and algorithmic trading</li>
<li>PhD in Physics/Math/Engineering, Finance/Economics/Statistics</li>
<li>Expert programming skills in Java, Matlab/Mathematica essential</li>
<li><strong>Must be US Citizen or Permanent Resident</strong></li>
</ul>
<p>Send your resume to: jkinlay at systematic-strategies.com.</p>
<p>No recruiters please.</p>
]]></content:encoded>
			<wfw:commentRss>http://jonathankinlay.com/index.php/2011/05/hiring-quanttraders/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Alpha Spectral Analysis</title>
		<link>http://jonathankinlay.com/index.php/2011/05/alpha-spectral-analysis/</link>
		<comments>http://jonathankinlay.com/index.php/2011/05/alpha-spectral-analysis/#comments</comments>
		<pubDate>Sun, 22 May 2011 23:56:14 +0000</pubDate>
		<dc:creator>Jonathan</dc:creator>
				<category><![CDATA[Forecasting]]></category>
		<category><![CDATA[Fourier Transforms]]></category>
		<category><![CDATA[High Frequency Finance]]></category>
		<category><![CDATA[Pairs Trading]]></category>
		<category><![CDATA[Principal Components Analysis]]></category>
		<category><![CDATA[Signal Processing]]></category>
		<category><![CDATA[Statistical Arbitrage]]></category>
		<category><![CDATA[High Frequency Trading]]></category>

		<guid isPermaLink="false">http://jonathankinlay.com/?p=412</guid>
		<description><![CDATA[One of the questions of interest is the optimal sampling frequency to use for extracting the alpha signal from an alpha generation function.  We can use Fourier transforms to help identify the cyclical behavior of the strategy alpha and hence determine the best time-frames for sampling and trading.  Typically, these spectral analysis techniques will highlight...]]></description>
			<content:encoded><![CDATA[<p>One of the questions of interest is the optimal sampling frequency to use for extracting the alpha signal from an alpha generation function.  We can use Fourier transforms to help identify the cyclical behavior of the strategy alpha and hence determine the best time-frames for sampling and trading.  Typically, these spectral analysis techniques will highlight several different cycle lengths where the alpha signal is strongest.</p>
<p>The spectral density of the combined alpha signals across twelve pairs of stocks is shown in Fig. 1 below.  It is clear that the strongest signals occur in the shorter frequencies with cycles of up to several hundred seconds. Focusing on the density within<br />
this time frame, we can identify in Fig. 2 several frequency cycles where the alpha signal appears strongest. These are around 50, 80, 160, 190, and 230 seconds.  The cycle with the strongest signal appears to be around 228 secs, as illustrated in Fig. 3.  The signals at cycles of 54 &amp; 80 (Fig. 4), and 158 &amp; 185/195 (Fig. 5) secs appear to be of approximately equal strength.<br />
There is some variation in the individual pattern for of the  power spectra for each pair, but the findings are broadly comparable, and  indicate that strategies should be designed for sampling frequencies at around  these time intervals.</p>
<dl id="attachment_414">
<dt><a rel="attachment wp-att-414" href="http://jonathankinlay.com/index.php/2011/05/alpha-spectral-analysis/fig-1/"></a></dt>
<dd></dd>
<dd><a rel="attachment wp-att-414" href="http://jonathankinlay.com/index.php/2011/05/alpha-spectral-analysis/fig-1/"><img class="aligncenter" title="Fig 1" src="http://jonathankinlay.com/wp-content/uploads/Fig-1-300x225.jpg" alt="" width="300" height="225" /></a></dd>
</dl>
<p style="text-align: center;">Fig. 1 Alpha Power Spectrum</p>
<p>&nbsp;</p>
<p><a rel="attachment wp-att-415" href="http://jonathankinlay.com/index.php/2011/05/alpha-spectral-analysis/fig-2/"><img class="aligncenter size-medium wp-image-415" title="Fig 2" src="http://jonathankinlay.com/wp-content/uploads/Fig-2-300x225.jpg" alt="" width="300" height="225" /></a></p>
<p style="text-align: center;">Fig.2</p>
<p style="text-align: center;"><a rel="attachment wp-att-416" href="http://jonathankinlay.com/index.php/2011/05/alpha-spectral-analysis/fig-3/"><img class="aligncenter size-medium wp-image-416" title="Fig 3" src="http://jonathankinlay.com/wp-content/uploads/Fig-3-300x225.jpg" alt="" width="300" height="225" /></a>Fig. 3</p>
<p style="text-align: center;"><a rel="attachment wp-att-417" href="http://jonathankinlay.com/index.php/2011/05/alpha-spectral-analysis/fig-4/"><img class="aligncenter size-medium wp-image-417" title="Fig 4" src="http://jonathankinlay.com/wp-content/uploads/Fig-4-300x225.jpg" alt="" width="300" height="225" /></a>Fig. 4</p>
<p style="text-align: center;"><a rel="attachment wp-att-418" href="http://jonathankinlay.com/index.php/2011/05/alpha-spectral-analysis/fig-5/"><img class="aligncenter size-medium wp-image-418" title="Fig 5" src="http://jonathankinlay.com/wp-content/uploads/Fig-5-300x225.jpg" alt="" width="300" height="225" /></a>Fig. 5</p>
<p><strong>PRINCIPAL COMPONENTS ANALYSIS OF ALPHA POWER SPECTRUM</strong><br />
If we look at the correlation surface of the power spectra of the twelve pairs some clear patterns emerge (see Fig 6):</p>
<p style="text-align: center;"><a rel="attachment wp-att-421" href="http://jonathankinlay.com/index.php/2011/05/alpha-spectral-analysis/fig-6/"><img class="aligncenter size-full wp-image-421" title="Fig 6" src="http://jonathankinlay.com/wp-content/uploads/Fig-6.jpg" alt="" width="605" height="380" /></a>Fig. 6</p>
<p>Focusing on the off-diagonal elements, it is clear that the power spectrum of each pair is perfectly correlated with the power spectrum of its conjugate.   So, for instance the power spectrum of the Stock1-Stock3 pair is exactly correlated with the spectrum for its converse, Stock3-Stock1.</p>
<p>But it is also clear that there are many other significant correlations between non-conjugate pairs.  For example, the correlation between the power spectra for Stock1-Stock2 vs Stock2-Stock3 is 0.72, while the correlation of the power spectra of Stock1-Stock2 and Stock2-Stock4 is 0.69.</p>
<p>We can further analyze the alpha power spectrum using PCA to expose the underlying factor structure.  As shown in Fig. 7, the first two principal components account for around 87% of the variance in the alpha power spectrum, and the first four components account for over 98% of the total variation.</p>
<div id="attachment_422" class="wp-caption aligncenter" style="width: 310px"><a rel="attachment wp-att-422" href="http://jonathankinlay.com/index.php/2011/05/alpha-spectral-analysis/fig-7/"><img class="size-medium wp-image-422" title="Fig 7" src="http://jonathankinlay.com/wp-content/uploads/Fig-7-300x225.jpg" alt="" width="300" height="225" /></a><p class="wp-caption-text">PCA Analysis of Power Spectra</p></div>
<p style="text-align: center;">Fig. 7</p>
<p>Stock3 dominates PC-1 with loadings of 0.52 for Stock3-Stock4, 0.64 for Stock3-Stock2, 0.29 for Stock1-Stock3 and 0.26 for Stock4-Stock3.  Stock3 is also highly influential in PC-2 with loadings of -0.64 for Stock3-Stock4 and 0.67 for Stock3-Stock2 and again in PC-3 with a loading of -0.60 for Stock3-Stock1.  Stock4 plays a major role in the makeup of PC-3, with the highest loading of 0.74 for Stock4-Stock2.</p>
<p><a rel="attachment wp-att-423" href="http://jonathankinlay.com/index.php/2011/05/alpha-spectral-analysis/fig-8/"><img class="aligncenter size-full wp-image-423" title="Fig 8" src="http://jonathankinlay.com/wp-content/uploads/Fig-8.jpg" alt="" width="725" height="533" /></a></p>
<p style="text-align: center;">Fig. 8  PCA Analysis of Power Spectra</p>
<p style="text-align: center;">&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://jonathankinlay.com/index.php/2011/05/alpha-spectral-analysis/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Market Microstructure Models for High Frequency Trading Strategies</title>
		<link>http://jonathankinlay.com/index.php/2011/05/market-microstructure-models-for-high-frequency-trading-strategies/</link>
		<comments>http://jonathankinlay.com/index.php/2011/05/market-microstructure-models-for-high-frequency-trading-strategies/#comments</comments>
		<pubDate>Sun, 08 May 2011 16:12:01 +0000</pubDate>
		<dc:creator>Jonathan</dc:creator>
				<category><![CDATA[Econophysics]]></category>
		<category><![CDATA[Forecasting]]></category>
		<category><![CDATA[High Frequency Finance]]></category>
		<category><![CDATA[High Frequency Trading]]></category>
		<category><![CDATA[Market Microstructure]]></category>
		<category><![CDATA[High Frequency Finanance]]></category>

		<guid isPermaLink="false">http://jonathankinlay.com/?p=408</guid>
		<description><![CDATA[This note summarizes some of the key research in the field of market microstructure and considers some of the models proposed by the researchers. Many of the ideas presented here have become widely adopted by high frequency trading firms and incorporated into their trading systems.]]></description>
			<content:encoded><![CDATA[<p><span style="color: #000080; font-family: Times New Roman;"><span style="color: #000080; font-family: Times New Roman;"><a title="Market Microstructure Models" href="http://www.Jonathankinlay.com/Articles/Market%20Microstructure%20Models/Market%20MicroStructure%20Models.pdf" target="_blank">This note </a>summarizes some of the key research in the field of market microstructure and considers some of the models proposed by the researchers. Many of the ideas presented here have become widely adopted by high frequency trading firms and incorporated into their trading systems.</span></span></p>
]]></content:encoded>
			<wfw:commentRss>http://jonathankinlay.com/index.php/2011/05/market-microstructure-models-for-high-frequency-trading-strategies/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Forecasting Financial Markets &#8211; Part 1:  Time Series Analysis</title>
		<link>http://jonathankinlay.com/index.php/2011/04/forecasting-financial-markets-part-1-time-series-analysis/</link>
		<comments>http://jonathankinlay.com/index.php/2011/04/forecasting-financial-markets-part-1-time-series-analysis/#comments</comments>
		<pubDate>Sat, 30 Apr 2011 10:45:47 +0000</pubDate>
		<dc:creator>Jonathan</dc:creator>
				<category><![CDATA[ARMA]]></category>
		<category><![CDATA[Econometrics]]></category>
		<category><![CDATA[Forecasting]]></category>
		<category><![CDATA[Purchasing Power Parity]]></category>
		<category><![CDATA[Time Series Modeling]]></category>
		<category><![CDATA[Unit Roots]]></category>
		<category><![CDATA[White Noise]]></category>
		<category><![CDATA[ARMA Models]]></category>
		<category><![CDATA[Box Jenkins]]></category>
		<category><![CDATA[Direction Prediction]]></category>
		<category><![CDATA[Time Series Analysis]]></category>

		<guid isPermaLink="false">http://jonathankinlay.com/?p=392</guid>
		<description><![CDATA[The presentation in this post covers a number of important topics in forecasting, including: Stationary processes and random walks Unit roots and autocorrelation ARMA models Seasonality Model testing Forecasting Dickey-Fuller and Phillips-Perron tests for unit roots Also included are a number of detailed worked examples, including: ARMA Modeling Box Jenkins methodology Modeling the US Wholesale Price...]]></description>
			<content:encoded><![CDATA[<p>The <a title="Forecasting Financial Markets - Time Series Analysis" href="http://www.jonathankinlay.com/Articles/Part%201%20-%20Time%20Series%20Analysis/Forecasting%202011%20-%20Time%20Series.pdf" target="_blank">presentation </a> in this post covers a number of important topics in forecasting, including:</p>
<ul>
<li>Stationary processes and random walks</li>
<li>Unit roots and autocorrelation</li>
<li>ARMA models</li>
<li>Seasonality</li>
<li>Model testing</li>
<li>Forecasting</li>
<li>Dickey-Fuller and Phillips-Perron tests for unit roots</li>
</ul>
<p>Also included are a number of detailed worked examples, including:</p>
<ol>
<li><a title="ARMA Modeling" href="http://www.jonathankinlay.com/Articles/Part%201%20-%20Time%20Series%20Analysis/Arma11.pdf" target="_blank">ARMA Modeling</a></li>
<li><a title="Box Jenkins" href="http://www.jonathankinlay.com/Articles/Part%201%20-%20Time%20Series%20Analysis/Box-Jenkins%20Analysis.PDF" target="_blank">Box Jenkins methodology</a></li>
<li><a title="Wholesale Price Index" href="http://www.jonathankinlay.com/Articles/Part%201%20-%20Time%20Series%20Analysis/Wpi.pdf" target="_blank">Modeling the US Wholesale Price Index</a></li>
<li><a title="Pesaran Timmermann Study" href="http://www.jonathankinlay.com/Articles/Part%201%20-%20Time%20Series%20Analysis/Recursive%20Regression%20Prediction%20of%20Equity%20Returns.PDF" target="_blank">Pesaran &amp; Timmermann study of excess equity returns</a></li>
<li><a title="Purchasing Power Parity" href="http://www.jonathankinlay.com/Articles/Part%201%20-%20Time%20Series%20Analysis/Purchasing%20Power%20Parity.PDF" target="_blank">Purchasing Power Parity</a></li>
</ol>
<ul></ul>
<p><a rel="attachment wp-att-402" href="http://jonathankinlay.com/index.php/2011/04/forecasting-financial-markets-part-1-time-series-analysis/rolling-regression/"><img class="aligncenter size-full wp-image-402" title="Rolling Regression" src="http://jonathankinlay.com/wp-content/uploads/Rolling-Regression.jpg" alt="" width="750" height="479" /></a><a rel="attachment wp-att-402" href="http://jonathankinlay.com/index.php/2011/04/forecasting-financial-markets-part-1-time-series-analysis/rolling-regression/"></a></p>
<p>&nbsp;</p>
<p>&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://jonathankinlay.com/index.php/2011/04/forecasting-financial-markets-part-1-time-series-analysis/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Master&#8217;s in High Frequency Finance</title>
		<link>http://jonathankinlay.com/index.php/2011/04/masters-in-high-frequency-finance/</link>
		<comments>http://jonathankinlay.com/index.php/2011/04/masters-in-high-frequency-finance/#comments</comments>
		<pubDate>Wed, 27 Apr 2011 11:27:44 +0000</pubDate>
		<dc:creator>Jonathan</dc:creator>
				<category><![CDATA[Algorithmic Trading]]></category>
		<category><![CDATA[Econometrics]]></category>
		<category><![CDATA[Education]]></category>
		<category><![CDATA[Financial Engineering]]></category>
		<category><![CDATA[Graduate Programs]]></category>
		<category><![CDATA[High Frequency Finance]]></category>
		<category><![CDATA[High Frequency Trading]]></category>
		<category><![CDATA[Market Microstructure]]></category>
		<category><![CDATA[Financial engineering]]></category>

		<guid isPermaLink="false">http://jonathankinlay.com/?p=375</guid>
		<description><![CDATA[I have been discussing with some potential academic partners the concept for a new graduate program in High Frequency Finance.  The idea is to take the concept of the Computational Finance program developed in the 1990s and update it to meet the needs of students in the 2010s. The program will offer a thorough grounding...]]></description>
			<content:encoded><![CDATA[<p>I have been discussing with some potential academic partners the concept for a new graduate program in High Frequency Finance.  The idea is to take the concept of the Computational Finance program developed in the 1990s and update it to meet the needs of students in the 2010s.</p>
<p>The program will offer a thorough grounding in the modeling concepts, trading strategies and risk management procedures currently in use by leading investment banks, proprietary trading firms and hedge funds in US and international financial markets.  Students will also learn the necessary programming and systems design skills to enable them to make an effective contribution as quantitative analysts, traders, risk managers and developers.</p>
<p>I would be interested in feedback and suggestions as to the proposed content of <a title="Master's in High Frequency Finance" href="http://www.jonathankinlay.com/Articles/MSc%20in%20High%20Frequency%20Finance.pdf" target="_blank">the program</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://jonathankinlay.com/index.php/2011/04/masters-in-high-frequency-finance/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>A Practical Application of Regime Switching Models to Pairs Trading</title>
		<link>http://jonathankinlay.com/index.php/2011/04/a-practical-application-of-regime-switching-models/</link>
		<comments>http://jonathankinlay.com/index.php/2011/04/a-practical-application-of-regime-switching-models/#comments</comments>
		<pubDate>Sun, 24 Apr 2011 11:56:22 +0000</pubDate>
		<dc:creator>Jonathan</dc:creator>
				<category><![CDATA[ARMA]]></category>
		<category><![CDATA[Econometrics]]></category>
		<category><![CDATA[ETFs]]></category>
		<category><![CDATA[Markov Model]]></category>
		<category><![CDATA[Mean Reversion]]></category>
		<category><![CDATA[Pairs Trading]]></category>
		<category><![CDATA[Regime Switching]]></category>
		<category><![CDATA[Statistical Arbitrage]]></category>
		<category><![CDATA[Kalman Filter]]></category>

		<guid isPermaLink="false">http://jonathankinlay.com/?p=344</guid>
		<description><![CDATA[In the previous post I outlined some of the available techniques used for modeling market states.  The following is an illustration of how these techniques can be applied in practice.    You can download this post in pdf format here. The chart below shows the daily compounded returns for a single pair in an ETF statistical arbitrage...]]></description>
			<content:encoded><![CDATA[<p>In the previous post I outlined some of the available techniques used for modeling market  states.  The following is an illustration of how these techniques can be applied in practice.    You can download this post in pdf format <a title="Article on Market State Models" href="http://www.jonathankinlay.com/Articles/FOLLOW%20UP%20NOTE%20ON%20MARKET%20STATE%20MODELS.pdf" target="_blank">here</a>.</p>
<p>The chart below shows the daily compounded returns for a single pair in an ETF statistical arbitrage strategy, back-tested over a 1-year period from April 2010 to March 2011.</p>
<p>The idea is to examine the characteristics of the returns process and assess its predictability.</p>
<p><a rel="attachment wp-att-346" href="http://jonathankinlay.com/index.php/2011/04/a-practical-application-of-regime-switching-models/pair6/"><img class="aligncenter size-medium wp-image-346" title="Pair6" src="http://jonathankinlay.com/wp-content/uploads/Pair6-300x172.jpg" alt="" width="433" height="266" /></a></p>
<p>The initial impression given by the analytics plots of daily returns, shown in Fig 2 below, is that the process may be somewhat predictable, given what appears to be a significant 1-order lag in the autocorrelation spectrum.  We also see evidence of the<br />
customary non-Gaussian “fat-tailed” distribution in the error process.</p>
<p><a rel="attachment wp-att-349" href="http://jonathankinlay.com/index.php/2011/04/a-practical-application-of-regime-switching-models/analytical-plots/"><img class="aligncenter size-medium wp-image-349" title="Analytical Plots" src="http://jonathankinlay.com/wp-content/uploads/Analytical-Plots-300x172.jpg" alt="" width="614" height="398" /></a></p>
<p>An initial attempt to fit a standard Auto-Regressive Moving Average ARMA(1,0,1) model  yields disappointing results, with an unadjusted  model R-squared of only 7% (see model output in Appendix 1)</p>
<p>However, by fitting a 2-state Markov model we are able to explain as much as 65% in the variation in the returns process (see Appendix II).<br />
The model estimates Markov Transition Probabilities as follows.</p>
<p>P(.|1)       P(.|2)</p>
<p>P(1|.)       0.93920      0.69781</p>
<p>P(2|.)     0.060802      0.30219</p>
<p>In other words, the process spends most of the time in State 1, switching to State 2 around once a month, as illustrated in Fig 3 below.</p>
<p><a rel="attachment wp-att-350" href="http://jonathankinlay.com/index.php/2011/04/a-practical-application-of-regime-switching-models/state-probs/"><img class="aligncenter size-medium wp-image-350" title="State Probs" src="http://jonathankinlay.com/wp-content/uploads/State-Probs-300x172.jpg" alt="" width="300" height="172" /></a><br />
In the first state, the  pairs model produces an expected daily return of around 65bp, with a standard deviation of similar magnitude.  In this state, the process also exhibits very significant auto-regressive and moving average features.</p>
<p>Regime 1:</p>
<p>Intercept                   0.00648     0.0009       7.2          0</p>
<p>AR1                            0.92569    0.01897   48.797        0</p>
<p>MA1                         -0.96264    0.02111   -45.601        0</p>
<p>Error Variance^(1/2)           0.00666     0.0007</p>
<p>In the second state, the pairs model  produces lower average returns, and with much greater variability, while the autoregressive and moving average terms are poorly determined.</p>
<p>Regime 2:</p>
<p>Intercept                    0.03554    0.04778    0.744    0.459</p>
<p>AR1                            0.79349    0.06418   12.364        0</p>
<p>MA1                         -0.76904    0.51601     -1.49   0.139</p>
<p>Error Variance^(1/2)           0.01819     0.0031</p>
<p><strong>CONCLUSION</strong><br />
The analysis in Appendix II suggests that the residual process is stable and Gaussian.  In other words, the two-state Markov model is able to account for the non-Normality of the returns process and extract the salient autoregressive and moving average features in a way that makes economic sense.</p>
<p>How is this information useful?  Potentially in two ways:</p>
<p>(i)     If the market state can be forecast successfully, we can use that information to increase our capital allocation during periods when the process is predicted to be in State 1, and reduce the allocation at times when it is in State 2.</p>
<p>(ii)    By examining the timing of the Markov states and considering different features of the market during the contrasting periods, we might be able to identify additional explanatory factors that could be used to further enhance the trading model.</p>
<p><a rel="attachment wp-att-351" href="http://jonathankinlay.com/index.php/2011/04/a-practical-application-of-regime-switching-models/forecasts/"><img class="aligncenter size-medium wp-image-351" title="Forecasts" src="http://jonathankinlay.com/wp-content/uploads/Forecasts-300x172.jpg" alt="" width="300" height="172" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://jonathankinlay.com/index.php/2011/04/a-practical-application-of-regime-switching-models/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
