Giter VIP home page Giter VIP logo

Comments (6)

WolfgangWaltenberger avatar WolfgangWaltenberger commented on August 19, 2024

in hypothesis_testing/test_statistics.py:219
when the numbers are negative, you clip them to zero. however, you then divide by the zero.
if you anyhow clip them, perhaps it is wiser to sqrt_qmuA to a very small positive number?

from spey.

WolfgangWaltenberger avatar WolfgangWaltenberger commented on August 19, 2024

ah sorry, didnt read the next line in the code

from spey.

jackaraz avatar jackaraz commented on August 19, 2024

Hi @WolfgangWaltenberger, I'm not sure if it can lead to a bias because $\log\mathcal{L} - \log\mathcal{L}_{min}$ ratio can get very small, so I don't want to clip above that value also I'm afraid to lead to a numeric instability with too small values as well, for instance, I can set it to 1e-100 but not sure if it will create any problems within NumPy. I'm testing these options at the moment.

from spey.

WolfgangWaltenberger avatar WolfgangWaltenberger commented on August 19, 2024

Will be testing also. My mindset would be, we want these pathological cases to rightly inform the bracketing and optimization algorithms. Like if the right end of the bracket is absurdly far right, the bracketing algorithm must be able to deduce this from the numbers. If the optimizer got lost in an extreme part of parameter space, the gradient must point it back into a sensible part of parameter space.

from spey.

WolfgangWaltenberger avatar WolfgangWaltenberger commented on August 19, 2024

I cannot find your motivation for true_divide ( qmu_ - qmuA, 2.0 * sqrt_qmuA ), is this described in the CCGV paper?
Anyways, if qmuA is zero, then we do not have to worry about the centrality parameter, evidently everything is nicely
centralised. so we only need sqrt_qmu as the final test statistic, no?

from spey.

jackaraz avatar jackaraz commented on August 19, 2024

Hi @WolfgangWaltenberger, this is eq. 66 in CCGV.

from spey.

Related Issues (15)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.