Blog Archives

Quantify your jogging

April 28, 2013
By
Quantify your jogging

Numbers are useful (I think we can all agree on that..). If you own a smart phone, you can install this runmeter app. When you run, you can take the smartphone with you and activate this app to collect interesting … Continue reading

Read more »

R and Dropbox

April 15, 2013
By

When you woRk, you probably have a set of useful functions/packages you constantly use. For example, I often use the excellent quantmod package, and the nice multi.sapply function. You want your tools loaded when R session fires. In order to … Continue reading

Read more »

Moving Average Representation of VAR

March 10, 2013
By
Moving Average Representation of VAR

A vector autoregression (VAR) process can be represented in a couple of ways. The usual form is as follows:     The above (AR process) is what we often see and use in practice. However, I recently see more and … Continue reading

Read more »

Quantile Autoregression in R

February 9, 2013
By
Quantile Autoregression in R

In the past, I wrote about robust regression. This is an important tool which handles outliers in the data. Roger Koenker is a substantial contributor in this area. His website is full of useful information and code so visit when … Continue reading

Read more »

On p-value

February 2, 2013
By
On p-value

Albert Schweitzer said: “Example is not the main thing in influencing others. It is the only thing.”, so I start with it. Generate two random samples from Normal distribution. Test the hypothesis number one: , do not reject, then test … Continue reading

Read more »

Live Correlation plot, shiny improvement.

December 16, 2012
By

Open CPU is a great project. Few months back, I wrote a function for plotting a moving window of the market average correlation. Jeroen C.L. Ooms was nice enough to upload it to their server. Something is now changed. Quotes … Continue reading

Read more »

A Simple Model for Realized Volatility

December 9, 2012
By
A Simple Model for Realized Volatility

The post has two goals: (1) Explain how to forecast volatility using a simple Heterogeneous Auto-Regressive (HAR) model. (Corsi, 2002) (2) Check if higher moments like Skewness and Kurtosis add forecast value to this model. It will be a high … Continue reading

Read more »

On Volatility Proxy

October 23, 2012
By
On Volatility Proxy

Volatility is unobserved. Hence we need to use observed quantity as a proxy. Every once in a while I still see people using squared daily return as a proxy. However, there is ample evidence that it is a bad one. … Continue reading

Read more »

Forecasting the Misery Index, follow-up

October 7, 2012
By
Forecasting the Misery Index, follow-up

Five months ago I generated forecasts for the Eurozone Misery index. I used the built-in “FitAR” package in R. Using different models differing in their memory length (how many lags were considered for each model) 24 months ahead forecasts were … Continue reading

Read more »

Volatility forecast evaluation in R

September 24, 2012
By
Volatility forecast evaluation in R

In portfolio management, risk management and derivative pricing, volatility plays an important role. So important in fact that you can find more volatility models than you can handle (Wikipedia link). What follows is to check how well each model performs, … Continue reading

Read more »