var
Variance
var
is not recommended. Use timetable
instead. For more information, see Convert Financial Time Series Objects fints to Timetables.
Description
computes the variance using the weight vector y
= var(X
,W
)W
. The length of
W
must equal the length of the dimension over which
var
operates, and its elements must be nonnegative.
var
normalizes W
to sum to
1
. Use a value of 0
for
W
to use the default normalization by N
– 1
, or use a value of 1
to use
N
.
Examples
Input Arguments
Output Arguments
Version History
Introduced before R2006a