Bitcoin Forum
June 26, 2024, 03:05:01 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
  Home Help Search Login Register More  
  Show Posts
Pages: « 1 ... 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 77 78 79 80 81 82 83 84 85 86 87 88 89 90 [91] 92 93 94 95 96 97 »
1801  Bitcoin / Development & Technical Discussion / Re: auto backing up of wallet.dat on: August 27, 2010, 01:21:09 AM
If you read it into memory and write it out, it could fail in tight memory situations.

I'm looking for something like copyfile(const char* from, const char* to) or copyfile(path from, path to), preferably something in Boost if it has it.  If you find it for me, it's more likely I'll get to implementing it.

As for the file copy, why add to the boost dependency? I for one would love to get a core lib with very little deps.
We require Boost for JSON and a dozen things replacing dependencies on wxWidgets.  Boost is good, portable stuff, we should not shy away from it.

Ok, so what's wrong with the simple standard fstream usage from that snippet I mentioned? I think simple is best Smiley

But if you are already using features from boost::filesystem you can use copy_file from that. I just think that, if not already required for something else, it's a tad overkill.
1802  Economy / Marketplace / Re: TAABL mathematics on: August 26, 2010, 11:26:23 PM
Look, I can work out the numbers, but it's a pain so I simplified to a winner take all lottery.

When you buy the first ticket you have a (1/4096 * .5) + (1/256 * .25) + (1/16 * .25) = 0.016723633

When someone buys a second ticket it is worth (1/4096 * 1) + (1/256 * .5) + (1/16 * .5) = 0.033447266

Once there is one ticket on every number (1/4096 * 2048) + (1/256 * 1024)/16 + (1/16 * 1024)/256 = 1

Now if someone buys a duplicate that doesn't match your ticket in the rightmost digit:

(1/4096 * 2048.5) + (1/256 * 1024.25)/16 + (1/16 * 1024.25)/256 = 1.000244141

And now we have positive expected value.

Each ticket now has that much value, so the order doesn't matter. But people may still be wary of buying the first very low value tickets. I'm not saying they won't find other reasons to do it, but they are essentially donating value to future draws.


Don't get me wrong here, you obviously know way more than I do about this, but just indulge me for a little longer if you can.

You say buy every ticket not taken so all dups are working for you, but then you show math where you buy *all* the tickets and only one other is bought. On top of that you assume the one duplicate ticket is not the winner. This is where I think things go crazy, as we're talking about optimal situations which are not, I believe, remotely real. If you don't buy every ticket then the chances of ever winning the prize get substantially smaller and not every ticket is the same.
There's 1 change in 16 for everybody to share 25% of the pot, and 1 in 256 of sharing another 25%. So if I buy 256 tickets wisely chosen to cover all 2 digit combinations, I have secured 15 64BTC in 3rd prizes and 68BTC in 1 2nd. Not enough to cover my bet, so you actually make a profit unless I hit first prize, which I have a 4% chance of doing...

I just proved your point, didn't I?Huh

Damn...

So what can I do to deter this? add a number?
1803  Economy / Marketplace / Re: Introducing: The Amazing Anonymous Bitcoin Lottery on: August 26, 2010, 10:35:27 PM

if current block is 76602, say 'bet will become active block 76608 forward' And if someone hits block 76605, don't pay out that bet.

Right, that and the full list of *active* bets should be all the disclosure needed... thanks!
1804  Economy / Marketplace / Re: TAABL mathematics on: August 26, 2010, 10:34:00 PM

Well, you can cancel as long as people can place, so you just have to be quick.

Obviously it isn't profitable every time. Is simply positive expected value. Sorry, I don't bother saying expected anymore since I play and post about poker all day. The variance all evens out and the expectation is all that remains after a few decades or whatever.

I get all that, the tendency to balance. It just doesn't apply on a small timescale (within a few years small) when you get one draw per week. It might, and it might just have you loose every single time. You play poker, you know about probabilities, and yet it's not the math wizard that makes it to the high stakes tables, it's the guy who can read other people's behavior and uses that to get some leverage.

So, yes, you are still gambling, it's just that you can do it with an edge instead of paying an edge. It isn't some magic about covering all numbers either. Every ticket you buy is a better value than the last. The first ticket gets you 1/4096 of winning 1BTC the second is twice as good a value, it gets you a 1/4096 chance at winning 2BTC!

That is just wrong. Your bets go to the pot in full, but you don't take the whole pot if you win. Poker? sure, but not lottery. The first ticket gives you a chance of winning, at best, 0.5BTC, and it did cost you 1BTC. The second? in a perfect world an extra 0.24, so you are not even making up for the initial bet. It only levels out because many people play and, if you were to make no duplicates, the bets would be spread so well that prize distribution would suck even more.

