@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-top: 15px; 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; }
.label_radio { text-align: center; } т оценка Степени свободы Односторонняя или двусторонняя гипотеза?
Однохвостый Двухвостый Уровень значимости
0,01 0,05 0,10 P-значение: 0,08088
Результат НЕ ЗНАЧИМ при p < 0,05 .
//the following function originated from https://stackoverflow.com/questions/16194730/seeking-a-statistical-javascript-function-to-return-p-value-from-a-z-score/30435852
function getPVALUE() {
//get input degrees of freedom, t-value var df = document.getElementById('df').value*1; var t_input = document.getElementById('t').value*1; var t = Math.abs(t_input);
//calculate p-value var p_value = 1 - jStat.studentt.cdf(t, df);
//get tails input if (document.getElementById('two_tailed').checked) { p_value = p_value * 2; }
//get significance level input var sig_level = ''; if (document.getElementById('one').checked) { sig_level = 0.01; } else if (document.getElementById('five').checked) { sig_level = 0.05; } else { sig_level = 0.10; }
//get significance verdict var sig_verdict = ''; if (p_value < sig_level) { sig_verdict = 'SIGNIFICANT'; } else { sig_verdict = 'NOT SIGNIFICANT'; }
//output values document.getElementById('exactProb').innerHTML = p_value.toFixed(5); document.getElementById('sig_level').innerHTML = sig_level.toFixed(2); document.getElementById('sig_verdict').innerHTML = sig_verdict; }