NORMAL DISTRIBUTION - REVERSE
By Daniel Wedge
Will work on an fx-9700, but may not work on other models
*** MORE GAMES AND PROGRAMS FOR CASIO CALCULATORS AT ***
******** http://www.student.uwa.edu.au/~wedgey *********
Determines the Z-score for a certain probability to 2dp.
Will have inaccuracies as probability approaches 0 and 1.
This is the equivalent of searching for the p-value in
the tables book.
Before entering code, make sure that you have set CAL MODE
to SD (via shift+menu, F3)
SYMBOLS USED:
< less than
> greater than
<= less than or equal to
>= greater than or equal to
-> assign key (beneath cos)
=> and/then (shift+prog, jump, F1)
@ display key (triangle in program)
P( is ALWAYS the P( key under PQR menu! (Not P and open bracket!)
SIZE: 224 bytes
'NORMAL
-3.5 -> Z
Lbl 0
"PROB (0 B
B<=0 => Goto 0
B>=1 => Goto 0
Lbl 1
P(Z)>B => Goto 2 P( is under PQR menu
.5+Z -> Z
Goto 1
Lbl 2
P(Z)** Goto 3
Z-.1 -> Z
Goto 2
Lbl 3
P(Z)>B => Goto 4
Z+.01 -> Z
Goto 3
Lbl 4
P(Z)**** Goto 5
Z-.001 -> Z
Goto 4
Lbl 5
Int (100Z)/100 -> Z
Z>0 => Z+.01 -> Y
Z<=0 => Z-.01 -> Y
Abs (P(Y)-B) -> U
Abs (P(Z)-B) -> V
U<=V => Y -> Z
"Z SCORE:":Z@**