Probability Calculator: Probability off by 0.01

Hey, I’ve been working on the python probability calculator, and it feels like I’m pretty close to completing it, however I’ve been getting a result for the experiments that has a probability of 0.262 which is 0.01 less than the expected result of 0.272

I’m wondering if anyone has any suggestions or advice as far as figuring out this last discrepancy as I’ve become quite stumped.
Link to my replit:


There’s one detail causing this, take a closer look at how many draws from the hat are done during a single experiment.

Oh my god I feel like such a dolt, Thanks so much for the help!

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.