Posts tagged ‘statistics’

Baseball as an excuse for programming

I find it really hard to watch baseball nowadays because the game moves so slowly, but I do still like to look at statistics and standings. The standings in Yahoo! Sports include a figure that was uncommon when I was a kid: the teams’ run differential, the difference their runs scored and runs given up.…


SciPy v. Octave - Round one

On Friday, while working out a sampling plan for a client, I needed to calculate the 95% one-sided lower confidence limits for binomial sampling with a small number of samples.1 I figured it’d be a good little project for comparing Octave, which I’ve been using for years, and SciPy, which I’ve been promising myself I’d…


The risk of sitting

Last week, everyone was blogging and tweeting about this New York Times article about the health effects of sitting for long periods every day. And I think everyone got it wrong. Let’s start with a disclaimer. Although I have both formal training and professional experience dealing with probability and statistics (it was part of my…


How many samples?

In my Monte Carlo solution of the Two Child Problem, I did 10,000 simulations using Python’s random module. Was that enough? If I didn’t already know the answers (the usual case when doing Monte Carlo simulation), how could I estimate the accuracy of the results? Not surprisingly, the answers to these results can be found…