ContentsFoundations to FrontierBezhig

graduate_code/starters/evidence.py

All lab code. Download this file.

# Exercise scaffold. Reference implementation is in a separate directory.
"""G04: explicit statistical procedures; validity still needs a sampling model."""
import math
import random

def wilson(successes, trials, z=1.96):
    raise NotImplementedError('Implement this contract from the book.')

def entropy(probabilities):
    raise NotImplementedError('Implement this contract from the book.')

def quantile(values, probability):
    raise NotImplementedError('Implement this contract from the book.')

def paired_bootstrap(old, new, repeats=2000, seed=21, confidence=0.95):
    raise NotImplementedError('Implement this contract from the book.')