add_factor_prior#

gammapy.astro.darkmatter.add_factor_prior(model, sigma)[source]#

Attach a log-normal nuisance prior to the astrophysical factor.

The J/D-factor carries a multiplicative uncertainty of sigma dex from the stellar-kinematics analysis. This function attaches the corresponding log-normal prior to the factor parameter, which is unfrozen as part of the call, and leaves scale free and unconstrained.

scale and factor are exactly degenerate: the predicted flux depends only on their product. That degeneracy is inherent to the measurement, and the prior is what curves the otherwise flat direction. Profiling factor at fixed scale is the standard treatment of this nuisance in a profile-likelihood analysis (Ackermann et al. 2014).

Parameters:
modelDarkMatterSpectralModel

Model whose factor parameter will get the prior attached.

sigmafloat

Uncertainty on log10 of the astrophysical factor, in dex.

Returns:
modelDarkMatterSpectralModel

The same model instance, with the prior attached, for chaining.

References

  • Ackermann et al. (2014), Phys. Rev. D 89, 042001