mersenneforum.org  

Go Back   mersenneforum.org > Great Internet Mersenne Prime Search > PrimeNet > GPU to 72

Reply
 
Thread Tools
Old 2013-04-18, 12:01   #166
davieddy
 
davieddy's Avatar
 
"Lucan"
Dec 2006
England

145128 Posts
Default

Quote:
Originally Posted by Aramis Wyler View Post
Expected LL work saved TFing 1 expo from 71 to 75 is 1/72+1/73+1/74+1/75 = .054
This is a mistake which is extremely easy to make, and sorting it out is highly instructive.

Your sum is not giving the probability of anything. It is giving the "expected" number of factors. Extending the sum up to 1/N, we can integrate 1/x from 71 to N and estimate the sum as ln (N/71). If N > 71e, the sum is >1.
We can use the Poisson distribution to get the probabilities of no factors, precisely one factor and one or more factors from the expected number E:

P(x) = Ex*e-E/x!
Note that the sum from x=0 to infinity is 1.

P(0) = e-E
P(1) = E*e-E
P(>0) = 1 - e-E

Now when E<<1, P(1) and P(>0) --> E.
This makes estimating things very easy. So easy that many fall into the trap you did. Note that
1 - e-E = .054 - .0015....
so the error in this case is neither very obvious nor serious.


David

Last fiddled with by davieddy on 2013-04-18 at 12:24
davieddy is offline   Reply With Quote
Old 2013-04-18, 15:27   #167
Aramis Wyler
 
Aramis Wyler's Avatar
 
"Bill Staffen"
Jan 2013
Pittsburgh, PA, USA

23·53 Posts
Default

In the case where I'm doing trial factoring, and I think in general everyone in the gpu to 72 group whose sub-forum we are posting in, numbers with factors are not factored.

In an objective sense, what I said (Expected LL work saved TFing 1 expo from 71 to 75 is 1/72+1/73+1/74+1/75 = .054) is certainly wrong. But when you consider our context as declared in my first paragraph above, these variables are not independant: 1 and only 1 can occur, and there can be no factors below bitdepth 72.
Quote:
Originally Posted by R.D. Silverman
When is it legitimate to add the probabilities?
Quote:
Originally Posted by davieddy
When you want the probability of one of a number of mutually exclusive possible outcomes occurring
David is correct in his response to R.D. Silverman above, though goes off a bit after that by somehow assuming these events are independent, or that it's even possible for events to be both independant AND mutually exclusive.

Quote:
Originally Posted by davieddy
1 - e-E = .054 - .0015...
Subtracting the chance of them overlapping would make sense if they were independant, but they are not. They are mutually exclusive for the purpose of GPUto72 TF work.

Last fiddled with by Aramis Wyler on 2013-04-18 at 15:53 Reason: messed up a quote tag
Aramis Wyler is offline   Reply With Quote
Old 2013-04-18, 23:03   #168
davieddy
 
davieddy's Avatar
 
"Lucan"
Dec 2006
England

2·3·13·83 Posts
Default Independence of probabilities

x and y are primes between 271 and 275.
Choose a random number N between 260,000,000 and 265,000,000.
The probability that N is a multiple of x is 1/x.

Suppose x is a factor of N.
Does this affect the probability that N is a multiple of y being 1/y?
If so how and why?

David

Edit: I'll answer this.

The probability of N being a multiple of (xy) is 1/(xy) = (1/x) * (1/y).
The probabitities are independent.

Last fiddled with by davieddy on 2013-04-18 at 23:33
davieddy is offline   Reply With Quote
Old 2013-04-19, 00:06   #169
Aramis Wyler
 
Aramis Wyler's Avatar
 
"Bill Staffen"
Jan 2013
Pittsburgh, PA, USA

23·53 Posts
Default

In davieddie's world, where no factoring actually gets done, I suppose it's fair to treat them as independant even if for practical purposes they are mutually exclusive. Home field advantage.
Aramis Wyler is offline   Reply With Quote
Old 2013-04-19, 00:14   #170
davieddy
 
