Skip to content

Instantly share code, notes, and snippets.

View gramnation's full-sized avatar

Graham Stewart gramnation

View GitHub Profile
@gramnation
gramnation / stews_stats_tools.py
Last active November 20, 2023 13:10
python helper functions for AP stats
# -*- coding: utf-8 -*-
"""
Functions to solve AP stats problems.
"""
import math # python built-in
from statistics import NormalDist # python built-in
import scipy.stats as stats # scipy provides T distribution
def binompdf(n, p, k):