TI-83 PROGRAM THAT COMPUTES HYPERGEOMETRIC PROBABILITIES

 

Select PRGM to get the program menu.  Then select NEW to create a new program.  You must first give a program name. 

Comments, which should not be entered into the calculator, are set off by the symbol %.

 

 

 

NAME: HGEOMPDG

: 0 STOà F                           % ‘STOà’ is right above the ‘ON’ button.

: Disp “N”                       % ‘Disp’  is accessed via PRGM, I/O when you are writing or editing a program.

: Input N                           % ‘Input’  is accessed via PRGM, I/O when you are writing or editing a program.

: Disp “N1”

: Input M

: Disp “LTL N”

: Input S

: Disp “K”

: Input K

: M  nCr  K*(N-M)  nCr  (S-K)/N  nCr  S àF                  % ‘nCr’ is found under MATH, PRB (select 3).

: Disp F                                                   % ‘Disp’  is accessed via PRGM, I/O when you are writing or editing a program.

 

 

 

If you want to make changes to your program, select PRGM, move to EDIT, and then select the number of the program you want to edit.

 

Let’s use this program to solve Exercise 6.17a:  Find the probability of getting 7 spades in a bridge hand of 13 cards.    Select the program, enter the population size 52 when prompted for N, enter 13 when prompted for N1, enter 13 when prompted for LTL N, and enter 7 when prompted for K.  This will compute Pr(K = 7) = .0088166008.