Scenario In quantitative trading and quantitative research, candidates are frequently evaluated on probability modeling, specifically regarding Conditioning / Information Extraction.
Your Task
You are given a biased coin with an unknown probability of landing Heads (), and of landing Tails (). Formulate an algorithm (the von Neumann extractor) that simulates an exact fair coin (probability for outcome 0 and for outcome 1) using independent tosses of this biased coin. Determine the expected number of biased tosses required to generate one fair bit.
Constraints