
VARIATIONAL DISTANCEName:
Given that the points have been converted to a set of N counts, X_{k}, this formula becomes
The value of the variational distance is between zero and one with values closer to zero indicating greater consistency with a uniform distribution.
<SUBSET/EXCEPT/FOR qualification> where <y> is the response variable; <a> is a parameter where the computed statistic is saved; and where the <SUBSET/EXCEPT/FOR qualification> is optional.
LET A = VARIATIONAL DISTANCE Y1 SUBSET TAG > 2
LET Y = UNIFORM RANDOM NUMBERS FOR I = 1 1 1000 LET Y1 X1 = BINNED Y LET Y = NORMAL RANDOM NUMBERS FOR I = 1 1 1000 LET Y2 X2 = BINNED Y LET Y = EXPONENTIAL RANDOM NUMBERS FOR I = 1 1 1000 LET Y3 X3 = BINNED Y LET A1 = VARIATIONAL DISTANCE Y1 LET A2 = VARIATIONAL DISTANCE Y2 LET A3 = VARIATIONAL DISTANCE Y3 SET WRITE DECIMALS 4 PRINT A1 A2 A3The following output is generated. PARAMETERS AND CONSTANTS A1  0.0747 A2  0.3924 A3  0.5181  
Privacy
Policy/Security Notice
NIST is an agency of the U.S. Commerce Department.
Date created: 06/23/2014 