Basic Statistics in a Spreadsheet

The following instructions should work in most modern spreadsheet applications (for example, OpenOffice or Excel) since functions tend to be named the same (Open Office Function List, Excel Statistical Functions). If something doesn't seem to work as advertised, check out the help documentation of your particular application.

Mean, Median, and Standard Deviation

All of the single variable statistics are computed in the same way. As an example we will compute the average of the list of 13 numbers stored in column A. To do this we would type =AVERAGE(A1:A13) into a blank cell in the spreadsheet and then press return (the colon ":" could be read "to" as in "A1 to A13"). Upon pressing return the text shown in the cell will be the average of the selected cells. If any of the data points are altered, the average will automatically be updated to show the new average.

Typing '=AVERAGE(A1:A13)' into a cell        The result of typing '=AVERAGE(A1:A13)' into a cell

Note: Your spreadsheet application may not highlight the A1:A13 cells.

FunctionDescriptionExampleResult
AVERAGEArithmetic Mean
\bar x=\frac{\sum x_i}{n}
=AVERAGE(A1:A13)2.85
MINMinimum value=MIN(A1:A13)1
MAXMaximum value=MAX(A1:A13)5
MEDIANMedian=MEDIAN(A1:A13)3
STDEVSample Standard Deviation
s=\sqrt{\frac{\sum (x_i-\bar x)^2}{n-1}}
=STDEV(A1:A13)1.21
STDEVPPopulation Standard Deviation
\sigma=\sqrt{\frac{\sum (x_i-\bar x)^2}{n}}
=STDEVP(A1:A13)1.17

"Results" given above are from the data shown in the above pictures.

Correlation

Correlation can also be computed, however now we need to input another list of values. The function name is typically "CORREL" and each list of cells needs to be separated by either a semi-colon ";" or a comma ",", depending on your spreadsheet application (OpenOffice requires a semi-colon =CORREL(A1:A13;B1:B13) while Excel requires a comma =CORREL(A1:A13,B1:B13)).

Typing '=CORREL(A1:A13;B1:B13)' into a cell        The result of typing '=CORREL(A1:A13;B1:B13)' into a cell