حاسبة عتبة نقاط z
يجب أن تكون القيمة 91.57941 أكبر من 95 % من جميع القيم الأخرى.
توضيح:
ض = (X – μ) / σ
1.64485 = (س – 85 ) / 4
1.64485 * 4 = س – 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); }