Basis van inferentie in Python
Paul Savala
Assistant Professor of Mathematics


$n_1 = \text{Steekproefgrootte van groep 1}$
$n_2 = \text{Steekproefgrootte van groep 2}$
$s_1 = \text{Standaarddeviatie van groep 1}$
$s_2 = \text{Standaarddeviatie van groep 2}$
$\overline{x}_1 = \text{Gemiddelde van groep 1}$
$\overline{x}_2 = \text{Gemiddelde van groep 2}$
$s = \displaystyle\sqrt{\frac{(n_1-1)s_1^2 + (n_2-1)s_2^2}{n_1 + n_2 - 2}}$
Cohens $d = \displaystyle\frac{\overline{x}_1 - \overline{x}_2}{s}$
Cohens $d = 0.6$
Middelgroot tot groot effect
r, p_value = stats.pearsonr( btc_sp_df['Close_BTC'], btc_sp_df['Close_SP500'] )print(r**2)
0.82
$R^2:$ Percentage variantie in de ene variabele verklaard door de andere te kennen

Cramers $V = \displaystyle\sqrt{\frac{\chi^2/n}{d}}$
chi2, p, d, e = stats.chi2_contingency( contingency_table)dof = min(6-1, 2-1) = 1 n = 3394v = np.sqrt((chi2 / n) / dof)
v = 0.52

Cramer's V = 0.52, Degrees of Freedom = 1

Basis van inferentie in Python