I am trying to perform constrained opmitization for portfolio performance attribution analysis. Specifically, I am trying to determine the impact of sectors performance on the S&P 500 index.
subject to b1+b2+...+bp = 1,
0 <= bi <= 1 for i=1,2,...,p
yis the time-series return of S&P500 and xi is the time-series return of a sector for all
i = 1, 2, ..., p.
The idea of the betas is that the higher the beta, the greater the impact of the variable (sector) is on the portfolio.
The problem with this optimization is that, sometimes, the sector and market are negatively correlated so beta is negative. But the constraint forces it to be between 0 and 1, so beta becomes 0, which suggests that the sector had no impact on the S&P 500 index (even though it DID have an impact, negatively).
What's the better way of solving this?
Thank you very much in advance!