Pythonで学ぶ推測の基礎
Paul Savala
Assistant Professor of Mathematics
2変数間の統計的な関係



r, p_value = stats.pearsonr(chicago_rents, usa_rents)print(r)
0.939
print(p_value < 0.05)
TRUE
結論: 米国とシカゴの家賃には相関がある
$R^2:$ 説明された変動の割合
print(r**2)
0.883



Pythonで学ぶ推測の基礎