T スコアから p 値への計算
一方的な仮説か、それとも双方向の仮説か?
重要度
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; }