Publications by DomPazz

Performance with foreach, doSNOW, and snowfall

13.06.2012

Is it just me, or does the performance of the foreach package with a doSNOW backend operating on a socket grid suck?Here at work, I am helping to setup a cluster of Windows machines for distributed R processing.  We have lots of researchers running code that takes hours to complete and are essentially large for loops with lots of ana...

2897 sym

Comparing performance in R, foreach/doSNOW, SAS, and NumPY (MKL)

17.06.2012

This is a follow up to my previous post.  There is a quicker way to compute the function I created (basic cumulative sum) in R.Instead of:function f(x) {   sum = 0;   for (i in seq(1,x)) sum = sum + i   return(sum)}Use this:f2 = function(x){   return(sum(seq(x)))}If I time it, we see:system.time( (out = apply(as.array(seq(10...

2053 sym

Minimum Expected Shortfall Portfolio, Part 1

08.08.2012

A few days ago, I wrote a piece on finding the minimum expected shortfall portfolio.  A few astute commenters quickly picked up where I was going with this — using this as an alternative to low/minimum volatility portfolios.  What follows are the results of a small study I put together.  This post will deal with the portfolio selection and ...

10594 sym

Minimum Expected Shortfall, Part 2

14.08.2012

Previously, we setup the problem of constructing a minimum expected shortfall portfolio.   We exported the portfolio weights from each quarterly rebalancing into R objects. This post will process those weights and compare the portfolio statistics to a cap-weight portfolio, a minimum variance portfolio, an equal weight portfolio, the DIA ETF, a...

3214 sym 2 img 3 tbl

Merging Data — SAS, R, and Python

24.06.2013

On analyticbridge, the question was posed about moving an inner join from Excel (which was taking many minutes via VLOOKUP()) to some other package.  The question asked what types of performance can be expected in other systems.  Of the list given, I have varying degrees of experience in SAS, R, and Python.In the question, the user ...

4293 sym 2 img

The Overlap Coefficient

14.06.2015

I’m currently working with a client who is researching best covariance matrices for financial time series.  Specifically, they are looking at what best describes 1 month out of sample distributions.  They are not concerned with the means, just the variance.A paper on the subject from the Journal of Portfolio Management — “A Te...

5069 sym 10 img