# POLE(the software is from https://github.com/ftegenfe/polepp ) problem

**URL:** <https://root-forum.cern.ch/t/pole-the-software-is-from-https-github-com-ftegenfe-polepp-problem/54642>\
**Category:** ROOT\
**Tags:** root\
**Created:** [April 26, 2023, 8:17am UTC](https://root-forum.cern.ch/t/pole-the-software-is-from-https-github-com-ftegenfe-polepp-problem/54642 "2023-04-26T08:17:57Z")\
**Posts on this page:** 16\
**Page:** 1

<div class="post-metadata">

**Author:** ![huyuxiang](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/h/9de0a6/32.png) [@huyuxiang](https://root-forum.cern.ch/u/huyuxiang)\
**Post date:** [April 26, 2023, 8:17am UTC](https://root-forum.cern.ch/t/pole-the-software-is-from-https-github-com-ftegenfe-polepp-problem/54642/1 "2023-04-26T08:17:57Z")

</div>

Hi !  
I am having some problems of [POLE](https://github.com/ftegenfe/polepp) software. This [POLE is from the github](https://github.com/ftegenfe/polepp) and the developer is from CERN, so I want to ask some helps in root forum.

This [POLE](https://github.com/ftegenfe/polepp) used to calculate upper limit by using Feldman-cousins methods including systematic error, thus I download the [POLE](https://github.com/ftegenfe/polepp) and try to run some example:

the run command is:

```auto
./polelim --effmeas 1 --effdist 2 --effsigma 0.42 --bkgmeas 0.59 --bkgdist 2 --bkgsigma 0.38 --nobs 0

```

however the output is below, it seems wrong but I can’t know how to solve this problem:

```auto
 *Test hyp. step : 0.01
----------------------------------------------
 Step mu_best : 0.01
 Max N, mu_best : 20
----------------------------------------------
 Method : FHC2
----------------------------------------------
 Verbosity : 0
----------------------------------------------
 Parameters prefixed with a * above are not   
 relevant for limit calculations.
==============================================

------------------------------------------------------
- ERROR: limit calculation failed. Possible causes:
- 1. binary search threshold too large
- 2. precision threshold too large
- 3. precision in integrations (eff,bkg) not sufficient
- 4. poisson table insufficient precision -> try without tabulated poisson
- 5. minimum probability in belt calculation too large; min = 0.001
-
- Results:
- probability (should be ~ CL) = 0.890523
- lower lim norm (should be ~1) = 1
- upper lim norm (ditto) = 0.89976
- lower lim = 0
- upper lim = 2.29625
------------------------------------------------------

```

So is there someone is familiar with this [POLE](https://github.com/ftegenfe/polepp) software or someone who knows the developer of [POLE](https://github.com/ftegenfe/polepp): **Fredrik Tegenfeldt**? I want to contact with the developer and fix the problem as soon as possible. Thanks !

---

<div class="post-metadata">

**Author:** ![Wile\_E\_Coyote](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/wile_e_coyote/32/12417_2.png) [@Wile\_E\_Coyote](https://root-forum.cern.ch/u/Wile_E_Coyote)\
**Post date:** [April 26, 2023, 8:50am UTC](https://root-forum.cern.ch/t/pole-the-software-is-from-https-github-com-ftegenfe-polepp-problem/54642/2 "2023-04-26T08:50:51Z")

</div>

You could try an email: “Fredrik.Tegenfeldt\_at\_cern.ch”

---

<div class="post-metadata">

**Author:** ![huyuxiang](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/h/9de0a6/32.png) [@huyuxiang](https://root-forum.cern.ch/u/huyuxiang)\
**Post date:** [April 26, 2023, 8:57am UTC](https://root-forum.cern.ch/t/pole-the-software-is-from-https-github-com-ftegenfe-polepp-problem/54642/3 "2023-04-26T08:57:44Z")

</div>

Thank you！ I have sent an email to Fredrik last week but I don’t receive a reply

---

<div class="post-metadata">

**Author:** ![couet](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/couet/32/12037_2.png) [@couet](https://root-forum.cern.ch/u/couet)\
**Post date:** [April 26, 2023, 9:14am UTC](https://root-forum.cern.ch/t/pole-the-software-is-from-https-github-com-ftegenfe-polepp-problem/54642/4 "2023-04-26T09:14:28Z")

</div>

Welcome to the ROOT forum.

> [@huyuxiang](#):
>
> This POLE is from the github

Try to post an issue on the github repository.  
BTW which github repository are you talking about?

---

<div class="post-metadata">

**Author:** ![bellenot](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/bellenot/32/29217_2.png) [@bellenot](https://root-forum.cern.ch/u/bellenot)\
**Post date:** [April 26, 2023, 9:22am UTC](https://root-forum.cern.ch/t/pole-the-software-is-from-https-github-com-ftegenfe-polepp-problem/54642/5 "2023-04-26T09:22:32Z")

</div>

There is no Fredrik Tegenfeldt in the CERN Directory…

---

<div class="post-metadata">

**Author:** ![huyuxiang](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/h/9de0a6/32.png) [@huyuxiang](https://root-forum.cern.ch/u/huyuxiang)\
**Post date:** [April 26, 2023, 10:08am UTC](https://root-forum.cern.ch/t/pole-the-software-is-from-https-github-com-ftegenfe-polepp-problem/54642/6 "2023-04-26T10:08:33Z")

</div>

[The repositry website is in the title of this topic.](https://github.com/ftegenfe/polepp)

---

<div class="post-metadata">

**Author:** ![huyuxiang](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/h/9de0a6/32.png) [@huyuxiang](https://root-forum.cern.ch/u/huyuxiang)\
**Post date:** [April 26, 2023, 10:11am UTC](https://root-forum.cern.ch/t/pole-the-software-is-from-https-github-com-ftegenfe-polepp-problem/54642/7 "2023-04-26T10:11:38Z")

</div>

Ok, it a little bit wired 🥸 😅

---

<div class="post-metadata">

**Author:** ![couet](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/couet/32/12037_2.png) [@couet](https://root-forum.cern.ch/u/couet)\
**Post date:** [April 26, 2023, 10:37am UTC](https://root-forum.cern.ch/t/pole-the-software-is-from-https-github-com-ftegenfe-polepp-problem/54642/8 "2023-04-26T10:37:25Z")

</div>

I see the repo now, Sorry I missed it in the title.  
As @bellenot said this guy is not visible in the CERN directory.  
Maybe he was 17 years ago when the software was created.  
I think the best is to post an issue on the GitHub repository.

---

<div class="post-metadata">

**Author:** ![huyuxiang](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/h/9de0a6/32.png) [@huyuxiang](https://root-forum.cern.ch/u/huyuxiang)\
**Post date:** [April 26, 2023, 12:15pm UTC](https://root-forum.cern.ch/t/pole-the-software-is-from-https-github-com-ftegenfe-polepp-problem/54642/9 "2023-04-26T12:15:16Z")

</div>

Ok thank you  
I can try

---

<div class="post-metadata">

**Author:** ![huyuxiang](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/h/9de0a6/32.png) [@huyuxiang](https://root-forum.cern.ch/u/huyuxiang)\
**Post date:** [April 26, 2023, 12:36pm UTC](https://root-forum.cern.ch/t/pole-the-software-is-from-https-github-com-ftegenfe-polepp-problem/54642/10 "2023-04-26T12:36:31Z")

</div>

BTW, is there something like this in ROOT to calculate the upper limit including systematic error using Feldman-cousins methods ?

---

<div class="post-metadata">

**Author:** ![couet](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/couet/32/12037_2.png) [@couet](https://root-forum.cern.ch/u/couet)\
**Post date:** [April 26, 2023, 12:39pm UTC](https://root-forum.cern.ch/t/pole-the-software-is-from-https-github-com-ftegenfe-polepp-problem/54642/11 "2023-04-26T12:39:59Z")

</div>

[https://root-forum.cern.ch/search?q=Feldman-cousins](https://root-forum.cern.ch/search?q=Feldman-cousins)  
[https://root.cern/doc/master/FeldmanCousins\_8C.html](https://root.cern/doc/master/FeldmanCousins_8C.html)

> [@Upperlimit calculation in root by Feldman-Cousins approach](https://root-forum.cern.ch/t/upperlimit-calculation-in-root-by-feldman-cousins-approach/37092):
>
> Hi, FeldmanCousins.C macro calculates upper limit on signal yield using the Feldman-Cousins approach. This follows the paper PRD V57 #7, p3873-3889. But this macro doesn’t take care of systematic uncertainty. Is it possible for someone to include systematic uncertainty in upper limit estimation using this FeldmanCousins.C macro? There is a paper PHYSICAL REVIEW D 67, 012002 2003 that describes the upper limit by Feldman-Cousins approach including systematic uncertainty on background yield als…

> [@Feldman-Cousins of 2 POI Method](https://root-forum.cern.ch/t/feldman-cousins-of-2-poi-method/49002):
>
> Dear Experts, I am working in the B Physics group. In our analysis, we want to perform a study on “Feldman- Cousins of two POI methods”, for which I am not sure about the technical procedure. Could you please point me to some reference or provide some skeleton code for the above method, so that I could start working on it?

etc…

---

<div class="post-metadata">

**Author:** ![Debashis\_sahoo](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/debashis_sahoo/32/22290_2.png) [@Debashis\_sahoo](https://root-forum.cern.ch/u/Debashis_sahoo)\
**Post date:** [April 26, 2023, 5:12pm UTC](https://root-forum.cern.ch/t/pole-the-software-is-from-https-github-com-ftegenfe-polepp-problem/54642/12 "2023-04-26T17:12:22Z")

</div>

Hi,

I was somehow tagged in this post.

Try using the simple case:

./polelim --effdist 0 --bkgdist 2 --bkgmeas 1 --bkgsigma 0.38 --nobs 0

If one reduces the bkgmeas to 0.9 then that error comes and also similar by increasing the bkgsigma…  
It seems to be a bug, try varying the values slightly then for such small values the UL won’t change drastically. You can follow the the paper: Phys.Rev.D57:3873-3889,1998 for comparing the UL values…

---

<div class="post-metadata">

**Author:** ![huyuxiang](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/h/9de0a6/32.png) [@huyuxiang](https://root-forum.cern.ch/u/huyuxiang)\
**Post date:** [April 27, 2023, 2:25am UTC](https://root-forum.cern.ch/t/pole-the-software-is-from-https-github-com-ftegenfe-polepp-problem/54642/13 "2023-04-27T02:25:54Z")

</div>

Yes. POLE can work well just in some values. However it seems nobody maintain POLE program now thus I decided use RooStat to calculate upperLimit. Thank you

---

<div class="post-metadata">

**Author:** ![huyuxiang](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/h/9de0a6/32.png) [@huyuxiang](https://root-forum.cern.ch/u/huyuxiang)\
**Post date:** [April 27, 2023, 2:27am UTC](https://root-forum.cern.ch/t/pole-the-software-is-from-https-github-com-ftegenfe-polepp-problem/54642/14 "2023-04-27T02:27:05Z")

</div>

Thank you for your advise. I am trying to use RooStat. Thank you very much.

---

<div class="post-metadata">

**Author:** ![huyuxiang](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/h/9de0a6/32.png) [@huyuxiang](https://root-forum.cern.ch/u/huyuxiang)\
**Post date:** [May 8, 2023, 12:32pm UTC](https://root-forum.cern.ch/t/pole-the-software-is-from-https-github-com-ftegenfe-polepp-problem/54642/15 "2023-05-08T12:32:29Z")

</div>

Hi Debashis!  
I meet some problems with Standardhypotestinvdemon.C. Below is a post:  
[https://root-forum.cern.ch/t/problem-of-using-standardhypotestinvdemo-c-to-calculate-the-upper-limit-of-feldman-cousins-methods/54745](https://root-forum.cern.ch/t/problem-of-using-standardhypotestinvdemo-c-to-calculate-the-upper-limit-of-feldman-cousins-methods/54745)

Could you help me ? Thank you very much

---

<div class="post-metadata">

**Author:** ![system](https://root-forum.cern.ch/uploads/default/original/3X/e/f/efe4f24398fd8ffeb76bccb6ecc46d9d9c003376.png) [@system](https://root-forum.cern.ch/u/system)\
**Post date:** [May 22, 2023, 12:33pm UTC](https://root-forum.cern.ch/t/pole-the-software-is-from-https-github-com-ftegenfe-polepp-problem/54642/16 "2023-05-22T12:33:25Z")

</div>

Closed on May 22, 2023, 12:33pm UTC

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.
