Bitcoin Forum
May 02, 2024, 12:25:25 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
  Home Help Search Login Register More  
  Show Posts
Pages: « 1 ... 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 [56] 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 »
1101  Bitcoin / Pools / Re: 'How to hop 7' posted - 5 btc competition still on. on: October 15, 2011, 04:14:32 PM
So if you threw snake eyes on the first throw of a game, you'd get $10, and the last nine throwers of the previous game get $10 each. Then a new game starts. In the real world, with 24 hour casinos and no end of gamblers, I think we can assume that starting seroes of games and ending a series of games would be a rare occurrence.

Ok.  Most of my original post was about what happens at the beginning and end of a "series of games".  The confusion has come from my saying "game" for your "series of games" and "round" for your "game".  Certainly there is no funny business going on shortly before or after snake-eyes.

I actually didn't use the binomial distribution in the post - I only mentioned that the number of snake eyes found in N throws follows a Poisson distribution.

Good point, I have not been reading these posts in full detail but just trying to get a feeling for the mathematical approach taken.  Your approach really is fine if you are talking about the binomial distribution but calling this a Poisson process is technically an error.  This is a discrete process, not a continuous one.  My apologies for not reading your post thoroughly.

So I calculate the expected value as p*B not n*p as you have. So either we have different meaning of expected value or one of us is wrong there! I'm ok with being wrong if you can show me why.

Ah, we're just talking about different random variables.  The expected total payout for a throw is certainly p*B.  You're right, I made an error here.
Quote
n*E(X_0) = n*p

Of course, E(X_0) is 1/n*(p*B) and hence
Code:
E(X_0 + ... + X_9) is n*1/n*(p*B) = p*B.

When focusing on how the binomial distribution is a sum of Bernoulli ones it's very easy to write "E(X_i) = p" without thinking. Wink

Quote
It's unnecessary to sum the series since the expected value for a throw in the game, p*B, consists of unchanging constants.

It's late for me here so I might not have followed you properly, so I'm looking forward to your reply.

The sum is, in my opinion, an important part of this problem.  Without it my solution would read:

Assuming there have been at least 9 previous throws and will be at least 9 future throws, the expected value of a throw is
Code:
10 * 1/10 * (1/100 * $100) = $1.
Because it costs $1 to play the expected profit from any turn is exactly $0 and hence there is no winning strategy (possibly unless we allow ourselves throws close to the beginning or end of a series of games).

The interesting bit is in seeing why the expected value of a throw is $1.  If someone cannot see that it really is $1 then I doubt using words like "binomial" and "distribution" won't help.  Instead, I think the simplest reasoning is to consider how much you expect to get from each of the next 10 throws (including your own).  In each case you would be one of 10 people sharing an expected 1/100 * $100 = $1 reward so your expected income from the throw is $0.10.  Summing the expected incomes of all 10 of these throws yields the expected return of $1.
1102  Bitcoin / Pools / Re: 'How to hop 7' posted - 5 btc competition still on. on: October 15, 2011, 01:34:38 PM
What I think you mean your calculations to tell us is that earlier throws are rewarded more than later throws. But you don't show us when a particular throw is worth less than the mean value of a throw, which (since you define profit as winnings minus cost) would be less than zero. This is what you need in order to determine the best strategy.

I think it's unfair to expect more than this when the question was

Quote from: organofcorti
Question: is there a winning strategy for this gambling game? What is it?
...
If you can answer the first question, have the winning strategy and your reasoning is sound, you'll win 1 btc from me.

It seems that people have found a winning strategy and provided sufficient justification to show that it is winning.  They may not have found the best winning strategy or justified that their strategy is the best but this is not what is asked for.  You do say the winning strategy but only at one point and you never ask for the best strategy.  I would say the 1 BTC has been earnt.

The 4 BTC on the other hand would certainly require some elegant mathematical reasoning.

1103  Bitcoin / Pools / Re: 'How to hop 7' posted - 5 btc competition still on. on: October 15, 2011, 01:18:20 PM
I think you missed my point.

Firstly, I don't question your logic on the use of the Binomial distribution.  I omitted talking about it because it is not needed to reason out the expected value of a throw (I'm trying to keep things simple).  I will now expand on my thoughts and use standard mathematical notation but I still prefer my original form.

Suppose a player takes a turn and throws the dice.  Suppose also that there have been at least 9 past and at least 9 future throws.  We want to calculate the expected amount that the player will receive.

Let X_i be the expected amount the player receives from the i-th throw (where i=0 is the player's throw and i=1..9 are the 9 future throws).

We want to calculate E(X_0 + X_1 + ... + X_9).  (Where E is the expectation operator).

The X_i's are independent identically distributed Bernoulli random variables with parameter p = 1/100 (probability of success).

There are two main ways to calculate this expected value.  The first is to consider X = X_0 + ... X_9 as a random variable in it's own right.  This will be a binomial random variable (just as you describe) and you can use the known formula for the expected value of such a random variable (number of trials * probability of success; n*p).

The other way is to note that the expectation operator is linear so
E(X_0 + ... + X_9) = E(X_0) + E(X_1) + ... + E(X_9) = n*E(X_0) = n*p
Indeed, this is the main way in which the formula for the expected value of a binomial distribution is derived.  The beauty of taking the second method here is that it the expected value of a Bernoulli random variable is intuitive so formulae can be largely avoided.  I find it difficulty to express myself properly on a forum but I feel this is the elegant way to reason about this game.

The majority of my post was discussing the assumptions needed to make the mathematics rigorous.  If you make an assumption that this game extends infinitely in both directions then everything is fine but most people will assume that the game starts at some point and ends at some point.

What happens, for example, if we actually start playing this game and I get snake eyes on my first throw?  Would I recieve $100 or would I recieve only $10 (the other $90 theoretically given out to the previous 9 players).  In the latter case there is no problem but in the former case the first 10 throws give the player a positive expected profit.  Instead of being 10 * 1/10 * $1 the expected value would be (1 + 1/2 + 1/3 + ... + 1/9 + 1/10) * $1.

What happens when a game ends?  If I make the last throw of the game then surely $1 is too much to pay for only a 1/100 shot at receiving $10.

A real PPLNS pool has to start at some point and must end at some point too.  A naive PPLNS pool will screw up here, giving out high value to the initial miners and constantly borrowing from the future until, when the pool closes, the people holding the last N shares lose out.  This is a trapezoid scheme.  A carefully implemented PPLNS pool would try to avoid this, probably by creating a pool kitty which is funded by the initial miners and pays out to the final miners.  A PPLNS pool has other factors to worry about, such as changing N and changing difficulty.  Just as with starting and ending a pool, these changes need to be handled gracefully to make sure that the expected value of each share is correct.
1104  Bitcoin / Pools / Re: Bandwidth of a Pool on: October 14, 2011, 07:40:37 PM
I suppose mostly that's psychological. A user likes to see that the pool knows their approximate hashrate, its the fastest way to confirm that their setup is working properly and their shares are being accounted for. My users tend to use the hashrate estimate as their go-to stat - if its more than 20% out (acceptable variance given the way we work it out), they know something is wrong and can investigate further.

If a user has to go more than 10 minutes without submitting a single share it would be very difficult for us to work out this figure to any acceptable estimate, over a reasonably short timeframe.

That's very true.  I was used to this effect from solo mining and I admit it was much easier to be sure everything was working when you could see shares rolling.

Still, if a server is having resource issues then dropping to difficulty-2 shares seems like a much better idea than renting/buying a second server.
1105  Bitcoin / Pools / Re: [70 GH][0%][Merged Mining] SIMPLECOIN.US [10BTC+500NMC Promo][Prop/PPLNS/SMPPS] on: October 14, 2011, 07:38:09 PM
Perhaps I've misunderstood something here.

By matching Bitcoin and Namecoin block I'm thinking of an SHA-256 hash of [a list of Bitcoin transactions, some Bitcoin address information, and Namecoin data in a merkle tree] which happens to be a particularly low number (begins with quite a lot of 0s).  It was my understanding that any hash small enough to generate a Bitcoin block would also be small enough to generate a Namecoin block and consequently I expected any merged mining Bitcoin block to have a corresponding Namecoin block (at least while Namecoin difficulty is less than Bitcoin difficulty).

This belief was made stronger by posts such as this:
https://bitcointalk.org/index.php?topic=42667.msg566146#msg566146
where slush proudly announced the first Bitcoin merged mining block (which had a Namecoin counterpart) Bitcoin 148744 = Namecoin 19274.

Can you guys explain why Bitcoin and Namecoin block generation events are not linked in this way?  Are the corresponding random variables independent (in the sense of probability) and if so why?

Thanks.
1106  Bitcoin / Pools / Re: [70 GH][0%][Merged Mining] SIMPLECOIN.US [10BTC+500NMC Promo][Prop/PPLNS/SMPPS] on: October 14, 2011, 07:10:59 PM
I noticed that you put GamingG's missing Bitcoin block (149249) on the list.  Shouldn't there be a Namecoin block that coincides with this Bitcoin block?  There is no Namecoin block on this list within a 1 hour radius of this Bitcoin block.

Also, what is the matching Namecoin block of trasp's Bitcoin block (149155)?  Is it trasp's adjacent Namcoin block (19893) which is reported appearing more than a day earlier?  Is it your Namecoin block (20125) reported 12 seconds after?  Is it perhaps some other missing Namecoin block?

For anyone else out there trying to piece this together there was (and still may be) a +-1 offset bug to the reported block numbers here.
1107  Bitcoin / Pools / Re: Bandwidth of a Pool on: October 14, 2011, 06:59:14 PM
The more you raise the difficulty miners solve at, the less granular you can be sure of their hashrate. Low hashrate miners may not even get to submit a share in between longpolls in extreme instances. I dare say you could safely raise it to 2 or 4 without too much trouble though.

Probably the reason most don't do it is pushpool is set to 1 by default and few pool ops are skilled enough to change this without causing all manner of side effects. Personally, my load and network usage are well within acceptable parameters so raising it would just cause loss of share granularity for no real gain.

I certainly understand if it's not an easy parameter to change and the servers can take it anyway.

I don't see how share granularity is much of a plus though.  There is a bonus in that the pool can quickly detect when a user has stopped mining and send out a cautionary e-mail.  Low difficulty shares can be helpful for people trying to measure stales too.  Other than that I don't see the problem with submitting no shares between longpolls or why the pool needs to know user's hashrates.

Given the low fee that most pools ask for I might expect that a pool server would have to watch it's BTC/Watt in a similar way to a miner so surely there is incentive for making the server's more efficient.

Ah well, this is just curiosity.  I don't run a pool server nor do I intend to start.
1108  Bitcoin / Pools / Re: [70 GH][0%][Merged Mining] SIMPLECOIN.US [10BTC+500NMC Promo][Prop/PPLNS/SMPPS] on: October 14, 2011, 06:51:39 PM
Right now my account is showing an unconfirmed balance of 1.52413899 BTC but the stats report no unconfirmed BTC blocks.  I have a separate confirmed balance of 1.61780172 BTC which I believe is down to trasp's block (149155).

Is there a PPLNS bitcoin block which is not yet on the stats chart Mike?

Might this "1.52413899" actually be unconfirmed namecoins from ericwmson's Namecoin block (20599)? (this block is currently unconfirmed and I have 0 unconfirmed namecoins).

I'd love to start encouraging people to come to this pool again but I'm personally finding the stats very concerning.


PPLNS has another unconfirmed BTC block Wink not sure why it isn't showing on the blocks page though.

Hmm...  I'm using the blocks page to analyse this pool's luck so if there are missing blocks that could explain the disturbing figures I'm coming up with.  While you're looking into that could you check to see if the PPLNS pool found any Namecoin blocks between 20180 and 20463, assuming a constant 30 GH/s this is an incredible gap.

The PPLNS pool stats page is now reporting another Namecoin block discovery (comradehls, 34 confirms, 20661) but none of my personal stats have changed.  I remember there being some kind of significant lag between these two but I thought that had been fixed.

Also, my Namecoin estimate is currently 0.
1109  Bitcoin / Pools / Re: Bandwidth of a Pool on: October 14, 2011, 06:36:36 PM
Basically all of it.

Interesting.  I wonder why pools use such low difficulty for their shares then.  With most pools people are submitting many more shares than they are receiving payments so the reason is certainly not related to variance.  Higher difficulty shares would help with server resources which would allow pools to operate more cheaply too.

Is there some technical reason why difficulty-1 shares are preferred?
1110  Bitcoin / Pools / Re: [70 GH][0%][Merged Mining] SIMPLECOIN.US [10BTC+500NMC Promo][Prop/PPLNS/SMPPS] on: October 14, 2011, 06:04:10 PM
ah ok, im mining tbx here. and the website i get a "502 Bad Gateway"

Yeah, website was trying to get info from solidcoin client.
Speaking of solidcoin. I no longer have plans now or in the future to support it. Anyone with a remaining solidcoin balance PM me.

TBX pool is back online.

It's a shame solidcoin failed to deliver again.  After this I can't say I'd be eager to give them a third try either and I'm glad to see that you handled the instability well this time.
1111  Bitcoin / Pools / Re: [70 GH][0%][Merged Mining] SIMPLECOIN.US [10BTC+500NMC Promo][Prop/PPLNS/SMPPS] on: October 14, 2011, 05:55:00 PM
Right now my account is showing an unconfirmed balance of 1.52413899 BTC but the stats report no unconfirmed BTC blocks.  I have a separate confirmed balance of 1.61780172 BTC which I believe is down to trasp's block (149155).

Is there a PPLNS bitcoin block which is not yet on the stats chart Mike?

Might this "1.52413899" actually be unconfirmed namecoins from ericwmson's Namecoin block (20599)? (this block is currently unconfirmed and I have 0 unconfirmed namecoins).

I'd love to start encouraging people to come to this pool again but I'm personally finding the stats very concerning.
1112  Bitcoin / Pools / Re: Bandwidth of a Pool on: October 14, 2011, 03:02:31 PM
Can only tell you what I've observed - rfcpool is using about 3Mbit outbound, 2Mbit inbound, to do 50GH/s.

How much of that is down to the shares?  If you created a pool accepting difficulty 100 shares then would your bandwidth requirements drop significantly?
1113  Bitcoin / Pools / Re: 'How to hop' poolhopping blog - 5 btc competition! on: October 14, 2011, 02:59:15 PM
For example, if the payout was paid proportionally only to the people making the last ten throws - including the ones in the last game, if it's a short game - is there a winning strategy and what would it be? (no prizes for that answer!)

Assuming that there were at least 9 past throws and will be at least 9 future throws, a throw gives the player an expected return of exactly $1.  This is because a throw has a total payout expected value of $100/100 = $1 and a player will receive 1/10 of the payout for their throw and 1/10 of the payout for each of the 9 future throws.  If there are fewer than 9 past throws then you receive a large proportion of the payout for your throw so on average you will profit.  If there will be fewer than 9 future turns then you clearly lose on average.

Consequently, in most real world cases, the winning strategy is to make as many of the first 10 throws as possible and then leave (unless there is a real chance that there will be fewer than 20 throws in total).

For miners this means joining new PPLNS pools that you think have implemented the reward system in this naive way and leaving after the first N shares have been found (again, banking that the pool will receive at least 2N shares).  Hopefully new PPLNS pools will not be so basic.
1114  Bitcoin / Pools / Re: [70 GH][0%][Merged Mining] SIMPLECOIN.US [10BTC+500NMC Promo][Prop/PPLNS/SMPPS] on: October 14, 2011, 01:20:59 PM
Another few hours without any Namecoin blocks on any of the pools (and at this very low difficulty).  I have no doubt that something is wrong.  Please put our fears at ease Mike by fixing any stat update lag and putting the recent blocks up.

I continue to mine here but I absolutely cannot advise it to others.  If you're not happy to take the risk here I would mine at another pool and wait for block reports here to return to normal.  Merged mining itself seems to be perfectly fine and the income bonus for using it is very high (150%) so I would suggest another merged mining pool.
1115  Bitcoin / Pools / Re: Why do you mine on deepbit? on: October 14, 2011, 01:03:48 PM
Why do you eat at McD?
Why do you watch TV?
Why do you buy an Iphone?
Why do you use Google?
Why do you drink?
Why do you smoke?
Why do you vote for a mainline party?
Why do you use Facebook?
Why do you code in Java?
Why do you still use USD/EUR?.....

... all different instances of the same phenomena if we were to understand that the world would be a so much better place. Smiley

Hmm...

Each of these can be rationally argued as a valid choice in certain circumstances although I'm surprised by the undue popularity of many of these options.  It seems popularity itself is an attractive quality for an choice or activity for most people.  Perhaps people like the safety in numbers which reduces their need to think critically about such choices and focus on more important matters in their lives.

1116  Bitcoin / Pools / Re: Who are the Merged Mining? on: October 14, 2011, 10:36:44 AM
I've tried Slush, Simplecoin and nmcbit.com, and I'm currently using nmcbit. Slush may be the best, but it's hard to know for sure because we haven't actually got any Namecoins from him yet. Simplecoin finds suspiciously few NMC blocks. The hash rate of nmcbit.com is a bit low, but at least it finds the expected number of coins, and pays them out quickly.

Agreed.  Simplecoin is reporting very few blocks for the hash rate it receives but this is most likely due to problems with the SQL stats replication server.  It would be wise to wait for simplecoin.us to start reporting normal luck before joining that pool, putting pressure on the operator to get the stats sorted as soon as possible.

I didn't know people hadn't got namecoins from slush yet but I would be startled to learn that he had anything other than honourable intentions.  Consider masterpool.eu, nmcbit.com, eligius.st and keep you eyes open for news from other merged mining pools.  Avoid raw proportional (unless your hopping), spread your resources (reducing variance) and configure backup pools; the next two days are important (low Namecoin difficulty).
1117  Bitcoin / Pools / Re: [70 GH][0%][Merged Mining] SIMPLECOIN.US [10BTC+500NMC Promo][Prop/PPLNS/SMPPS] on: October 14, 2011, 10:18:04 AM
Now I've seen it once before, are you sure the recent blocks are all displayed Mike?  The PPLNS pool has Namecoin round shares at more than 6 times the difficulty.
1118  Bitcoin / Mining / Re: Pool hopping... ethical or not? on: October 14, 2011, 10:12:24 AM
Also, Meni, we are far off topic here.  This thread is supposed to be a flame war about the ethics of pool hopping, not a place for intelligent discussion on the mathematics of alternative reward systems.  We are very much in danger of being branded trolls!
1119  Bitcoin / Mining / Re: Pool hopping... ethical or not? on: October 14, 2011, 10:08:40 AM
I think it has something to do with falling for the myth that score-based methods penalize intermittent miners, then starting a holy crusade stating that any method is good as long as it's not score-based. And, the vulnerabilities of SMPPS are different and subtler than of proportional.
Yeah, what was up with that?  Why would weighing shares to given them all the same expected value hurt intermittent miners?  Where do people get these ideas from?

Actually a shift system can work. I've discussed here how to do it correctly.
I don't doubt that, it just felt at first glance that it was an attempt to reduce server workload.  The high complexity was very off putting and it felt like it would require some careful patching and scaling to be unhoppable.

I'd say fixed-N PPLNS is good enough in practice. That opens up quite a few options, such as MMC. And you have some great, even if small, double-geom pools such as EclipseMC and yourbtc.
I'll look into these.  Right now I would not switch from even variable N PPLNS to double-geom if it meant giving up merged mining (obviously as it's about 2.4 times a profitable right now) but if there is a merged mining double-geom pool out there (sensible parameters) with a solid server and a reputable and attentive operator then I'd send it half of my hashing power and have it as a backup for the other half.
1120  Bitcoin / Pools / Re: Income bonus for using merged mining: 136.55% (Friday, 1:02 UTC) on: October 14, 2011, 09:48:13 AM
looks like only 4 days or less at this difficulty.

Yes, it seems like this round is going to last longer than I expected.  Maybe we'll still have this bonus 2 days from now!  I assumed more people would move to merged mining with such serious profit involved but it seems this assumption was faulty and that there are lots of miners out there who don't keep up with mining news.

Happy mining everyone! Smiley
Pages: « 1 ... 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 [56] 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 »
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!