Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Risk Budget issues with zero weight input #33

Open
magadanmauler opened this issue Oct 19, 2024 · 0 comments
Open

Risk Budget issues with zero weight input #33

magadanmauler opened this issue Oct 19, 2024 · 0 comments

Comments

@magadanmauler
Copy link

Problem description

Using this package to determine asset weights in a multi-asset portfolio, using specified risk budgets for each asset. Dynamic, daily calculations. However, am seeing non-zero weights for assets with zero budget...

Example

import numpy as np
import riskparityportfolio as rp # see: https://mirca.github.io/riskparity.py/
import pandas as pd

b = np.array((w1,w2,w3,w4,w5,w6,w7,w8))

my_portfolio = rp.RiskParityPortfolio(covariance=cv_matrix, budget=b)

ISSUE: if Wn = zero (i.e. the requested risk budget is ZERO), I get material NON-ZERO Wn as output from the package

Expected behavior

For a given Wn = zero, I expect the output Wn to be zero.

Environment:

  • platform Windows
  • riskparityportfolio version 0.4
  • installation method is pip
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant