What is Binomial Distribution Calculator?

A Binomial Distribution Calculator is a tool used to calculate the probability of a certain number of successes in a given number of trials, where each trial has a fixed probability of success. It is based on the Binomial Distribution, which is a statistical model used to calculate the probability of a certain number of successes in a given number of independent trials.

@import url(‘https://fonts.googleapis.com/css?family=Droid+Serif|Raleway’);

.axis–y .domain {
display: none;
}

h1 {
text-align: center;
font-size: 50px;
margin-bottom: 0px;
font-family: ‘Raleway’, serif;
}

p {
color: black;
margin-bottom: 15px;
margin-top: 15px;
font-family: ‘Raleway’, sans-serif;
}

#words {
color: black;
font-family: Raleway;
max-width: 550px;
margin: 25px auto;
line-height: 1.75;
padding-left: 100px;
}

#words_calc {
color: black;
font-family: Raleway;
max-width: 550px;
margin: 25px auto;
line-height: 1.75;
padding-left: 100px;
}

#hr_top {
width: 30%;
margin-bottom: 0px;
border: none;
height: 2px;
color: black;
background-color: black;
}

#hr_bottom {
width: 30%;
margin-top: 15px;
border: none;
height: 2px;
color: black;
background-color: black;
}

#words label, input {
display: inline-block;
vertical-align: baseline;
width: 350px;
}

#buttonCalc {
border: 1px solid;
border-radius: 10px;
margin-top: 20px;
padding: 10px 10px;
cursor: pointer;
outline: none;
background-color: white;
color: black;
font-family: ‘Work Sans’, sans-serif;
border: 1px solid grey;
/* Green */
}

#buttonCalc:hover {
background-color: #f6f6f6;
border: 1px solid black;
}

#words_intro {
color: black;
font-family: Raleway;
max-width: 550px;
margin: 25px auto;
line-height: 1.75;
}

The is one of the most commonly used distributions in statistics.
To find probabilities related to the Binomial distribution, simply fill in the values below and then click the “Calculate” button.

P(X=43) = 0.03007

P(X<43) = 0.06661

P(X≤43) = 0.09667

P(X>43) = 0.90333

P(X≥43) = 0.93339

function pvalue() {

//get input values
var p = document.getElementById(‘p’).value*1;
var n = document.getElementById(‘n’).value*1;
var k = document.getElementById(‘k’).value*1;

//assign probabilities to variable names
var exactProb = jStat.binomial.pdf(k,n,p);
var lessProb = jStat.binomial.cdf(k-1,n,p);
var lessEProb = jStat.binomial.cdf(k,n,p);
var greaterProb = 1-jStat.binomial.cdf(k,n,p);
var greaterEProb = 1-jStat.binomial.cdf(k-1,n,p);

//output probabilities
document.getElementById(‘k1’).innerHTML = k;
document.getElementById(‘k2’).innerHTML = k;
document.getElementById(‘k3’).innerHTML = k;
document.getElementById(‘k4’).innerHTML = k;
document.getElementById(‘k5’).innerHTML = k;

document.getElementById(‘exactProb’).innerHTML = exactProb.toFixed(5);
document.getElementById(‘lessProb’).innerHTML = lessProb.toFixed(5);
document.getElementById(‘lessEProb’).innerHTML = lessEProb.toFixed(5);
document.getElementById(‘greaterProb’).innerHTML = greaterProb.toFixed(5);
document.getElementById(‘greaterEProb’).innerHTML = greaterEProb.toFixed(5);
}

x