# Calculating Single-variable Statistics - HP 50g User Manual

Graphing calculator.

Store the program in a variable called LXC. After storing this program in RPN
mode you can also use it in ALG mode.
To store a column vector into variable DAT use function STO , available
through the catalog (‚N), e.g., STO (ANS(1)) in ALG mode.
Example 1 – Using the program LXC, defined above, create a column vector
using the following data: 2.1 1.2 3.1 4.5 2.3 1.1 2.3 1.5 1.6 2.2
1.2 2.5.
In RPG mode, type in the data in a list:
{2.1 1.2 3.1 4.5 2.3 1.1 2.3 1.5 1.6 2.2 1.2 2.5 } `@LXC
Use function STO to store the data into DAT.
Note: You can also enter statistical data by launching a statistics application
(such as Single-var, Frequencies or Summary stats) and
pressing #EDIT#. This launches the Matrix Writer. Enter the data as you usually
do. In this case, when you exit the Matrix Writer, the data you have entered is
automatically saved in DAT.

## Calculating single-variable statistics

Assuming that the single data set was stored as a column vector in variable
DAT. To access the different STAT programs, press ‚Ù. Press @@@OK@@ to
select
There will be available to you an input form labeled
1. Single-var..
, with the data currently in your DAT variable
SINGLE-VARIABLE STATISTICS
listed in the form as a vector. Since you only have one column, the field
Col:
should have the value 1 in front of it. The
field determines whether you
Type
are working with a sample or a population, the default setting is
Sample
. Move
the cursor to the horizontal line preceding the fields
,
,
,
Mean
Std Dev
Variance
, pressing the @ CHK@ soft menu key to select those
,
,
Total
Maximum
Minimum
measures that you want as output of this program. When ready, press @@@OK@@.
The selected values will be listed, appropriately labeled, in the screen of your
calculator.
Page 18-2