Skip to content

Instantly share code, notes, and snippets.

View pbstark's full-sized avatar

Philip B. Stark pbstark

View GitHub Profile
@pbstark
pbstark / aus_16_audit.py
Created September 17, 2016 21:36
calculations for hypothetical scenarios in auditing the 2106 Australian senatorial election, Tasmanian portion
# Calculate various hypotheticals for the 2016 Australian Senatorial election, for Tasmanian results.
# P.B. Stark, 17 September 2016
from __future__ import division, print_function
import math
import numpy as np
import scipy as sp
from scipy import stats # distributions
from scipy import special # special functions
from scipy import random # random variables, distributions, etc.
@pbstark
pbstark / testPerm.ipynb
Created June 2, 2014 00:57
test of stratified permutation test using the sample mean
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.