In Python to calculate weight of the portfolio, and how to get things, I have done and other relevant data materials table on page 199
8-4 son six stocks listed in table 4 alpha to parameter calculation and report positive weights of each stock in the portfolio and the combination of positive and negative group
The weight between,