Bitcoin Forum
April 18, 2024, 02:53:37 AM *
News: Latest Bitcoin Core release: 26.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Calculating variance  (Read 1096 times)
flound1129 (OP)
Hero Member
*****
Offline Offline

Activity: 938
Merit: 1000


www.multipool.us


View Profile
June 13, 2014, 11:04:47 PM
Last edit: June 13, 2014, 11:30:05 PM by flound1129
 #1

So a lot of people have been throwing around the term 'variance' as a defense of why they want to mine at only the largest pool.

Does anyone have a method of calculating the variance, both over a day and over a bitcoin difficulty period (10-12 days) based on difficulty and hashrate?  I started looking around on some sites but the math is a bit over my head.

I think if we can show that variance is not really an issue when using a smaller pool (down to a certain threshold, anyway), people will be more likely to move away from giant pools like ghash.

Multipool - Always mine the most profitable coin - Scrypt, X11 or SHA-256!
1713408817
Hero Member
*
Offline Offline

Posts: 1713408817

View Profile Personal Message (Offline)

Ignore
1713408817
Reply with quote  #2

1713408817
Report to moderator
Every time a block is mined, a certain amount of BTC (called the subsidy) is created out of thin air and given to the miner. The subsidy halves every four years and will reach 0 in about 130 years.
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1713408817
Hero Member
*
Offline Offline

Posts: 1713408817

View Profile Personal Message (Offline)

Ignore
1713408817
Reply with quote  #2

1713408817
Report to moderator
1713408817
Hero Member
*
Offline Offline

Posts: 1713408817

View Profile Personal Message (Offline)

Ignore
1713408817
Reply with quote  #2

1713408817
Report to moderator
1713408817
Hero Member
*
Offline Offline

Posts: 1713408817

View Profile Personal Message (Offline)

Ignore
1713408817
Reply with quote  #2

1713408817
Report to moderator
flound1129 (OP)
Hero Member
*****
Offline Offline

Activity: 938
Merit: 1000


www.multipool.us


View Profile
June 14, 2014, 02:40:34 AM
Last edit: June 14, 2014, 11:29:32 AM by flound1129
 #2

So after reading http://en.wikipedia.org/wiki/Exponential_distribution#Mean.2C_variance.2C_moments_and_median, the variance of any exponential function can be calculated as:

E(x) = 1/lambda.

Var(x) = 1/lambda^2

So, does that mean lambda for any particular expected block time can be expressed as 1/E(x)?  And then Var(x) would be 1/(1/E(x))^2.

If this is the case, variance at even a fairly low pool hashrate is a much lower factor than most people seem to think.

For example, a 1PH pool at the current difficulty, has a theoretical variance over a 10-day difficulty adjustment period of only 4.87%, far lower than many other factors that could influence profitability, and for a 5PH pool that figure is lowered to 0.97%.  At 5% variance over two Bitcoin difficulty periods, assuming one 'unlucky' period where profits were 5% lower than expected, and one 'lucky' period, where profits were 5% higher than expected, the profit lost would only be 0.5%.  At this level, many other factors become more important than a pool's payout variance.

Looking for someone to tell me my math is wrong here.


Multipool - Always mine the most profitable coin - Scrypt, X11 or SHA-256!
Meni Rosenfeld
Donator
Legendary
*
Offline Offline

Activity: 2058
Merit: 1054



View Profile WWW
June 14, 2014, 09:08:55 PM
 #3

1. The exponential distribution describes the time until a block is found. What you should be looking at is the number of blocks per time period, which follows the Poisson distribution, for which the variance is equal to the mean.

2. Variance / mean is not a very meaningful quantity. You should be looking at Variance / Mean^2.

3.
Let
H = pool's percentage of the network's hashrate
h = the miner's percent of the network
N = the average number of blocks per day (about 144)
B = Bitcoins per block (about 25)
T = number of days in the period we are looking at

Then the miner's average income is hNTB, the variance is h^2NTB/H, which means that the relative variance is 1/(HNT).

4. The network hashrate can be calculated as about 7 million times the difficulty.

5. This is all covered in AoBPMRS.

6. The real answer to the variance counterargument is not "there isn't that much variance in small pools", it's Multi-PPS.

1EofoZNBhWQ3kxfKnvWkhtMns4AivZArhr   |   Who am I?   |   bitcoin-otc WoT
Bitcoil - Exchange bitcoins for ILS (thread)   |   Israel Bitcoin community homepage (thread)
Analysis of Bitcoin Pooled Mining Reward Systems (thread, summary)  |   PureMining - Infinite-term, deterministic mining bond
flound1129 (OP)
Hero Member
*****
Offline Offline

Activity: 938
Merit: 1000


www.multipool.us


View Profile
June 15, 2014, 12:41:52 AM
 #4

1. The exponential distribution describes the time until a block is found. What you should be looking at is the number of blocks per time period, which follows the Poisson distribution, for which the variance is equal to the mean.

2. Variance / mean is not a very meaningful quantity. You should be looking at Variance / Mean^2.

3.
Let
H = pool's percentage of the network's hashrate
h = the miner's percent of the network
N = the average number of blocks per day (about 144)
B = Bitcoins per block (about 25)
T = number of days in the period we are looking at

Then the miner's average income is hNTB, the variance is h^2NTB/H, which means that the relative variance is 1/(HNT).

4. The network hashrate can be calculated as about 7 million times the difficulty.

5. This is all covered in AoBPMRS.

6. The real answer to the variance counterargument is not "there isn't that much variance in small pools", it's Multi-PPS.

Thanks Meni.  Of course you're right, but Multi-PPS would require both major changes in mining software and pool cooperation, would it not?  Therefore it would have to find some way around the same winner-take-all problem that affects pools today.

Multipool - Always mine the most profitable coin - Scrypt, X11 or SHA-256!
Meni Rosenfeld
Donator
Legendary
*
Offline Offline

Activity: 2058
Merit: 1054



View Profile WWW
June 15, 2014, 01:19:47 PM
 #5

Thanks Meni.  Of course you're right, but Multi-PPS would require both major changes in mining software and pool cooperation, would it not?  Therefore it would have to find some way around the same winner-take-all problem that affects pools today.
Yes, but I doubt there are any sustainable easier solutions.

1EofoZNBhWQ3kxfKnvWkhtMns4AivZArhr   |   Who am I?   |   bitcoin-otc WoT
Bitcoil - Exchange bitcoins for ILS (thread)   |   Israel Bitcoin community homepage (thread)
Analysis of Bitcoin Pooled Mining Reward Systems (thread, summary)  |   PureMining - Infinite-term, deterministic mining bond
wemine
Newbie
*
Offline Offline

Activity: 56
Merit: 0


View Profile
June 15, 2014, 05:02:38 PM
 #6

No, I just chose to believe the majority of people to choose from.
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!