Monday, February 19, 2018

Hypergeometric

Hypergeometric Distribution

For my article on mana base probabilities presented failure tables to help player build optimal mana bases.

A Multivariate hypergeometric distribution formulate can be thought of like this:
P = ((sA choose rA) * (sB choose rB) * (sC choose rC)) / ( N choose n)
Where:
sA = the number of successes of type A in the population
rA = the required number of successes of type A in the sample
sB = the number of successes of type B in the population
rB = the required number of successes of type B in the sample
sC = the number of failures in the sample (not A or B)
rC = the number of allowed failures in the sample
N = the population size
n = the sample size
"choose" means a binomial coefficient

In a specific case, to find the the probability of drawing exactly one of your 8 blue spells and exactly zero of your 10 blue mana sources in a hand of 7 we can calculate:
P = ((8 choose 1) * (10 choose 0) * (42 choose 6)) / ( 60 choose 7)

To get the the chance of drawing one or more spells and zero lands we have to add the probabilities of getting one, two, three, etc.

For double mana base failures we follow a similar approach, but instead of calculating only the case of zero lands we include the case with one land.

I wrote a simulation to check my tables. I spot checked a variety of results and confirmed their accuracy within a hundredth of a percent. I think my data is correct, though I'm less certain of it's meaning or that I explained it correctly here.

1 comment:

  1. My name is Karina, I'm someone who has lived a life seemingly in the background, I must say this final indignity I have suffered almost too much to endure. You see, I have been sickly and weak since the day I was born and doomed to go through all my life a weakling. I seemed to have always suffered from one illness or another and could never play with the other children as I so desperately wanted to. Mother always made such a big fuss over me, also, making the situation worse as the other boys teased me mercilessly after they saw it. I was browsing  the internet searching on how i could be transformed into a powerful when i came across the email of a man named Lord Mark. who was a VAMPIRE so I told him that I has always dreamed of becoming a  VAMPIRES, All i did was just to follow the procedure that i was been told, and i bet you that procedure I took change my entire life to something i ever desire, freedom, sickness free, pains free, fame, influence, connections and even more that i can. Thanks to Lord Mark. Do you want a life full of interesting things? Do you want to have power and influence over others? To be charming and desirable? To have wealth, health, and longevity? contact the vampires creed today via email: Vampirelord7878@gmail.com

    ReplyDelete