0
Give a 95% confidence interval for the average rating for male reviewers, and do the same for female
##reviewers.
group2 = bigdataframe[['rating']].groupby(bigdataframe['gender'])
group2.count()
FN = 25740
MN = 74260
group2.mean()
F = 3.531507
M = 3.529289
group2.std()
FS = 1.170951
MS = 1.109556
F - 1.96(FS/(np.sqrt(NF)))
F + 1.96(FS/(np.sqrt(NF)))
M - 1.96(MS/(np.sqrt(NM)))
M + 1.96(MS/(np.sqrt(NM)))
My error: 'float' object is not callable
まず、groupbyを使用して各性別に基づいてレビューを数えました。それから平均/標準関数を使って数式に必要な数を得ることができました。どんな助けも非常に高く評価されるでしょう!男性/女性をデータフレーム列から分離して95%信頼区間を見つける方法は?
@jezrael – Yungpythonnoob