davieddy's Avatar
 
"Lucan"
Dec 2006
England

2·3·13·83 Posts
Default

Quote:
Originally Posted by Aramis Wyler View Post
In davieddie's world, where no factoring actually gets done, I suppose it's fair to treat them as independant even if for practical purposes they are mutually exclusive. Home field advantage.
I didn't realize that Chalsall was altering the factorization of composites at will.
That guy really is the Devil incarnate!
davieddy is offline   Reply With Quote
Old 2013-04-19, 00:21   #171
chalsall
If I May
 
chalsall's Avatar
 
"Chris Halsall"
Sep 2002
Barbados

9,767 Posts
Default

Quote:
Originally Posted by Aramis Wyler View Post
In davieddie's world, where no factoring actually gets done, I suppose it's fair to treat them as independant even if for practical purposes they are mutually exclusive. Home field advantage.
These guys are theorists... Rarely even worth the carbon.

Quote:
Originally Posted by Isacc Asimov
The most exciting phrase to hear in science, the one that heralds new discoveries, is not 'Eureka!' but 'That's funny...'
chalsall is offline   Reply With Quote
Old 2013-04-19, 00:52   #172
davieddy
 
davieddy's Avatar
 
"Lucan"
Dec 2006
England

145128 Posts
Default

Quote:
Originally Posted by R.D. Silverman View Post
Clueless.
He ADDED four probabilities. But they were NOT independent!
As I explained to Aramis, your mistake is very easy to make.
He added four probabilities to obtain the expected number of factors.
They ARE independent, and being <<1, approximate the expected number. Hence the confusion.

To spell it out, expected factors between 271 and 275 is the integral of 1/(xlnx) = ln(75/71).
Probability of no factors is e-ln(75/71) = 71/75

Can you explain why this applies to Mersenne numbers, as well as random ones?

David

Last fiddled with by davieddy on 2013-04-19 at 01:08
davieddy is offline   Reply With Quote
Old 2013-04-19, 20:16   #173
TheJudger
 
TheJudger's Avatar
 
"Oliver"
Mar 2005
Germany

11·101 Posts
Default

Quote:
Originally Posted by davieddy View Post
Can you explain why this applies to Mersenne numbers, as well as random ones?
I don't really know why it is this way and the following text it not a proof, but at least it makes sense to myself:
The chance for a factor between 2n-1 and 2n is 1/n, so the chance for a (roughly) n-bit factor is 1/n, but this is only a (good) estimate.
The product of all prime factors of a number is equal to the number itself.
For a number m there are log2(m) bitlevels, so summing all products of factor sizes multiplied by the chance for a factor of this size: 1*1/1 + 2*1/2 + 3*1/3 + ... + log2(m)*1/log2(m) = 1 + 1 + 1 + ... + 1 = log2(m)


Oliver
TheJudger is offline   Reply With Quote
Old 2013-04-20, 11:38   #174
henryzz
Just call me Henry
 
henryzz's Avatar
 
"David"
Sep 2007
Cambridge (GMT/BST)

16FE16 Posts
Default

Quote:
Originally Posted by Aramis Wyler View Post
Expected LL work saved TFing 1 expo from 71 to 75 is 1/72+1/73+1/74+1/75 = .054
Expected LL work saved TFing 2 expos from 71 to 74 is 2*(1/72+1/73+1/74) = .082 (44% more).

I have no real need to be imprecise when I'm sitting in front of a computer. I thought the difference between 50% (now even more) and 44% was worth clarifying since I was, you know, parked in front of a giant calculator and using it to post on the forum.

I was not arguing though, just clarifying. There are diminishing returns either way.
Expected LL work saved TFing 1 expo from 71 to 75 is 1/72 + (1-1/72)*1/73 + (1-(1/72 + (1-1/72)*1/73))*1/74 + (1-(1/72 + (1-1/72)*1/73 + (1-(1/72 + (1-1/72)*1/73))*1/74))*1/75 = 0.053333 not 1/72+1/73+1/74+1/75=0.054434 I think.
Perhaps not surprisingly this simpilfies to 4/75.

