{"id":18617472,"url":"https://github.com/lukasheinrich/histfactory_validation","last_synced_at":"2025-11-03T08:30:26.794Z","repository":{"id":75450594,"uuid":"118643786","full_name":"lukasheinrich/histfactory_validation","owner":"lukasheinrich","description":"validating some standalone python code against HistFactory for some simple models","archived":false,"fork":false,"pushed_at":"2018-01-24T16:34:38.000Z","size":963,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-01-03T11:04:12.112Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Jupyter Notebook","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/lukasheinrich.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-01-23T17:20:34.000Z","updated_at":"2018-01-25T16:37:22.000Z","dependencies_parsed_at":"2023-03-09T15:15:19.420Z","dependency_job_id":null,"html_url":"https://github.com/lukasheinrich/histfactory_validation","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lukasheinrich%2Fhistfactory_validation","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lukasheinrich%2Fhistfactory_validation/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lukasheinrich%2Fhistfactory_validation/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lukasheinrich%2Fhistfactory_validation/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lukasheinrich","download_url":"https://codeload.github.com/lukasheinrich/histfactory_validation/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239412507,"owners_count":19634016,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-07T03:40:44.934Z","updated_at":"2025-11-03T08:30:26.759Z","avatar_url":"https://github.com/lukasheinrich.png","language":"Jupyter Notebook","funding_links":[],"categories":[],"sub_categories":[],"readme":"# histfactory_validation\n\n## This was moved to a proper python package at https://github.com/lukasheinrich/pyhf\n\n\n\nThe HistFactory p.d.f. template is per-se independent of its implementation in ROOT and sometimes, it's useful to be able to run statistical analysis outside\nof ROOT, RooFit, RooStats framework.\n\nThis repo has some example code for multi-bin histogram-based analysis based on the asymptotic formulas of arxiv:1007.1727 and  \n\nSo far it only implements a simple model of\n\n* one signal historgam with a NormFactor\n* one background histogram with a ShapeSys (uncorrelated bin-by-bin uncertainties)\n\nand validates it against output computed from HistFactory workspaces\n\n## A one bin example\n\n```\nnobs = 55, b = 50, db = 7, nom_sig = 10.\n```\n\n\u003cimg src=\"img/manual_1bin_55_50_7.png\" alt=\"manual\" width=\"500\"/\u003e\n\u003cimg src=\"img/hfh_1bin_55_50_7.png\" alt=\"manual\" width=\"500\"/\u003e\n\n\n## A two bin example\n\n```\nbin 1: nobs = 100, b = 100, db = 15., nom_sig = 30.\nbin 2: nobs = 145, b = 150, db = 20., nom_sig = 45.\n```\n\n\u003cimg src=\"img/manual_2_bin_100.0_145.0_100.0_150.0_15.0_20.0_30.0_45.0.png\" alt=\"manual\" width=\"500\"/\u003e\n\u003cimg src=\"img/hfh_2_bin_100.0_145.0_100.0_150.0_15.0_20.0_30.0_45.0.png\" alt=\"manual\" width=\"500\"/\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flukasheinrich%2Fhistfactory_validation","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flukasheinrich%2Fhistfactory_validation","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flukasheinrich%2Fhistfactory_validation/lists"}