|
-
Nov 27th, 2003, 06:08 PM
#4
transcendental analytic
Originally posted by Acidic
I'm not sure about this but:
(N nCr X) * (P^X) * ((1-P)^(N-X))
can be used to find this where
N is the total number of throws, X the number we want and P the probability of it happening each time.
so if N=4, X=1 and P=1/3
then
answer = 0.3951
hmm.. lower than I expected. someone tell me if I'm right.
the binominal distribution can be used but you have to sum the probabilities for where X is 1,2,3 and 4 (but its easier to do it the other way but it only works in that special case)
Use  
writing software in C++ is like driving rivets into steel beam with a toothpick.
writing haskell makes your life easier:
reverse (p (6*9)) where p x|x==0=""|True=chr (48+z): p y where (y,z)=divMod x 13
To throw away OOP for low level languages is myopia, to keep OOP is hyperopia. To throw away OOP for a high level language is insight.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|