Re: Expected Value

2005-09-12 Thread Steven D'Aprano
On Sat, 10 Sep 2005 17:50:06 -0700, George wrote: > How would I get the expected value out of this information. I have > tried many times to understand this but am unable to. Do you have a specific Python problem here, or do you need help with the maths? If Python, please tell us wha

Expected Value

2005-09-10 Thread George
How would I get the expected value out of this information. I have tried many times to understand this but am unable to. The function expectP(z) computes E(X) for the random variable representing a sample over the probability generated by "pf" for the set of discrete items [1,10

Expected Value

2005-09-09 Thread George
e c is the constant mentioned above and r is needed because we are considering a power law distribution. I need help in writing the expectP function and do I compile and execute this code on a linux box. """ Module to compute expected value. >>> showExpectP(0.5) 33410 >>&