Bayesian statistics interprets probability as a degree of belief supported by available evidence. It encourages analysts to quantify hypotheses by estimating the expected size of a difference between groups. section 3.1.3
Quantifying a hypothesis involves:
- Estimating the magnitude of an expected group difference. section 3.1.3
- Using peer-reviewed research, organizational data, or stakeholder domain knowledge to ground the estimate. section 3.1.3
- Thinking probabilistically without treating the estimate as an invented certainty. section 3.1.3
import numpy as np #1 import matplotlib.pyplot as plt c = np.random.normal(0, 1, size=500) #2 t = np.random.normal(2, 1, size=500) plt.hist(c, alpha=0.5, bins=25, color="black") #3 plt.hist(t, alpha=0.5, bins=25, color="lightgray") plt.legend(["Control", "Treatment"])
Generate overlapping treatment and control distributions in Python, shifting treatment outcomes by two standard deviations to illustrate a large difference. section 3.1.3







