One-sample z test and interval (dialog) — a TI-89 Titanium program
ZTEST89 is a TI-89 BASIC program for the TI-89 Titanium. Two dialog boxes take the hypothesized mean, sigma, sample mean, n and alpha, and a drop-down picks the alternative; shows z, the p-value, the decision, and the confidence interval — normal tails by your own Define'd function.
What it asks for and what it shows
It asks for 5 values at its prompts, after you pick option 1 from its menu. In the example below it shows Z, P, Z*, CI LOW, CI HIGH, DO NOT REJECT H0.
Example run
One of its oracle test cases: “two-sided, not significant”. The inputs are typed in order, and the results are the values the case expects on the screen.
| Step | Value |
|---|---|
| You enter | |
| Menu | option 1 |
| Input 1 | 100 |
| Input 2 | 10 |
| Input 3 | 102.5 |
| Input 4 | 36 |
| Input 5 | 0.05 |
| The screen shows | |
Z= | 1.5 |
P= | 0.1336144025 |
Z*= | 1.959963985 |
CI LOW= | 99.23339336 |
CI HIGH= | 105.7666066 |
| Text | DO NOT REJECT H0 |
How it's checked
6 test cases, each checked against an independent method. Replayed key by key on a virtual TI-89 Titanium, they make 43 checks.
How E-Code checks every program
Run it or put it on your calculator
- Open the library in the TI-89 Titanium calculator and pick “One-sample z test and interval (dialog)” (ZTEST89).
- Put it on your own calculator with a computer and a USB cable, or type it in by hand.
Related programs
- t test and interval from data lists
- Chi-square goodness of fit
- Binomial (exact), Poisson and normal probabilities
- One-variable statistics of a list
- Linear regression with exact slope
All TI-89 Titanium statistics programs · All TI-89 Titanium programs