DOI: 10.5281/zenodo.5552916
title: SatoshiDice

description: Approaching the Hot Hand with a Cool Head <br> Datasets used in "Approaching the Hot Hand with a Cool Head" by Máté Csaba Sándor and Barna Bakó of Corvinus University of Budapest ## Producing the gambling dataset This dataset can be reproduced using the script set (<strong>4</strong>) To run the scripts use R version 4.0.0 (2020-04-24) and the package versions as specified with groundhog. The gambling dataset was created using the transactional data extractable from the bitcoin ledger. To make things simpler we have been using a formated dataset from (<strong>2</strong>), available currently at (<strong>3</strong>). To replicate the dataset, use the script <em>data_preparation_bitcoin.R</em>. Do not run the script as it is, since first you need to download the appropriate datasets from above which takes considerable time. Also there are some variables that need manual adjustment, to avoid overwhelming most desktop computers. ## The prepared gambling dataset The 5 samples contain bets placed at SatoshiDice, a bitcoin based gambling site that was the most popular of such in 2012-14 and using the public information available in the ledger and the user contraction approximation of (<strong>2</strong>). A representative archive state of the game and the website is available at (<strong>5</strong>). The columns featured in the dataset (names in the first row): * <em>txID_bet</em>: transaction ID of the bet transaction [integer]<br> * <em>txID_answer:</em> transaction ID of the answer transaction [integer]<br> * <em>time_bet:</em> unixtime of the bet transaction based on the block timestamp [integer]<br> * <em>timediff</em>: seconds between the timestamp of the bet transaction and the answer based on the block timestamps [integer]<br> * <em>addrID_player</em>: initiating address ID of the bet transaction, the ID gathered from the dataset, not resolved to true bitcoin IDs, in case of multiple addresses, the top address is used, since this is the one SatoshiDice uses for the return transaction by default [integer]<br> * <em>addrID_game:</em> reciving/initiating address ID of the bet/answer transaction, the ID gathered from the dataset, not resolved to true bitcoin IDs [integer]<br> * <em>bet_value:</em> bet ammount (or wager) measured in satoshis (1 satoshi = 1e-8 BTC) [integer]<br> * <em>answer_value</em>: answer ammount (or payout) measured in satoshis (1 satoshi = 1e-8 BTC), 1e5 satoshis [integer]<br> * <em>PriceMultiplier</em>: price multipliers (or odds) of the games the bets are put on, these are used to decide on status using bet and answer value, the multipliers are mined from (<strong>5</strong>) [double]<br> * <em>status</em>: "win"/"loss" tags calculated using bet and answer value combined with odds [string]<br> * <em>userID</em>: assigned based on addrID_player using the methods and dataset of (<strong>2</strong>) [integer] With questions about the dataset or the process, contact Máté Sándor (sampaat at gmail dot com). 1. Sándor, M.C., Bakó, B (2021). Approaching the Hot Hand with a Cool Head (Working paper)<br> 2. Kondor, D., Pósfai, M., Csabai, I., & Vattay, G. (2014). Do the rich get richer? An empirical analysis of the BitCoin transaction network. PLoS ONE, 9(2), e86197. https://doi.org/10.1371/journal.pone.0086197<br> 3. https://doi.org/10.5061/dryad.qz612jmcf<br> 4. https://github.com/sampaat/hot_hand_cold_head<br> 5. https://web.archive.org/web/20130403062213/http://www.satoshidice.com/