Skip to content

Two moons

sbisandbox.benchmarks.twomoons.TwoMoonsBenchmark

Bases: UniformPriorMixin, Benchmark

Two moons benchmark task.

The parameters θR2 are sampled from

θ1U([1,1])
θ2U([1,1])

The data xR2 are generated as follows:

  • Sample the latent variables
αU([π/2,π/2])
rN(μ=0.1,σ=0.01)
  • Define
p=(rcosα+0.25,rsinα)
  • Output
x=p(|θ1+θ2|2,θ1θ22)

The name of the model comes from the shape of the posterior distribution p(θ|x): bimodal with a banana-shaped mass around the modes (a-la a crescent moon).