@import url(‘https://fonts.googleapis.com/css?family=Droid+Serif|Raleway’);
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 {
padding-left: 30px;
color: black;
font-family: Raleway;
max-width: 550px;
margin: 25px auto;
line-height: 1.75;
}
#words_summary {
padding-left: 70px;
color: black;
font-family: Raleway;
max-width: 550px;
margin: 25px auto;
line-height: 1.75;
}
#words_text {
color: black;
font-family: Raleway;
max-width: 550px;
margin: 25px auto;
line-height: 1.75;
}
#words_text_area {
display:inline-block;
color: black;
font-family: Raleway;
max-width: 550px;
margin: 25px auto;
line-height: 1.75;
padding-left: 100px;
}
#calcTitle {
text-align: center;
font-size: 20px;
margin-bottom: 0px;
font-family: ‘Raleway’, serif;
}
#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_table label, #words_table input {
display: inline-block;
vertical-align: baseline;
width: 350px;
}
#buttonCalc {
border: 1px solid;
border-radius: 10px;
margin-top: 20px;
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_table {
color: black;
font-family: Raleway;
max-width: 350px;
margin: 25px auto;
line-height: 1.75;
}
#summary_table {
color: black;
font-family: Raleway;
max-width: 550px;
margin: 25px auto;
line-height: 1.75;
padding-left: 20px;
}
.label_radio {
text-align: center;
}
td, tr, th {
border: 1px solid black;
}
table {
border-collapse: collapse;
}
td, th {
min-width: 50px;
height: 21px;
}
.label_radio {
text-align: center;
}
#text_area_input {
padding-left: 35%;
float: left;
}
svg:not(:root) {
overflow: visible;
}
The interquartile range, often abbreviated IQR, is the difference between the 25th percentile (Q1) and the 75th percentile (Q3) in a dataset.
We often declare an observation to be an outlier in a dataset if it has a value 1.5 times greater than the IQR or 1.5 times less than the IQR.
This calculator uses this formula to automatically calculate the upper and lower outlier boundaries for a given dataset.
Simply enter the list of the comma-separated values for the dataset, then click the “Calculate” button:
Dataset values:
Q1: 5.0000
Q3: 20.7500
Interquartile Range: 15.7500
Lower Outlier Boundary: -18.6250
Upper Outlier Boundary: 44.3750
function calc() {
var x = document.getElementById(‘x’).value.split(‘,’).map(Number);
var Q1 = jStat.percentile(x, 0.25);
var Q3 = jStat.percentile(x, 0.75);
var IQR = Q3-Q1;
var lower = Q1 – 1.5*IQR;
var upper = Q3-(-1.5*IQR);
document.getElementById(‘Q1’).innerHTML = Q1.toFixed(4);
document.getElementById(‘Q3’).innerHTML = Q3.toFixed(4);
document.getElementById(‘IQR’).innerHTML = IQR.toFixed(4);
document.getElementById(‘lower’).innerHTML = lower.toFixed(4);
document.getElementById(‘upper’).innerHTML = upper.toFixed(4);
} //end calc function