You are viewing a single comment's thread. Return to all comments →
import math p = 1/3 q = 1-p n = 5 def geometricDistribution(successProb, failureProb, position): result = (failureProb)**(position-1) * successProb print(round(result, 3) ) geometricDistribution(p, q, n)
Seems like cookies are disabled on this browser, please enable them to open this website
Day 4: Geometric Distribution I
You are viewing a single comment's thread. Return to all comments →