Description Usage Arguments Details Value Author(s) Examples
The function updates the variance and covariance γ(q) = Cov(Xi,Xi+q) of a dataset when we have a new data
1 | update_cov(oldx, old_mean, old_cov, newx)
|
oldx |
The previous dataset |
old_mean |
the mean of previous dataset |
old_cov |
the covariance of previous dataset |
newx |
value of your new data |
update_cov() can be used to update the variance and covariance of a large data set without recalculating the whole data set to make compuation easier by a recursive formula. The function can be used to update univariate or multivariate data set.
new covariance γ(q) = Cov(Xi,Xi+q)
Xiulin Xie
1 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.