The Poisson Confidence Interval is a statistical measure used to estimate the population mean (or average) from a sample of data. It is calculated by taking the mean of the sample, subtracting the standard error (1/square root of the sample size), and then adding and subtracting the confidence interval limit (1.96 times the standard error). The result is a range of values that represent the population mean with a certain degree of confidence.
@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;
}
95% Confidence Interval = [7.65393, 23.48962]
function pvalue() {
//get input values
var n = document.getElementById(‘n’).value*1;
var sig = document.getElementById(‘sig’).value*1;
var confOut = sig*100;
var alpha = 1-sig;
//find C.I. boundaries
var lower = 0.5*jStat.chisquare.inv(alpha/2, 2*n);
var upper = 0.5*jStat.chisquare.inv(1-(alpha/2), 2*n-(-2));
document.getElementById(‘confOut’).innerHTML = confOut.toFixed(0);
document.getElementById(‘lower’).innerHTML = lower.toFixed(5);
document.getElementById(‘upper’).innerHTML = upper.toFixed(5);
}