Category Archives: Quant finance

Variability of garch predictions

How variable are garch predictions? Previously There have been several posts on garch, in particular: A practical introduction to garch modeling The components garch model in the rugarch package Both of these posts speak about the two common prediction targets: prediction (of volatility) at the individual times (usually days) term structure prediction — the average … Continue reading

Posted in Quant finance, R language | Tagged , , | Leave a comment

Predicted correlations and portfolio optimization

What effect do predicted correlations have when optimizing trades? Background A concern about optimization that is not one of “The top 7 portfolio optimization problems” is that correlations spike during a crisis which is when you most want optimization to work. This post looks at a small piece of that question.  It wonders if increasing predicted … Continue reading

Posted in Quant finance, R language | Tagged , , , | Leave a comment

Portfolio tests of predicted returns

Exploring the quality of predictions using random portfolios and optimization. Previously “Simple tests of predicted returns” showed a few ways to look at expected returns at the asset level.  Here we move to the portfolio level. The previous post focused on correlation.  Win Vector Blog points out that gauging prediction quality using correlation can be … Continue reading

Posted in Quant finance, R language, Random portfolios | Tagged , , | 2 Comments

Simple tests of predicted returns

Some ways to explore how good a method of predicting returns is. Data and model The universe is 443 large cap US stocks that have data back to the beginning of 2004.  The daily (adjusted) close was used. The model that is used as an example is the default signal from the MACD function of … Continue reading

Posted in Quant finance, R language | Tagged , , | 4 Comments

Variability of predicted portfolio volatility

A prediction of a portfolio’s volatility is an estimate — how variable is that estimate? Data The universe is 453 large cap US stocks. The variance matrices are estimated with the daily returns in 2012. Variance estimation was done with Ledoit-Wolf shrinkage (shrinking towards equal correlation). Two sets of random portfolios were created.  In both … Continue reading

Posted in Quant finance, R language | Tagged , , | 3 Comments

The components garch model in the rugarch package

How to fit and use the components model. Previously Related posts are: A practical introduction to garch modeling Variability of garch estimates garch estimation on impossibly long series Variance targeting in garch estimation The model The components model (created by Engle and Lee) generally works better than the more common garch(1,1) model.  Some hints about … Continue reading

Posted in Quant finance, R language | Tagged | 9 Comments

Clustering and sector strength

An exploration of the usefulness of sectors. Previously This subject was discussed in “S&P 500 sector strengths”. Idea Stocks are put into groups based on the sector that the company is considered to be in.  Cluster analysis is a statistical technique that finds groups.  If sectors really move together, then clustering should recover sectors.  Will … Continue reading

Posted in Quant finance, R language | Tagged , | 4 Comments

Market predictions for year 2013

Calibrations of 2013 predictions for 18 equity indices — plus some publicly available predictions. Orientation The distributions are an attempt to see the variability if there were no market-driving news for the whole year. Another way of thinking: mentally moving the distribution to center on a prediction gives a sense of the variability of results … Continue reading

Posted in Quant finance, R language | Tagged , | 1 Comment

Miles of iles

An explanation of quartiles, quintiles deciles, and boxplots. Previously “Again with variability of long-short decile tests” and its predecessor discusses using deciles but doesn’t say what they are. The *iles These are concepts that have to do with approximately equally sized groups created from sorted data. There are 4 groups with quartiles, 5 with quintiles … Continue reading

Posted in Quant finance, R language | Tagged , , , , , | 12 Comments

garch and the Algorithmic Trading Conference

The Imperial College Algorithmic Trading Conference was Saturday. Talks Massoud Mussavian Massoud gave a great talk on “Algo Evolution”.  It started with a historical review of how trading used to be done “by hand”.  It culminated in a phylogenetic tree of trading algorithms.  There was an herbivore branch and a carnivore branch. Robert Macrae Robert … Continue reading

Posted in Quant finance, R language | Tagged , , | 6 Comments