E-Code

One-variable statistics of a list — a TI-89 Titanium program

By E-Code · updated

STATS89 is a TI-89 BASIC program for the TI-89 Titanium. Type a list like {2,4,4,5}; shows n, mean, median, sample standard deviation, min and max.

What it asks for and what it shows

It asks for 1 value at its prompts. In the example below it shows N, MEAN, MEDIAN, SX, MIN, MAX.

Example run

One of its oracle test cases: “textbook set {2,4,4,4,5,5,7,9}”. The inputs are typed in order, and the results are the values the case expects on the screen.

StepValue
You enter
Input 1{2,4,4,4,5,5,7,9}
The screen shows
N=8
MEAN=5
MEDIAN=4.5
SX=2.138089935
MIN=2
MAX=9

How it's checked

4 test cases, each checked against an independent method. Replayed key by key on a virtual TI-89 Titanium, they make 27 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