Of Notes

Bayesian inference with a Cauchy likelihood via contour integration

1 min read · revised 21 October 2026 · ·

Problem

Setup

Suppose we observe measurements generated by a Cauchy distribution with an unknown location parameter :

The likelihood of one observation is:

We place a Cauchy prior on :

We observe a single measurement:

Our goal is to perform Bayesian inference and predict a future observation ^*$.

Part A: Construct the posterior

Using Bayes' theorem,

  1. Substitute the likelihood and prior.
  2. Express the posterior as a rational function of .
  3. Identify the normalisation constant (D)$.

Do not evaluate the integral yet.

Part B: Compute the evidence using complex analysis

The evidence requires evaluating:

  1. Extend the real variable to ∈ \mathbb{C}$.
  2. Identify the poles of the integrand.
  3. Choose a semicircular contour in the upper half-plane.
  4. Apply the residue theorem to evaluate the real integral.
  5. Use your result to write the fully normalised posterior.

Part C: Posterior predictive inference

Suppose we want to evaluate the predictive density at ^*=-1$.

We use:

  1. Substitute your posterior from Part B.
  2. Express the resulting integral as a rational function.
  3. Identify its poles in the complex plane.
  4. Use the residue theorem again to evaluate it.

Part D: Interpretation

Explain why integrating over is preferable to simply substituting a point estimate into the likelihood when we want to account for parameter uncertainty.

Solution

Part A

Part B

Part C

Part D

/ or Ctrl K
search; empty, it shows notes to revise and lately read
m
mark this note to revise, or unmark it
c
cover maths, proofs and solutions to test yourself
n
uncover the next covered item
y
copy this note’s org-roam link
e
copy this note as markdown, LaTeX kept as TeX
p
the next problem to work; there h hints, s shows the solution, x passes it for today
→ ← j k space
turn the page, when reading in pages
l
on the map, trace the greatest distance, then the longest path
double-click
a formula, to copy its TeX
rest on maths
bind a part of a formula and open the wheel of notes it comes from; scroll or ↑ ↓ widens it, 1–6 goes
?
this card