Monthly Archives: June 2012

NBA Playoff Predictions Update 4 (5-3)

June 7, 2012
By
NBA Playoff Predictions Update 4 (5-3)

This is update 4 to my original post about predicting the NBA playoffs with R. With the Thunder beating the Spurs and the Heat losing to the Celtics, the algorithm went 1-1 on predictions, making it 5-3 so far.Making some improvements I have been posting for some time about incorporating more data into the models, and I finally...

Read more »

Mapping the World’s Biggest Airlines

June 7, 2012
By
Mapping the World’s Biggest Airlines

The map above shows the routes flown by the top 7 airli

Read more »

Simulation in the profiling model

June 7, 2012
By
Simulation in the profiling model

In this post I try to make a small simulation of the sensory (flavour) profiling data, and examine if the parameters of simulated data can be retrieved by the Bayesian model build in the previous posts.The conclusion is that it is difficult, the amount...

Read more »

You should not use split in production code

June 7, 2012
By

Recently I have stumbled on a problem with split function applied on list of factors. The issue is that it might produce wrong splits when splitting factors contain dots.Here is the example of the problem. Invoking the following code:df <-...

Read more »

R functions to filter rjags results

June 7, 2012
By
R functions to filter rjags results

A while back I was running a bunch of JAGS models through R, using the rjags (written by Martyn Plummer) and R2jags (by Yu-Sung Su) packages. These packages provide a great interface to the JAGS software, which allows analysis of … Continue reading →

Read more »

PLoS topic page on ABC

June 6, 2012
By
PLoS topic page on ABC

A few more comments on the specific entry on ABC written by Mikael Sunnåker et al…. The entry starts with the representation of the posterior probability of an hypothesis, rather than with the posterior density of a model parameter, which seems to lead the novice reader astray. After all, (a) ABC was not introduced for

Read more »

Load Packages Automatically in RStudio

June 6, 2012
By
Load Packages Automatically in RStudio

I recently finished a long stretch of work on a particular project that required me to draw upon four R packages.  Each time I got back to my work on the project, I’d have to load the packages manually, as … Continue reading →

Read more »

Poverty Incidence in the Philippines

June 6, 2012
By
Poverty Incidence in the Philippines

Every three (3) years, the National Statistical Coordination Board (NSCB) publish data on provincial poverty incidence in the Philippines. Using R, I put the tabulated poverty incidence data into maps to check pattern and changes on the country's pr...

Read more »

Improving Monitor statistics with the "UECLs"

June 6, 2012
By
Improving Monitor statistics with the "UECLs"

New Monitor Video:Improving Monitor statistics with the "UECLs"

Read more »

Simulating the Birthday Problem with data derived probabilities

June 6, 2012
By
Simulating the Birthday Problem with data derived probabilities

You've probably heard of the Birthday Paradox: it only takes a small gathering of people before it's quite likely that two of them share the same birthday. You can solve the problem analytically or with simulation, but usually in either case simplifying assumptions are made (no-one born on February 29, for example). Joe Rickert uses Revolution R Enterprise 6...

Read more »