Black Litterman Model

For technical questions regarding estimation of single equations, systems, VARs, Factor analysis and State Space Models in EViews. General econometric questions and advice should go in the Econometric Discussions forum.

Moderators: EViews Gareth, EViews Moderator

gs2440
Posts: 3
Joined: Tue Jul 28, 2009 8:14 am

Black Litterman Model

Postby gs2440 » Tue Jul 28, 2009 8:24 am

Hi,

I am trying to write a EViews code for a simple Black Litterman model. Since i am a relatively new to eviews world, just wanted to enquire

---Do we have any built in command for solving Black Litterman with input parameters?

If not then

--What is the command to solve a quadratic program in EViews?

Thanks!


Cheers,
Gaurav

trubador
Did you use forum search?
Posts: 1518
Joined: Thu Nov 20, 2008 12:04 pm

Re: Black Litterman Model

Postby trubador » Wed Jul 29, 2009 4:30 am

gs2440 wrote:Do we have any built in command for solving Black Litterman with input parameters?

Please read this (i.e. the second post).
gs2440 wrote:What is the command to solve a quadratic program in EViews?

You can either use the LogL object or try the matrix language.

Benjamin
Posts: 1
Joined: Fri Oct 09, 2009 5:49 am

Re: Black Litterman Model

Postby Benjamin » Fri Oct 09, 2009 3:10 pm

Hi there,

i deal with the same problem at the moment and can't find any help/approach in the www.

Isn't there anyone who has come to this problem before and may can give some initial advice?

How can i solve in my program the minimum-variance-portfolio for 2 assets with constraints?
In Matlab e.g. i would run the "quadrativ programming solver" with the Covarianve-Matrix as Input.
And i would set the constraints as no short selling ( solution-vector x_i > 0 for all i) and the sum of the weights should equal 1 ( sum of x_i = 1).
Additionaly i would set my target value in the portfoliomean.

Like here: http://www.styleadvisor.com/support/sta ... iance.html

Regards, Benjamin

trubador
Did you use forum search?
Posts: 1518
Joined: Thu Nov 20, 2008 12:04 pm

Re: Black Litterman Model

Postby trubador » Sat Oct 10, 2009 3:02 am

You can try EViews 7, since this new version can interact with MATLAB. In the meantime, the code below might be of some help. Open a LogL object (Object/New Object/LogL) and paste the following:

Code: Select all

@logl port
target = 1.5
meanp = @logit(c(1))*@mean(x1) + (1-@logit(c(1)))*@mean(x2)
minvar = @logit(c(1))^2*@var(x1) + (1-@logit(c(1)))^2*@var(x2) + @logit(c(1))*(1-@logit(c(1)))*@cov(x1,x2)
port = -@sqrt(minvar) - 1000000*@abs(meanp-target)

param c(1) 0.5


The specification above is one of the many ways to build such a model. And different modifications (including the initial values) might yield better results depending on your data and the type of your problem.

You should change the name of series (i.e. x1 and x2) to match yours as well as the desired target level of portfolio mean. Please keep in mind that you should compute the @logit(c(1)) to obtain the actual weight. You may experience convergence difficulties, since LogL object is not really meant for general purpose constrained optimization.


Return to “Estimation”

Who is online

Users browsing this forum: No registered users and 30 guests