You are viewing a single comment's thread. Return to all comments →
p = (1/3) k = 5 def geo_dist(p,k): res = ((1-p)**(k-1)) * p return res p_list =[] for i in range(1,k+1): result = geo_dist(p,i) p_list.append(result) print(round(sum(p_list),3))
Seems like cookies are disabled on this browser, please enable them to open this website
Day 4: Geometric Distribution II
You are viewing a single comment's thread. Return to all comments →