mersenneforum.org  

Go Back   mersenneforum.org > Great Internet Mersenne Prime Search > Math

Reply
 
Thread Tools
Old 2005-02-28, 02:21   #1
Mystwalker
 
Mystwalker's Avatar
 
Jul 2004
Potsdam, Germany

3·277 Posts
Question Statistics problem: max. runtime of n instances?

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!
Mystwalker is offline   Reply With Quote
Old 2005-02-28, 10:37   #2
dave_dm
 
May 2004

24·5 Posts
Default

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
It would be nicer to see a symbolic expression though!

Dave
dave_dm is offline   Reply With Quote
Old 2005-02-28, 11:00   #3
leifbk
 
leifbk's Avatar
 
May 2004
Oslo, Norway

23·3·5 Posts
Default

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
leifbk is offline   Reply With Quote
Old 2005-02-28, 19:02   #4
dave_dm
 
May 2004

8010 Posts
Default

Quote:
Originally Posted by leifbk
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
If X_1, ..., X_n are independent, normally-distributed random variables then Y = max(X_1, ..., X_n) is perfectly well-defined. Mystwalker's problem is to find the expectation of Y.

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
dave_dm is offline   Reply With Quote
Old 2005-03-01, 04:59   #5
Mystwalker
 
Mystwalker's Avatar
 
Jul 2004
Potsdam, Germany

3×277 Posts
Default

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...
Mystwalker is offline   Reply With Quote
Old 2005-03-01, 21:33   #6
maxal
 
maxal's Avatar
 
Feb 2005

FC16 Posts
Default

Quote:
Originally Posted by dave_dm
If X_1, ..., X_n are independent, normally-distributed random variables then Y = max(X_1, ..., X_n) is perfectly well-defined. Mystwalker's problem is to find the expectation of Y.
This is a well-studied problem. You can find the answer and some references at http://mathworld.wolfram.com/Extreme...tribution.html
maxal is offline   Reply With Quote
Old 2005-03-01, 23:10   #7
Mystwalker
 
Mystwalker's Avatar
 
Jul 2004
Potsdam, Germany

3·277 Posts
Default

Thanks a lot, this seems to be exactly what I'm looking for!
Mystwalker is offline   Reply With Quote
Reply

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

All times are UTC. The time now is 15:07.


Mon Aug 2 15:07:13 UTC 2021 up 10 days, 9:36, 0 users, load averages: 2.87, 3.04, 3.23

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2021, Jelsoft Enterprises Ltd.

This forum has received and complied with 0 (zero) government requests for information.

Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.2 or any later version published by the Free Software Foundation.
A copy of the license is included in the FAQ.