Author Topic: Hypergeometric Calculator  (Read 2225 times)

Offline Master KChief

  • Trade Count: (+9)
  • Hero Member
  • *****
  • Posts: 6963
  • Greatness, at any cost.
    • -
    • North Central Region
    • GameStop
Hypergeometric Calculator
« on: September 12, 2013, 11:38:48 PM »
0
This tool is useful for determining the probability of drawing a certain type of card or cards in your opening hand:

http://stattrek.com/online-calculator/hypergeometric.aspx

Using an example:

56 card deck with 7 lost souls. What is the probability of drawing a lost soul on your opening draw 8?

Population size: 56 (56 card deck)
Number of successes in population: 7 (7 lost souls in deck)
Sample size: 8 (opening hand of 8 drawn cards)
Number of successes in sample: 1 (drawing 1 lost soul in your opening hand)

Hit calculate:

The probability we're looking for is the very last line, so the odds of drawing 1 lost soul on your d8 from a 56 card deck is 68.2%. The probability of drawing 2 lost souls is 25.9%, 3 lost souls 5.2%, so on so forth.

This tool can be very helpful in a variety of ways for determining the probability of drawing certain cards from your deck, thus knowing the consistency of it. However I do not yet know what the first 4 greyed out lines mean after hitting calculate...perhaps a math buff can explain. Enjoy.
"If it weren't for people with bad decision making skills, I'd have to get a real job." - Reynad

Offline ChristianSoldier

  • Trade Count: (0)
  • Hero Member
  • *****
  • Posts: 1613
    • -
    • North Central Region
Re: Hypergeometric Calculator
« Reply #1 on: September 12, 2013, 11:54:47 PM »
+1
If I'm understanding you correctly, then the greyed out lines are:

The first line is the probability of getting the number you inputted for X
The second one is the probability of getting less than X
The third one is the probability of getting less than or equal to X
The fourth one is the probability of getting more than X
The fifth one is the probability of getting more than or equal to X

X is the number of successes, which for a hand is the number of copies you get.

Finally I want to say that this program is slightly inaccurate for Redemption since Lost Souls don't take up draws (you replace them) and that makes it somewhat more complex to get the actual probabilities.
If you are reading this signature, thank a physicist.

Offline Master KChief

  • Trade Count: (+9)
  • Hero Member
  • *****
  • Posts: 6963
  • Greatness, at any cost.
    • -
    • North Central Region
    • GameStop
Re: Hypergeometric Calculator
« Reply #2 on: September 12, 2013, 11:59:00 PM »
0
Finally I want to say that this program is slightly inaccurate for Redemption since Lost Souls don't take up draws (you replace them) and that makes it somewhat more complex to get the actual probabilities.

In that case, using the previous example, could you calculate the probabilities at 49 population size (7 less representing the souls being replaced)?
"If it weren't for people with bad decision making skills, I'd have to get a real job." - Reynad

Offline ChristianSoldier

  • Trade Count: (0)
  • Hero Member
  • *****
  • Posts: 1613
    • -
    • North Central Region
Re: Hypergeometric Calculator
« Reply #3 on: September 13, 2013, 12:06:52 AM »
0
Finally I want to say that this program is slightly inaccurate for Redemption since Lost Souls don't take up draws (you replace them) and that makes it somewhat more complex to get the actual probabilities.

In that case, using the previous example, could you calculate the probabilities at 49 population size (7 less representing the souls being replaced)?

I'm thinking it will work, but I'm not sure.
If you are reading this signature, thank a physicist.

Offline EmJayBee83

  • Tournament Host
  • Trade Count: (+1)
  • *****
  • Posts: 5486
  • Ha! It's funny because the squirrel gets dead.
    • -
    • East Central Region
    • mjb Games
Re: Hypergeometric Calculator
« Reply #4 on: September 13, 2013, 12:33:54 AM »
+2
Finally I want to say that this program is slightly inaccurate for Redemption since Lost Souls don't take up draws (you replace them) and that makes it somewhat more complex to get the actual probabilities.

In that case, using the previous example, could you calculate the probabilities at 49 population size (7 less representing the souls being replaced)?
This approach would work for everything except lost souls. Calculating various lost soul count probabilities would be a tad more complicated.
« Last Edit: September 13, 2013, 12:39:18 AM by EmJayBee83 »

Offline Professoralstad

  • Tournament Host, Redemption Elder
  • Trade Count: (+47)
  • Hero Member
  • *****
  • Posts: 10841
  • Everything is Awesome!
    • -
    • North Central Region
Re: Hypergeometric Calculator
« Reply #5 on: September 13, 2013, 11:23:25 AM »
+1
To find the probability of drawing an arbitrary number of LSs in the opening hand (including redraws):

First start with the probability of drawing 0 LSs. This can be done by using the program, putting the deck size as the population size, putting the number of successes as #LS, the sample size as 8, and the number of successes as 0. In MKCs example of a 56 card deck with 7 LS, this is 0.317 (31.7%)

The probability of drawing exactly 1 LS, you start with the probability of drawing exactly 1 LS in the first 8. For this you can use the calculator as MKC mentioned, with number of successes = 0. Then multiply that by the probability that the top card is not an LS (which is going to be 42/48 in the 56 card example), since out of 48 remaining cards, there are 6 LSs, and 42 non-LSs. In the example, 0.423 is the probability that exactly 1 LS is in the first 8, and multiplying that by 42/48 (.875). .423*.875=.370 = 37%

Now it starts tricky. For the probability of drawing exactly 2 LSs, you either have to draw 1 LS in the original 8, have the top card be an LS, and have the next card not be an LS, or you have to draw 2 LS in the original 8, and have both the next two cards not be LSs. For the first case, it will be .423*.125*42/47=.047 (4.7%). In the second case, we start with the calculator and #successes in sample = 2 (.207), and multiply that by 43/48*42/47 (probability that top card is a non-LS AND that next card is a non LS). This is .166 (16.6%) thus the probability of drawing exactly 2 LSs = 4.7+16.6 = 21.3%

Possibilities 3-7 get decidedly more complicated (but also more rare, as based on the previous calculations, the probability of drawing 0, 1 or 2 LSs is ~90%. I could probably come up with an Excel spreadsheet at some point, I suppose, if anyone is interested.
Press 1 for more options.

 


SimplePortal 2.3.3 © 2008-2010, SimplePortal