But I get it, eventually you'll bet, as well as many others and only you will win, making up for all the other losses. I say go for it! The more the merrier...
1805  Economy / Marketplace / Re: Introducing: The Amazing Anonymous Bitcoin Lottery on: August 26, 2010, 10:23:33 PM
Another possible lotto variant is a pick-3 or pick-4 or whatever, where you require 100% match, but have a drawing for each bitcoin block.  Jackpot keeps growing, and all tickets remain valid, until a winner emerges.

Somewhat like "sudden death overtime" in sport, where you keep playing until someone scores.

Ok, ran some numbers, made a few bogus attempts with past data, seems like a good bet, but I have one problem I need some help with: How am I going to give the better some assurance I'm not cheating?

In the lottery I give out all bets before the result is known, so I can't make up numbers after the fact, but here I don't know... I could just show all bets all the time but that would still not prevent me from adding a winning bet a second before the block arrives... don't know what I can do here, other than say 'trust me', which is all fine but, I don't know, feels weird.
1806  Economy / Marketplace / Re: TAABL mathematics on: August 26, 2010, 09:41:32 PM

I think my math works out.


It does, noone is arguing that, I believe. It's your assumptions that are slightly off Smiley

There was this statistics professor that started the first year class with the following pearl about averages (loosely translated):

"Statistics are like a bikini, showing almost everything but hiding the most important... If you and me both go and eat together, I eat two chiken and you eat none, on average we each had one, but I'll be stuffed and you'll be hungry."

The error, in my non educated opinion, is one of historical averages. Take the coin toss example:

you throw a coin 10 times, 8 of them it falls on tails. What would you say your chances are of hitting tails the 11th throw?

Amazingly, they are 50%. Every time 50%. Regardless of how many times you throw them. This is not true for a physical coin, as it may have unbalanced weight or whatever, but still the same applies.

You are assuming that if you keep betting all numbers all the time, chances are that your losses and your gains will accumulate to void one another. Each time you bet is a different time, same possibilities regardless of past prize history. It's a gamble, no matter how you dice your numbers (pun obviously intended)...

You can minimize you chances of loosing by betting less or not at all, but your chances of winning depend on all the betters, not just on your own actions.
1807  Economy / Marketplace / Re: Introducing: The Amazing Anonymous Bitcoin Lottery on: August 26, 2010, 09:16:01 PM
Alright, I propose we vote:

a) Cancel tickets:
  1) remove completely
  2) allow for 100 blocks after ticket registration
  3) allow till draw locked

b) Other bets visibility
  1) only show when draw is locked
  2) show but don't state number of duplicates
  3) show everything, all the time

c) Unclaimed prizes
  1) Just roll over to the next draw
  2) Just add to the prizes actually won on the same draw
  3) do 1) but when pot reaches 5000 (or some other number) do a special "Guaranteed Jackpot!" which is just 2) above

d) bet price
  1) 1
  2) 2
  3) 5
  4) depends on the pot that rolled over (assumes c:1) or c:3) )

e) draw interval
  1) every 1k
  2) every 1k
  3) every 1k, but if c:3) the Guaranteed Jackpot happens in 500 blocks, just to force people to pay attention to the site Smiley
  4) every other 0.5k

Share your thoughts!
1808  Economy / Marketplace / Re: TAABL mathematics on: August 26, 2010, 08:28:07 PM
Sorry, I was not clear. You bet on uncovered numbers and profit from when people duplicate each other. If someone lands on you, you take your bet down.

Oh no, you were clear. It's just the unspoken assumption that if you bet on uncovered numbers you'll win (and thus profit) that I find somewhat misleading Smiley

Fixing your sentence:

You bet on uncovered numbers and if you happen to win, and the chances increase with the number of bets you cover profit from when people duplicate each other, knowing that the profit will be reduced and may actually be a loss even when you win as your number of bets increase. If someone lands on you, you take your bet down (while canceling lasts Smiley ).
1809  Economy / Marketplace / Re: Introducing: The Amazing Anonymous Bitcoin Lottery on: August 26, 2010, 08:08:17 PM

Another possible lotto variant is a pick-3 or pick-4 or whatever, where you require 100% match, but have a drawing for each bitcoin block.  Jackpot keeps growing, and all tickets remain valid, until a winner emerges.

Somewhat like "sudden death overtime" in sport, where you keep playing until someone scores.



Hey, I like that! I'll put some thought into it and maybe we'll have a test fest soon... Great idea!
1810  Economy / Marketplace / Re: TAABL mathematics on: August 26, 2010, 08:05:31 PM
Bet every uncovered number. Your profit comes from other peoples duplicates.

