December 07, 2018

Last Updated 12/09/2018

** See What is my Lottery Ticket Actually Worth? for a more in-depth explanation of expected utility and some analysis from data collected from this tool.**

What is the value of a lottery ticket? Most people will either think of the jackpot, or possibly the expected value, which is the average value you'd get for purchasing every ticket. While the payout of the lottery is usually abysmal compared to its price, there is on factor that puts it in a worse perspective: ** expected utility**.

Expected utility is the expected change of one's net worth as a factor based on an action they take. For example, splitting you wealth in half has the same (but opposite) utility of doubling your wealth. Likewise, betting half your money on 50/50 odds will only multiply it by 1.5 if you win, but decrease it by a factor of 2 if you lose, making that a bad bet.

Of course, this is a gross oversimplification, but it works pretty well for explaining general risk-taking behavior. If you apply the same logic to the lottery, you will not only find that the tickets are a rip-off in terms of expected value, but that the prizes that are well over 10 times someone's net worth take up a lot of that expected value, even though the increase in utility (happiness?) from winning the prize is relatively modest compared to the very low chances of winning it.

At the top, there are a few options on how you want to play the lottery, as well as a few other factors that change the overall outcome of the computations, such as your net worth and how many other tickets are sold (to determine chances that jackpot is split). The application is already pre-filled with common values for the PowerballÂ® lottery in the table below.

You can also add more rows and delete existing rows. When you want to calculate the expected value *and* expected utility, click the button below, and it will update the table. If not much happens and some inputs become pink, that means there is an issue with at least one of those values.

The data in the table can be downloaded using the "Download CSV" button and imported into Microsoft Excel or other software.

Label | Numerator | Denominator | Payout | Is Jackpot? | Value | Value % | Individual Utility |
---|

Below you can choose one variable that you would like to repeat trials over a range. All other variables will use the values given in the inputs above. For example, the default selected is "net worth", and you can see how your net worth affects the expected utility of a lottery ticket from a net worth of $10,000 to $1,000,000, with 8 values in between. Press the "Calculate utility for range" button to activate it.

You can hover over the bars to see a more detailed interpretation of that point. Also, all different trials will be recorded in the background, so you can download the data with "Download All Data". This includes data recorded using the non-range tool above.

I do not record any of the information that is entered on the tables/inputs below. All of the calculations run on your device. Also, it is possible that a large quantity of `tickets * pool_size`

could crash the page for a given probability configuration. A variety of optimizations are made to avoid this, but I currently do not limit the amount of resources used by the client's browser.

I am hoping that the information in this article does not increase gambling behavior (I hope it does the opposite, actually). If you have a gambling problem, please contact NCPG's hotline or another resource.

https://github.com/mcandocia/lottery-ticket-evaluation

A few things you can do if you have a console editor to tweak performance. I may make these options later on:

- You can change the value of
`significance_z`

to a value less than 2.5. Decreasing this will reduce the amount of combinations that the utility algorithm goes through, while slightly reducing accuracy. I recommend keeping this value above 1.

That's all for now.

Tags:

Donate to help cover site maintenance (click/tap for QR):
DOGE: DU6S4aeUUj5rUHJdgQqAqxiMPMEy8JRfKM
RVN: RFMgQtKU16kzTMF9kRNTF8T8GK81go14te