Master Mathematics.

Quantitative Finance · Hard · Conditional Probability & Bayes · Problem 2

First time level

Suppose you flip a coin that has probability of landing heads on each flip. You flip the coin until you have an equal amount of heads and tails appearing for the first time (of course, after the initial state of for both). For any integer , find the probability that you flip the coin exactly times. The probability can be written as a function . Compute to the nearest ten-thousandth.

Source: QuantQuestions.io