Skip to content

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

Open
guitargeek wants to merge 1 commit into
root-project:masterfrom
guitargeek:asymptotic-calculator-signed
Open

[RF][RS] Add SetSigned() option to the AsymptoticCalculator#23105
guitargeek wants to merge 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.

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.

1 participant