Talk:Wish/@comment-2.10.128.52-20181011015648/@comment-2.10.128.52-20181011213300

Thanks, that link is exactly what I needed! Considering the following:

- The Djinn gives us 5 options to select from. To determine which will be presented to us, he takes the list from WISH.2da and, starting from the top, gives a 50% chance to each item to be selected, until a total of five are selected.

- The Rest option is 10th in the 18 Wisdom list. (Time Stop x2 + Alacrity x2 is 1st, meaning it has 50% chances to show up, making Wish pretty amazing on its own. Though in vanilla BG2 Not-EE Alacrity doesn't seem to happen...)

- We should therefore be able to treat the five first items on the list as five Bernoulli trials identical and independent two to two. So we can apply the Binomial law to find out odds that "slots" remain for the next items on the list. The number of slots remaining can be used as a basis for using Binomial law again, once for each tree branch (representing # of slots available).

- Using this method for as long as necessary, I come up with 7 different probabilities meant to be added up together, finding a final probability of ~28% to get the 10th item, aka Rest.

Do correct me if I made a mistake in reasoning or calculation.

Also tell me if you know of better mathematical tools to figure out the final probability faster.

Regarding Wisdom 10-14, we can see that odds to get a rest is extremely low as the item is at the bottom of the list. For Wisdom 15-17, Rest is 12th. I didn't compute probabilities but it's clearly below 28%.