J. Turner (jct@nadn.navy.mil) 27 March 1996
Go to USNA homepage.
Go to SM230 home page.
Go to SM230 syllabus.
The TI85 has the capacity to store variables and programs. Variables as you would expect are single letters that store a value. A program can display a value, and it can also store values in variables. Programs can have descriptive names.
Warning: If you use a variable name inside a program, then the old value of that variable will be lost.
The program described here will be called ZCDF. It computes the cumulative normal distribution function. Using this program will eliminate the need for tables of normal probabilities when taking tests and working homework problems.
A listing of the program is presented first. It is followed by directions for typing the program. If you are familiar with programming a TI85, then you may type the program without reference to the directions.
You may store this program in any program location. When you press the PRGM button and select EDIT you will be asked for a name. Type ZCDF.
PROGRAM: ZCDF
:Prompt M
:Prompt S
:Prompt X
:fnInt(e^(-T^2/2)/sqrt(2*pi),T,0,(X-M)/S)+.5 STO A
:Disp A
Step by step directions:
Read all these instructions before you begin!
PRGM and select EDIT. Choose
one of the program labels.
ZCDF. Press ENTER.
I/O, and Promp then type "M"
S and X.
STO,
rather press the STO button; the screen will display
an arrow. (See below for more hints.)
QUIT exits the program editor.
Return to beginning of document.
To use this program select it from the PRGM NAMES
menu and press ENTER. The program will prompt the
user for M, the mean and S, the standard deviation, the
standard deviation, and X. The displayed result
is the probability that a normal random variable with parameters
M and S is less than or equal to X.
This displayed value is stored in A, overwriting
anything that you have stored in A. If you have anything
you want stored in A, it should be saved elsewhere
before ZCDF is executed. Also X,
M, and S are used by this procedure
and are changed by it.
PRGM NAMESthen select the program
M=? 0
S=? 1
X=? 1.96
.975002104852
Heights of sailors has a normal distribution with mean 68" and standard deviation 4".
If I make a door opening 75" high, how many sailors can fit through?
M=68
S=4
X=75
.959940843136
In the above example, how high can I make the door opening if I only need to accomodate 80% of sailors?
M=68
S=4
X=70
.691462461274
So try a little higher.
M=68
S=4
X=71.5
.809213047147
So about 71.5" is sufficient.
Return to beginning of document.