Come analyze HEASARC, IRSA, and MAST data in the cloud! The Fornax Initiative is now welcoming all interested beta users.
Introduction
Most of the discussion in Chapter 2 treats spectral
fitting as a maximum-likelihood problem: find the single parameter
vector
that minimizes the fit statistic
(
), and report confidence intervals from the curvature of the
statistic around that minimum. This chapter covers the alternative
Bayesian view, in which the goal is the full posterior distribution
XSPEC has built up a complete Bayesian toolchain over the last several releases. The user supplies priors with the bayes command and then chooses one of four samplers: Metropolis–Hastings, Goodman–Weare, Hamiltonian Monte Carlo, or nested sampling. The first two are accessed through the chain command; the third and fourth have their own hmc and nest top-level commands. The four are not interchangeable: each is well-suited to a different regime, and the choice has a much larger effect on elapsed time and convergence reliability than any single tuning knob within a given sampler. This chapter explains what each one does, when to reach for it, and which mistakes to avoid.