Vous êtes sur la page 1sur 10

Descriptive Statistics using Excel May 2011 / Dr Rensvold Open the Excel spreadsheet labeled "Example Database.

" The first page is the Data Dictionary. The Variable Label is the "handle" used for computation. The Variable Name is longer and more descriptive. The Values column shows the numerical values associated with categorical variables. In the data dictionary, you can see that the only categorical (nominal) variable is SEX. The others are ratio variables (why?)

Click on the Data tab, which opens the window with the data.

We wish to obtain descriptive statistics for these data. The next step is to click on the Data tab at the top of the window.

The Data tab presents a number of data-related options. Click on the "Data Analysis" button. If you don't see this button, the data analysis package will have to be installed. See the "Background Information" for a tutorial on how to install it.

Select "Descriptive Statistics" as shown, then click OK. This brings up the Descriptive Statistics dialog, shown below.

The program needs to know where to find the data you want analyzed. Click the icon on the right-hand side of the Input Range window. This takes you back to the Data window.

In the data window, click and drag to highlight the cells containing the data you want to analyze. Be sure to include the top line, which includes the labels. Select the cells from A1 to D13. (Excel writes this "$A$1:$D$13,") to indicate that we're talking about the cell addresses and not the data in the cells, which may change from one iteration of the test to another.)

Click the icon shown above to go back to the Descriptive Statistics dialog.

The "Input Range" window, at the top of the dialog box, now contains the range of data cells. Before clicking OK, make sure: the "Group By" Columns radio button is selected. the "Labels in the First Row" box is checked. the "Summary Statistics" box is checked.

The last decision is where to write the results. You could go into any window and select a range of cells, following a procedure similar to the one used to locate the data. However, let's write the results to a new worksheet. Under Output Options, click the radio button for New Worksheet Ply enter the new worksheet name. Call it Output.

After everything is entered, click OK.

The results appear on a new worksheet entitled "Output." Unfortunately, it's not very legible. We'll fix that. Click on the "Home" tab.

Next, click on "Cells-Format." Under this menu, click on "Autofit Column Width" (not shown).

A portion of the formatted output is shown above. The usefulness of the statistics depends upon the nature of the data. SEX is a categorical variable, with values of either 1 or 2. The "mean" of 1.42 doesn't mean much, except that the data set contains more men (1) than women (2). The standard deviation is equally meaningless. AGE, on the other hand, is a ratio variable. It makes sense to speak of the mean, median, mode (there isn't one, in these data) and the standard deviation. The program also provide the range (maximum value minus minimum value), the minimum value, and the maximum value. "Sum" is the ... well, the sum... of all the values, and in this case indicates that the people we're looking at earned a total of $421,000. "Count" is the number of cases ... in this example, the number of people for whom we have data. Suppose we want statistics for the men only.

In the Data window, click and drag to highlight the columns containing the data. Then, click the Data tab.

In the Data window, click on Sort.

In the Sort dialog box, select the variable on which you wish to sort the data. Notice that it's possible to sort by multiple variables. See Excel "Help" for more information.

The sorted data are shown above. To obtain summary statistics for the men only, repeat the process described at the top; but when locating the data for analysis, select ONLY rows 1 through 8, as shown below.

Vous aimerez peut-être aussi