You are viewing a single comment's thread. Return to all comments →
p, q, n = 1/3, 2/3, 5 print(f'{sum(map(lambda x:q**(x-1)*p, range(1,n+1))):.3f}')
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 →