Statistics - Worksheet

The Data | Data | Statistics command calculates statistical values for a group of selected numeric cells (see Selecting Cells). Select an entire column or a continuous group of cells in a column to use the Statistics command. If a rectangular block of rows and columns are selected, the Statistics command calculates the statistics for each column separately. A warning message appears if a group of cells cannot be used with the Statistics command. Non-numeric cell entries (empty cells or text) are ignored in statistics calculations.

 

Statistics Dialog

Use the Data | Data | Statistics command in the worksheet to open the Statistics dialog.

 

Click in the box adjacent to the statistics name to compute the statistics for the selected columns.

 

Select Items to Compute

Click in the check boxes next to the statistics options to calculate the statistics for the selected data:

Data Group

The Data group is used to select Sample or Population statistics. Select Sample or Population statistics, depending on whether the data represent a statistical sample or the complete set of all possible members of a population.

 

The Labels in first row option is also specified in the Data group. Check the Labels in first row box if the first row of the selection contains descriptive labels. If this box is checked the label appears at the top of the statistics report for each column.

 

Results Group

The Results group is used to show the statistics report in a window or copy the results to a new location of the worksheet.  Select Show in a window to write the statistics results to a Statistics Results dialog. The results in this dialog can be copied to the clipboard to paste to other locations.

 

Select Copy to worksheet to write the statics report to a new location in the worksheet. Use the Starting in cell box to specify the cell for the upper left corner of the statistics report. If the destination cells contain data, a warning is displayed that data will be overwritten. Click OK to overwrite the data, or click Cancel to set a new Starting in cell location.

 

Data Range to Include Group

The Data range to include contains options to limit the values where the statistics are calculated. Available options are Use all values, Use values inside the range, Use values outside the range, and Use all values except.

 

Use all values

When the Data range to include is set to Use all values, all of the values in the highlighted section are used to calculate the statistics.

 

Use values inside the range

When the Data range to include is set to Use values inside the range, the Minimum >= and Maximum <= options are available. Type in the data values that bracket the range of values where the statistics should be calculated. For instance, if the Minimum >= is set to 15 and the Maximum <= is set to 65, only data points between (and including) 15 and 65 are used for calculating the statistics.

 

Only the values that are inside the range are included in the calculated statistics.

 

Use values outside the range

When the Data range to include is set to Use values outside the range, the Minimum < and Maximum > options are available. Type in the data values that bracket the range of values where the statistics should be calculated. For instance, if the Minimum < is set to 15 and the Maximum > is set to 65, only data points below 15 or greater than 65 (and excluding 15 and 65) are used for calculating the statistics.

 

Only the values that are outside the range are included in the calculated statistics.

 

Use all values except

When the Data range to include is set to Use all values except, the Value and Tolerance options are available. Type in the data value that should be excluded in the Value box. The Tolerance value gives a range on either side of the Value. Everything in the range Value-Tolerance to Value+Tolerance is excluded from the statistics calculation. For instance, if the Value is set to -999 and the Tolerance is set to 10, all values between -1009 and -989 are excluded from the statistics. This means that all values less than -1009 and greater than -989 are included in the statistics calculations.

 

Only the values that are outside the range Value-Tolerance to Value+Tolerance are included in the calculated statistics.

 

The Use all values except option can be used to ignore NoData values. For example, the NoData value for the Concentration.grd sample grid file is the Surfer default NoData value, 1.70141E+38. Two methods exist for ignoring the NoData value. One method is to enter the NoData Value displayed in the Grid | Info report exactly into the Value field of the Statistics dialog. Using Concentration.grd as an example, 1.70141E+38 would be entered into the Value field. Another method is to enter an approximation of the NoData value and a tolerance that will include the actual NoData value while excluding the desired data. Using this method with the previous example, 1.70E+38 is entered into the Value field and 1E+37 is entered into the Tolerance field. Both of these methods result in the Statistics command returning results for the non-NoData  values only.

 

 

See Also

Statistics References

Data Tab Commands