SHAZAM Community
Ask Your Question

How can you constrain the Flexible Least Squares regression?

asked 2014-01-09 10:00:52 +0000

OYassin gravatar image

I'm trying to run an FLS regression on a dataset and I basically want to constrain it so that at any given time period, the sum of the coefficients/betas adds up to 1 as a condition.

edit retag flag offensive close merge delete

2 answers

Sort by ยป oldest newest most voted

answered 2014-01-09 12:41:51 +0000

Constraints in regression models in SHAZAM are possible using the RESTRICT Command however constraining an FLS is not supported by this command.

There are some recent papers that describe how this might be possible. Please see the following important page related to FLS: One interesting reference on that page is:

Michael Markov, Vadim Mottl, and Ilya Muchnik (2004), "Principles of Nonstationary Regression Estimation: A New Approach to Dynamic Multi-Factor Models in Finance"

edit flag offensive delete link more


Thanks for the help. However, I actually got to SHAZAM after exploring this paper in detail. That's the exact process/model that I want to replicate on SHAZAM, the only small missing piece is that the asset weights have to add up to 1 since they're part of a whole. Do you know of a workaround?

OYassin gravatar imageOYassin ( 2014-01-09 12:55:00 +0000 )edit

answered 2014-01-10 13:27:30 +0000

updated 2014-01-24 06:06:53 +0000

For a fixed constraint you can substitute the constraint into the equation. e.g.

Y = a + bX + (1-b)Z


Y = (a-1) + b(X-Z)

It might be worth trying to contact the authors and see if they will share their SHAZAM code.

edit flag offensive delete link more
Login/Signup to Answer

Question Tools


Asked: 2014-01-09 10:00:52 +0000

Seen: 800 times

Last updated: Jan 24 '14