observ_normal {BLModel} | R Documentation |
Function observ_normal computes density of normal distribution of views using the formula
f(x) = c_k*\exp(-((x-q)^{T}*covmat^{-1}*(x-q))/2),
where c_k is a normalization constant (depends on the dimension of x and q).
observ_normal(x, q, covmat)
x |
Data points matrix which collects in rows coordinates of points in which distribution density is computed. |
q |
Vector of investor's views. |
covmat |
Covariance matrix of the distribution. |
function returns a vector of distribution densities in data points x.
Palczewski, J., Palczewski, A., Black-Litterman Model for Continuous Distributions (2016). Available at SSRN: https://ssrn.com/abstract=2744621.
k =3 observ_normal (x = matrix(c(rep(0.5,k),rep(0.2,k)),k,2), q = matrix(0,k,1), covmat = diag(k))