TartanLlama / secret-hitler-strategies

Unofficial Secret Hitler strategy guide
https://secrethitler.tartanllama.xyz
Other
33 stars 6 forks source link

Add table of probabilities at certain stages in the game #61

Closed 7thsanctum closed 6 years ago

7thsanctum commented 7 years ago

It would be interesting to know different probabilities of certain card draws at different stages. I've been putting in some effort to try and understand them and how different odds stack and affect each other. This might need its own dedicated page since depending on what is played that will affect how you can calculate how likely something is to happen next.

Initially it would be good to know the odds on the draw. For example, drawing a single card from a deck of 17 (where 6 are Liberal and 11 are Fascist) the chance of it being Liberal is 35.3%. However, the chance of AT LEAST one being Liberal jumps up to 75% when you draw 3 times.

I'll sit down and write this up at some point but if anyone has any feedback to ensure my numbers are correct let me know. I originally tried to do it by hand but I'm using this hypergeometric distribution calculator now instead : http://stattrek.com/online-calculator/hypergeometric.aspx

I'll write up a table soon

7thsanctum commented 7 years ago

I've created a table here : https://docs.google.com/spreadsheets/d/1i7PTPCtSM6hDCxXgFCAvw-T7AGpmd2QkHupyO7HjkV0/edit?usp=sharing

My issue now is trying to work out how to display and how to make it most readable. What I was thinking is some kind of lookup table with all the precalculated probabilities. This way if you know the number of cards in the deck you can work out the likelihood of certain scenarios.

davidtwco commented 7 years ago

Hope you don't mind @7thsanctum but I've modified the spreadsheet a little at the link below:

https://docs.google.com/spreadsheets/d/1wUhAEMVIVcONehlhvFlJLL_1fYilVJf8sAGv7XRoANE/edit?usp=sharing

I've set up the second sheet so that you can select the Liberal/Fascist discards and plays for up to five governments and it will figure out the probabilities based on what is left. It doesn't consider reshuffling or anything like that.

Highlighted green sections are where you can adjust.

TartanLlama commented 7 years ago

@7thsanctum are you planning to add your data to the site at some point?

7thsanctum commented 7 years ago

Yes sorry I plan to add this @TartanLlama I've just been pretty busy so I haven't had a chance to sit down and do this. I will get to it ASAP

TartanLlama commented 6 years ago

@7thsanctum maaaaaaaaark

TartanLlama commented 6 years ago

@7thsanctum maaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaark