Author Archives: bpkent

Installing Rpy2 in Linux Mint

While installing Rpy2 on Linux Mint 17, I ran into the same problem described here. This was apparently a StackOverflow question at some point, but it was removed for some reason. Here’s my solution. R version: 3.0.2 Python version: 2.7.6 … Continue reading

Posted in Uncategorized | Leave a comment

Implementing the Chaudhuri-Dasgupta density cluster tree

A few months ago Siva Balakrishnan wrote a nice post on Larry Wasserman’s blog about the Chaudhuri-Dasgupta algorithm for estimating a density cluster tree. The method, which is described in a NIPS 2010 paper “Rates of convergence for the cluster … Continue reading

Posted in python, research | 2 Comments

Getting started with statistical computing in Python

The world hardly needs yet another tutorial on statistical computing with Python, but I made one for a live demo and I might as well post it. Also, the IPython Notebook makes me happy. http://nbviewer.ipython.org/urls/raw.github.com/papayawarrior/public_talks/master/statBytes-python.ipynb In a very loose sense, … Continue reading

Posted in python | Leave a comment

tapply in Python

tapply is a super convenient function in R for computing statistics on a “ragged array”. It lets you separate a dataset into groups based on a categorial variable, then compute any function you want on each group. Suppose we have … Continue reading

Posted in python | Leave a comment

Stat programming workshop – tutorial for a very simple R choropleth map

Eye candy is the best way to get your poster noticed at a conference and choropleth maps are some of the tastiest morsels. Here’s a quick tutorial on how to make one in R. It’s not a beginner topic, so … Continue reading

Posted in teaching | 3 Comments

Stat programming workshop – week 6 tasks

April 2013 update: this post is part 6 of 6 that were designed to help beginning R programmers get up and running with some simple data analyses. They were originally private for a specific course in Summer 2012, but they’re … Continue reading

Posted in teaching | Leave a comment

Stat programming workshop – week 5 tasks

April 2013 update: this post is part 5 of 6 that were designed to help beginning R programmers get up and running with some simple data analyses. They were originally private for a specific course in Summer 2012, but they’re … Continue reading

Posted in teaching | Leave a comment