Monthly Archives: December 2011

Legislative Activity in the Danish Parliament

December 22, 2011
By
Legislative Activity in the Danish Parliament

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...

Read more »

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

December 21, 2011
By
Quel lancer de dé faire à Serpents et Échelles ?

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....

Read more »

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 ...

Read more »

An R function to map your Twitter Followers

December 21, 2011
By
An R function to map your Twitter Followers

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...

Read more »

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

December 21, 2011
By
A Tool Chain for Plotting Twitter Archive Retweet Graphs – Py, R, Gephi

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:

Read more »

Portfolio Optimization in R, Part 3

December 21, 2011
By
Portfolio Optimization in R, Part 3

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...

Read more »

Record Long Term Treasury Returns

December 21, 2011
By
Record Long Term Treasury Returns

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...

Read more »

Visualizing categorical data in R

December 21, 2011
By
Visualizing categorical data in R

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...

Read more »

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

December 21, 2011
By
The ‘R’ in Human [R]esources (or: a very brief introduction to the statistical package ‘R’ for HR)

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 →

Read more »

Maps with R, and polygon boundaries

December 21, 2011
By
Maps with R, and polygon boundaries

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 ...

Read more »