Giter VIP home page Giter VIP logo

Comments (5)

Planeshifter avatar Planeshifter commented on June 13, 2024 2

@zbenamram As a follow-up, we released the patch for the standalone @stdlib/math-base-special-binomcoef package such that

var binomialTest = require( '@stdlib/stats-binomial-test' );
var out = binomialTest( 5, 20000, {
    alpha: 0.05,
    p: 0.05,
    alternative: 'greater'
});

will now work properly after re-installing dependencies.

from stdlib.

kgryte avatar kgryte commented on June 13, 2024 1

@zbenamram You shouldn't need to wait for a new @stdlib/stats-binomial-test release. As we use semver, the latest version of @stdlib/math-base-special-binomcoef should be pulled in automatically upon a fresh install.

from stdlib.

stdlib-bot avatar stdlib-bot commented on June 13, 2024

👋 Hi there! 👋

And thank you for opening your first issue! We will get back to you shortly. 🏃 💨

from stdlib.

kgryte avatar kgryte commented on June 13, 2024

@zbenamram Thank you for reporting this. We just pushed a patch to @stdlib/math/base/special/binomcoef. The issue ended up being an oversight in a recent refactoring. Namely, we were not leveraging symmetry. Commit: 6125c3c

Using the latest develop and running from the stdlib REPL, binomialTest now behaves as expected:

In [4]: binomialTest( 5, 2000, { 'alpha': 0.05, 'p': 0.05, 'alternative': 'greater' } )
Out[4]: {
  rejected: false,
  alpha: 0.05,
  pValue: 1,
  statistic: 0.0025,
  ci: [ 0.0009855751744273962, 1 ],
  nullValue: 0.05,
  alternative: 'greater',
  method: 'Exact binomial test',
  print: [Function: print]
}

If you are currently using the standalone packages (e.g., @stdlib/stats-binomial-test), the patch will not yet be available. We'll try to publish a new release of both the project and the standalone repositories in short order.

cc @Planeshifter

from stdlib.

zbenamram avatar zbenamram commented on June 13, 2024

Thank you so much! we are leveraging @stdlib/stats-binomial-test so we'll wait for that release. Thanks again for such a quick reply and resolution.

from stdlib.

Related Issues (20)

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.