Django and R on Heroku

I’ve been playing with Django for a while now and I’m loving it. Don’t get me wrong, I still love Shiny, but Django is pretty tough to beat for data-heavy projects and managing user sessions. For deployment, I’ve been using Heroku and am very happy so far. Application updates are as simple as a Git push from the command line and it’s hard to get much easier than that.

Continue reading

Pardon the Interruption

So, I’m nearing completion of another fairly substantial overhaul of the site. For those keeping score, this will mark the third major iteration of PirateGrunt.com. Version one was WordPress, version two was Jekyll/GitHub. This one doesn’t look quite as sweeping as the others, but involved a fair bit of learning for me. The switch from WordPress to GitHub was done by cobbling together bits and pieces of code and instructions from various blogs, with an obvious assist from GitHub itself.

Continue reading

In search of an incredible posterior

What is credibility? For over one hundred years 1 actuaries have been wresting with the idea of “credibility”. This is the process whereby one may make a quantitative assessment of the predictive power of sample data. Where necessary, the researcher augments the sample with some exogeneous information - usually more data - to arrive at a final conclusion. In its simplest form, the first moment of the quantity being studied (pure premium, for example) is calculated as the weighted average of two numbers: the sample mean and the alternate estimate.

Continue reading

represtools is on CRAN

I’m happy to say that the represtools package is now on CRAN. I’m so giddy that I’m writing this post not that long after it was accepted. This means that binaries haven’t been built yet and it may not have been propagated to all of the various mirrors. Mostly I’m just happy that it made it through without any notes or angry e-mails from professors in Oxford. So what does it do?

Continue reading

The Discrete Charm of the Fourier Transform

The other day, I picked up the latest copy of the CAS’ journal, Variance and skipped to the back where Leigh Halliwell had an article. I hope that I’m well on record as being one of his biggest fans, but if not, let me remedy that now. Leigh Halliwell has done really tremendous stuff. He’s mathematically sophisticated, but addresses practical problems. I often struggle to keep up with his flurry of ideas and deft handling of the math, but once I (possibly) sort it out, it becomes embedded in my thinking.

Continue reading