Calcolatore del punteggio t per il valore p
Ipotesi unilaterale o bilaterale?
Livello di significatività
Valore P: 0,08088
Il risultato NON è SIGNIFICATIVO con 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; }