How to calculate Poisson Distribution ?

Poisson Distribution is a statistical formula used to calculate the probability of a given number of events occurring in a fixed interval of time or space. It is used to predict the probability of rare events occurring when the average rate of occurrence is known. To calculate Poisson Distribution, the average rate of occurrence (μ) and the number of events (x) are used in the equation P(x) = e-(μ) (μ)x / x! where e is Euler’s number (2.71828).

@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.
This calculator finds Poisson probabilities associated with a provided Poisson mean and a value for a random variable.

P(X = 3): 0.14037

P(X < 3): 0.12465

P(X ≤ 3): 0.26503

P(X > 3): 0.73497

P(X ≥ 3): 0.87535

function calc() {

//get input values
var x = +document.getElementById(‘x’).value;
var mean = +document.getElementById(‘mean’).value;

//calculate SE
var exactP = jStat.poisson.pdf(x, mean);
var lessP = jStat.poisson.cdf(x-1, mean);
var lessEP = jStat.poisson.cdf(x, mean);
var greatP = 1-jStat.poisson.cdf(x, mean);
var greatEP = 1-jStat.poisson.cdf(x-1, mean);

//output probabilities
document.getElementById(‘exactP’).innerHTML = exactP.toFixed(5);
document.getElementById(‘lessP’).innerHTML = lessP.toFixed(5);
document.getElementById(‘lessEP’).innerHTML = lessEP.toFixed(5);
document.getElementById(‘greatP’).innerHTML = greatP.toFixed(5);
document.getElementById(‘greatEP’).innerHTML = greatEP.toFixed(5);

document.getElementById(‘x1’).innerHTML = x;
document.getElementById(‘x2’).innerHTML = x;
document.getElementById(‘x3’).innerHTML = x;
document.getElementById(‘x4’).innerHTML = x;
document.getElementById(‘x5’).innerHTML = x;
}

x