# Monthly Archives: December 2011

## Legislative Activity in the Danish Parliament

December 22, 2011
By

As mentioned in this post, I have been using the powerful combination of the Beautiful Soup and Mechanize modules in Python to build a web scrapers. The amount of data on the web is amazing, and I believe that any quantitatively oriented social scienti...

## Quel lancer de dé faire à Serpents et Échelles ?

December 21, 2011
By

Hier soir, j’évoquais l’utilisation des chaînes de Markov au jeu Serpents et Échelles. Comme me le faisait remarquer Jean-Philippe, de manière assez étrange, les enfants sont toujours beaucoup plus content après avoir fait un 6 qu’après avoir fait un 1. Mais est-ce réellement la valeur optimale que le dé doit prendre ? Ça dépend bien sûr de la position....

## Lehmann Primiality Test in R

December 21, 2011
By

After a small frustration with the limitations of R 16-bit intergers. I think i have worked out a solution. The issue was i was implementing a bone-headed solution to the modulo/exponent step. So to recap. The Lehmann primality test is a probabilistic ...

December 21, 2011
By

I wrote a little function to make a personalized map of who follows you or who you follow on Twitter. The idea for this function was inspired by some plots I discussed in a previous post. I also found a lot of really useful code over at flowing data he...

## A Tool Chain for Plotting Twitter Archive Retweet Graphs – Py, R, Gephi

December 21, 2011
By

Another set of stepping stones that provide a clunky route to a solution that @mhawksey has been working on a far more elegant expression of (eg Free the tweets! Export TwapperKeeper archives using Google Spreadsheet and Twitter: How to archive event hashtags and create an interactive visualization of the conversation)… The recipe is as follows:

## Portfolio Optimization in R, Part 3

December 21, 2011
By

In the last post, we discussed the issue of finding the market portfolio by fitting a curve to the found efficient frontier.  Because of kinks in the frontier, we could not guarantee that the fitted curve would be concave in the area of the market...

## Record Long Term Treasury Returns

December 21, 2011
By

I mistakenly assume everyone knows that US Treasury Returns have been extreme in 2011.  As we near the end of the year, I thought it would be beneficial to look at the world’s best performer while incorporating some new graphical techniques.&nbs...

## Visualizing categorical data in R

December 21, 2011
By

I came across an interesting SAS macro that was used for visualizing log odds relationships of data.  This type of chart is helpful for visualizing the relationship between a binary dependent variable and a continuous independent variable.  I...

## The ‘R’ in Human [R]esources (or: a very brief introduction to the statistical package ‘R’ for HR)

December 21, 2011
By

I studied psychology in Marburg (Germany). At university we exclusively used SPSS. The courses were among my classmates usually not the most popular. After over 10 years in management consulting, I have noticed that little has changed to this. It’s a shame because a lot of interesting data in consulting firms and HR departments remain unused. In my role as managing director of kibit GmbH, I have placed the focus of the company on ”R” … Weiterlesen →

## Maps with R, and polygon boundaries

December 21, 2011
By

With R, it is extremely easy to draw maps. Let us start with something simple, like French regions. Baptiste mentioned on his blog that shapefiles can be downloaded from http://ign.fr/ website. Hence, if you extract the zip file, it is possible to ...