Page 8-15
Applications of lists
This section shows a couple of applications of lists to the calculation of statistics
of a sample. By a sample we understand a list of values, say, {s
1
, s
2
, …, s
n
}.
Suppose that the sample of interest is the list
{1, 5, 3, 1, 2, 1, 3, 4, 2, 1}
and that we store it into a variable called S (The screen shot below shows this
action in ALG mode, however, the procedure in RPN mode is very similar. Just
keep in mind that in RPN mode you place the arguments of functions in the
stack before activating the function):
Harmonic mean of a list
This is a small enough sample that we can count on the screen the number of
elements (n=10). For a larger list, we can use function SIZE to obtain that
number, e.g.,
Suppose that we want to calculate the harmonic mean of the sample, defined
as
.
To calculate this value we can follow this procedure:
1. Apply function INV () to list S:
2. Apply function ΣLIST() to the resulting list in1.
⎟
⎟
⎠
⎞
⎜
⎜
⎝
⎛
+++
==
∑
=
n
n
k
n
h
sssn
sn
s
1111
1
11
1
21
1
L