Bayes factor for the sign of a normal mean

ID: bayes-factor-for-the-sign-of-a-normal-mean

For a random sample with known and prior distribution with , compare to . The prior odds are one by symmetry. Normal-normal conjugacy gives a normal posterior distribution with
Its negative and nonnegative masses are and , where
Since the Bayes factor is the posterior odds divided by the prior odds,
Here is the cumulative distribution function of the standard normal distribution. The ratio decreases with the sample mean. For any threshold , the inequality is equivalent to and hence to
For , the quantile is , and the equivalent posterior probability threshold for is . The symmetry and proper normalization of the two hypothesis-conditional priors are essential to replacing the Bayes factor by the posterior odds directly.

New to topics? Read the docs here!