Except there's statistical advantage in doing that, unless the number of of 'other betters' is very low, and that defeats the monetary advantage, right?

I mean, if there are few uncovered numbers, your investment is small, payoff potentially big, chances of getting it small.
If there are many uncovered numbers your investment is that much bigger, chances go up in accordance and the payoff just gets smaller

In any case there is absolutely no guaranteed return of investment, mainly because you're not investing Smiley It's a bet and what you bet on, how much you bet is only one part of the equation. The other part, what other people do, affect you greatly and you have little or no control over... maybe you can influence other betters, but that's that.
1811  Economy / Marketplace / Re: Introducing: The Amazing Anonymous Bitcoin Lottery on: August 26, 2010, 07:09:21 PM

How about your can't buy a ticket unless you have enough BTC to fund it? Why not require them to have a BTC for them to buy a ticket... ?? Then if they transfer in 1000 BTC and only want to buy 10 tickets... they only type in 10 numbers.

My idea here was; I'm waiting for 2 confirmations, which can take 20 minutes or so. A new user comes in, makes the transfer and wants to play, but can't coz the coins are in transit. He can come back, sure, or he can bet (random 10, in your example) and as soon as the coins arrive the system places the bets. This was supposed to be part of a bigger plan, an auto better, so you can leave an open bet to be played on each draw, if you go on vacations Smiley

But I see no harm in removing that, sure. I would then remove the pending and the cancel, is everyone ok with this?
1812  Economy / Marketplace / Re: TAABL mathematics on: August 26, 2010, 05:56:22 PM
My argument is that if a considerable number of people bet less than you, say 200 bets of 20, chances are you'll be dividing the amount you put in with them, thus effectively doing charity for all the winners Smiley

As a  side note, this was part of the decision of letting unclaimed prizes roll over to next draws, giving them higher jackpots or, alternatively, using the full bet pot on the current draw, blending in unclaimed prized with the for for those actually claimed.

In the latter approach, betting all possibilities would, I believe, be even more harmful, as in the former at least there's an accumulated jackpot to add as incentive to your bet.
1813  Economy / Marketplace / Re: Introducing: The Amazing Anonymous Bitcoin Lottery on: August 26, 2010, 05:52:09 PM
It has just occurred to me, should I not lock canceling bets in the couple of days that precede the draw? I mean, I could put 2000 coins in just to drive people to bet more and then retract 1950, which would lead to a much lower pot, but eventually much bigger for me than it would be without the bait.

I would still allow bets to be put up to 6 blocks (~1hour) before the draw conclusion, but would lock canceling maybe 25% through the draw? say 250 (~1.25 days) blocks for a 1000 block draw interval?

I won't do it on this draw, as it is almost up *and* I hold most of the bets, which I will not retract, but for the next one?

yes. retracting bets stinks. But I think you'll run into the problem of people being upset if they find out there are 4 bets on their number, and can't retract. If retraction is out, consider a blind draw, just make all picks public 6 blocks before the pick.

How about instead of a blind draw, I still allow you to see bets, and those that you made BUT not duplicates? Each bet appears exactly once. Then, when the draw is locked, full bets appear and are downloadable for auditing.
1814  Economy / Marketplace / Re: Introducing: The Amazing Anonymous Bitcoin Lottery on: August 26, 2010, 05:50:38 PM
Why not only allow someone to withdraw bets that are chosen multiple times?

Once a bet is chosen, I don't see why they should be able to retract it at all. If you typed the wrong number, pay another coin and buy the one you wanted to.

In the spirit of full disclosure, the canceling of bets is a safety feature... for me Smiley

It was never intended to be used in the spirit of "I will bet, because I can cancel", but rather as a fallback if you happen to have 1000 pending tickets and instead of sending 10 BTC you send 1000... this way I don't have to manually go and fix it for you.

Now, I can completely remove the bet cancel, or I can put a timer on it. Bets can be canceled up to 100 blocks from when they were registered? so you have a margin, but there's no analogy to 'chargeback' behavior in the lottery.
1815  Economy / Marketplace / Re: Introducing: The Amazing Anonymous Bitcoin Lottery on: August 26, 2010, 02:45:12 PM
It has just occurred to me, should I not lock canceling bets in the couple of days that precede the draw? I mean, I could put 2000 coins in just to drive people to bet more and then retract 1950, which would lead to a much lower pot, but eventually much bigger for me than it would be without the bait.

I would still allow bets to be put up to 6 blocks (~1hour) before the draw conclusion, but would lock canceling maybe 25% through the draw? say 250 (~1.25 days) blocks for a 1000 block draw interval?

