Spey plugin for the likelihood presented in arXiv:2007.08526 where the likelihood has been implemented in the following form:
Here
This plug-in can be installed from GitHub with pip
python -m pip install --upgrade "git+https://github.com/SpeysideHEP/example-neutrino"
or from the locally cloned repository
python -m pip install --upgrade .
command and can be used with spey.get_backend("example.neutrino")
function.
import numpy as np
import spey
pdf_wrapper = spey.get_backend("example.neutrino")
stat_model = pdf_wrapper(
signal_yields=np.array([12, 15]),
background_yields=np.array([50.0, 48.0]),
data=np.array([38, 47]),
absolute_uncertainties=np.array([11, 25]),
)
stat_model.likelihood()
# 7.42425771274118