weighted.covar | R Documentation |
Beregner sandsynlighedsvægtet covarians
weighted.covar(x, y, p)
x |
Vektor |
y |
Vektor, hvis denne udelades, sættes y <- x, og man får derved varians |
p |
Vektor af sandsynlighedsvægte |
vægtene for tangentporteføljen
A1 <- c(56,52,51,50,48) probs <- c(.1,.2,.4,.2,.1) A1_0 <- 50 weighted.covar(A1/A1_0,p=probs)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.