![]() |
|
|
#1 |
|
Jul 2004
Potsdam, Germany
3·277 Posts |
Note: This question is unrelated to GIMPS and purely theoretical.
Assume a number "n" of instances of a certain process. The runtime is normal distributed with mean "m" and standard deviation "sd". What is the expected max(runtime) for "n" instances? Obviously, for n=1, max(runtime) = mean. My intuition says: for n=1, max(runtime) = mean + sd Maybe take this example: mean: 10 sec sd: 2 sec n: 2,5 and 10 I guess the formula should be something like max(runtime) = mean + sqrt(n-1) * sd Thanks in advance!
|
|
|
|
|
|
#2 |
|
May 2004
24·5 Posts |
I've had a crack at doing this symbolically (integrating x * pdf of max(X_1, X_2, ..., X_n)) but I don't seem to be getting anywhere.
Here's the numerical data for 1 <= n <= 20. Since { max of n normal(mu, sigma^2) } = mu + sigma * { max of n normal(0,1) }, we only need to work out the values for a standard normal(0,1) distribution. Code:
n : max 1 : 0 2 : 0.5641895835 3 : 0.8462843753 4 : 1.029375373 5 : 1.162964474 6 : 1.267206361 7 : 1.352178376 8 : 1.423600306 9 : 1.485013162 10: 1.538752731 11: 1.586436352 12: 1.62922764 13: 1.667990177 14: 1.703381554 15: 1.735913445 16: 1.765991393 17: 1.793941981 18: 1.820031879 19: 1.844481512 20: 1.86747506 Dave |
|
|
|
|
|
#3 |
|
May 2004
Oslo, Norway
23·3·5 Posts |
A normal distribution has neither maximum nor minimum, it's open at both ends. But IIRC, about 96% of the distribution will occur in the interval m pluss/minus 2 sd units.
/Leif |
|
|
|
|
|
#4 | |
|
May 2004
8010 Posts |
Quote:
Your point about the normal distribution bell curve being heavily weighted in the middle does show that the guess "E(max(runtime) = mean + sqrt(n-1) * sd" cannot be correct - take for instance n=5. Dave Last fiddled with by dave_dm on 2005-02-28 at 19:02 |
|
|
|
|
|
|
#5 |
|
Jul 2004
Potsdam, Germany
3×277 Posts |
Thanks for your help!
I've hoped that there is an easy formula. Oh well, maybe I figure it out when I put some more thoughts into it. Priority for a solution has dropped, though, because I just submitted the paper in which a solution would have been nice. It was no big deal to leave it out. When I do a follow-up paper, it could be relevant again. Let's see... |
|
|
|
|
|
#6 | |
|
Feb 2005
FC16 Posts |
Quote:
|
|
|
|
|
|
|
#7 |
|
Jul 2004
Potsdam, Germany
3·277 Posts |
Thanks a lot, this seems to be exactly what I'm looking for!
|
|
|
|
![]() |
| Thread Tools | |
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| runtime question | yoyo | YAFU | 1 | 2015-01-08 07:07 |
| Predicting QS and NFS runtime | jasonp | Factoring | 2 | 2011-03-07 01:22 |
| gmp-ecm needed memory and runtime | yoyo | GMP-ECM | 7 | 2010-04-09 16:48 |
| runtime error when using redc | ltd | GMP-ECM | 5 | 2009-10-30 13:09 |
| ECM Runtime and F20 | D. B. Staple | Factoring | 11 | 2007-12-12 16:52 |