▦ TI-89 TitaniumONLINE CALCULATOR
TI-89 TITANIUM

Hypergeometric Probability on a TI-89

The TI-89 doesn't have a "hypergeometric pdf" item in the Stats/List Editor's distribution menu, unlike the binomial. You calculate it from the formula with nCr(, which takes one line:

P(X=k) = (C(K, k)C(N−K, n−k))⁄(C(N, n))

nCr( is in 2ND 5 (MATH) → Probability.

These steps are for the TI-89 / TI-89 Titanium handheld, from Texas Instruments' guidebook. Our online TI-89 calculator runs PedroM, a free third-party operating system and doesn't support every handheld feature. Handheld only — not available in the online edition: its statistics functions (for example mean(, stdDev( and binomPdf() come back unevaluated.

Exactly k successes

Example: you draw 5 cards from a standard 52-card deck. What's the probability of exactly 2 aces?

Here N = 52, K = 4, n = 5, k = 2.

nCr(4,2)*nCr(48,3)/nCr(52,5)

Result: 2162/54145. Press ♦ ENTER for 0.039930, about 4%.

At most / at least k

Add up the individual probabilities with Σ( (F3 (Calc)):

Question Entry Result
P(at most 1 ace) Σ(nCr(4,k)*nCr(48,5-k)/nCr(52,5),k,0,1) ≈ 0.958316
P(at least 1 ace) 1-nCr(48,5)/nCr(52,5) ≈ 0.341158

"At least 1" is easiest as 1 minus "none".

Make a reusable function

Define it once (F4 → Define):

Define hyp(nn,kk,n,k)=nCr(kk,k)*nCr(nn-kk,n-k)/nCr(nn,n)
hyp(52,4,5,2)          → 2162/54145

We use nn and kk because the TI-89 treats upper- and lower-case letters as the same variable, so N and n can't both be used.

Mean and variance

E(X) = nK⁄N,    Var(X) = nK⁄N·(N−K)⁄N·(N−n)⁄(N−1)

For the cards: E(X) = 5 · 4⁄52 ≈ 0.3846 aces per hand.

Hypergeometric or binomial?

Hypergeometric Binomial
Sampling without replacement with replacement, or independent trials
Probability of success changes as you draw constant
On the TI-89 nCr( formula F5 Distr → Binomial Pdf/Cdf

When the population is much bigger than the sample (a common rule of thumb is more than 20 times), the binomial is a close approximation. See binomial distribution.

Common problems

Problem Fix
Answer shows as a fraction press ♦ ENTER for a decimal
Result is 0 or unexpected check the order of arguments: k can't be larger than K, and n − k can't be larger than N − K
Using N and n in a function the TI-89 doesn't distinguish case. Use different names
Σ( result includes k k has a stored value. 2ND F1 → Clear a–z

Related tutorials