Questions tagged [numpy]
The numpy tag has no summary.
3 questions
1
vote
2
answers
221
views
Reverse Optimization: finding the returns that satisfy specific weights given one known return
Here is the premise: I have a three asset portfolio, I know the assets covariance, the client's risk aversion and the expected return of one of the assets. I also have a desired set of weights.
So, 1) ...
2
votes
2
answers
6k
views
Rolling Calculation of Slope in Python
I am trying to calculate Slope for the rolling window of 5 and 20 periods and append it to the existing data frame. The length of the total dataset would be let's say 30 days. I have two columns "...