Library View Topics Framed Contents Revised Topics Previous Topic Next Topic Search Search ResultsPrevious Topic MatchNext Topic Match Notes List Notes Print Download No PDF Handheld DisconnectedHandheld ConnectedHelp

7.1.47 VARIANCE



The VARIANCE function returns a numeric value that approximates the variance of its arguments.

The function type is numeric.


    ___ Format _____________________________________________________________ 
   |                                                                        |
   |                           <____________                                |
   | >>__FUNCTION VARIANCE__(____argument-1_|__)_________________________>< |
   |                                                                        |
   |________________________________________________________________________|
argument-1
Must be class numeric.

The returned value is the approximation of the variance of the argument-1 series.

The returned value is defined as the square of the standard deviation of the argument-1 series. This value is calculated as follows:

  1. The difference between each argument-1 value and the arithmetic mean of the argument-1 series is calculated and squared.
    
    
  2. The values obtained are then added together. This quantity is divided by the number of values in the argument series.
    
    

If the argument-1 series consists of only one value, or if the argument-1 series consists of all variable occurrence data items and the total number of occurrences for all of them is one, the returned value is zero.

Previous Topic Next Topic © Copyright IBM Corp. 1991, 1998

IBM Library Server Copyright 1989, 2005 IBM Corporation. All rights reserved.





Return to library:   z/OS | z/OS.e | TPF | z/VSE | z/VM | IBM Hardware | IBM System z Redbooks
Glossary:   IBM terminology
Publications:   How to order publications
Readers:   Download IBM Library Reader | Download IBM Softcopy Reader | Download Adobe® Acrobat® Reader®
Library management:   Download IBM Softcopy Librarian
Contacts:   Contact z/OS


Adobe, the Adobe logo, Acrobat, the Acrobat logo, and Acrobat Reader are registered trademarks of Adobe Systems incorporated.