Expected LL work saved TFing 1 expo from 71 to 75 is 4/75 = .053333
Expected LL work saved TFing 2 expos from 71 to 74 is 2*(3/74) = 2*0.040540=0.081081

Turns out I missed a few posts. May as well post this anyway now I worked it out.
henryzz is offline   Reply With Quote
Old 2013-04-20, 13:54   #175
davieddy
 
davieddy's Avatar
 
"Lucan"
Dec 2006
England

2·3·13·83 Posts
Default

Probability of no factors between 2n-1 and 2n = (n-1)/n is a special case of the probability of no factors between aA and aB = A/B
from which it follows immediately that the probability of no factors between 271 and 275 is 71/75.
(Even more immediately than (71/72)*(72/73)*(73/74)*(74/75) = 71/75)

Now I gave a derivation of this formula which is so simple and plausible that you feel there must be something in it:

Multiples of a prime p have p-1 integers between them.
If we choose a random number N between 260,000,000 and 265,000,000, the probability that p is not a factor of N is (1 - 1/p).
From the PNT or Mertens' theorem or otherwise, it is easy to show that the product of (1 - 1/p) for all primes between aA and aB is A/B.

Now it is very tempting to just say QED, but two big issues rear their heads:
1) Independence: is the probability of pn being a factor still 1/pn even if we know none of p1 to pn-1 divide N?

2) The form of Mersenne factors

CAN SOMEONE SORT THIS OUT?
BOB?
PLEASE???

David

Last fiddled with by davieddy on 2013-04-20 at 14:43
davieddy is offline   Reply With Quote
Old 2013-04-20, 14:11   #176
science_man_88
 
science_man_88's Avatar
 
"Forget I exist"
Jul 2009
Dumbassville

26·131 Posts
Default

Quote:
Originally Posted by davieddy View Post
Probability of no factors between 2n-1 and 2n = (n-1)/n is a special case of the probability of no factors between aA and aB = A/B
from which it follows immediately that the probability of no factors between 271 and 275 is 71/75.
(Even more immediately than (71/72)*(72/73)*(73/74)*(74/75) = 71/75)

Now I gave a derivation of this formula which is so simple and plausible that you feel there must be something in it:

Multiples of a prime p have p-1 integers between them.
If we choose a random number N between 260 and 265, the probability that p is not a factor of N is (1 - 1/p).
From the PNT or Mertens' theorem or otherwise, it is easy to show that the product of (1 - 1/p) for all primes between aA and aB is A/B.

Now it is very tempting to just say QED, but two big issues rear their heads:
1) Independence
2) The form of Mersenne factors

CAN SOMEONE SORT THIS OUT?
BOB?
PLEASE???

David
I could give it a try:

2) well 2^65-2^60 = 2^60+2^61+2^63+2^64 = 15*2^60
(15*2^60)/(2*p) = (15*2^59)/p there are at most this many candidate factors.

1) though I don't know how many would get thrown from lower candidates being eliminated I know there are likely some depending on p (since 2*k*p+1 has at least one more bit than p, for p=60000000 this gives about 52 bits as (2p+1)^2, it might give some possibilities to eliminate.)
science_man_88 is offline   Reply With Quote
Reply

Thread Tools


Similar Threads
Thread Thread Starter Forum Replies Last Post
For davieddy and his music… Xyzzy Lounge 88 2014-07-14 02:44
WHY out of the entire university did only Davieddy get banned?! Stargate38 Forum Feedback 61 2014-07-08 18:54
5 easy pieces for davieddy NBtarheel_33 PrimeNet 28 2012-07-28 15:26
World Cup Soccer davieddy Hobbies 111 2011-05-28 19:21
Change the world! Xyzzy Lounge 5 2009-08-31 12:41

All times are UTC. The time now is 09:46.


Mon Aug 2 09:46:33 UTC 2021 up 10 days, 4:15, 0 users, load averages: 1.14, 1.31, 1.31

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.