Distributional analysis script, initial commit