Skip to content

Fitting a CMS-style simplified likelihood from the full likelihood #1528

Discussion options

You must be logged in to vote

Hi, I will try to start by answering some questions. This model

import pyhf

model = pyhf.simplemodels.uncorrelated_background(
    signal=[1.0, 1.0], bkg=[30.0, 52.0], bkg_uncertainty=[3.0, 7.0]
)

implements the following:

  • a free-floating normalization factor (a normfactor modifier),
  • a Poisson-constrained shapesys modifier that looks like a single modifier but actually has two parameters, and implements two Poisson terms, each term acting on only one bin each.

We can have a look at these parameters:

for p in model.config.par_order:
    param_set = model.config.param_set(p)
    print(f"parameter:   {p}")
    print(f"  param set: {param_set}")
    print(f"  # of par.: {param_set.n_parame…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by WolfgangWaltenberger
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants