Skip to content

Instantly share code, notes, and snippets.

@smzn

smzn/geometric.html

Last active Oct 4, 2020
Embed
What would you like to do?
幾何分布の適合度検定
def getCSV(file):
return pd.read_csv(file, engine='python')
use_day = getCSV('use_day.csv')
use_day
plt.bar(range(30), use_day['frequency'])
#幾何分布で作成した度数
plt.bar(range(30), use_day['geometric'])
#利用日数が幾何分布になるか検定 -> p < 0.05なので 「同一の分布とは言えない」
chisquare(use_day['frequency'], use_day['geometric'])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.