Math Geekery
Apr. 28th, 2008 10:52 pm![[livejournal.com profile]](https://www.dreamwidth.org/img/external/lj-userinfo.gif) neuromancerzss asked me a quick math question and it got
neuromancerzss asked me a quick math question and it got ![[livejournal.com profile]](https://www.dreamwidth.org/img/external/lj-userinfo.gif) rosinavs and I geeking about probability. His question was basically, "If I have N coins, each with a different probability PN of coming up heads, what is the probability that Y or more will come up heads?". This problem is trivial if they all have the same PN, and moderately simple if N or Y is small (we're talking Y<=2 here, kids). But I thought "This should be no problem in matlab!"
rosinavs and I geeking about probability. His question was basically, "If I have N coins, each with a different probability PN of coming up heads, what is the probability that Y or more will come up heads?". This problem is trivial if they all have the same PN, and moderately simple if N or Y is small (we're talking Y<=2 here, kids). But I thought "This should be no problem in matlab!"( And I was right. )
And man, did I forget how much I loved matlab. Tonight, I'm going to sit in bed and diagram out the first computer program I've written for myself in a long, long time - the Camelot Chores Generator.
![[personal profile]](https://www.dreamwidth.org/img/silk/identity/user.png)
