Skip to content

[RF][RS] Add SetSigned() option to the AsymptoticCalculator - #23105

Merged
guitargeek merged 1 commit into
root-project:masterfrom
guitargeek:asymptotic-calculator-signed
Aug 21, 2026
Merged

[RF][RS] Add SetSigned() option to the AsymptoticCalculator#23105
guitargeek merged 1 commit into
root-project:masterfrom
guitargeek:asymptotic-calculator-signed

Conversation

@guitargeek

Copy link
Copy Markdown
Contributor

Support the signed (uncapped) profile likelihood test statistic in the AsymptoticCalculator, like the ProfileLikelihoodTestStat already does with its SetSigned() option.

When enabled and the best fit value of the POI is beyond the tested value, the sign of sqrt(qmu) is flipped instead of setting qmu to zero. The Gaussian asymptotic formulae remain valid in that case, so the p-values continue above 0.5 instead of saturating there. The qtilde corrections are skipped when the sign was flipped, because they apply when the best fit value is at the POI boundary, which is on the other side of the tested value.

The option has no effect for the two-sided test statistics, whose asymptotic p-value formulae are symmetric in the sign.

Closes ROOT-8257.

🤖 Done with the help of AI

@guitargeek guitargeek self-assigned this Aug 19, 2026
@guitargeek
guitargeek force-pushed the asymptotic-calculator-signed branch from df080ea to 847b9d6 Compare August 19, 2026 10:39
@guitargeek guitargeek changed the title [RooStats] Add SetSigned() option to the AsymptoticCalculator [RF][RS] Add SetSigned() option to the AsymptoticCalculator Aug 19, 2026
Support the signed (uncapped) profile likelihood test statistic in the
AsymptoticCalculator, like the ProfileLikelihoodTestStat already does
with its SetSigned() option.

When enabled and the best fit value of the POI is beyond the tested
value, the sign of sqrt(qmu) is flipped instead of setting qmu to zero.
The Gaussian asymptotic formulae remain valid in that case, so the
p-values continue above 0.5 instead of saturating there. The qtilde
corrections are skipped when the sign was flipped, because they apply
when the best fit value is at the POI boundary, which is on the other
side of the tested value.

The option has no effect for the two-sided test statistics, whose
asymptotic p-value formulae are symmetric in the sign.

Closes [ROOT-8257](https://its.cern.ch/jira/browse/ROOT-8257).

🤖 Done with the help of AI
@guitargeek
guitargeek force-pushed the asymptotic-calculator-signed branch from 847b9d6 to 72d935c Compare August 19, 2026 10:40
@github-actions

Copy link
Copy Markdown

Test Results

    23 files      23 suites   3d 17h 10m 0s ⏱️
 3 856 tests  3 855 ✅ 0 💤 1 ❌
79 483 runs  79 481 ✅ 1 💤 1 ❌

For more details on these failures, see this check.

Results for commit 72d935c.

@guitargeek
guitargeek merged commit 6cd63f1 into root-project:master Aug 21, 2026
32 of 34 checks passed
@guitargeek
guitargeek deleted the asymptotic-calculator-signed branch August 21, 2026 13:56

@lmoneta lmoneta left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants