Skip to content
Get started

Bayes factor after nine heads

A coin lands heads 99 times in 1010 flips. Compare two hypotheses:

  • H0H_0: the coin is fair, p=1/2p=1/2;
  • H1H_1: pp is unknown, with a Uniform(0,1)(0,1) prior.

Compute the Bayes factor P(data∣H0)/P(data∣H1)P(\text{data}\mid H_0)/P(\text{data}\mid H_1). Give a decimal to 3 places.

Show hints (2)+
  1. Under H1H_1, integrate p9(1−p)p^9(1-p) against the uniform prior.
  2. With a uniform prior, each head count from 0 to 10 has probability 1/111/11.

Answer

Reveal answer →

0.107 (± 0.001)

Create a free account to see the full worked solution and track your progress.

Interview format: Market Maker, Systematic & Data-Driven Trading

Related questions