var {IntervalQuestionStat} | R Documentation |
Calculate the sample Fréchet variance of a random interval
Description
This function calculates the sample Fréchet variance of a single realization
of nonempty compact real intervals drawn from an interval-valued
random set stored as an
IntervalList
object.
Usage
## S4 method for signature 'IntervalList'
var(x, theta = 1)
Arguments
x |
A list of intervals, that is, an |
theta |
A single positive real number saved as a |
Details
Let be an interval-valued random set
and let
be a sample of
independent observations drawn from
. Then, the sample
Fréchet variance (see Fréchet, 1948) is defined as the following
non-negative real number given by
where and
denotes the sample Aumann mean
of
. Due to
-distance
definition, this deviation measure can also be computed as follows,
where
Value
This function returns the calculated sample Fréchet variance of the given
interval, which is defined as a non-negative real number. Therefore,
the output of this function is a single
numeric
object.
Author(s)
José García-García garciagarjose@uniovi.es
References
Fréchet, M. (1948). Les éléments aléatoires de nature quelconque dans un espace distancié. Annales de l'institut Henri Poincaré, 10(4):215-310.
See Also
Other sample central tendency and covariance measures such as sample
Aumann mean and sample covariance can be calculated through
mean()
and cov()
functions, respectively.
Examples
## Some var() examples
list <- IntervalList(c(1, 3), c(2, 5))
var(list)
var(list, theta = 1/3)