Applications of lists, Harmonic mean of a list, Applications of lists ,8-15 – HP 50g Graphing Calculator User Manual

Page 272: Harmonic mean of a list ,8-15

Advertising
background image

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

s

s

s

n

s

n

s

1

1

1

1

1

1

1

1

2

1

1

L

Advertising