How do you calculate the mean and standard deviation of
a set of numbers, for example
{1,1,1,2,2,3,5,7,7,7,9,10,10}
The first way is the following:
- Create a list of real numbers and store it in a list variable.
For example
{1,1,1,2,2,3,5,7,7,7,9,10,10}->L1
- Enter [Stat], select "Calc" then "1-Var Stats"
- Enter L1
- The mean is given by x-bar (in this case 5.0)
- There are two standard deviations, the first uses N-1 instead
of N for computing the averages, use the second (in this case
3.374109569).
As an alternative, one can define a "frequency" vector which expresses
how many times an entry is repeated. This is placed in L2
- Create a list of real numbers and frequencies,
and store them as list variables.
{1,2,3,5,7,9,10}->L1
{3,2,1,1,3,1,2}->L2
- Enter [Stat], select "Calc" then "1-Var Stats"
- Enter L1,L2
- The mean is given by x-bar (in this case 5.0)
- There are two standard deviations, the first uses N-1 instead
of N for computing the averages, use the second (in this case
3.374109569).
If you are given the probabilities pi along with the values
xi, use the second method (placing x in L1
and p in L2).