E-Code

One-sample z test and interval (dialog) — a TI-89 Titanium program

By E-Code · updated

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.

StepValue
You enter
Menuoption 1
Input 1100
Input 210
Input 3102.5
Input 436
Input 50.05
The screen shows
Z=1.5
P=0.1336144025
Z*=1.959963985
CI LOW=99.23339336
CI HIGH=105.7666066
TextDO 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

Related programs

All TI-89 Titanium statistics programs · All TI-89 Titanium programs