["<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\">\n<html xmlns=\"http://www.w3.org/1999/xhtml\" lang=\"en\">\n<head profile=\"http://gmpg.org/xfn/11\">\n<meta http-equiv=\"Content-Type\" content=\"text/html; charset=UTF-8\" />\n<title>Multi-Asset Market Regimes &laquo; Quantivity<\/title>\n<link href=\"http://s1.wp.com/wp-content/themes/pub/vigilance/style.css?m=1355291915g\" type=\"text/css\" media=\"screen\" rel=\"stylesheet\" />\n<!--[if lt IE 8]><link rel=\"stylesheet\" type=\"text/css\" media=\"screen\" href=\"http://s1.wp.com/wp-content/themes/pub/vigilance/stylesheets/ie.css?m=1280263635g\" /><![endif]-->\n<!--[if lte IE 6]><link rel=\"stylesheet\" type=\"text/css\" media=\"screen\" href=\"http://s1.wp.com/wp-content/themes/pub/vigilance/stylesheets/ie6.css?m=1275938991g\" /><![endif]-->\n<link rel=\"pingback\" href=\"http://quantivity.wordpress.com/xmlrpc.php\" />\n<link rel=\"alternate\" type=\"application/rss+xml\" title=\"Quantivity &raquo; Feed\" href=\"http://quantivity.wordpress.com/feed/\" />\n<link rel=\"alternate\" type=\"application/rss+xml\" title=\"Quantivity &raquo; Comments Feed\" href=\"http://quantivity.wordpress.com/comments/feed/\" />\n<link rel=\"alternate\" type=\"application/rss+xml\" title=\"Quantivity &raquo; Multi-Asset Market&nbsp;Regimes Comments Feed\" href=\"http://quantivity.wordpress.com/2012/11/09/multi-asset-market-regimes/feed/\" />\n<script type=\"text/javascript\">\n/* <![CDATA[ */\nfunction addLoadEvent(func){var oldonload=window.onload;if(typeof window.onload!='function'){window.onload=func;}else{window.onload=function(){oldonload();func();}}}\n/* ]]> */\n<\/script>\n<link rel='stylesheet' id='all-css-0' href='http://s2.wp.com/_static/??-eJyNj8EOgjAQRH/IugEl4WL8ltKWsrhsCduK/L2NIhcS4mnnMG9mB+ZRIRtK1gn0ArFD82jCaxNnI3KC7DKBo+MIDQWvRkoeWSBr72xIUbWBKMwwo/Uu7qAhbQhyi4xxyQ1uyKVjauCJHkmzcUfgGCTXkMYJJC70t7fTE7L/3R21vtFdwVNoNB3FftcJZMuqlZ/QKs1WEcpn9324FZeqKi5lXdb9GzObg2k=' type='text/css' media='all' />\n<link rel='stylesheet' id='print-css-0' href='http://s0.wp.com/wp-content/mu-plugins/global-print/global-print.css?m=1335386953g' type='text/css' media='print' />\n<script type='text/javascript'>\n/* <![CDATA[ */\nvar LoggedOutFollow = {\"invalid_email\":\"Your subscription did not succeed, please try again with a valid email address.\"};\n/* ]]> */\n<\/script>\n<script type='text/javascript' src='http://s1.wp.com/_static/??-eJxdjFEKwjAQRC/kNpRU+iXepekaEnazsckaenuDVRFhYOZj3jMtQ0iOdMViYs9dcdvfNcRyMv3gJFVM1SwkHjKpD6mYvj2uohVuQiTNtLB6rB/mV+qEufOwYaZ94JD+xaxf7WF5YceERTnDI2Dr1JUvoz1Po52n2cYni8NFuQ=='><\/script>\n<link rel='stylesheet' id='all-css-0' href='http://s1.wp.com/wp-content/mu-plugins/highlander-comments/style.css?m=1343991657g' type='text/css' media='all' />\n<!--[if lt IE 8]>\n<link rel='stylesheet' id='highlander-comments-ie7-css'  href='http://s2.wp.com/wp-content/mu-plugins/highlander-comments/style-ie7.css?m=1351637563g&#038;ver=20110606' type='text/css' media='all' />\n<![endif]-->\n<link rel=\"EditURI\" type=\"application/rsd+xml\" title=\"RSD\" href=\"http://quantivity.wordpress.com/xmlrpc.php?rsd\" />\n<link rel=\"wlwmanifest\" type=\"application/wlwmanifest+xml\" href=\"http://quantivity.wordpress.com/wp-includes/wlwmanifest.xml\" /> \n<link rel='prev' title='Implicit Momentum&nbsp;Bias' href='http://quantivity.wordpress.com/2012/10/25/implicit-momentum-bias/' />\n<meta name=\"generator\" content=\"WordPress.com\" />\n<link rel='canonical' href='http://quantivity.wordpress.com/2012/11/09/multi-asset-market-regimes/' />\n<link rel='shortlink' href='http://wp.me/pzRCu-2Cz' />\n<link rel=\"alternate\" type=\"application/json+oembed\" href=\"http://public-api.wordpress.com/oembed/1.0/?format=json&amp;url=http%3A%2F%2Fquantivity.wordpress.com%2F2012%2F11%2F09%2Fmulti-asset-market-regimes%2F&amp;for=wpcom-auto-discovery\" /><link rel=\"alternate\" type=\"application/xml+oembed\" href=\"http://public-api.wordpress.com/oembed/1.0/?format=xml&amp;url=http%3A%2F%2Fquantivity.wordpress.com%2F2012%2F11%2F09%2Fmulti-asset-market-regimes%2F&amp;for=wpcom-auto-discovery\" />\n<!-- Jetpack Open Graph Tags -->\n<meta property=\"og:type\" content=\"article\" />\n<meta property=\"og:title\" content=\"Multi-Asset Market&nbsp;Regimes\" />\n<meta property=\"og:url\" content=\"http://quantivity.wordpress.com/2012/11/09/multi-asset-market-regimes/\" />\n<meta property=\"og:description\" content=\"An astute reader suggested reproducing the results from a recent article on regime analysis by Kritzman et al., Regime Shifts: Implications for Dynamic Strategies in FAJ (May / June 2012). This is ...\" />\n<meta property=\"og:site_name\" content=\"Quantivity\" />\n<meta property=\"og:image\" content=\"http://i1.wp.com/quantivity.files.wordpress.com/2012/11/hmm-regime-state-probs.png?fit=400%2C400\" />\n<meta name=\"twitter:site\" content=\"@wordpressdotcom\" />\n<meta name=\"twitter:image\" content=\"http://i1.wp.com/quantivity.files.wordpress.com/2012/11/hmm-regime-state-probs.png\" />\n<meta name=\"twitter:card\" content=\"photo\" />\n<meta property=\"fb:app_id\" content=\"249643311490\" />\n<link rel=\"shortcut icon\" type=\"image/x-icon\" href=\"http://s2.wp.com/i/favicon.ico?m=1311976024g\" sizes=\"16x16 24x24 32x32 48x48\" />\n<link rel=\"icon\" type=\"image/x-icon\" href=\"http://s2.wp.com/i/favicon.ico?m=1311976024g\" sizes=\"16x16 24x24 32x32 48x48\" />\n<link rel=\"apple-touch-icon-precomposed\" href=\"http://s0.wp.com/i/webclip.png?m=1311618091g\" />\n<link rel='openid.server' href='http://quantivity.wordpress.com/?openidserver=1' />\n<link rel='openid.delegate' href='http://quantivity.wordpress.com/' />\n<link rel=\"search\" type=\"application/opensearchdescription+xml\" href=\"http://quantivity.wordpress.com/osd.xml\" title=\"Quantivity\" />\n<link rel=\"search\" type=\"application/opensearchdescription+xml\" href=\"http://wordpress.com/opensearch.xml\" title=\"WordPress.com\" />\n\t\t<style>\n\t\t/* <![CDATA[ */\n\t\t/* Block: reblog */\n\t\t\n\t\t.reblog-from img                   { margin: 0 10px 0 0; vertical-align: middle; padding: 0; border: 0; }\n\t\t.reblogger-note img.avatar         { float: left; padding: 0; border: 0; }\n\t\t.reblogger-note-content            { margin: 0 0 20px; }\n\t\t.reblog-post .wpcom-enhanced-excerpt-content { border-left: 3px solid #eee; padding-left: 15px; }\n\t\t.reblog-post ul.thumb-list         { display: block; list-style: none; margin: 2px 0; padding: 0; clear: both; }\n\t\t.reblog-post ul.thumb-list li      { display: inline; margin: 0; padding: 0 1px; border: 0; }\n\t\t.reblog-post ul.thumb-list li a    { margin: 0; padding: 0; border: 0; }\n\t\t.reblog-post ul.thumb-list li img  { margin: 0; padding: 0; border: 0; }\n\t\t\n\t\t.reblog-post .wpcom-enhanced-excerpt { clear: both; }\n\t\t\n\t\t.reblog-post .wpcom-enhanced-excerpt address,\n\t\t.reblog-post .wpcom-enhanced-excerpt li,\n\t\t.reblog-post .wpcom-enhanced-excerpt h1,\n\t\t.reblog-post .wpcom-enhanced-excerpt h2,\n\t\t.reblog-post .wpcom-enhanced-excerpt h3,\n\t\t.reblog-post .wpcom-enhanced-excerpt h4,\n\t\t.reblog-post .wpcom-enhanced-excerpt h5,\n\t\t.reblog-post .wpcom-enhanced-excerpt h6,\n\t\t.reblog-post .wpcom-enhanced-excerpt p { font-size: 100% !important; }\n\t\t\n\t\t.reblog-post .wpcom-enhanced-excerpt blockquote,\n\t\t.reblog-post .wpcom-enhanced-excerpt pre,\n\t\t.reblog-post .wpcom-enhanced-excerpt code,\n\t\t.reblog-post .wpcom-enhanced-excerpt q { font-size: 98% !important; }\n\t\t\n\n\t\t/* ]]> */\t\t\n\t\t<\/style>\n\t\t\n\t<meta name=\"application-name\" content=\"Quantivity\" /><meta name=\"msapplication-window\" content=\"width=device-width;height=device-height\" /><meta name=\"msapplication-tooltip\" content=\"Uncommon Returns through Quantitative and Algorithmic Trading\" /><meta name=\"msapplication-task\" content=\"name=Subscribe;action-uri=http://quantivity.wordpress.com/feed/;icon-uri=http://s2.wp.com/i/favicon.ico\" /><meta name=\"msapplication-task\" content=\"name=Sign up for a free blog;action-uri=http://wordpress.com/signup/;icon-uri=http://s2.wp.com/i/favicon.ico\" /><meta name=\"msapplication-task\" content=\"name=WordPress.com Support;action-uri=http://support.wordpress.com/;icon-uri=http://s2.wp.com/i/favicon.ico\" /><meta name=\"msapplication-task\" content=\"name=WordPress.com Forums;action-uri=http://forums.wordpress.com/;icon-uri=http://s2.wp.com/i/favicon.ico\" /><meta name=\"title\" content=\"Multi-Asset Market&nbsp;Regimes | Quantivity on WordPress.com\" />\n<meta name=\"description\" content=\"An astute reader suggested reproducing the results from a recent article on regime analysis by Kritzman et al., Regime Shifts: Implications for Dynamic Strategies in FAJ (May / June 2012). This is a fun exercise to be conducted over a series of posts, as doing so illustrates several important economic principles and some elegant mathematics.&hellip;\" />\n\t<style type=\"text/css\">\n\t\t\t\t#title a { color: #444444 }\n\t\t<\/style>\n\n<script type='text/javascript' src='http://partner.googleadservices.com/gampad/google_service.js'>\n<\/script>\n<script type='text/javascript'>\nGS_googleAddAdSenseService(\"ca-pub-3443918307802676\");\nGS_googleEnableAllServices();\n<\/script>\n<script type='text/javascript'>\nGA_googleAddSlot(\"ca-pub-3443918307802676\", \"wpcom_below_post_adsafe\");\n<\/script>\n<script type='text/javascript'>\nGA_googleFetchAds();\n<\/script>\n<script type=\"text/javascript\"> \n\twindow.google_analytics_uacct = \"UA-52447-2\"; \n<\/script>\n\n<script type=\"text/javascript\">\n\tvar _gaq = _gaq || [];\n\t_gaq.push(['_setAccount', 'UA-52447-2']);\n\t_gaq.push(['_setDomainName', 'wordpress.com']);\n\t_gaq.push(['_initData']);\n\t_gaq.push(['_trackPageview']);\n\n\t(function() {\n\t\tvar ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;\n\t\tga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';\n\t\t(document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(ga);\n\t})();\n<\/script>\n<\/head>\n<body class=\"single single-post postid-10079 single-format-standard vigilance-light highlander-enabled highlander-light\">\n\t<div class=\"skip-content\"><a href=\"#content\">Skip to content<\/a><\/div>\n\t<div id=\"wrapper\">\n\t\t\t\t<div id=\"header\" class=\"clear\">\n\t\t\t<div id=\"title\"><a href=\"http://quantivity.wordpress.com\"><span>Quantivity<\/span><\/a><\/div>\t\t\t<div id=\"description\">\n\t\t\t\t<h2>Uncommon Returns through Quantitative and Algorithmic Trading<\/h2>\n\t\t\t<\/div><!--end description-->\n\t\t\t<div id=\"nav\">\n\t\t\t\t\t<ul class=\"menu\">\n\t\t<li class=\"page_item \"><a href=\"http://quantivity.wordpress.com\">Home<\/a><\/li>\n\t\t\t\t<li class=\"page_item page-item-2\"><a href=\"http://quantivity.wordpress.com/about/\">About<\/a><\/li>\n\t<\/ul>\n\t\t\t<\/div><!--end nav-->\n\t\t<\/div><!--end header-->\n\t\t<div id=\"content\" class=\"pad\">\n\t\t\t\t\t\t\t\t\t<div id=\"post-10079\" class=\"post-10079 post type-post status-publish format-standard hentry category-uncategorized\">\n\t\t\t<div class=\"post-header\">\n\t\t\t\t<h1>Multi-Asset Market&nbsp;Regimes<\/h1>\n\t\t\t\t<div id=\"single-date\" class=\"date\">November 9, 2012<\/div>\n\t\t\t<\/div><!--end post header-->\n\t\t\t<div class=\"meta clear\">\n\t\t\t\t<div class=\"tags\"><\/div>\n\t\t\t\t<div class=\"author\">\n\t\t\t\t\t\t\t\t\t<\/div>\n\t\t\t<\/div><!--end meta-->\n\t\t\t<div class=\"entry clear\">\n\t\t\t\t\t\t\t\t<p>An astute reader suggested reproducing the results from a recent article on regime analysis by Kritzman <em>et al.<\/em>, <a href=\"http://www.cfapubs.org/doi/abs/10.2469/faj.v68.n3.3\">Regime Shifts: Implications for Dynamic Strategies<\/a> in FAJ (May / June 2012). This is a fun exercise to be conducted over a series of posts, as doing so illustrates several important economic principles and some elegant mathematics.<\/p>\n<p>This post begins by identifying <em>macroeconomic market regimes arising from multi-asset economic activity<\/em>.<\/p>\n<p><span id=\"more-10079\"><\/span><\/p>\n<p>One big challenge in analyzing market regimes is <em>identification<\/em>, as they are not directly observable. As an unsupervised statistical learning problem, there is no verifiable &#8220;right answer&#8221;. Beyond identifying regimes, we also want to know the probability of being in a given regime at any given point in time. Finally, our economic activity is measured via time series.<\/p>\n<p>Fortunately, a standard ML technique exists which possesses these attributes: <em>hidden Markov model<\/em> (HMM). For readers unfamiliar with HMM, here is a brief summary on the theory relevant to our problem. See <cite><a href=\"http://books.google.com/books?id=LDDzvCsdVs8C\">Hidden Markov Models for Time Series<\/a><\/cite> by Zucchini and MacDonald (2009) for more details.<\/p>\n<hr />\nHMMs are useful because they estimate both unobserved regimes and corresponding probabilities of being in each regime at every point in time. The latter is termed &#8220;local decoding&#8221;, and expressed as the conditional state probabilities:<\/p>\n<p>&nbsp;&nbsp;&nbsp;<img src='http://s0.wp.com/latex.php?latex=%5Ctext%7BPr%7D%28C_t+%3D+i+%7C+%5Cbf%7BX%7D_T+%3D+%5Cbf%7Bx%7D_T%29+%3D+%5Cfrac%7B%5Ctext%7BPr%7D%28C_t+%3D+i%2C+%5Cbf%7BX%7D%5ET+%3D+%5Cbf%7Bx%7D%5ET%29%7D%7B%5Ctext%7BPr%7D%28%5Cbf%7BX%7D%5ET+%3D+%5Cbf%7Bx%7D%5ET%29%7D+&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;text{Pr}(C_t = i | &#92;bf{X}_T = &#92;bf{x}_T) = &#92;frac{&#92;text{Pr}(C_t = i, &#92;bf{X}^T = &#92;bf{x}^T)}{&#92;text{Pr}(&#92;bf{X}^T = &#92;bf{x}^T)} ' title='&#92;text{Pr}(C_t = i | &#92;bf{X}_T = &#92;bf{x}_T) = &#92;frac{&#92;text{Pr}(C_t = i, &#92;bf{X}^T = &#92;bf{x}^T)}{&#92;text{Pr}(&#92;bf{X}^T = &#92;bf{x}^T)} ' class='latex' /><\/p>\n<p>In other words, the probability of being in regime <img src='http://s0.wp.com/latex.php?latex=i&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='i' title='i' class='latex' /> at time <img src='http://s0.wp.com/latex.php?latex=t&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='t' title='t' class='latex' /> given the observed data <img src='http://s0.wp.com/latex.php?latex=%5Cbf%7Bx%7D_T&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;bf{x}_T' title='&#92;bf{x}_T' class='latex' />.<\/p>\n<p>Where <img src='http://s0.wp.com/latex.php?latex=%5Cbf%7BX%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;bf{X}' title='&#92;bf{X}' class='latex' /> is the observed time-series data and <img src='http://s0.wp.com/latex.php?latex=C&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='C' title='C' class='latex' /> is an unobserved parameter process which conditional probability at time <img src='http://s0.wp.com/latex.php?latex=t&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='t' title='t' class='latex' /> depends at most on the previous time <img src='http://s0.wp.com/latex.php?latex=%28t-1%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='(t-1)' title='(t-1)' class='latex' />, also known as the Markov property:<\/p>\n<p>&nbsp;&nbsp;&nbsp;<img src='http://s0.wp.com/latex.php?latex=%5Ctext%7BPr%7D%28C_%7Bt%2B1%7D+%7C+C_t%2C+...%2C+C_1%29+%3D+%5Ctext%7BPr%7D%28C_%7Bt%2B1%7D+%7C+c_t%29+&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;text{Pr}(C_{t+1} | C_t, ..., C_1) = &#92;text{Pr}(C_{t+1} | c_t) ' title='&#92;text{Pr}(C_{t+1} | C_t, ..., C_1) = &#92;text{Pr}(C_{t+1} | c_t) ' class='latex' /><\/p>\n<p>Thus, <img src='http://s0.wp.com/latex.php?latex=C&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='C' title='C' class='latex' /> is an unobservable Markov chain; because of which the conditional probability at time <img src='http://s0.wp.com/latex.php?latex=t&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='t' title='t' class='latex' /> nicely reduces to (see equation 5.6 in Zucchini, derived from 4.9):<\/p>\n<p>&nbsp;&nbsp;&nbsp;<img src='http://s0.wp.com/latex.php?latex=%5Ctext%7BPr%7D%28C_%7Bt%2B1%7D+%7C+C_t%2C+...%2C+C_1%29+%3D+%5Cfrac%7B%5Calpha_t%28i%29+%5Cbeta_t%28i%29%7D%7BL_T%7D+&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;text{Pr}(C_{t+1} | C_t, ..., C_1) = &#92;frac{&#92;alpha_t(i) &#92;beta_t(i)}{L_T} ' title='&#92;text{Pr}(C_{t+1} | C_t, ..., C_1) = &#92;frac{&#92;alpha_t(i) &#92;beta_t(i)}{L_T} ' class='latex' /><\/p>\n<p>Where <img src='http://s0.wp.com/latex.php?latex=%5Calpha_t%28i%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;alpha_t(i)' title='&#92;alpha_t(i)' class='latex' /> and <img src='http://s0.wp.com/latex.php?latex=%5Cbeta_t%28i%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;beta_t(i)' title='&#92;beta_t(i)' class='latex' /> are forward and backward probabilities along the Markov chain <img src='http://s0.wp.com/latex.php?latex=C&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='C' title='C' class='latex' /> at time <img src='http://s0.wp.com/latex.php?latex=t&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='t' title='t' class='latex' /> (estimated via iterative maximum likelihood using <a href=\"http://en.wikipedia.org/wiki/Expectation%E2%80%93maximization_algorithm\">expectation maximization<\/a>), and <img src='http://s0.wp.com/latex.php?latex=L_T&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='L_T' title='L_T' class='latex' /> is the likelihood at time <img src='http://s0.wp.com/latex.php?latex=T+&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='T ' title='T ' class='latex' />.<\/p>\n<p>For those who prefer code, where <code>val<\/code> is observed time series <img src='http://s0.wp.com/latex.php?latex=%5Cbf%7BX%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='&#92;bf{X}' title='&#92;bf{X}' class='latex' /> and <code>numOfStates<\/code> is number of unobserved regimes for <img src='http://s0.wp.com/latex.php?latex=C&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='C' title='C' class='latex' />:<\/p>\n<p><pre class=\"brush: r;\">\r\nhmmFit &lt;- HMMFit(val, nStates=numOfStates)\r\nfb &lt;- forwardBackward(hmmFit, val)\r\neu &lt;- exp(fb$Alpha + fb$Beta - fb$LL)\r\n<\/pre><\/p>\n<p>Readers with ML background will recognize HMM as an elementary temporal graphical model (see ? 6.2 of <a href=\"http://books.google.com/books?id=7dzpHCHzNQ4C\">Koller and Friedman (2009)<\/a>).<\/p>\n<hr />\nWith this tiny bit of HMM theory, we can now formulate our regime analysis problem in economic terms and use a bit of R to solve it. <\/p>\n<p>Consider four measures of economic activity: US equities, real gross domestic product (GDP), inflation, and G10 currencies. Posit each measure of economic activity can be characterized at any point in time as being in either one of <em>two<\/em> states: stable with corresponding small downside volatility or contracting with corresponding high volatility. This broadly matches traditional wisdom, namely the macroeconomy is either acting &#8220;fairly normal&#8221; or is exceptional (either panic or exuberance).<\/p>\n<p>Worth noting is the obvious caveat that this bi-state model oversimplifies reality, in particular ignoring potential distinction between &#8220;growth&#8221; and &#8220;stagnancy&#8221; (of potential importance during 1970s and 2010s). Intuition is unclear <em>a priori<\/em> whether a bi- or tri-state model is preferable. A subsequent post will take up this model selection question, as it lacks an easy answer.<\/p>\n<p>Illustrating the conditional probabilities of this model graphically, where a value of 0 indicates 100% likelihood of being in the &#8220;normal&#8221; regime and value of 1 indicates 100% likelihood of being in &#8220;exceptional&#8221; regime:<\/p>\n<p><a href=\"http://quantivity.files.wordpress.com/2012/11/hmm-regime-state-probs.png\"><img src=\"http://quantivity.files.wordpress.com/2012/11/hmm-regime-state-probs.png?w=600&#038;h=826\" alt=\"\" title=\"hmm-regime-state-probs\" width=\"600\" height=\"826\" class=\"aligncenter size-full wp-image-10161\" /><\/a><\/p>\n<p>These regimes match our economic recollection. Equities were normal through much of the 1990s and mid-2000, and in panic the remaining time. GDP growth was exceptionally strong in the mid-1990s, during recovery from dotcom bubble in early 2000s, and during recovery of mortgage bubble in late 2000s; growth during all other times was &#8220;normal&#8221;. Inflation was high during the late 1970s and flanking the mortgage bubble. Currencies were volatile throughout 1980s and 1990s and then again flanking the mortgage bubble.<\/p>\n<p>These regimes also illustrate just how unusual the mortgage bubble was in historical sense, as it is the only time in the past 30 years during which all four measures of macroeconomic activity were simultaneously in exceptional regime.<\/p>\n<hr />\nCode to replicate the above results, and quite a bit more to be discussed in subsequent posts.<\/p>\n<p>Note: US equity regime is estimated using daily returns from SPX, rather than equally-weighted basket of S&amp;P 500 sector indices as in the original article. Doing so results in nearly identical equity regime conditional probabilities, hence SPX is chosen in recognition of Occam.<\/p>\n<p><pre class=\"brush: r;\">\r\nlibrary(&quot;RHmm&quot;)\r\nlibrary(&quot;TTR&quot;)\r\n\r\ndisplayKritzmanRegimes &lt;- function()\r\n{\r\n  # Display regimes from Kritzman et al. (2012), printing regime\r\n  # statistics and plotting local decoding.\r\n  \r\n  equityRegime &lt;- getEquityTurbulenceRegime()\r\n  inflationRegime &lt;- getInflationRegime()\r\n  growthRegime &lt;- getGrowthRegime()\r\n  currencyTurbulenceRegime &lt;- getCurrencyTurbulenceRegime()\r\n\r\n  print(equityRegime)\r\n  print(inflationRegime)\r\n  print(growthRegime)\r\n  print(currencyTurbulenceRegime)\r\n  \r\n  plotMarkovRegimes(equityRegime, &quot;Equity (SPX)&quot;, plotDensity=F)\r\n  plotMarkovRegimes(inflationRegime, &quot;Inflation (CPIAUCNS)&quot;, plotDensity=F)\r\n  plotMarkovRegimes(growthRegime, &quot;Real GDP (GDPC1)&quot;, plotDensity=F)\r\n  plotMarkovRegimes(currencyTurbulenceRegime, &quot;G10 Currency Turbulence&quot;, \r\n                    plotDensity=F)\r\n  \r\n  plotLocalDecodings(list(equityRegimeTurbulence, growthRegime, inflationRegime, \r\n                          currencyTurbulenceRegime),\r\n                     list(&quot;US Equity (SPX)&quot;, &quot;Real GDP (GDPC1)&quot;, \r\n                          &quot;Inflation (CPIAUCNS)&quot;,&quot;G10 Currency Turbulence&quot;),\r\n                     regimeNums=c(2,2,2,2))\r\n}\r\n\r\ngetEquityTurbulenceRegime &lt;- function(startDate=as.Date(&quot;1977-12-01&quot;), \r\n                                      endDate=Sys.Date(), numOfStates=2)\r\n{\r\n  # Estimate two-state markov (SPX-based) equity regime. In lieu of S&amp;P 500\r\n  # sector indices, use SPX instead.\r\n  #\r\n  # Args:\r\n  #     startDate: date which to begin panel for regime estimation\r\n  #     endDate: end which to end panel for regime estimation\r\n  #     numOfStates: number of hidden states in regime\r\n  # \r\n  # Returns: hmmFit from HMMFit(), suitable for display with plotMarkovRegime()\r\n  \r\n  spx &lt;- dROC(getOhlcv(instrumentSymbol=&quot;^GSPC&quot;, startDate=startDate, \r\n                              endDate=endDate, quote=c(&quot;close&quot;)))\r\n  spxTurb &lt;- rollingTurbulence(spx, avgWidth=(250 * 10), \r\n                                    covarWidth=(250 * 10))\r\n  meanTurb &lt;- apply.monthly(spxTurb, mean)\r\n  estimateMarkovRegimes(meanTurb, numOfStates=numOfStates)\r\n}\r\n\r\ngetInflationRegime &lt;- function(startDate=as.Date(&quot;1946-01-01&quot;), endDate=Sys.Date(),\r\n                               numOfStates=2)\r\n{\r\n  # Estimate two-state markov (CPI-based) inflation regime.\r\n  #\r\n  # Args:\r\n  #     startDate: date which to begin panel for regime estimation\r\n  #     endDate: end which to end panel for regime estimation\r\n  #     numOfStates: number of hidden states in regime\r\n  # \r\n  # Returns: hmmFit from HMMFit(), suitable for display with plotMarkovRegime()\r\n  \r\n  val &lt;- 100 *dROC(getFREDData(symbol=&quot;CPIAUCNS&quot;, startDate=startDate, \r\n                               endDate=endDate))\r\n  estimateMarkovRegimes(val, numOfStates=numOfStates)\r\n}\r\n\r\ngetGrowthRegime &lt;- function(startDate=as.Date(&quot;1946-01-01&quot;), \r\n                            endDate=as.Date(&quot;2012-12-31&quot;), numOfStates=2)\r\n{\r\n  # Estimate two-state markov (GDP-based) growth regime.\r\n  #\r\n  # Note: Growth regime appears to be bi-modal, and thus need to estimate\r\n  # several times to get convergence on the regime reported by Kritzman.\r\n  #\r\n  # Args:\r\n  #     startDate: date which to begin panel for regime estimation\r\n  #     endDate: end which to end panel for regime estimation\r\n  #     numOfStates: number of hidden states in regime\r\n  # \r\n  # Returns: hmmFit from HMMFit(), suitable for display with plotMarkovRegime()\r\n  \r\n  val &lt;- 100 * dROC(getFREDData(symbol=&quot;GDPC1&quot;, startDate=startDate, \r\n                                endDate=endDate))\r\n  estimateMarkovRegimes(val, numOfStates=numOfStates)\r\n}\r\n\r\ngetCurrencyTurbulenceRegime &lt;- function(startDate=as.Date(&quot;1971-01-01&quot;), \r\n                                        endDate=Sys.Date(), \r\n                                        numOfStates=2)\r\n{\r\n  # Estimate two-state markov (G10-based) currency turbulence regime.\r\n  #\r\n  # Args:\r\n  #     startDate: date which to begin panel for regime estimation\r\n  #     endDate: end which to end panel for regime estimation\r\n  #     numOfStates: number of hidden states in regime\r\n  # \r\n  # Returns: hmmFit from HMMFit(), suitable for display with plotMarkovRegime()\r\n  \r\n  g10rates &lt;- getG10Currencies()\r\n  avgg10rates &lt;- xts(100 * rowMeans(dROC(g10rates), na.rm=T), \r\n                     order.by=last(index(g10rates), -1))\r\n  turbG10rates &lt;- rollingTurbulence(avgg10rates, avgWidth=(250 * 3), \r\n                                    covarWidth=(250 * 3))\r\n  meanTurbG10rates &lt;- apply.monthly(turbG10rates, mean)\r\n  \r\n  estimateMarkovRegimes(meanTurbG10rates, numOfStates=numOfStates)\r\n}\r\n\r\nestimateMarkovRegimes &lt;- function(val, numOfStates=2)\r\n{\r\n  # Estimate n-state hidden markov model (HMM) for val.\r\n  #\r\n  # Args:\r\n  #     val: series\r\n  #     numOfStates: number of hidden states in HMM\r\n  #\r\n  # Returns: hmmFit from HMMFit(), suitable for display with plotMarkovRegime()\r\n  \r\n  hmmFit &lt;- HMMFit(val, nStates=numOfStates)\r\n  return (list(val=val, hmmFit=hmmFit))\r\n}\r\n\r\nplotLocalDecodings &lt;- function(regimes, symbols, plotDateRange=&quot;1900::2012&quot;, \r\n                             regimeNums)\r\n{\r\n  # Plot local decodings for a list of HMM regimes, optionally over a set\r\n  # date range.\r\n  #\r\n  # Args:\r\n  #     regimes: list of regimes, as returned by estimateMarkovRegimes()\r\n  #     symbols: list of human-readable symbols for regimes\r\n  #     plotDateRange: option date over which to plot regime local decodings\r\n  #     regimeNums: index of HMM regime, into regimes, to plot\r\n  \r\n  oldpar &lt;- par(mfrow=c(1,1))\r\n  on.exit(par(oldpar))\r\n  \r\n  layout(c(1,2,3,4))\r\n  \r\n  # generate merge of local decodings\r\n  localList &lt;- lapply(c(1:length(regimes)), function(i) {\r\n    \r\n    regime &lt;- regimes[[i]]\r\n    fb &lt;- forwardBackward(regime$hmmFit, regime$val)\r\n    eu &lt;- exp(fb$Alpha + fb$Beta - fb$LL)\r\n    local &lt;- xts(eu[,regimeNums[i]], index(regime$val))[plotDateRange]\r\n    \r\n    plota(local, type='l', plotX=T, col=drawColors[i], main=symbols[i])\r\n  })\r\n}\r\n\r\nplotMarkovRegimes &lt;- function(regime, symbol, plotDateRange=&quot;1900::2012&quot;,\r\n                              plotDensity=T, plotTimeSeries=T)\r\n{\r\n  # Plot markov regimes from HMM: kernel densities and per-regime local decodings.\r\n  #\r\n  # Args:\r\n  #     hmmFit: fit for HMM, as generated by estimateMarkovRegimes()\r\n  #     symbol: human-readable description of series with markov regimes\r\n  #     plotDateRange: contiguous range of time which to plot\r\n  \r\n  val &lt;- regime$val\r\n  hmmFit &lt;- regime$hmmFit\r\n  \r\n  # calculate local decoding\r\n  fb &lt;- forwardBackward(hmmFit, val)\r\n  eu &lt;- exp(fb$Alpha + fb$Beta - fb$LL)\r\n  hmmMeans &lt;- hmmFit$HMM$distribution$mean\r\n  hmmSD &lt;- sqrt(hmmFit$HMM$distribution$var)\r\n  \r\n  # plot kernel density with regime means\r\n  oldpar &lt;- par(mfrow=c(1,1))\r\n  on.exit(par(oldpar))\r\n  \r\n  if (plotDensity)\r\n  {\r\n    plot(density(val), main=paste(&quot;Density with Regime Means:&quot;, symbol))\r\n    abline(v=mean(val), lty=2)\r\n    \r\n    sapply(c(1:length(hmmMeans)), function(i) {\r\n      abline(v=hmmMeans[i], lty=2, col=drawColors[(i+1)])\r\n      curve(dnorm(x, hmmMeans[i], hmmSD[i]), add=T, lty=3,\r\n            col=drawColors[(i+1)])\r\n    })\r\n  }\r\n\r\n  # Plot time series of percent change and local decoding for each regime\r\n  if (plotTimeSeries)\r\n  {\r\n    merged &lt;- merge(val, eu)\r\n    layout(c(1:(1+ncol(eu))))\r\n    \r\n    plota(merged[,1][plotDateRange], type='l', paste(&quot;Regime:&quot;, symbol), plotX=F)\r\n    sapply(c(1:length(hmmMeans)), function(i) {\r\n      abline(h=hmmMeans[i], lty=2, col=drawColors[(i+1)])\r\n    })\r\n    plota.legend(&quot;Percent Change:&quot;, drawColors[1], last(merged[,1]))\r\n    \r\n    sapply(c(1:ncol(eu)), function(i) {\r\n      \r\n      plota(xts(merged[,(i+1)], index(val))[plotDateRange], type='l', \r\n            plotX=(i==(ncol(eu))),\r\n            col=drawColors[(i+1)])\r\n      plota.legend(paste0(&quot;Event Regime &quot;, i, &quot;:&quot;), drawColors[(i+1)], \r\n                   last(merged[,(i+1)]))\r\n    })\r\n  }\r\n}\r\n\r\ndROC &lt;- function(x, n=1)\r\n{\r\n  # Return discrete rate-of-change (ROC) for a series, without padding\r\n  ROC(x, n, type=&quot;discrete&quot;, na.pad=F)\r\n}\r\n<\/pre><\/p>\n\n<div class=\"wpadvert\" style=\"position: relative; width:300px; text-align: center; padding: 0; margin: 10px auto; overflow: hidden;\">\n<a style=\"position: absolute; text-align: left; display: block; font: 9px/1 sans-serif; text-decoration: underline;\" href=\"http://en.wordpress.com/about-these-ads/\" rel=\"nofollow\">About these ads<\/a>\n<script type=\"text/javascript\">\nGA_googleAddAttr(\"AdOpt\", \"1\");\nGA_googleAddAttr(\"Origin\", \"other\");\nGA_googleAddAttr(\"LangId\", \"1\");\nGA_googleAddAttr(\"Domain\", \"quantivity.wordpress.com\");\nGA_googleAddAttr(\"BlogId\", \"8547598\");\nGA_googleAddAttr(\"AdSafe\", \"1\");\nGA_googleAddAttr(\"Autotag\", \"health\");\nGA_googleAddAttr(\"Autotag\", \"technology\");\nGA_googleAddAttr(\"Partner\", \"AOL\");\nGA_googleAddAttr(\"theme_bg\", \"ffffff\"); \nGA_googleAddAttr(\"theme_text\", \"333333\"); \nGA_googleAddAttr(\"theme_link\", \"772124\"); \nGA_googleAddAttr(\"theme_border\", \"eeeeee\"); \nGA_googleAddAttr(\"theme_url\", \"58181b\"); \nGA_googleAddAdSensePageAttr(\"google_page_url\", \"http://quantivity.wordpress.com/2012/11/09/multi-asset-market-regimes/\");\nGA_googleFillSlot(\"wpcom_below_post_adsafe\");\n<\/script>\n<\/div>\n<style type=\"text/css\">\ndiv.wpadvert>div { margin-top: 1em; }\n<\/style>\n<script type=\"text/javascript\">\njQuery( window ).load( function() {\n    if ( jQuery(\".wpadvert script[src*='shareth.ru']\").length > 0 || jQuery(\".wpadvert .sharethrough-placement\").length > 0 ) {\n        jQuery( '.wpadvert' ).css( 'width', '400px' );\n    }\nsetTimeout(function(){if(typeof GS_googleAddAdSenseService !== 'function'){new Image().src=document.location.protocol+\"//stats.wordpress.com/g.gif?v=wpcom-no-pv&x_noads=adblock&baba=\"+Math.random()}},100);\n} );\n<\/script>\n<div id=\"jp-post-flair\" class=\"sharedaddy sd-like-enabled sd-sharing-enabled\"><div class=\"sharedaddy sd-sharing-enabled\"><div class=\"robots-nocontent sd-block sd-social sd-social-icon-text sd-sharing\"><h3 class=\"sd-title\">Share this:<\/h3><div class=\"sd-content\"><ul><li class=\"share-twitter\"><a rel=\"nofollow\" class=\"share-twitter sd-button share-icon\" href=\"http://quantivity.wordpress.com/2012/11/09/multi-asset-market-regimes/?share=twitter\" title=\"Click to share on Twitter\" id=\"sharing-twitter-10079\"><span>Twitter<\/span><\/a><\/li><li class=\"share-google-plus-1\"><a rel=\"nofollow\" class=\"share-google-plus-1 sd-button share-icon\" href=\"http://quantivity.wordpress.com/2012/11/09/multi-asset-market-regimes/?share=google-plus-1\" title=\"Click to share on Google+\" id=\"sharing-google-10079\"><span>Google +1<\/span><\/a><\/li><li class=\"share-linkedin\"><a rel=\"nofollow\" class=\"share-linkedin sd-button share-icon\" href=\"http://quantivity.wordpress.com/2012/11/09/multi-asset-market-regimes/?share=linkedin\" title=\"Click to share on LinkedIn\" id=\"sharing-linkedin-10079\"><span>LinkedIn<\/span><\/a><\/li><li class=\"share-reddit\"><a rel=\"nofollow\" class=\"share-reddit sd-button share-icon\" href=\"http://quantivity.wordpress.com/2012/11/09/multi-asset-market-regimes/?share=reddit\" title=\"Click to share on Reddit\"><span>Reddit<\/span><\/a><\/li><li class=\"share-end\"><\/li><\/ul><div class=\"sharing-clear\"><\/div><\/div><\/div><\/div><div class=\"wpl-likebox sd-block sd-like\"><h3 class=\"sd-title\">Like this:<\/h3><div class=\"sd-content\"><div id=\"like-10079\" class=\"wpl-button \"><a href='http://quantivity.wordpress.com/2012/11/09/multi-asset-market-regimes/?like=1&amp;source=post_flair&amp;_wpnonce=c49b096ccc' title='I like this.' class='like needs-login sd-button' rel='nofollow'><span>Like<\/span><\/a><\/div><div class=\"wpl-count sd-like-count\">Be the first to like this.<\/div><\/div><\/div><\/div>\t\t\t\t\t\t\t\t\t\t\t<\/div><!--end entry-->\n\t\t\t<div class=\"post-footer\">\n\t\t\t\t<div class=\"categories\">from &rarr; <a href=\"http://quantivity.wordpress.com/category/uncategorized/\" title=\"View all posts in Uncategorized\" rel=\"category tag\">Uncategorized<\/a><\/div>\n\t\t\t<\/div><!--end post footer-->\n\t\t<\/div><!--end post-->\n\t\t\t\t<div class=\"navigation post single clear\">\n\t\t\t<div class=\"alignleft\"><a href=\"http://quantivity.wordpress.com/2012/10/25/implicit-momentum-bias/\" rel=\"prev\">&larr; Implicit Momentum&nbsp;Bias<\/a><\/div>\n\t\t\t<div class=\"alignright\" ><\/div>\n\t\t<\/div><!--end pagination-->\n\t\t<!-- You can start editing here. -->\n<div id=\"comments\">\n\t<div class=\"comment-number\">\n\t\t<span>7 Comments<\/span>\n\t\t\t<a id=\"leavecomment\" href=\"#respond\" title=\"Leave One\">leave one &rarr;<\/a>\n\t\t<\/div><!--end comment-number-->\n\t\t\t<ol class=\"commentlist\">\n\t\t\t\n\t\t\t<li class=\"comment even thread-even depth-1 highlander-comment\" id=\"comment-1477\" >\n\t\t\t<div class=\"c-grav\"><img alt='' src='http://2.gravatar.com/avatar/2218b278cf55d488f355814bbdff9ea1?s=60&amp;d=identicon&amp;r=G' class='avatar avatar-60' height='60' width='60' /><\/div>\n\t\t\t\t<div class=\"c-body\">\n\t\t\t\t\t<div class=\"c-head\">\n\t\t\t\t\t\tSam <span class=\"c-permalink\"><a href=\"http://quantivity.wordpress.com/2012/11/09/multi-asset-market-regimes/#comment-1477\">permalink<\/a><\/span>\t\t\t\t\t<\/div>\n\t\t\t\t\t<div class=\"c-date\">\n\t\t\t\t\t\tNovember 9, 2012 6:58 pm\t\t\t\t\t<\/div>\n\t\t\t\t\t\t\t\t\t\t<p>Nice post, which package does the dROC, getOhlcv etc functions reside in?<\/p>\n\t\t\t\t\t\t\t\t\t\t<div class=\"reply\">\n\t\t\t\t\t\t<a class='comment-reply-link' href='/2012/11/09/multi-asset-market-regimes/?replytocom=1477#respond' onclick='return addComment.moveForm(\"comment-1477\", \"1477\", \"respond\", \"10079\")'>Reply<\/a>\t\t\t\t\t<\/div>\n\t\t\t\t\t\t\t\t\t<\/div><!--end c-body-->\n<ul class='children'>\n\n\t\t\t<li class=\"comment byuser comment-author-quantivity bypostauthor odd alt depth-2 highlander-comment\" id=\"comment-1478\" >\n\t\t\t<div class=\"c-grav\"><img alt='' src='http://1.gravatar.com/avatar/7f67f1b2910b55a3f40a983ffa830357?s=60&amp;d=identicon&amp;r=G' class='avatar avatar-60' height='60' width='60' /><\/div>\n\t\t\t\t<div class=\"c-body\">\n\t\t\t\t\t<div class=\"c-head\">\n\t\t\t\t\t\tquantivity <span class=\"c-permalink\"><a href=\"http://quantivity.wordpress.com/2012/11/09/multi-asset-market-regimes/#comment-1478\">permalink<\/a><\/span><span class=\"asterisk\">*<\/span>\t\t\t\t\t<\/div>\n\t\t\t\t\t<div class=\"c-date\">\n\t\t\t\t\t\tNovember 9, 2012 8:29 pm\t\t\t\t\t<\/div>\n\t\t\t\t\t\t\t\t\t\t<p>@Sam: thanks for complement.<\/p>\n<p>Re functions: some are common utility functions, which are not currently packaged; others are private because they depend on access to a large private data warehouse, which cannot be replicated with standard quantfin libraries (<em>e.g.<\/em> <code>quantmod<\/code>, etc).<\/p>\n<p>If there is sufficient reader interest, I can make the utility functions available.<\/p>\n\t\t\t\t\t\t\t\t\t\t<div class=\"reply\">\n\t\t\t\t\t\t<a class='comment-reply-link' href='/2012/11/09/multi-asset-market-regimes/?replytocom=1478#respond' onclick='return addComment.moveForm(\"comment-1478\", \"1478\", \"respond\", \"10079\")'>Reply<\/a>\t\t\t\t\t<\/div>\n\t\t\t\t\t\t\t\t\t<\/div><!--end c-body-->\n<ul class='children'>\n\n\t\t\t<li class=\"comment even depth-3 highlander-comment\" id=\"comment-1479\" >\n\t\t\t<div class=\"c-grav\"><img alt='' src='http://1.gravatar.com/avatar/abce5aadb1ba4843e271ba601c3501ed?s=60&amp;d=identicon&amp;r=G' class='avatar avatar-60' height='60' width='60' /><\/div>\n\t\t\t\t<div class=\"c-body\">\n\t\t\t\t\t<div class=\"c-head\">\n\t\t\t\t\t\tEduardo <span class=\"c-permalink\"><a href=\"http://quantivity.wordpress.com/2012/11/09/multi-asset-market-regimes/#comment-1479\">permalink<\/a><\/span>\t\t\t\t\t<\/div>\n\t\t\t\t\t<div class=\"c-date\">\n\t\t\t\t\t\tNovember 9, 2012 11:53 pm\t\t\t\t\t<\/div>\n\t\t\t\t\t\t\t\t\t\t<p>I am looking at the code and I guess dROC is the same as TTR::ROC using type=&#8221;discrete&#8221;? Then, I guess getOhlcv is the same as quantmod:getSymbols just that it looks in your DWH? If this is true, then the only function missing definition and source code is rollingTurbulence since I can not find it anywhere else in R universe. I would appreciate if you can share the code.<\/p>\n<p>Otherwise, I guess the simplest thing would be to use data from FRED downloading it using getSymbols and using src=&#8221;FRED&#8221; and the example would be reproducible completely&#8230;<\/p>\n<p>Any chance to share code asked for in the comment section of another great article from you <a href=\"http://quantivity.wordpress.com/2012/10/23/volume-clock-gaps-and-goog/\" rel=\"nofollow\">http://quantivity.wordpress.com/2012/10/23/volume-clock-gaps-and-goog/<\/a> ? Thank you.<\/p>\n\t\t\t\t\t\t\t\t\t\t<div class=\"reply\">\n\t\t\t\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t\t\t\t\t\t<\/div><!--end c-body-->\n<\/li>\n\n\t\t\t<li class=\"comment byuser comment-author-quantivity bypostauthor odd alt depth-3 highlander-comment\" id=\"comment-1483\" >\n\t\t\t<div class=\"c-grav\"><img alt='' src='http://1.gravatar.com/avatar/7f67f1b2910b55a3f40a983ffa830357?s=60&amp;d=identicon&amp;r=G' class='avatar avatar-60' height='60' width='60' /><\/div>\n\t\t\t\t<div class=\"c-body\">\n\t\t\t\t\t<div class=\"c-head\">\n\t\t\t\t\t\tquantivity <span class=\"c-permalink\"><a href=\"http://quantivity.wordpress.com/2012/11/09/multi-asset-market-regimes/#comment-1483\">permalink<\/a><\/span><span class=\"asterisk\">*<\/span>\t\t\t\t\t<\/div>\n\t\t\t\t\t<div class=\"c-date\">\n\t\t\t\t\t\tNovember 10, 2012 8:58 am\t\t\t\t\t<\/div>\n\t\t\t\t\t\t\t\t\t\t<p>@Eduardo: I added dROC to the post. I have a version of the data access functions functions which stub into <code>quantmod<\/code> equivalents (and vice versa, so these functions interoperate with OHLCV functions), which I can make available in a subsequent post depending on reader interest.<\/p>\n<p>Covering turbulence is on the agenda for subsequent post in this series, as this paper depends on it (not to mention Kritzman is an author on a preceding paper covering turbulence).<\/p>\n<p>Finally, I can share TAQ code in a post subsequent to this market regime series.<\/p>\n\t\t\t\t\t\t\t\t\t\t<div class=\"reply\">\n\t\t\t\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t\t\t\t\t\t<\/div><!--end c-body-->\n<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<\/li>\n\n\t\t\t<li class=\"comment even thread-odd thread-alt depth-1 highlander-comment\" id=\"comment-1493\" >\n\t\t\t<div class=\"c-grav\"><img alt='' src='http://1.gravatar.com/avatar/4515b06f9f1c037ccfad149c4c45a88e?s=60&amp;d=identicon&amp;r=G' class='avatar avatar-60' height='60' width='60' /><\/div>\n\t\t\t\t<div class=\"c-body\">\n\t\t\t\t\t<div class=\"c-head\">\n\t\t\t\t\t\tgj <span class=\"c-permalink\"><a href=\"http://quantivity.wordpress.com/2012/11/09/multi-asset-market-regimes/#comment-1493\">permalink<\/a><\/span>\t\t\t\t\t<\/div>\n\t\t\t\t\t<div class=\"c-date\">\n\t\t\t\t\t\tNovember 12, 2012 9:41 pm\t\t\t\t\t<\/div>\n\t\t\t\t\t\t\t\t\t\t<p>Thanks for the hmmFit package pointer.<\/p>\n\t\t\t\t\t\t\t\t\t\t<div class=\"reply\">\n\t\t\t\t\t\t<a class='comment-reply-link' href='/2012/11/09/multi-asset-market-regimes/?replytocom=1493#respond' onclick='return addComment.moveForm(\"comment-1493\", \"1493\", \"respond\", \"10079\")'>Reply<\/a>\t\t\t\t\t<\/div>\n\t\t\t\t\t\t\t\t\t<\/div><!--end c-body-->\n<\/li>\n\n\t\t\t<li class=\"comment odd alt thread-even depth-1 highlander-comment\" id=\"comment-1505\" >\n\t\t\t<div class=\"c-grav\"><img alt='' src='http://0.gravatar.com/avatar/fde8b319ca36fe6605a65d21f818d2cd?s=60&amp;d=identicon&amp;r=G' class='avatar avatar-60' height='60' width='60' /><\/div>\n\t\t\t\t<div class=\"c-body\">\n\t\t\t\t\t<div class=\"c-head\">\n\t\t\t\t\t\tNiclas <span class=\"c-permalink\"><a href=\"http://quantivity.wordpress.com/2012/11/09/multi-asset-market-regimes/#comment-1505\">permalink<\/a><\/span>\t\t\t\t\t<\/div>\n\t\t\t\t\t<div class=\"c-date\">\n\t\t\t\t\t\tNovember 16, 2012 11:04 pm\t\t\t\t\t<\/div>\n\t\t\t\t\t\t\t\t\t\t<p>Thank you for a great post. You mention you have a large private data warehouse. Which sources do you use? Any suggestions on how to store such quantity of data (H2, sql, csv, &#8230;). Any special R packages you recomend?<\/p>\n<p>Thanks, looking forward to your next post.<\/p>\n\t\t\t\t\t\t\t\t\t\t<div class=\"reply\">\n\t\t\t\t\t\t<a class='comment-reply-link' href='/2012/11/09/multi-asset-market-regimes/?replytocom=1505#respond' onclick='return addComment.moveForm(\"comment-1505\", \"1505\", \"respond\", \"10079\")'>Reply<\/a>\t\t\t\t\t<\/div>\n\t\t\t\t\t\t\t\t\t<\/div><!--end c-body-->\n<\/li>\n\n\t\t\t<li class=\"comment byuser comment-author-7ovevol even thread-odd thread-alt depth-1 highlander-comment\" id=\"comment-1521\" >\n\t\t\t<div class=\"c-grav\"><img alt='' src='http://0.gravatar.com/avatar/990b8e4bb954a47aed9f94395e6c04a7?s=60&amp;d=identicon&amp;r=G' class='avatar avatar-60' height='60' width='60' /><\/div>\n\t\t\t\t<div class=\"c-body\">\n\t\t\t\t\t<div class=\"c-head\">\n\t\t\t\t\t\t<a href='http://convolutedvol' rel='external nofollow' class='url'>Convoluted Volatility<\/a> <span class=\"c-permalink\"><a href=\"http://quantivity.wordpress.com/2012/11/09/multi-asset-market-regimes/#comment-1521\">permalink<\/a><\/span>\t\t\t\t\t<\/div>\n\t\t\t\t\t<div class=\"c-date\">\n\t\t\t\t\t\tNovember 24, 2012 6:11 pm\t\t\t\t\t<\/div>\n\t\t\t\t\t\t\t\t\t\t<p>Reblogged this on <a href=\"http://convolutedvolatility.com/2012/11/25/multi-asset-market-regimes/\" rel=\"nofollow\">Convoluted Volatility &#8211; StatArb,VolArb; Macro.<\/a>.<\/p>\n\t\t\t\t\t\t\t\t\t\t<div class=\"reply\">\n\t\t\t\t\t\t<a class='comment-reply-link' href='/2012/11/09/multi-asset-market-regimes/?replytocom=1521#respond' onclick='return addComment.moveForm(\"comment-1521\", \"1521\", \"respond\", \"10079\")'>Reply<\/a>\t\t\t\t\t<\/div>\n\t\t\t\t\t\t\t\t\t<\/div><!--end c-body-->\n<\/li>\n\t\t<\/ol>\n\t\t<div class=\"navigation\">\n\t\t<div class=\"alignleft\"><\/div>\n\t\t<div class=\"alignright\"><\/div>\n\t<\/div>\n\t\t<\/div><!--end comments-->\n\n\t\t\t\t\t\t\t\t<div id=\"respond\">\n\t\t\t\t<h3 id=\"reply-title\">Leave a Reply <small><a rel=\"nofollow\" id=\"cancel-comment-reply-link\" href=\"/2012/11/09/multi-asset-market-regimes/#respond\" style=\"display:none;\">Cancel reply<\/a><\/small><\/h3>\n\t\t\t\t\t\t\t\t\t<form action=\"http://quantivity.wordpress.com/wp-comments-post.php\" method=\"post\" id=\"commentform\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\n\n\t\t\t\t\t\t\t\t\t\t\t\t\n<input type=\"hidden\" name=\"hc_post_as\" id=\"hc_post_as\" value=\"guest\" />\n\n<div class=\"comment-form-field comment-textarea\">\n\t<label for=\"comment\">Enter your comment here...<\/label>\n\t<div id=\"comment-form-comment\"><textarea id=\"comment\" name=\"comment\"><\/textarea><\/div>\n<\/div>\n\n<div id=\"comment-form-identity\">\n\n\t<div id=\"comment-form-nascar\">\n\t\t<p>Fill in your details below or click an icon to log in:<\/p>\n\t\t<ul>\n\t\t\t<li class=\"selected\" style=\"display:none;\">\n\t\t\t\t<a href=\"#comment-form-guest\" id=\"postas-guest\" title=\"Guest\">\n\t\t\t\t\t<span><\/span>\n\t\t\t\t<\/a>\n\t\t\t<\/li>\n\t\t\t<li>\n\t\t\t\t<a href=\"#comment-form-load-service:WordPress.com\" id=\"postas-wordpress\" title=\"WordPress.com\">\n\t\t\t\t\t<span><\/span>\n\t\t\t\t<\/a>\n\t\t\t<\/li>\n\t\t\t<li>\n\t\t\t\t<a href=\"#comment-form-load-service:Twitter\" id=\"postas-twitter\" title=\"Twitter\">\n\t\t\t\t\t<span><\/span>\n\t\t\t\t<\/a>\n\t\t\t<\/li>\n\t\t\t<li>\n\t\t\t\t<a href=\"#comment-form-load-service:Facebook\" id=\"postas-facebook\" title=\"Facebook\">\n\t\t\t\t\t<span><\/span>\n\t\t\t\t<\/a>\n\t\t\t<\/li>\n\t\t<\/ul>\n\t<\/div>\n\n\t<div id=\"comment-form-guest\" class=\"comment-form-service selected\">\n\t\t<div class=\"comment-form-padder\">\n\t\t\t<div class=\"comment-form-avatar\">\n<a href=\"https://gravatar.com/site/signup/\" target=\"_blank\">\t\t\t\t<img src=\"http://1.gravatar.com/avatar/ad516503a11cd5ca435acc9bb6523536?s=25&amp;d=identicon&amp;forcedefault=y&amp;r=G\" alt=\"Gravatar\" width=\"25\" class=\"no-grav\" />\n<\/a>\t\t\t<\/div>\n\n\t\t\t\t<div class=\"comment-form-fields\">\n\t\t\t\t<div class=\"comment-form-field comment-form-email\">\n\t\t\t\t\t<label for=\"email\">Email <span class=\"required\">(required)<\/span> <span class=\"nopublish\">(Address never made public)<\/span><\/label>\n\t\t\t\t\t<div class=\"comment-form-input\"><input id=\"email\" name=\"email\" type=\"email\" value=\"\" /><\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"comment-form-field comment-form-author\">\n\t\t\t\t\t<label for=\"author\">Name <span class=\"required\">(required)<\/span><\/label>\n\t\t\t\t\t<div class=\"comment-form-input\"><input id=\"author\" name=\"author\" type=\"text\" value=\"\" /><\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"comment-form-field comment-form-url\">\n\t\t\t\t\t<label for=\"url\">Website<\/label>\n\t\t\t\t\t<div class=\"comment-form-input\"><input id=\"url\" name=\"url\" type=\"text\" value=\"\" /><\/div>\n\t\t\t\t<\/div> \n\t\t\t<\/div>\n\t\n\t\t<\/div>\n\t<\/div>\n\n\t<div id=\"comment-form-wordpress\" class=\"comment-form-service\">\n\t\t<div class=\"comment-form-padder\">\n\t\t\t<div class=\"comment-form-avatar\">\n\t\t\t\t<img src=\"http://s2.wp.com/wp-content/mu-plugins/highlander-comments/images/wplogo.png?m=1289230950g\" alt=\"WordPress.com Logo\" width=\"25\" class=\"no-grav\" />\n\t\t\t<\/div>\n\n\t\t\t\t<div class=\"comment-form-fields\">\n\t\t\t\t<input type=\"hidden\" name=\"wp_avatar\" id=\"wordpress-avatar\" class=\"comment-meta-wordpress\" value=\"\" />\n\t\t\t\t<input type=\"hidden\" name=\"wp_user_id\" id=\"wordpress-user_id\" class=\"comment-meta-wordpress\" value=\"\" />\n\t\t\t\t<input type=\"hidden\" name=\"wp_access_token\" id=\"wordpress-access_token\" class=\"comment-meta-wordpress\" value=\"\" />\n\t\t\t\t<p class=\"comment-form-posting-as pa-wordpress\"><strong><\/strong> You are commenting using your WordPress.com account. <span class=\"comment-form-log-out\">(&nbsp;<a href=\"javascript:HighlanderComments.doExternalLogout( 'wordpress' );\">Log&nbsp;Out<\/a>&nbsp;/&nbsp;<a href=\"#\" onclick=\"javascript:HighlanderComments.switchAccount();return false;\">Change<\/a>&nbsp;)<\/span><\/p>\n\t\t\t<\/div>\n\t\n\t\t<\/div>\n\t<\/div>\n\n\t<div id=\"comment-form-twitter\" class=\"comment-form-service\">\n\t\t<div class=\"comment-form-padder\">\n\t\t\t<div class=\"comment-form-avatar\">\n\t\t\t\t<img src=\"http://1.gravatar.com/avatar/ad516503a11cd5ca435acc9bb6523536?s=25&amp;d=identicon&amp;forcedefault=y&amp;r=G\" alt=\"Twitter picture\" width=\"25\" class=\"no-grav\" />\n\t\t\t<\/div>\n\n\t\t\t\t<div class=\"comment-form-fields\">\n\t\t\t\t<input type=\"hidden\" name=\"twitter_avatar\" id=\"twitter-avatar\" class=\"comment-meta-twitter\" value=\"\" />\n\t\t\t\t<input type=\"hidden\" name=\"twitter_user_id\" id=\"twitter-user_id\" class=\"comment-meta-twitter\" value=\"\" />\n\t\t\t\t<input type=\"hidden\" name=\"twitter_access_token\" id=\"twitter-access_token\" class=\"comment-meta-twitter\" value=\"\" />\n\t\t\t\t<p class=\"comment-form-posting-as pa-twitter\"><strong><\/strong> You are commenting using your Twitter account. <span class=\"comment-form-log-out\">(&nbsp;<a href=\"javascript:HighlanderComments.doExternalLogout( 'twitter' );\">Log&nbsp;Out<\/a>&nbsp;/&nbsp;<a href=\"#\" onclick=\"javascript:HighlanderComments.switchAccount();return false;\">Change<\/a>&nbsp;)<\/span><\/p>\n\t\t\t<\/div>\n\t\n\t\t<\/div>\n\t<\/div>\n\n\t<div id=\"comment-form-facebook\" class=\"comment-form-service\">\n\t\t<div class=\"comment-form-padder\">\n\t\t\t<div class=\"comment-form-avatar\">\n\t\t\t\t<img src=\"http://1.gravatar.com/avatar/ad516503a11cd5ca435acc9bb6523536?s=25&amp;d=identicon&amp;forcedefault=y&amp;r=G\" alt=\"Facebook photo\" width=\"25\" class=\"no-grav\" />\n\t\t\t<\/div>\n\n\t\t\t\t<div class=\"comment-form-fields\">\n\t\t\t\t<input type=\"hidden\" name=\"fb_avatar\" id=\"facebook-avatar\" class=\"comment-meta-facebook\" value=\"\" />\n\t\t\t\t<input type=\"hidden\" name=\"fb_user_id\" id=\"facebook-user_id\" class=\"comment-meta-facebook\" value=\"\" />\n\t\t\t\t<input type=\"hidden\" name=\"fb_access_token\" id=\"facebook-access_token\" class=\"comment-meta-facebook\" value=\"\" />\n\t\t\t\t<p class=\"comment-form-posting-as pa-facebook\"><strong><\/strong> You are commenting using your Facebook account. <span class=\"comment-form-log-out\">(&nbsp;<a href=\"javascript:HighlanderComments.doExternalLogout( 'facebook' );\">Log&nbsp;Out<\/a>&nbsp;/&nbsp;<a href=\"#\" onclick=\"javascript:HighlanderComments.switchAccount();return false;\">Change<\/a>&nbsp;)<\/span><\/p>\n\t\t\t<\/div>\n\t\n\t\t<\/div>\n\t<\/div>\n\n\n\t<div id=\"comment-form-load-service\" class=\"comment-form-service\">\n\t\t<div class=\"comment-form-posting-as-cancel\"><a href=\"javascript:HighlanderComments.cancelExternalWindow();\">Cancel<\/a><\/div>\n\t\t<p>Connecting to %s<\/p>\n\t<\/div>\n\t\n\t\n<\/div>\n\n<script type=\"text/javascript\">\njQuery(document).ready(function(){\n\tvar input = document.createElement( 'input' ),\n\t    comment = jQuery( '#comment' );\n\n\tif ( 'placeholder' in input ) {\n\t\tcomment.attr( 'placeholder', jQuery( '.comment-textarea label' ).remove().text() );\n\t}\n\n\t// Expando Mode: start small, then auto-resize on first click + text length\n\tjQuery( '#comment-form-identity' ).hide();\n\tjQuery( '#comment-form-subscribe' ).hide();\n\tjQuery( '#commentform .form-submit' ).hide();\n\n\tcomment.css( { 'height':'10px' } ).one( 'focus', function() {\n\t\tvar timer = setInterval( HighlanderComments.resizeCallback, 10 )\n\t\tjQuery( this ).animate( { 'height': HighlanderComments.initialHeight } ).delay( 100 ).queue( function(n) { clearInterval( timer ); HighlanderComments.resizeCallback(); n(); } );\n\t\tjQuery( '#comment-form-identity' ).slideDown();\n\t\tjQuery( '#comment-form-subscribe' ).slideDown();\n\t\tjQuery( '#commentform .form-submit' ).slideDown();\n\t});\n});\n<\/script>\n\n<div id=\"comment-form-subscribe\"> \n\t<p class=\"comment-subscription-form\"><input type=\"checkbox\" name=\"subscribe\" id=\"subscribe\" value=\"subscribe\" style=\"width: auto;\" tabindex=\"6\"/> <label class=\"subscribe-label\" id=\"subscribe-label\" for=\"subscribe\">Notify me of follow-up comments via email.<\/label><\/p><\/div>\n\n\t\t\t\t\t\t\t\t\t\t\t\t<p class=\"form-submit\">\n\t\t\t\t\t\t\t<input name=\"submit\" type=\"submit\" id=\"comment-submit\" value=\"Post Comment\" />\n\t\t\t\t\t\t\t<input type='hidden' name='comment_post_ID' value='10079' id='comment_post_ID' />\n<input type='hidden' name='comment_parent' id='comment_parent' value='0' />\n\t\t\t\t\t\t<\/p>\n\t\t\t\t\t\t\n<input type=\"hidden\" name=\"genseq\" value=\"1355431662\" />\n<p style=\"display: none;\"><input type=\"hidden\" id=\"akismet_comment_nonce\" name=\"akismet_comment_nonce\" value=\"f38a4a9486\" /><\/p><script type='text/javascript' src='http://s2.wp.com/wp-content/mu-plugins/akismet-2.5/form.js?m=1308783962g'><\/script>\n<p style=\"display: none;\"><input type=\"hidden\" id=\"ak_js\" name=\"ak_js\" value=\"2\"/><\/p>\t\t\t\t\t<\/form>\n\t\t\t\t\t\t\t<\/div><!-- #respond -->\n\t\t\t<div style=\"clear: both\"><\/div>\t\t\t\t\t\t<\/div><!--end content-->\n\t<div id=\"sidebar\">\n\t\t\t\t<ul>\t\t\t<li id=\"search-3\" class=\"widget widget_search\"><form method=\"get\" id=\"search_form\" action=\"http://quantivity.wordpress.com/\">\n\t<div>\n\t\t<input type=\"text\" value=\"type and press enter\" name=\"s\" id=\"s\" onfocus=\"if (this.value == 'type and press enter') {this.value = '';}\" onblur=\"if (this.value == '') {this.value = 'type and press enter';}\" />\n\t\t<input type=\"hidden\" value=\"Search\" />\n\t<\/div>\n<\/form><\/li><li id=\"top-posts-2\" class=\"widget widget_top-posts\"><h2 class=\"widgettitle\">Top Posts<\/h2><ul><li><a href=\"http://quantivity.wordpress.com/2011/02/21/why-log-returns/\" class=\"bump-view\" data-bump-view=\"tp\">Why Log Returns<\/a><\/li>\n<li><a href=\"http://quantivity.wordpress.com/2010/01/10/how-to-learn-algorithmic-trading/\" class=\"bump-view\" data-bump-view=\"tp\">How to Learn Algorithmic Trading<\/a><\/li>\n<li><a href=\"http://quantivity.wordpress.com/2010/01/12/how-to-learn-algorithmic-trading-part-3/\" class=\"bump-view\" data-bump-view=\"tp\">How to Learn Algorithmic Trading: Part 3<\/a><\/li>\n<li><a href=\"http://quantivity.wordpress.com/2011/05/23/why-minimize-negative-log-likelihood/\" class=\"bump-view\" data-bump-view=\"tp\">Why Minimize Negative Log Likelihood?<\/a><\/li>\n<li><a href=\"http://quantivity.wordpress.com/2010/01/12/how-to-learn-algorithmic-trading-part-2/\" class=\"bump-view\" data-bump-view=\"tp\">How to Learn Algorithmic Trading: Part 2<\/a><\/li>\n<\/ul><\/li><li id=\"text-3\" class=\"widget widget_text\"><h2 class=\"widgettitle\">FEEDS &amp; TWITTER<\/h2>\t\t\t<div class=\"textwidget\"><ul id=\"feeds\">\n <li><a href=\"http://quantivity.wordpress.com/feed/\">Full Feed<\/a><\/li>\n<li><a href=\"http://quantivity.wordpress.com/comments/feed/\">Comments Feed<\/a><\/li>\n<li><a href=\"http://www.twitter.com/quantivity\">Follow on Twitter<\/a><\/li>\n<\/ul><\/div>\n\t\t<\/li><li id=\"linkcat-1356\" class=\"widget widget_links\"><h2 class=\"widgettitle\">Blogroll<\/h2>\n\t<ul class='xoxo blogroll'>\n<li><a href=\"http://www.abnormalreturns.com/\">Abnormal Returns<\/a><\/li>\n<li><a href=\"http://alephblog.com/\">Aleph<\/a><\/li>\n<li><a href=\"http://www.algodude.com\">algodude<\/a><\/li>\n<li><a href=\"http://arxiv.org/\">arXiv<\/a><\/li>\n<li><a href=\"http://www.behaviouralfinance.net/\">Behavioural Finance<\/a><\/li>\n<li><a href=\"http://rick.bookstaber.com/\">Bookstaber<\/a><\/li>\n<li><a href=\"http://etrading.wordpress.com/\">Coding the Markets<\/a><\/li>\n<li><a href=\"http://www.condoroptions.com/\">Condor Options<\/a><\/li>\n<li><a href=\"http://cssanalytics.wordpress.com/\">CSS Analytics<\/a><\/li>\n<li><a href=\"http://www.curatedalpha.com/\">Curated Alpha<\/a><\/li>\n<li><a href=\"http://www.cxoadvisory.com/blog/\">CXO<\/a><\/li>\n<li><a href=\"http://www.gogerty.com/\">Designing Better Futures<\/a><\/li>\n<li><a href=\"http://econacademics.org/\">Econ Academics<\/a><\/li>\n<li><a href=\"http://www.econbrowser.com/\">Econbrowser<\/a><\/li>\n<li><a href=\"http://www.unifr.ch/econophysics/paper/list\">EconoPhysics Forum<\/a><\/li>\n<li><a href=\"http://blogs.reuters.com/emanuelderman/\">Emanuel Derman<\/a><\/li>\n<li><a href=\"http://empiricalfinancellc.com/EmpiricalFinanceBlog/\">Empirical Finance Research<\/a><\/li>\n<li><a href=\"http://enhyper.blogspot.com/\">Enhyper<\/a><\/li>\n<li><a href=\"http://estimationrisk.blogspot.com\">Estimation Risk<\/a><\/li>\n<li><a href=\"http://falkenblog.blogspot.com/\">Falkenblog<\/a><\/li>\n<li><a href=\"http://www.dimensional.com/famafrench/\">Fama / French<\/a><\/li>\n<li><a href=\"http://www.chicagofed.org/webpages/publications/publications_listing.cfm?filter_series=18\">Fed Research: Chicago<\/a><\/li>\n<li><a href=\"http://www.clevelandfed.org/research/\">Fed Research: Cleveland<\/a><\/li>\n<li><a href=\"http://libertystreeteconomics.newyorkfed.org/\">Fed Research: NY<\/a><\/li>\n<li><a href=\"http://www.frbsf.org/publications/economics/papers/index.php\">Fed Research: SF<\/a><\/li>\n<li><a href=\"http://research.stlouisfed.org/\">Fed Research: St Louis<\/a><\/li>\n<li><a href=\"http://blog.fosstrading.com/\">Foss Trading<\/a><\/li>\n<li><a href=\"http://research.stlouisfed.org/fred2/\">FRED<\/a><\/li>\n<li><a href=\"http://frontrunthedelta.blogspot.com\">Front Run the Delta<\/a><\/li>\n<li><a href=\"http://gestaltu.blogspot.com/\">GestaltU<\/a><\/li>\n<li><a href=\"http://blog.gillerinvestments.com/\">Giller<\/a><\/li>\n<li><a href=\"http://www.pimco.com/EN/Insights/Pages/InsightsOverview.aspx?pa=William%20H.%20Gross\">Gross<\/a><\/li>\n<li><a href=\"http://www2.goldmansachs.com/ideas/\">GS | Ideas<\/a><\/li>\n<li><a href=\"http://blog.informationgeometry.org/\">IG Wonderland<\/a><\/li>\n<li><a href=\"http://www.interfluidity.com/\">Interfluidity<\/a><\/li>\n<li><a href=\"http://largecaptrader.wordpress.com/\">LargeCapTrader<\/a><\/li>\n<li><a href=\"http://scottlocklin.wordpress.com/\">Locklin on Science<\/a><\/li>\n<li><a href=\"http://hunch.net/\">Machine Learning (Theory)<\/a><\/li>\n<li><a href=\"http://macro-man.blogspot.com/\">MacroMan<\/a><\/li>\n<li><a href=\"http://marketsci.wordpress.com\">MarketSci<\/a><\/li>\n<li><a href=\"http://mathbabe.wordpress.com/\">Math Babe<\/a><\/li>\n<li><a href=\"http://www.maxdama.com/\">Max Dama<\/a><\/li>\n<li><a href=\"http://metaoptimize.com/qa/\">Meta Optimize<\/a><\/li>\n<li><a href=\"http://davesbrain.blogs.com/mindmoneymarkets/\">Mind Money Markets<\/a><\/li>\n<li><a href=\"http://neoalpha.blogspot.com/\">Neo-Alpha<\/a><\/li>\n<li><a href=\"http://www.nuclearphynance.com\">Nuclear Phynance<\/a><\/li>\n<li><a href=\"http://www.optionseducation.org/institutional/research/\">OIC<\/a><\/li>\n<li><a href=\"http://phorgyphynance.wordpress.com/\">Phorgy Phynance<\/a><\/li>\n<li><a href=\"http://quant.stackexchange.com/\">Quant Exchange<\/a><\/li>\n<li><a href=\"http://quant.ly/\">Quant.Ly<\/a><\/li>\n<li><a href=\"http://quantifiableedges.blogspot.com/\">Quantifiable Edges<\/a><\/li>\n<li><a href=\"http://www.jonathankinlay.com/\">Quantitative Research<\/a><\/li>\n<li><a href=\"http://www.investuotojas.eu/\">Quantitative Thoughts<\/a><\/li>\n<li><a href=\"http://epchan.blogspot.com\">Quantitative Trading<\/a><\/li>\n<li><a href=\"http://matlab-trading.blogspot.com/\">Quantum<\/a><\/li>\n<li><a href=\"http://quantumfinancier.wordpress.com\">Quantum Financier<\/a><\/li>\n<li><a href=\"http://qusma.com/\">QUSMA<\/a><\/li>\n<li><a href=\"http://regsho.finra.org/regsho-Index.html\">Reg SHO<\/a><\/li>\n<li><a href=\"http://www.robeco.com/professionals/insights/quantitative-investing/quant-research.jsp\">Robeco Quant<\/a><\/li>\n<li><a href=\"http://www.cscs.umich.edu/~crshalizi/weblog/\">Shalizi<\/a><\/li>\n<li><a href=\"http://www.cscs.umich.edu/~crshalizi/notabene/\">Shalizi Notebooks<\/a><\/li>\n<li><a href=\"http://papers.ssrn.com\">SSRN<\/a><\/li>\n<li><a href=\"http://strommacro.wordpress.com\">Strom Macro<\/a><\/li>\n<li><a href=\"http://systematicinvestor.wordpress.com\">Systematic Investor<\/a><\/li>\n<li><a href=\"http://terrytao.wordpress.com/\">Tao<\/a><\/li>\n<li><a href=\"http://timelyportfolio.blogspot.com\">Timely Portfolio<\/a><\/li>\n<li><a href=\"http://tr8dr.wordpress.com/\">Tr8dr<\/a><\/li>\n<li><a href=\"http://www.tradingtheodds.com\">Trading the Odds<\/a><\/li>\n<li><a href=\"http://tradingwithmatlab.blogspot.com/\">Trading with Matlab<\/a><\/li>\n<li><a href=\"http://vixandmore.blogspot.com/\">VIX and More<\/a><\/li>\n<li><a href=\"http://www.wilmott.com/\">Wilmott<\/a><\/li>\n<li><a href=\"http://www.mebanefaber.com/\">WorldBeta<\/a><\/li>\n<li><a href=\"http://wrds.wharton.upenn.edu\">WRDS<\/a><\/li>\n<li><a href=\"http://www.zerohedge.com/\">ZeroHedge<\/a><\/li>\n\n\t<\/ul>\n<\/li>\n<li id=\"twitter-2\" class=\"widget widget_twitter\"><h2 class=\"widgettitle\"><a href='http://twitter.com/quantivity'>Twitter Updates<\/a><\/h2><ul class='tweets'>\n\t\t\t<li>\n\t\t\t\tJoint Training of Deep Boltzmann Machines: <a href=\"http://bit.ly/TXx4a6\"> bit.ly/TXx4a6<\/a> \t\t\t\t<a href=\"http://twitter.com/quantivity/statuses/279270463606247424\" class=\"timesince\">3&nbsp;hours&nbsp;ago<\/a>\n\t\t\t<\/li>\n\n\t\t\t\n\t\t\t<li>\n\t\t\t\tOnline Portfolio Selection: A Survey: <a href=\"http://bit.ly/TXwXLz\"> bit.ly/TXwXLz<\/a> \t\t\t\t<a href=\"http://twitter.com/quantivity/statuses/279270238233718785\" class=\"timesince\">3&nbsp;hours&nbsp;ago<\/a>\n\t\t\t<\/li>\n\n\t\t\t\n\t\t\t<li>\n\t\t\t\tTrading Costs of Asset Pricing Anomalies: <a href=\"http://stanford.io/Xf2er8\"> stanford.io/Xf2er8<\/a> \t\t\t\t<a href=\"http://twitter.com/quantivity/statuses/279115236517232640\" class=\"timesince\">14&nbsp;hours&nbsp;ago<\/a>\n\t\t\t<\/li>\n\n\t\t\t\n\t\t\t<li>\n\t\t\t\tMarket Belief Risk and Cross-Section of Stock Returns: <a href=\"http://bit.ly/U5FEQZ\"> bit.ly/U5FEQZ<\/a> \t\t\t\t<a href=\"http://twitter.com/quantivity/statuses/278720815351078912\" class=\"timesince\">1&nbsp;day&nbsp;ago<\/a>\n\t\t\t<\/li>\n\n\t\t\t\n\t\t\t<li>\n\t\t\t\tComomentum: Inferring Arbitrage Activity from Return Correlations: <a href=\"http://bit.ly/X3gmUm\"> bit.ly/X3gmUm<\/a> \t\t\t\t<a href=\"http://twitter.com/quantivity/statuses/278363083108401153\" class=\"timesince\">2&nbsp;days&nbsp;ago<\/a>\n\t\t\t<\/li>\n\n\t\t\t<\/ul><\/li><li id=\"text-2\" class=\"widget widget_text\"><h2 class=\"widgettitle\">Disclaimer<\/h2>\t\t\t<div class=\"textwidget\"><em>All content on this site is provided for informational purposes only. It is not intended as advice to buy or sell any securities. Stocks are difficult to trade; quantitative strategies are much more difficult to trade.  Please do your own homework and accept full responsibility for any investment decisions you make.<\/em><\/div>\n\t\t<\/li>\t\t<\/ul>\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<\/div><!--end sidebar-->\t<div id=\"footer\">\n\t\t<div class=\"footer-liner\">\n\t\t\t<p class=\"right\"><a href=\"http://wordpress.com/?ref=footer\" rel=\"generator\">Blog at WordPress.com<\/a>.<\/p>\n\t\t\t<p>Theme: <a href=\"http://theme.wordpress.com/themes/vigilance/\" title=\"Learn more about this theme\">Vigilance<\/a> by <a href=\"http://thethemefoundry.com/\" rel=\"designer\">The Theme Foundry<\/a>.<\/p>\n\t\t<\/div><!-- .footer-liner -->\n\t<\/div><!--end footer-->\n<\/div><!--end wrapper-->\n\n<script type=\"text/javascript\">\nvar _qevents = _qevents || [], wpcomQuantcastData = {\"qacct\":\"p-18-mFEk4J448M\",\"labels\":\",language.en,type.wpcom,as\"};\nfunction wpcomQuantcastPixel( labels, options ) {\n\tvar i, defaults = wpcomQuantcastData, data = { event: 'ajax' };\n\n\tlabels  = labels  || '';\n\toptions = options || {};\n\n\tif ( typeof labels != 'string' )\n\t\toptions = labels;\n\n\tfor ( i in defaults ) {\n\t\tdata[i] = defaults[i];\n\t}\n\n\tfor ( i in options ) {\n\t\tdata[i] = options[i];\n\t}\n\n\tif ( data.labels ) {\n\t\tdata.labels += ',' + labels;\n\t} else {\n\t\tdata.labels = labels;\n\t}\n\n\t_qevents.push( data );\n};\n(function() {var elem = document.createElement('script');elem.src = (document.location.protocol == \"https:\" ? \"https://secure\" : \"http://edge\") + \".quantserve.com/quant.js\";elem.async = true;elem.type = \"text/javascript\";var scpt = document.getElementsByTagName('script')[0];scpt.parentNode.insertBefore(elem, scpt);  })();\n_qevents.push( wpcomQuantcastData );\n<\/script>\n<noscript><div style=\"display: none;\"><img src=\"//pixel.quantserve.com/pixel/p-18-mFEk4J448M.gif?labels=%2Clanguage.en%2Ctype.wpcom%2Cas\" height=\"1\" width=\"1\" alt=\"\" /><\/div><\/noscript>\n\n\n\t<script type=\"text/javascript\">\n\t/* <![CDATA[ */\n\t(function($){\n\t\t$(document).on( 'ready post-load', function() {\n\n\t\t\t// Remove the login box when clicking the page\n\t\t\t$( document ).mousedown( function( e ) {\n\t\t\t\tif ( null == $( e.target ).closest( '#wpl-mustlogin' ).get( 0 ) ) {\n\t\t\t\t\t$( '#wpl-mustlogin' ).remove();\n\t\t\t\t}\n\t\t\t});\n\n\t\t\t// Handle clicking the like button itself\n\t\t\t$('.wpl-button > a.like').click( function(e) {\n\t\t\t\te.preventDefault();\n\n\t\t\t\tvar postid = $(this).parent().attr('id').split('like-')[1];\n\t\t\t\t$.post( 'http://quantivity.wordpress.com/wp-admin/admin-ajax.php', {\n\t\t\t\t\t'action': 'wpl_record_stat',\n\t\t\t\t\t'stat_name': 'loggedout_like_click'\n\t\t\t\t} );\n\n\t\t\t\tvar tenMins = new Date();\n\t\t\t\ttenMins.setTime( tenMins.getTime() + 600000 );\n\t\t\t\tdocument.cookie = 'wpl_rand=4e30c7d309; expires=' + tenMins.toGMTString() + '; domain=wordpress.com; path=/;';\n\n\t\t\t\t$(this).parent().siblings('.wpl-count').after( '\n\t\t\t\t\t<div id=\"wpl-mustlogin\"> \n\t\t\t\t\t\t<form action=\"https://quantivity.wordpress.com/wp-login.php\" method=\"post\"> \n\t\t\t\t\t\t\t<p>Just one more step to like this:<\/p> \n\t\t\t\t\t\t\t<label><span>Username<\/span> <input type=\"text\" name=\"log\" id=\"user_login\" class=\"input\" value=\"\" size=\"20\" tabindex=\"80\" /><\/label> \n\t\t\t\t\t\t\t<label><span>Password<\/span> <input type=\"password\" name=\"pwd\" id=\"user_pass\" class=\"input\" value=\"\" size=\"20\" tabindex=\"81\" /><\/label> \n\t\t\t\t\t\t\t<input type=\"submit\" name=\"wp-submit\" id=\"wp-submit\" class=\"button-primary\" value=\"Log In\" tabindex=\"82\" /> \n\t\t\t\t\t\t\t<input type=\"hidden\" name=\"postid\" value=\"' + postid + '\" /> \n\t\t\t\t\t\t\t<input type=\"hidden\" name=\"redirect_to\" value=\"http://quantivity.wordpress.com/2012/11/09/multi-asset-market-regimes?year=2012&#038;monthnum=11&#038;day=09&#038;name=multi-asset-market-regimes&#038;like=1\" /> \n\t\t\t\t\t\t\t<input type=\"hidden\" name=\"wpl_rand\" value=\"4e30c7d309\" /> \n\t\t\t\t\t\t\t<p>Not a member yet? <a href=\"http://wordpress.com/signup/?ref=likebox&user=1\" id=\"wpl-signup-link\">Sign up with WordPress.com for free<\/a><\/p> \n\t\t\t\t\t\t<\/form> \n\t\t\t\t\t<\/div> \n\t\t\t\t');\n\n\t\t\t\t$('#wpl-mustlogin').hide().slideDown('fast');\n\t\t\t} );\n\n\t\t\t$('#wpl-mustlogin input.input').live( 'focus', function() {\n\t\t\t\t$(this).prev().hide();\n\t\t\t}).live( 'blur', function() {\n\t\t\t\tif ( $(this).val() == '' ) {\n\t\t\t\t\t$(this).prev().show();\n\t\t\t\t}\n\t\t\t});\n\n\t\t\t$('#wpl-mustlogin input#wp-submit').live( 'click', function(e) {\n\t\t\t\te.preventDefault();\n\n\t\t\t\t$.post( 'http://quantivity.wordpress.com/wp-admin/admin-ajax.php', {\n\t\t\t\t\t'action': 'wpl_record_stat',\n\t\t\t\t\t'stat_name': 'loggedout_login_submit'\n\t\t\t\t}, function() {\n\t\t\t\t\t$('#wpl-mustlogin form').submit();\n\t\t\t\t} );\n\t\t\t});\n\n\t\t\t$('#wpl-mustlogin a#wpl-signup-link').live( 'click', function(e) {\n\t\t\t\te.preventDefault();\n\n\t\t\t\tvar link = $(this).attr('href');\n\n\t\t\t\t$.post( 'http://quantivity.wordpress.com/wp-admin/admin-ajax.php', {\n\t\t\t\t\t'action': 'wpl_record_stat',\n\t\t\t\t\t'stat_name': 'loggedout_signup_click'\n\t\t\t\t}, function() {\n\t\t\t\t\tlocation.href = link;\n\t\t\t\t} );\n\t\t\t});\n\t\t})\n\t})(jQuery);\n\t/* ]]> */\n\t<\/script>\n<script type='text/javascript' src='//0.gravatar.com/js/gprofiles.js?ver=201250ab'><\/script>\n<script type='text/javascript'>\n/* <![CDATA[ */\nvar WPGroHo = {\"my_hash\":\"\"};\n/* ]]> */\n<\/script>\n<script type='text/javascript' src='http://s0.wp.com/wp-content/mu-plugins/gravatar-hovercards/wpgroho.js?m=1351637563g'><\/script>\n<script>jQuery(document).ready(function($){ Gravatar.profile_cb = function( h, d ) { WPGroHo.syncProfileData( h, d );\t}; Gravatar.my_hash = WPGroHo.my_hash; Gravatar.init( 'body', '#wp-admin-bar-my-account' ); });<\/script>\t<div style=\"display:none\">\n\t<div class=\"grofile-hash-map-2218b278cf55d488f355814bbdff9ea1\">\n\t<\/div>\n\t<div class=\"grofile-hash-map-7f67f1b2910b55a3f40a983ffa830357\">\n\t<\/div>\n\t<div class=\"grofile-hash-map-abce5aadb1ba4843e271ba601c3501ed\">\n\t<\/div>\n\t<div class=\"grofile-hash-map-4515b06f9f1c037ccfad149c4c45a88e\">\n\t<\/div>\n\t<div class=\"grofile-hash-map-fde8b319ca36fe6605a65d21f818d2cd\">\n\t<\/div>\n\t<div class=\"grofile-hash-map-990b8e4bb954a47aed9f94395e6c04a7\">\n\t<\/div>\n\t<\/div>\n<script type='text/javascript'>\n/* <![CDATA[ */\nvar HighlanderComments = {\"loggingInText\":\"Logging In...\",\"submittingText\":\"Posting Comment...\",\"postCommentText\":\"Post Comment\",\"connectingToText\":\"Connecting to %s\",\"commentingAsText\":\"%1$s: You are commenting using your %2$s account.\",\"logoutText\":\"Log Out\",\"loginText\":\"Log In\",\"connectURL\":\"http://quantivity.wordpress.com/public.api/connect/?action=request\",\"logoutURL\":\"http://quantivity.wordpress.com/wp-login.php?action=logout&_wpnonce=4911b1bec5\",\"homeURL\":\"http://quantivity.wordpress.com/\",\"postID\":\"10079\",\"gravDefault\":\"identicon\",\"enterACommentError\":\"Please enter a comment\",\"enterEmailError\":\"Please enter your email address here\",\"invalidEmailError\":\"Invalid email address\",\"enterAuthorError\":\"Please enter your name here\",\"gravatarFromEmail\":\"This picture will show whenever you leave a comment. Click to customize it.\",\"logInToExternalAccount\":\"Log in to use details from one of these accounts.\",\"change\":\"Change\",\"changeAccount\":\"Change Account\",\"comment_registration\":\"\",\"userIsLoggedIn\":\"\",\"isJetpack\":\"0\"};\n/* ]]> */\n<\/script>\n<script type='text/javascript' src='http://s1.wp.com/wp-content/mu-plugins/highlander-comments/script.js?m=1352785702g'><\/script>\n\n\t<div id=\"bit\" class=\"loggedout-follow-normal\">\n\t\t<a class=\"bsub\" href=\"javascript:void(0)\"><span id='bsub-text'>Follow<\/span><\/a>\n\t\t<div id=\"bitsubscribe\">\n\n\t\t\t\t\t<h3><label for=\"loggedout-follow-field\">Follow &ldquo;Quantivity&rdquo;<\/label><\/h3>\n\n\t\t\t<form action=\"https://subscribe.wordpress.com\" method=\"post\" accept-charset=\"utf-8\" id=\"loggedout-follow\">\n\t\t\t<p>Get every new post delivered to your Inbox.<\/p>\n\n\t\t\t<p id=\"loggedout-follow-error\" style=\"display: none;\"><\/p>\n\n\t\t\t\t\t\t<p class=\"bit-follow-count\">Join 122 other followers<\/p>\n\t\t\t<p><input type=\"email\" name=\"email\" style=\"width: 95%; padding: 1px 2px\" value=\"Enter your email address\" onfocus='this.value=(this.value==\"Enter your email address\") ? \"\" : this.value;' onblur='this.value=(this.value==\"\") ? \"Enter email address\" : this.value;'  id=\"loggedout-follow-field\"/><\/p>\n\n\t\t\t<input type=\"hidden\" name=\"action\" value=\"subscribe\"/>\n\t\t\t<input type=\"hidden\" name=\"blog_id\" value=\"8547598\"/>\n\t\t\t<input type=\"hidden\" name=\"source\" value=\"http://quantivity.wordpress.com/2012/11/09/multi-asset-market-regimes/\"/>\n\t\t\t<input type=\"hidden\" name=\"sub-type\" value=\"loggedout-follow\"/>\n\n\t\t\t<input type=\"hidden\" id=\"_wpnonce\" name=\"_wpnonce\" value=\"723b90ac49\" /><input type=\"hidden\" name=\"_wp_http_referer\" value=\"/2012/11/09/multi-asset-market-regimes/\" />\n\t\t\t<p id='bsub-subscribe-button'><input type=\"submit\" value=\"Sign me up\" /><\/p>\n\t\t\t<\/form>\n\t\t\t\t\t<div id='bsub-credit'><a href=\"http://wordpress.com/signup/?ref=lof\">Powered by WordPress.com<\/a><\/div>\n\t\t<\/div><!-- #bitsubscribe -->\n\t<\/div><!-- #bit -->\n\n\t<script type=\"text/javascript\">\n\t  var vglnk = { api_url: \"//api.viglink.com/api\",\n\t                key: \"cdee124b11d6baacda6c3e29b12e23dc\" };\t \n\t  (function(d, t) {\n\t    var s = d.createElement(t); s.type = \"text/javascript\"; s.async = true;\n\t    s.src = (\"https:\" == document.location.protocol ? vglnk.api_url :\n\t             \"//cdn.viglink.com/api\") + \"/vglnk.js\";\n\t    var r = d.getElementsByTagName(t)[0]; r.parentNode.insertBefore(s, r);\n\t  }(document, \"script\"));\n\t<\/script>\n\t\n\t<script type=\"text/javascript\">\n\t\tWPCOM_sharing_counts = {\"http://quantivity.wordpress.com/2012/11/09/multi-asset-market-regimes/\":10079}\t<\/script>\n<script type='text/javascript' src='http://s0.wp.com/wp-content/mu-plugins/post-flair/sharing/sharing.js?m=1355109186g'><\/script>\n\t\t<script type=\"text/javascript\" charset=\"utf-8\">\n\t\tjQuery(document).ready(function(){\n\t\t\tjQuery( 'a.share-twitter' ).click(function(){\n\t\t\t\twindow.open( jQuery(this).attr( 'href' ), 'wpcomtwitter', 'menubar=1,resizable=1,width=600,height=350' );\n\t\t\t\treturn false;\n\t\t\t});\n\t\t});\n\t\t<\/script>\n\t\t\t\t<script type=\"text/javascript\" charset=\"utf-8\">\n\t\tjQuery(document).ready(function(){\n\t\t\tjQuery( 'a.share-google-plus-1' ).click(function(){\n\t\t\t\twindow.open( jQuery(this).attr( 'href' ), 'wpcomgoogle-plus-1', 'menubar=1,resizable=1,width=600,height=600' );\n\t\t\t\treturn false;\n\t\t\t});\n\t\t});\n\t\t<\/script>\n\t\t\t\t<script type=\"text/javascript\" charset=\"utf-8\">\n\t\tjQuery(document).ready(function(){\n\t\t\tjQuery( 'a.share-linkedin' ).click(function(){\n\t\t\t\twindow.open( jQuery(this).attr( 'href' ), 'wpcomlinkedin', 'menubar=1,resizable=1,width=580,height=450' );\n\t\t\t\treturn false;\n\t\t\t});\n\t\t});\n\t\t<\/script>\n\t\t<script type='text/javascript' src='http://platform.twitter.com/widgets.js?ver=20111117'><\/script>\n<script type='text/javascript' src='http://s0.wp.com/_static/??-eJzTLy/QTc7PK0nNK9EvyClNz8wr1i+uzCtJrMjITM/IAeKS1CJsIslFmQUlQLUZzvlFqXpZxTr6RJlUkpFZlKJbkFhUUqmbVFRanJEKMsMJxAoCmmKfa2tobGxhYGBgaWacBQAU5Tue'><\/script>\n<script type='text/javascript'>\n\t(function(){\n\t\tvar corecss = document.createElement('link');\n\t\tvar themecss = document.createElement('link');\n\t\tvar themecssurl = \"http://s0.wp.com/wp-content/plugins/syntaxhighlighter-wpcom/shThemeDefault.css?m=1267535107g&amp;ver=2.1.364b\";\n\t\tif ( themecss.setAttribute ) {\n\t\t\t\tthemecss.setAttribute( \"rel\", \"stylesheet\" );\n\t\t\t\tthemecss.setAttribute( \"type\", \"text/css\" );\n\t\t\t\tthemecss.setAttribute( \"href\", themecssurl );\n\t\t} else {\n\t\t\t\tthemecss.rel = \"stylesheet\";\n\t\t\t\tthemecss.href = themecssurl;\n\t\t}\n\t\tdocument.getElementsByTagName(\"head\")[0].appendChild(themecss);\n\t})();\n\tSyntaxHighlighter.config.clipboardSwf = 'http://s2.wp.com/wp-content/plugins/syntaxhighlighter/syntaxhighlighter/scripts/clipboard.swf?m=1308177859g';\n\tSyntaxHighlighter.config.strings.expandSource = 'show source';\n\tSyntaxHighlighter.config.strings.viewSource = 'view source';\n\tSyntaxHighlighter.config.strings.copyToClipboard = 'copy to clipboard';\n\tSyntaxHighlighter.config.strings.copyToClipboardConfirmation = 'The code is in your clipboard now';\n\tSyntaxHighlighter.config.strings.print = 'print';\n\tSyntaxHighlighter.config.strings.help = '?';\n\tSyntaxHighlighter.config.strings.alert = 'SyntaxHighlighter\n\n';\n\tSyntaxHighlighter.config.strings.noBrush = 'Can't find brush for: ';\n\tSyntaxHighlighter.config.strings.brushNotHtmlScript = 'Brush wasn't configured for html-script option: ';\n\tSyntaxHighlighter.all();\n<\/script>\n<script type='text/javascript'>\n/* <![CDATA[ */\nvar thickboxL10n = {\"next\":\"Next >\",\"prev\":\"< Prev\",\"image\":\"Image\",\"of\":\"of\",\"close\":\"Close\",\"noiframes\":\"This feature requires inline frames. You have iframes disabled or your browser does not support them.\",\"loadingAnimation\":\"http://quantivity.wordpress.com/wp-includes/js/thickbox/loadingAnimation.gif\",\"closeImage\":\"http://quantivity.wordpress.com/wp-includes/js/thickbox/tb-close.png\"};\nvar thickboxL10n = {\"next\":\"Next >\",\"prev\":\"< Prev\",\"image\":\"Image\",\"of\":\"of\",\"close\":\"Close\",\"noiframes\":\"This feature requires inline frames. You have iframes disabled or your browser does not support them.\",\"loadingAnimation\":\"http://quantivity.wordpress.com/wp-includes/js/thickbox/loadingAnimation.gif\",\"closeImage\":\"http://quantivity.wordpress.com/wp-includes/js/thickbox/tb-close.png\"};\n/* ]]> */\n<\/script>\n<script type='text/javascript' src='http://s2.wp.com/_static/??/wp-content/js/devicepx.js,/wp-includes/js/thickbox/thickbox.js?m=1354656609j'><\/script>\n<script type=\"text/javascript\">\n// <![CDATA[\n(function() {\ntry{\n  if ( window.external &&'msIsSiteMode' in window.external) {\n    if (window.external.msIsSiteMode()) {\n      var jl = document.createElement('script');\n      jl.type='text/javascript';\n      jl.async=true;\n      jl.src='/wp-content/plugins/ie-sitemode/custom-jumplist.php';\n      var s = document.getElementsByTagName('script')[0];\n      s.parentNode.insertBefore(jl, s);\n    }\n  }\n}catch(e){}\n})();\n// ]]>\n<\/script><script src=\"http://s.stats.wordpress.com/w.js?21\" type=\"text/javascript\"><\/script>\n<script type=\"text/javascript\">\nst_go({'blog':'8547598','v':'wpcom','tz':'-8','user_id':'0','post':'10079','subd':'quantivity'});\nex_go({'crypt':'UE5XaGUuOTlwaD85flAmcm1mcmZsaDhkV11YdWFnNncxc1tjZG9XVXhRcEd8TyUlQnNoXUFmVXp4PX5QNWsudFkvJXUlX29uJUNHdTJ5c1U5LDYwcjNSbmssVDRKTFZpZHJTMl1TWmV1N2RpN3RyfD03MHpPT0RCLTNWcDFTXVZJaU0mNn5tX0x2PzR4MnRPMlRQRjBQK3NuJVhMX01SXSU/MWVnaCZdSUF+QzI1Y3BINWExMHErY0ptLUREP3VSMEpTXUtaY2pVfkxdSU1FNG54T3c0ZmpWaWZLflJvYkpPem5BeUFBSkRmZG5aLytnW353K285eF04bjdNNjV6MWwzMHlJZldxaVRad2VPNE8rQjhLLm9WdDdxSEcxK0dEek5HRG1rVG4sfEgmLDdGQyZrV009SFguW09YTl0vW003NVNtUHJzJmVm'});\naddLoadEvent(function(){linktracker_init('8547598',10079);});\n\t<\/script>\n<noscript><img src=\"http://stats.wordpress.com/b.gif?v=noscript\" style=\"height:0px;width:0px;overflow:hidden\" alt=\"\" /><\/noscript>\n<\/body>\n<\/html>"]
