Git Product home page Git Product logo

multibeta's Introduction

Multibeta - Tools for multivariate distributions with Beta marginals using the Ali-Mikhail-Haq copula

Contour plot

Beta distributions are used, among other things, priors for Bernoulli and Binomial problems and range/mode/degree of certainty estimate elicitation with human experts.

Joint distributions can be obtained from Beta marginals by assuming independence (the approach I used for Greenbox,which targets parameter elicitation for Excel models), but it isn't trivially true that uncertain parameters should be considered unrelated.

This repository has a few tools for dealing with AMH/Multibeta distributions (afaik not an existing term). The Ali-Mikhail-Haq (AMH) copula is parameterized by a single dependence parameter $\theta \in [-1,1)$ and specializes to the joint-independent distribution for $\theta = 0$.

Included are:

  • Rejection samplers for (generic) univariate, bivariate and multivariate distributions (there seems to be no widely-used, well-maintained Python package for this)
  • Probability density functions for the bivariate and multivariate AMH/beta distributions
  • Sampler (random generator) for the AMH/multibeta distributions
  • A fun 2-d visualization.

This project is mostly written in Hy. It can be trivially imported to Python code once you pip install hy. It may be useful to use hy2py to examine sources if you're unsure of what's going on.

multibeta's People

Contributors

asemic-horizon avatar

Watchers

 avatar  avatar

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.