I am trying to calculate average number of turns it will take to win in Catan given a set of hexes.
I am stuck at calculating probability of an event given n rolls. Each roll uses 2 6-sided dice. You get a resource if a specific number(sum of 2 dice) rolls.
Say probability of getting an ore in a dice roll is x/36 and probability of getting a wheat is y/36 You can construct a city if you have accumulated 3 ore and 2 wheat.
What is the probability of being able to construct a city after (n) dice roles assuming no loss/discarding of resources?
If $n\leqslant 4$, then clearly it's $0$. Otherwise, note that $$ \mathbb{P}(\text{exactly i ores and j wheat after n rolls})=\frac{n!}{i!j!(n-i-j)!}\left(\frac{x}{36}\right)^i\left(\frac{y}{36}\right)^j\left(1-\frac{x+y}{36}\right)^{n-i-j} $$ as you can have different orders of occurrence of the ores/wheat/neither in your $n$ dice rolls, each of which occurs with probability $\left(\frac{x}{36}\right)^i\left(\frac{y}{36}\right)^j\left(1-\frac{x+y}{36}\right)^{n-i-j}$. Now consider when we will be unable to construct a city. If we have $0,1,2$ ores at the end, then regardless of number of wheat we can't; if we have $3,4,\ldots,n-1$ ores, then we are unable to only if we have $0,1$ wheat; if we have exactly $n$ ores, then we are again unable to. Any other combination of wheat/ore amount will be fine, so the desired probability becomes (unless I have missed something) $$ 1-\sum_{i=0}^{2}\sum_{j=0}^{n-i}\mathbb{P}(\text{i ores} \cap \text{j wheat})-\sum_{i=3}^{n-1}\sum_{j=0}^{1}\mathbb{P}(\text{i ores} \cap \text{j wheat})-\mathbb{P}\text{(n ores} \cap \text{0 wheat)} $$ which is possible to compute given $n,x,y$.