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
sigmadex from the stellar-kinematics analysis. This function attaches the corresponding log-normal prior to thefactorparameter, which is unfrozen as part of the call, and leavesscalefree and unconstrained.scaleandfactorare 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. Profilingfactorat fixedscaleis the standard treatment of this nuisance in a profile-likelihood analysis (Ackermann et al. 2014).- Parameters:
- model
DarkMatterSpectralModel Model whose
factorparameter will get the prior attached.- sigmafloat
Uncertainty on log10 of the astrophysical factor, in dex.
- model
- Returns:
- model
DarkMatterSpectralModel The same model instance, with the prior attached, for chaining.
- model
References
Ackermann et al. (2014), Phys. Rev. D 89, 042001