Calculateur de seuil de score Z
Une valeur de 91,57941 doit être supérieure à 95 % de toutes les autres valeurs.
Explication:
z = (X – μ) / σ
1,64485 = (X – 85 ) / 4
1,64485 * 4 = X – 85
( 1,64485 * 4 ) + 85 = X
91,57941 = X
function calc() {
//get input degrees of freedom, t-value var x = document.getElementById('x').value*1; var pop_mean = document.getElementById('pop_mean').value*1; var pop_sd = document.getElementById('pop_sd').value*1;
//calculate z-score var z = jStat.normal.inv((x/100), 0, 1); var value = (z*pop_sd) - (-pop_mean);
//output values document.getElementById('value').innerHTML = "" + value.toFixed(5) + ""; document.getElementById('value2').innerHTML = "" + value.toFixed(5) + ""; document.getElementById('x_out').innerHTML = x; document.getElementById('z_out1').innerHTML = z.toFixed(5); document.getElementById('z_out2').innerHTML = z.toFixed(5); document.getElementById('z_out3').innerHTML = z.toFixed(5); document.getElementById('sd_out1').innerHTML = pop_sd.toFixed(5); document.getElementById('sd_out2').innerHTML = pop_sd.toFixed(5); document.getElementById('sd_out3').innerHTML = pop_sd.toFixed(5); document.getElementById('mean_out1').innerHTML = pop_mean.toFixed(5); document.getElementById('mean_out2').innerHTML = pop_mean.toFixed(5); document.getElementById('mean_out3').innerHTML = pop_mean.toFixed(5); }