View Full Version : Need help evaluating this sum for expected-value prob. calc.

05-31-2008, 12:25 PM
This sum is for an 'Expected Value' probability calculation...


I tried writing a C++ program to help evaluate it, but because the factorials & exponents get so large the standard libraries cannot handle it nor any calculator I have. So I was hoping to get some advice on here. What would you recommend doing in order to solve this problem?

(I am in the process of getting MATLAB, never used it, and if there is no simpler solution I was planning on learning to use it to perhaps help solve it.)


05-31-2008, 01:00 PM
I ran this through Maple and it gave me the answer, albeit huge. It has 1814 digits. 3.77\times{10^{1817}}

05-31-2008, 02:13 PM
Thanks, I believe there were one too many (1/365) terms on each sum, I ended up breaking it into bite-size chunks that a compiler could deal with and got a result. Thanks a lot though for letting me know the original obviously had a problem.

06-01-2008, 06:49 PM
Heres a way I use to calculate some counting problems:

Ln(\frac{n!}{k!}) = \sum _{i=k+1}^nLn(i)

Then apply e to both sides. It may not always be useable though, but it can help.