Aug 13, 2016
Analysis of variance with different sized samples in Python
Working with Nikoleta we recently needed to carry out an Analysis of Variance (ANOVA) on a data set where the sample size of each category is not constant. This blog post shows very briefly how to carry this out in Python (when using Pandas)....
May 8, 2016
A suggested directory structure for Academia
I would say that I’ve been learning how to use a computer properly for about 5 years or so now. Once I started to understand things a bit more I realised I wanted a good directory structure for keeping this neat and organised. I searched for one but did not find any (which I found surprising!). So here is a very brief description of how I organise my directories....
Apr 17, 2016
The Axelrod project is over a year old
Over the past month or so, various cool things have happened with the Axelrod project. As well as a variety of cool and clever internal improvements you can now use it to run Probabilistic ending tournaments and also Moran Processes. There is also now a preprint on the arXiv presenting the library as a research tool. This felt like it all came together as a bit of a milestone so I’m writing this blog post to briefly discuss those 3 things and also reflect on the development of library itself....
Mar 31, 2016
Page ranking my twitter network using Python
I follow too many people on twitter. It makes my stream a bit of a mismatch of things and I often end up missing tweets from accounts I’m really interested in. I’m not too sure how to solve this problem but I am sure that it must start with my understanding my network. In this post I’ll show a simple python script that grabs my twitter network (disclaimer it takes time) and then some simple graph theoretic analysis of my network....
Mar 7, 2016
Property based testing, hypothesis and finding a bug
I really have fallen in love with test driven development and as much as is reasonable stick to it. This mainly revolves around writing Python unit tests, which makes programming a lot easier (for me). In Namibia I was lucky enough to meet and chat with David MacRiver, the main developer of the hypothesis package. Before that the Axelrod project had already incorporated some of what hypothesis is for: property based testing. This blog post will briefly describe what that is, how it took some hours of sleep away from me (in a good way) and why it’s particularly great for research software....