Skip to content

Commit

Permalink
Update docs
Browse files Browse the repository at this point in the history
  • Loading branch information
dcajasn committed Jul 10, 2024
1 parent ac7201f commit 9544daa
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions docs/source/plot.rst
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ Example
method_mu='hist' # Method to estimate expected returns based on historical data.
method_cov='hist' # Method to estimate covariance matrix based on historical data.

port.assets_stats(method_mu=method_mu, method_cov=method_cov, d=0.94)
port.assets_stats(method_mu=method_mu, method_cov=method_cov)
mu = port.mu
cov = port.cov
Expand All @@ -95,15 +95,15 @@ Example
port.factors_stats(method_mu=method_mu,
method_cov=method_cov,
feature_selection='stepwise',
dict_risk=dict(stepwise='Forward'))
stepwise='Forward')
w3 = port.rp_optimization(model='FC', rm='MV', rf=0, b_f=None)

# Estimate the risk parity portfolio for principal components
port.factors = X
port.factors_stats(method_mu=method_mu,
method_cov=method_cov,
feature_selection='PCR',
dict_risk=dict(n_components=0.95))
n_components=0.95)
w4 = port.rp_optimization(model='FC', rm='MV', rf=0, b_f=None)


Expand Down
2 changes: 1 addition & 1 deletion docs/source/reports.rst
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ Example
method_mu='hist' # Method to estimate expected returns based on historical data.
method_cov='hist' # Method to estimate covariance matrix based on historical data.

port.assets_stats(method_mu=method_mu, method_cov=method_cov, d=0.94)
port.assets_stats(method_mu=method_mu, method_cov=method_cov)
# Estimate the portfolio that maximizes the risk adjusted return ratio
w = port.optimization(model='Classic', rm=rm, obj='Sharpe', rf=0.0, l=0, hist=True)
Expand Down

0 comments on commit 9544daa

Please sign in to comment.