Z-score-schwellenwertrechner
Ein Wert von 91,57941 muss größer als 95 % aller anderen Werte sein.
Erläuterung:
z = (X – μ) / σ
1,64485 = (X – 85 ) / 4
1,64485 * 4 = X – 85
( 1,64485 * 4 ) + 85 =
91,57941 =
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); }