|
|
Dataplot: Random Numbers
Introduction
|
The generation of random numbers in Dataplot is performed
via subcommands under the LET
command. For example,
|
LET Y = NORMAL RUNDOM NUMBERS FOR I = 1 1 100
LET GAMMA = 2.5
Specify Any Needed Shape Parameters
|
The output from the random number generation is always a
variable (never a parameter or function). Random numbers can
be generated from a variety of distributions. Some
distributions represent a family of distributions. In this
case, one or more shape parameters need to be specified (via
the LET command) before generating the random numbers.
|
SEED Command
|
The SEED command is used to specify the seed for the random
number generator.
|
Different Uniform Generators Available
|
Random number generators for non-uniform distributions are
ultimately built on a uniform random number generator.
Dataplot now supports a number of alternatives for the
uniform random number generator. See the
SET RANDOM NUMBER
GENERATOR for details.
|
Location and Scale Parameters
|
Random numbers are generated for the standard form of a
distribution. If random numbers have been generated in the
variable Y for the standard form of a distribution with
location parameter M and scale parameter S, the random numbers
for the general form of the distribution can be generated
with the following command
|
|
|
|
Available Random Number Generators
Distributions Requiring No Shape Parameters
|
The following table list the distributions for which no
shape parameter is required.
|
|
[ Dataplot /
Dataplot Random Numbers ]
|
|
Distributions Requiring the Shape Parameter N
|
The following table lists the distributions requiring the
shape parameter N. To specify this shape parameter, enter
the following command before generating the random numbers.
|
|
[ Dataplot /
Dataplot Random Numbers ]
|
|
Distributions Requiring the Shape Parameter NU
|
The following table lists the distributions requiring the
shape parameter NU. To specify this shape parameter, enter
the following command before generating the random numbers.
|
|
[ Dataplot /
Dataplot Random Numbers ]
|
|
Distributions Requiring the Shape Parameter LAMBDA
|
The following table lists the distributions requiring the
shape parameter LAMBDA. To specify this shape parameter, enter
the following command before generating the random numbers.
|
|
[ Dataplot /
Dataplot Random Numbers ]
|
|
Distributions Requiring the Shape Parameters NU1 and NU2
|
The following table lists the distributions requiring the
shape parameters NU1 and NU2. To specify these shape parameter,
ese the following commands before generating the random
numbers.
|
LET NU2 = <value>
|
[ Dataplot /
Dataplot Random Numbers ]
|
|
Distributions Requiring the Shape Parameters and ALPHA and
BETA
|
The following table lists the distributions requiring the
shape parameters ALPHA and BETA. To specify these shape
parameters, enter the following commands before generating
the random numbers.
|
LET BETA = <value>
|
[ Dataplot /
Dataplot Random Numbers ]
|
|
Distributions Requiring the Shape Parameter GAMMA
|
The following table lists the distributions requiring the
shape parameter GAMMA. To specify this shape parameter, enter
the following command before generating the random numbers.
|
|
[ Dataplot /
Dataplot Random Numbers ]
|
|
Distributions Requiring the Shape Parameter C
|
The following table lists the distributions requiring the
shape parameter C. To specify this shape parameter, enter
the following command before generating the random numbers.
|
|
[ Dataplot /
Dataplot Random Numbers ]
|
|
Distributions Requiring the Shape Parameters MU and SD
|
The following table lists the distributions requiring the
shape parameters MU and SD. To specify these shape parameter,
enter the following commands before generating the random
numbers.
|
LET SD = <value>
|
[ Dataplot /
Dataplot Random Numbers ]
|
|
Distributions Requiring the Shape Parameters MU1, SD1,
MU2, SD2, and P
|
The following table lists the distributions requiring the
shape parameters MU1, SD1, MU2, SD2, and P. To specify these
shape parameter, enter the following commands before generating
the random numbers.
|
LET SD1 = <value> LET MU2 = <value> LET SD2 = <value> LET P = <value>
|
[ Dataplot /
Dataplot Random Numbers ]
|
|
Distributions Requiring the Shape Parameters NU and LAMBDA
|
The following table lists the distributions requiring the
shape parameters NU and LAMBDA. To specify these shape
parameters, enter the following commands before generating the
random numbers.
|
LET LAMBDA = <value>
|
[ Dataplot /
Dataplot Random Numbers ]
|
|
Distributions Requiring the Shape Parameters NU1, NU2, and
LAMBDA
|
The following table lists the distributions requiring the
shape parameters NU1, NU2, and LAMBDA. To specify these shape
parameters, enter the following commands before generating the
random numbers.
|
LET NU2 = <value> LET LAMBDA = <value>
|
[ Dataplot /
Dataplot Random Numbers ]
|
|
Distributions Requiring the Shape Parameters NU1, NU2,
LAMBDA1, and LAMBDA2
|
The following table lists the distributions requiring the
shape parameters NU1, NU2, LAMBDA1, and LAMBDA2. To specify
these shape parameters, enter the following commands before
generating the random numbers.
|
LET NU2 = <value> LET LAMBDA1 = <value> LET LAMBDA2 = <value>
|
[ Dataplot /
Dataplot Random Numbers ]
|
|
Distributions Requiring the Shape Parameter P
|
The following table lists the distributions requiring the
shape parameter P. To specify this shape parameter, enter
the following command before generating the random numbers.
|
|
[ Dataplot /
Dataplot Random Numbers ]
|
|
Distributions Requiring the Shape Parameters P and N
|
The following table lists the distributions requiring the
shape parameters P and N. To specify these shape parameters,
enter the following commands before generating the random
numbers.
|
LET N = <value>
|
[ Dataplot /
Dataplot Random Numbers ]
|
|
Distributions Requiring the Shape Parameters P and K
|
The following table lists the distributions requiring the
shape parameters P and K. To specify these shape parameters,
enter the following commands before generating the random
numbers.
|
LET K = <value>
|
[ Dataplot /
Dataplot Random Numbers ]
|
|
Distributions Requiring the Shape Parameters L, K, N, and M
|
The following table lists the distributions requiring the
shape parameters L, K, N, and M. To specify these shape
parameters, enter the following commands before generating
the random numbers.
|
LET K = <value> LET N = <value> LET M = <value>
|
[ Dataplot /
Dataplot Random Numbers ]
|
|
Distributions Requiring the Shape Parameter DELTA
|
The following table lists the distributions requiring the
shape parameter DELTA. To specify this shape parameter, enter
the following command before generating the random numbers.
|
|
[ Dataplot /
Dataplot Random Numbers ]
|
|
Distributions Requiring the Shape Parameter ALPHA
|
The following table lists the distributions requiring the
shape parameter ALPHA. To specify this shape parameter, enter
the following command before generating the random numbers.
|
|
[ Dataplot /
Dataplot Random Numbers ]
|
|
Distributions Requiring the Shape Parameter BETA
|
The following table lists the distributions requiring the
shape parameter BETA. To specify this shape parameter, enter
the following command before generating the random numbers.
|
|
[ Dataplot /
Dataplot Random Numbers ]
|
|
Distributions Requiring the Shape Parameter B
|
The following table lists the distributions requiring the
shape parameter B. To specify this shape parameter, enter
the following command before generating the random numbers.
|
|
[ Dataplot /
Dataplot Random Numbers ]
|
|
Distributions Requiring the Shape Parameters C and B
|
The following table lists the distributions requiring the
shape parameters C and B. To specify these shape parameters,
enter the following commands before generating the random
numbers.
|
LET B = <value>
|
[ Dataplot /
Dataplot Random Numbers ]
|
|
Distributions Requiring the Shape Parameter THETA
|
The following table lists the distributions requiring the
shape parameter THETA. To specify this shape parameter, enter
the following command before generating the random numbers.
|
|
[ Dataplot /
Dataplot Random Numbers ]
|
|
Distributions Requiring the Shape Parameters GAMMA and THETA
|
The following table lists the distributions requiring the
shape parameters THETA and GAMMA. To specify these shape
parameters, enter the following commands before generating
the random numbers.
|
LET GAMMA = <value>
|
[ Dataplot /
Dataplot Random Numbers ]
|
|
Distributions Requiring the Shape Parameters N and THETA
|
The following table lists the distributions requiring the
shape parameters THETA and N. To specify these shape
parameters, enter the following commands before generating
the random numbers.
|
LET N = <value>
|
[ Dataplot /
Dataplot Random Numbers ]
|
|
Distributions Requiring the Shape Parameters SCALE1, GAMMA1,
LOC2, SCALE2, and GAMMA2
|
The following table lists the distributions requiring the
shape parameters SCALE1, GAMMA1, LOC2, SCALE2, and GAMMA2. To
specify these shape parameters, enter the following commands
before generating the random numbers.
|
LET GAMMA1 = <value> LET LOC2 = <value> LET SCALE2 = <value> LET GAMMA2 = <value>
|
[ Dataplot /
Dataplot Random Numbers ]
|
|
Random Numbers for Multivariate Distributions
|
In addition to the above univariate distributions, Dataplot
can generate random numbers for multinomial and multivariate
normal random numbers. These multivariate distributions
return a matrix, rather than a vector, of random numbers.
|
To generate multivariate normal random numbers, enter the following commands:
READ MATRIX SIGMA <pxp set of values> END OF DATA LET N = <value> LET M = MULTIVARIATE NORMAL RANDOM NUMBERS MU SIGMA N To generate multinomial random numbers, enter
LET NEVENTS = <value> LET NCAT = SIZE P LET N = <value> LET M = MULTINOMIAL RANDOM NUMBERS P NEVENTS NCAT N
|
[ Dataplot /
Dataplot Random Numbers ]
|
|
|
Privacy
Policy/Security Notice
NIST is an agency of the U.S.
Commerce Department.
Date created: 06/05/2001 |