Code covered by the BSD License
by Attilio Meucci
02 Sep 2008
(Updated 09 May 2011)
Full generalization of Black-Litterman and related techniques via entropy pooling
function p_ = ViewImpliedVol(X,p)
% constrain probabilities to sum to one...
Aeq = ones(1,J);
% ...constrain the expectation...
V = [X(:,12) - X(:,11)];
A = V';
b = m-s;
% ...compute posterior probabilities
p_ = EntropyProg(p,A,b,Aeq ,beq);