Sub topic 14
Mean and Standard Deviation with the Statistics Worksheet
This chapter assumes you have read the earlier chapters on the 2ND, SET, and QUIT keys and on clearing registers. It also assumes you know the difference between a sample and a population in basic statistics.
What the worksheet does
The statistics worksheet stores a list of data points. It then reports summary values for that list. For one list of numbers (one variable) it gives you:
- n, the number of observations
- X̄, the arithmetic mean
- Sx, the sample standard deviation (divides by n − 1)
- σx, the population standard deviation (divides by n)
- ΣX and ΣX², the sum and the sum of squares
In the CFA curriculum you will use it for mean return, standard deviation of returns, and sometimes variance. Entering a list once and reading several results is faster and less error-prone than chaining key presses on the main screen.
Step 1: Open the worksheet and clear it
Press 2ND then STAT. The first line shows the current calculation type, such as LIN or 1-V. Data from an earlier problem stays in memory until you clear it, so clear it before you enter anything new. Old values left in the list are the most common cause of a wrong n and wrong results.
2ND STAT
2ND CLR WORKCLR WORK clears the data of the worksheet you are viewing. It does not touch your TVM registers or your format settings.
Step 2: Choose one-variable mode
Cash flow and TVM problems use the 2ND SET key only for toggles. In the statistics worksheet, 2ND SET steps through the calculation types: LIN, Ln, EXP, PWR, and 1-V. For mean and standard deviation of a single list, you want 1-V.
2ND STAT
2ND SET (repeat until the display shows 1-V)The other types fit a line or curve to pairs of X and Y values. You rarely need them for the exam's descriptive statistics.
Step 3: Enter the data
Press the down arrow to reach X01. Type a value and press ENTER. Then press the down arrow to move on. In 1-V mode, each X entry is followed by a Y01-style line. For one-variable data, this line is the frequency of that X value, and it defaults to 1. If every value appears once, press the down arrow twice after each ENTER, once to pass the frequency line and once to reach the next X.
Here is a worked example with five observations: 4, 8, 6, 10, 12.
2ND STAT
2ND SET (until 1-V)
2ND CLR WORK
(down arrow) 4 ENTER (down arrow) (down arrow)
8 ENTER (down arrow) (down arrow)
6 ENTER (down arrow) (down arrow)
10 ENTER (down arrow) (down arrow)
12 ENTERStep 4: Read the results
Scroll with the up or down arrow until the display shows n. Then step through the results, one line per press.
| Display | Meaning | Value for 4, 8, 6, 10, 12 |
|---|---|---|
| n | Number of observations | 5 |
| X̄ | Mean | 8 |
| Sx | Sample standard deviation | 3.1623 |
| σx | Population standard deviation | 2.8284 |
| ΣX | Sum of X | 40 |
| ΣX² | Sum of squared X | 360 |
You can check the results by hand. The deviations from the mean 8 are −4, 0, −2, 2, 4. Their squares sum to 16 + 0 + 4 + 4 + 16 = 40. The sample variance is 40 / 4 = 10, and its square root is 3.1623. The population variance is 40 / 5 = 8, and its square root is 2.8284.
Press 2ND QUIT when you finish.
Using frequencies
When a value repeats, you can enter it once with a frequency instead of typing it many times. Suppose the value 10 occurs twice and the value 20 occurs three times.
2ND STAT
2ND SET (until 1-V)
2ND CLR WORK
(down arrow) 10 ENTER (down arrow) 2 ENTER (down arrow)
20 ENTER (down arrow) 3 ENTERScroll to the results. You should see n = 5 and X̄ = 16. The deviations are −6 (twice) and 4 (three times), so the sum of squares is 72 + 48 = 120. The sample standard deviation is the square root of 120 / 4 = 30, or 5.4772. The population standard deviation is the square root of 120 / 5 = 24, or 4.8990.
Always check n first. If n is not the count you expect, a stale entry or a mistyped frequency is in the list.
Getting variance and other derived values
The worksheet does not display variance. Square the standard deviation yourself after you read it.
- Scroll to
Sx, then leave the worksheet with 2ND QUIT. The value is still on the main screen only if you have not pressed another key, so press the squaring key (x²) right away. - To keep the value, store it with STO and recall it later with RCL. The memory registers chapter covers this.
- With the decimal setting from earlier chapters at nine places, squaring the displayed Sx gives 10.000000000 for the first example. Squaring a rounded hand-copied value would not.
Editing and deleting data
You can fix a mistake without starting over.
- Press the arrow keys to move to the wrong
Xentry. - Type the correct value and press ENTER. It replaces the old one.
- To remove an observation, move to it and press 2ND DEL. The later entries shift up.
- To insert an observation before the current one, press 2ND INS and type the new value.
If you are unsure what the list contains, scroll through it from X01 and read each entry. Doing this during the exam takes a few seconds and is cheaper than a wrong answer.
Common errors
| Symptom | Likely cause | Fix |
|---|---|---|
| `n` is larger than expected | Old data was never cleared | 2ND CLR WORK, then re-enter |
| Results look like a line fit, or you see extra variables | Mode is `LIN` instead of `1-V` | 2ND SET until `1-V` shows |
| Mean is correct but the standard deviation is slightly off | Read σx when the problem needs Sx | Use Sx for samples |
| Every observation counted twice | Typed a frequency of 2 by accident | Check the `Y` line of each entry |
| Result changes after you clear the cash flow worksheet | Confusing worksheets | Clear each worksheet you used, once, at the start |
Practice
Exercise
A set of monthly returns is 2, 4, 6, 8. Describe the key sequence to get the sample standard deviation, and give the value.
Show answer
Press 2ND STAT, then 2ND SET until 1-V shows, then 2ND CLR WORK. Press the down arrow, enter 2 ENTER, and press the down arrow twice. Repeat for 4, 6, and 8. Scroll to the results and check that n = 5 is not shown. n must be 4, and the mean is 5. The deviations from the mean are −3, −1, 1, 3, whose squares sum to 20. Sx is the square root of 20 / 3, which is about 2.5820. The population value σx is the square root of 20 / 4, about 2.2361, and is the wrong line for a sample.
Exercise
You enter the values 10 (frequency 2) and 20 (frequency 3) and the display shows n = 2. What went wrong, and how do you fix it?
Show answer
The frequency was not stored on the Y line. The worksheet counted each X value once. Move to the Y line after each X entry, type the frequency, and press ENTER. When n shows 5, the frequencies are in. The mean should then be 16.