Out of curiosity, I calculated average luck on Eligius last 24 hours to be 323%!
I extracted that from 'blocks' stats page. Is there some graph picturing this? Or API to use for importing data?
Something seems wrong with that number.
Here's the info on the API:
http://eligius.st/~gateway/pool-apisI'm in the process of integrating the luck API in my MPoolMonitor app.
M
Thanks.
I didn't count in current block, very unlucky one, and there were two very lucky blocks: 2114,00% and 1240,20%.
From 2014-mar-16 13:46:29
To 2014-mar-17 13:19:57
28 blocks found
00:50:29 average time
That 50:29 is better than average, but nowhere near 300%. Are you sure you're not just averaging the luck % numbers? You can't do that.
Is that because each luck % is "weighted", so 200% has more weight that 101% does?
M
In a way, yes, it's weighted, but just due to the way that numbers work when you take the average of a percentage like this, and the way the luck percentage is calculated. Take a look at an example.
Let's say that the average block find time should be 1 hour, just to make the numbers easier.
BLOCK 1: 1.0 hour (100% luck)
BLOCK 2: 0.5 hour (200% luck)
BLOCK 3: 1.5 hour (66% luck)
Now, if you add 100% + 200% + 66%, you get 366%. Divide by 3 blocks and you get 122%. But if you look at the whole series of blocks, there were 3 blocks found in 3 hours, which is 100% luck.
If you want to find luck for a large number of blocks, it's really easy. You don't have to look at the timestamps or luck for each block in between; just the timestamps for the first block and the last block, and the number of blocks in between.
Of course, this assumes that the expected 100% luck remains constant; i.e., that the network hashrate and the pool hashrate both remain constant (relative to each other; if they both increase by 10%, the expected luck should remain the same). Which of course, is not the case, but for short periods (like 24 hours or less) it is probably a safe approximation.