SED navigation bar go to SED home page go to Dataplot home page go to NIST home page SED Home Page SED Staff SED Projects SED Products and Publications Search SED Pages
Dataplot Vol 2 Vol 1

MATRIX GRAND STATISTIC

Name:
    MATRIX GRAND STATSITIC (LET)
Type:
    Let Subcommand
Purpose:
    Compute a user specified statistic for all elements of a matrix.
Description:
    This command allows you to compute one of 50+ statistics for all elements of an array. The most common use of this command is to compute the sum of all elements in the matrix or some location statistic such as the mean or median.
Syntax:
    LET <a> = MATRIX GRAND <stat> <mat>
                            <SUBSET/EXCEPT/FOR qualification>
    where <mat> is a matrix for which the statistic is to be computed;
                <stat> is the desired statistic to compute;
                <a> is a parameter where the resulting statistic is saved;
    and where the <SUBSET/EXCEPT/FOR qualification> is optional.

    The specified statistic can be any of the following:

      MEAN, MIDMEAN, MEDIAN, TRIMMED MEAN, WINSORIZED MEAN,
      GEOMETRIC MEAN, HARMONIC MEAN, HODGES LEHMAN,
      BIWEIGHT LOCATION,
      SUM, PRODUCT,
      STANDARD DEVIATION, STANDARD DEVIATION OF MEAN,
      VARIANCE, VARIANCE OF THE MEAN,
      TRIMMED MEAN STANDARD ERROR,
      AVERAGE ABSOLUTE DEVIATION (or AAD),
      MEDIAN ABSOLUTE DEVIATION (or MAD),
      IQ RANGE, BIWEIGHT MIDVARIANCE, BIWEIGHT SCALE,
      PERCENTAGE BEND MIDVARIANCE,
      WINSORIZED VARIANCE, WINSORIZED STANDARD DEVIATION,
      RELATIVE STANDARD DEVIATION, RELATIVE VARIANCE (or
      COEFFICIENT OF VARIATION),
      RANGE, MIDRANGE, MAXIMUM, MINIMUM, EXTREME,
      LOWER HINGE, UPPER HINGE, LOWER QUARTILE, UPPER QUARTILE,
      <FIRST/SECOND/THIRD/FOURTH/FIFTH/SIXTH/SEVENTH/EIGHTH/ NINTH/TENTH> DECILE,
      PERCENTILE, QUANTILE, QUANTILE STANDARD ERROR,
      SKEWNESS, KURTOSIS, NORMAL PPCC,
      AUTOCORRELATION, AUTOCOVARIANCE,
      SINE FREQUENCY, SINE AMPLITUDE,
      CP, CPK, CNPK, CPM, CC,
      EXPECTED LOSS, PERCENT DEFECTIVE,
      TAGUCHI SN0 (or SN), TAGUCHI SN+ (or SNL),
      TAGUCHI SN- (or SNS), TAGUCHI SN00 (or SN2)
Examples:
    LET A = MATRIX GRAND MEAN M
    LET A = MATRIX GRAND MEDIAN M
    LET A = MATRIX GRAND SD M
Note:
    Matrices can be created with the READ MATRIX, CREATE MATRIX, and MATRIX DEFINITION commands. Enter HELP MATRIX DEFINITION, HELP READ MATRIX, and HELP CREATE MATRIX for details.
Note:
    Row and column statistics for a matrix can be computed using the MATRIX ROW STATISTIC and MATRIX COLUMN STATISTIC commands. Enter HELP MATRIX ROW STATISTIC and HELP MATRIX COLUMN STATISTIC for details.

    Statistics for equi-sized sub-matrices of the original matrix can be computed with the MATRIX PARTITION STATISTIC command. Enter HELP MATRIX PARTITION STATISTIC for details.

Default:
    None
Synonyms:
    MATRIX MEAN is a synonym for MATRIX GRAND MEAN
    MATRIX SUM is a synonym for MATRIX GRAND SUM
Related Commands:
    MATRIX COLUMN STATISTIC = Compute column statistics for a matrix.
    MATRIX ROW STATISTIC = Compute row statistics for a matrix.
    MATRIX PARTITION STATISTIC = Compute statistics for equi-sized sub-matrices of a matrix.
    MATRIX COLUMN DIMENSION = Dimension maximum number of columns for Dataplot matrices.
Reference:
    "Applied Multivariate Statistical Analysis", Third Edition, Johnson and Wichern, Prentice-Hall, 1992.
Applications:
    Multivariate Analysis
Implementation Date:
    2005/6
Program:
     
    READ MATRIX DAT M
    1 2 3 4
    5 6 7 8
    9 10 11 12
    13 14 15 16
    END OF DATA
    .
    LET AMEAN = MATRIX GRAND MEAN M
    LET ASD   = MATRIX GRAND SD   M
    SET WRITE DECIMALS 2
    PRINT AMEAN ASD
        

Date created: 6/30/2005
Last updated: 6/30/2005
Please email comments on this WWW page to alan.heckert@nist.gov.