2008-04-28

etherial: St. Basil's Cathedral, Moscow (St. Basil's)
2008-04-28 10:52 pm

Math Geekery

[livejournal.com profile] neuromancerzss asked me a quick math question and it got [livejournal.com profile] 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.