Калькулятор F-распределения

@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; text-align: center; 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; }

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 label, input {

display: inline-block; vertical-align: baseline; width: 350px; }

#button { 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 */ }

#button:hover { background-color: #f6f6f6; border: 1px solid black; } Степени свободы 1 (числитель) Степени свободы 2 (знаменатель) F-значение Уровень вероятности

function fPVALUE() {

//get input values var df1 = document.getElementById('df1').value*1; var df2 = document.getElementById('df2').value*1; var f = document.getElementById('f').value*1; var prob = document.getElementById('prob').value;

//assign probabilities to variable names var exactProb = 1-jStat.centralF.cdf(f, df1, df2);

//output probabilities document.getElementsByName('prob')[0].value = exactProb.toFixed(5); }

function fCRITICALVALUE() {

//get input values var df1 = document.getElementById('df1').value*1; var df2 = document.getElementById('df2').value*1; var f = document.getElementById('f').value*1; var prob = document.getElementById('prob').value;

//assign probabilities to variable names var exactF = jStat.centralF.inv((1-prob), df1, df2);

//output probabilities document.getElementsByName('f')[0].value = exactF.toFixed(5); }