Chi-Square Tests on a TI-89
The TI-89 Titanium has two chi-square tests in the Stats/List Editor app, under F6 (Tests):
- Chi2 GOF: goodness of fit, comparing observed counts with expected counts.
- Chi2 2-way: test of independence (or homogeneity) for a two-way table.
These steps are for the TI-89 / TI-89 Titanium handheld, from Texas Instruments' documentation. Our online TI-89 calculator runs PedroM, a free third-party operating system and doesn't support every handheld feature. The Stats/List Editor is a Texas Instruments app, so it may not be available online.
Goodness of fit (Chi2 GOF)
Example: a die is rolled 60 times. Is it fair?
| Face | 1 | 2 | 3 | 4 | 5 | 6 |
|---|---|---|---|---|---|---|
| Observed | 8 | 12 | 9 | 11 | 6 | 14 |
| Expected | 10 | 10 | 10 | 10 | 10 | 10 |
- APPS → Stats/List Editor.
- Enter the observed counts in list1 and the expected counts in list2.
- 2ND F1 (F6 Tests) → Chi2 GOF.
- Observed List:
list1. Expected List:list2. Deg of Freedom, df:5(categories − 1). - Press ENTER.
| Output | Value |
|---|---|
| χ² | 4.2 |
| P Value | 0.520995 |
| df | 5 |
Since p ≈ 0.52 > 0.05, there's no evidence the die is unfair.
Expected counts from proportions: if the null hypothesis gives proportions instead of counts, fill list2 with a formula: put the proportions in list3 and set list2 = sum(list1)*list3 from the list editor.
Test of independence (Chi2 2-way)
Example: is preference independent of group?
| Prefers A | Prefers B | |
|---|---|---|
| Group 1 | 20 | 30 |
| Group 2 | 30 | 20 |
- Store the table as a matrix on the Home screen:
[20,30;30,20]→obs. See entering matrices. - In the Stats/List Editor: F6 (Tests) → Chi2 2-way.
- Observed Mat:
obs. The app can also store the expected counts in a matrix you name. - Press ENTER.
| Output | Value |
|---|---|
| χ² | 4 |
| P Value | 0.0455 |
| df | 1 |
Since p ≈ 0.046 < 0.05, reject independence at the 5% level. The TI-89 doesn't apply Yates' continuity correction, so a textbook that uses it on 2×2 tables will show a slightly different value.
Chi-square probabilities
For a probability from the χ² distribution itself, use F5 (Distr) → Chi-square Cdf with lower and upper bounds and df. See probability distributions.
Check the conditions
All expected counts should be at least 5 (a common rule). For the two-way test, look at the expected matrix the app stores to check.
Common problems
| Problem | Fix |
|---|---|
| Wrong df in GOF | df = number of categories − 1, entered by you |
| "Dimension" error | observed and expected lists must be the same length |
| Expected counts don't add up to the total | they should match the observed total. Recalculate them |
| Two-way test asks for a matrix | enter the table with […;…] and store it first |
Related tutorials
Review note: the handheld keystrokes on this page come from Texas Instruments' TI-89 Titanium guidebook and knowledge base. They have not yet been checked on a physical calculator.