Giter Site home page Giter Site logo

prob_calc's Introduction

Calculator for Finite Random Variables

Example execution:

Type q to quit.
>let rd20 = U{1,20}
>rd20
{1=0.05, 2=0.05, 3=0.05, 4=0.05, 5=0.05, 6=0.05, 7=0.05, 8=0.05, 9=0.05, 10=0.05, 11=0.05, 12=0.05, 13=0.05, 14=0.05, 15=0.05, 17=0.05, 16=0.05, 19=0.05, 18=0.05, 20=0.05}
>P(rd20<10)
0.44999999999999996
>P(rd20<=10)
0.49999999999999994
>let rd6 = U{1,6}
>let r3d6_5 = rd6+rd6+rd6+5
>rd6_5
null
>r3d6_5
{8=0.004629629629629629, 9=0.013888888888888888, 10=0.027777777777777776, 11=0.046296296296296294, 12=0.06944444444444445, 13=0.09722222222222222, 14=0.11574074074074073, 15=0.125, 17=0.11574074074074074, 16=0.125, 19=0.06944444444444445, 18=0.09722222222222224, 21=0.027777777777777776, 20=0.046296296296296294, 23=0.004629629629629629, 22=0.013888888888888888}
>P(r3d6_5>10)
0.9537037037037036
>q


Suported Random variables operations: +,*,-(unary and binary)

Suported conditions: <,>,<=,>=,=

Suported Random variables: Discrete Uniform (U{a,b}) and constants

prob_calc's People

Contributors

rbarreiro 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.