Monthly Archives: August 2012

The Kaggle Bug

August 22, 2012
By
The Kaggle Bug

If you have any interest in data mining and machine learning, you might have already caught the Kaggle bug.I myself fairly recently got caught up in following the various contests and forums after reading a copy of "Practical Time Series Forecasting," ...

Read more »

Web-Scraper for Google Scholar Updated!

August 22, 2012
By
Web-Scraper for Google Scholar Updated!

I have updated the Google Scholar Web-Scraper Function GScholarScaper_2 to GScholarScraper_3 (and GScholarScaper_3.1) as it was deprecated due to changes in the Google Scholar html-code. The new script is more slender and faster. It returns a dataframe...

Read more »

2014 Winter Olympics: Home Court Advantage – Russia

August 22, 2012
By
2014 Winter Olympics: Home Court Advantage – Russia

winter olympics home country advantage

"Russia is a riddle wrapped in a mystery inside an enigma."
 -- Winston Churchill, radio address in 1939

A couple of weeks ago, Graph of the Week published an article describing the significant improvement in medals won by the host...

Read more »

London 2012 Olympics — world record in women 400-metre medley

August 22, 2012
By
London 2012 Olympics — world record in women 400-metre medley

I’ve been going through the medal statistics in London 2012 Olympics recently. I was planning to present some extra charts, such as medal-per-milli-population or medal-vs-GDP. However, it’s a little boring to present the same kind of charts. Thus, I’d like to look into some particular … Continue reading

Read more »

Did the Kigadi Ebola outbreak threaten to become an (inter)national epidemic?

August 22, 2012
By
Did the Kigadi Ebola outbreak threaten to become an (inter)national epidemic?

We want to evaluate the seriousness of the threat posed by the recent ebola outbreak in western Uganda. The outbreak appeared in Kigadi, a small village in the Kibaale district. The disease was first confirmed by the government on 28 … Continue reading

Read more »

What you get and what you should be getting: checking numerical code

August 22, 2012
By
What you get and what you should be getting: checking numerical code

Whenever I write numerical code I spend half my time debugging my algebra, painstakingly uncovering one sign mistake after another in my calculations. Usually I have computed by hand the gradient or the integral of some nasty function, and I have to check it against a

Read more »

ggplot2 maps with insets

August 22, 2012
By
ggplot2 maps with insets

Here's a quick demo of creating a map with an inset within it using ggplot. The inset is achieved using the gridExtra package. Install libraries, set directory, read file setwd("/Users/ScottMac/Dropbox/CANPOLIN_networks_ms/data") # change ...

Read more »

DataGotham

August 21, 2012
By

As some of you may know already, I’m co-organizing an upcoming conference called DataGotham that’s taking place in September. To help spread the word about DataGotham, I’m cross-posting the most recent announcement below: We’d like to let you know about DataGotham: a celebration of New York City’s data community! http://datagotham.com This is an event run

Read more »

ARMA Models for Trading

August 21, 2012
By
ARMA Models for Trading

In this tutorial I am going to share my R&D and trading experience using the well-known from statistics Autoregressive Moving Average Model (ARMA). There is a lot written about these models, however, I strongly recommend Introductory Time Series with R, which I find is a perfect combination between light theoretical background and practical implementations in

Read more »

Creating beautiful reports from R with knitr

August 21, 2012
By
Creating beautiful reports from R with knitr

People use the R language every day to create the elements of reports: tables, charts, analyses, and forecasts. But assembling all of that information into a print-ready document laid out with text can a hassle. You can cut-and-paste all of the elements into Word, but then what do you do when the data file gets updated at the last...

Read more »