I won't do it on this draw, as it is almost up *and* I hold most of the bets, which I will not retract, but for the next one?
1816  Economy / Marketplace / Re: Introducing: The Amazing Anonymous Bitcoin Lottery on: August 26, 2010, 02:38:30 PM
question:

If I bet  'ABC' and it hits, I win the 1st place prize. But do I also get a cut of 2nd and 3rd? Same thing if I bet 'FBC' and the winner is 'ABC', I get 2nd and 3rd or just 2nd?

I vote 1 ticket 1 prize if easy to implement.



That is the way things are implemented Smiley One ticket, the highest prize.
1817  Bitcoin / Bitcoin Discussion / Re: The Pay it Forward Project. on: August 26, 2010, 12:34:35 PM
The fw payment should be done in any particular order? The 3 addresses posted after mine? Any 3 addresses posted after mine? Any 3 addresses?

Is this viral or pyramidal? :p

It is up to you. Smiley

Right! We have enough pyramids already, so I'm going down the viral path... Smiley

So every time I get one I pay 3, it's just a pitty so few have joined so far, I'm already repeating addresses.
1818  Economy / Trading Discussion / Re: Legal Tender on: August 26, 2010, 12:01:19 PM
It is perfectly reasonable to make agreements or contract denominated in other commodities. For example, I can loan you 10 chickens and require 10 chickens to repay the debt. I don't necessarily have to agree to a dollar equivalent value of 10 chickens. If I'm hungry for chicken, I can't eat dollars.

Futures markets operate on this principle.

Legal tender really tends to mean, if someone owed your grandfather $100 from 1920, you can't demand 100 silver dollar coins, $100 in silver certificates, 2 $50 gold pieces or any other form specific form of currency. You have to take FRN if they are offered, else the debt is forfeit.

If I have a debt to you of 10 chickens, and If I were to offer to pay you $50 to settle my chicken debt. (Say the market rate for chickens is $5 each)
If you didn't want to take the $50 and instead continued to demand the chickens, the judge would tell you to take the $50 or give up on the debt..


These chickens, they had lots of sentimental value to me.

It's a sad thing, this society we live in that so easily puts a price tag on our chicken. How can we do that and sleep at night?
1819  Economy / Marketplace / Re: Introducing: The Amazing Anonymous Bitcoin Lottery on: August 26, 2010, 11:59:37 AM

Thanks for the 150, I'm totally going to win it. :-)

Well, it's well deserved if you do. Your help, and that of TTBit has been most refreshing.

But... you do realize that now, with the added 150, the odds are totally on my side, right? :-)
1820  Economy / Marketplace / Re: Introducing: The Amazing Anonymous Bitcoin Lottery on: August 26, 2010, 09:30:04 AM
I guess in my excitement I didn't ever worry about how bad of a deal buying the first tickets is. When there is no pot you are essentially buying a small chance of getting your money back or less. That's fine right now when we buy tickets out of novelty and lack of alternatives, but it will wear off. This leads me to think we need to return all or almost all of the money to users each time. Maybe hold back ~5% each time and let that accumulate or something.

So until I change my mind again (coming soon) I'm in the "pay it all out" camp. This should still cause pots to grow over time since winners will throw back in, and stories of great bit-riches will get spread around.

Lotteries are all about masses. Lots of betters == more for the winners.

I guess I couldn't expect a flood of bets right from the start, so we need to get the word out. I didn't want to just spread the word like wildfire because this is very experimental and I can only cover for so much if things go bad Smiley

But lets get some numbers out: The largest better has 26 BTCs in the draw which is 20% of the total bets, the 2nd and 3rd prize pools are at 28, so that doesn't make it very interesting. First prize is 60, for less than 1% chance of getting it, not very interesting.

I'm guessing a tenfold increase in the bets (so for 1200 total prize pool) things would get interesting. This would only happen if we see a tenfold increase in betting, which at this point is not very much likely, or we get some from the previous draws. I can, and will, make the pool of unclaimed prized blend in to the current pool if everyone really just wants to get a cut and be done with it, but I really think it would be much better to let the prize pool for the next one grow, this all assuming noone gets 1st prize, of course Smiley

With all that, I'm going to bet an extra 150 BTC and any prize I get from that I'll use to bet again on the next draw, just to kick up interest a notch. I will need to make a decision on the unclaimed prize distribution today, so speak up now. I'm still very much biased to moving unclaimed to the next draw as initially planned.
Pages: « 1 ... 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 77 78 79 80 81 82 83 84 85 86 87 88 89 90 [91] 92 93 94 95 96 97 »
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!