Skip to content

skfolio/skfolio-weight-drift-uncompounded

Pack Severity Fix Versions
skfolio info unsafe, with xpd check --fix --unsafe-fixes skfolio 1.14.4+

skfolio weight drift changes holdings and period returns. Compounding controls how those returns accumulate.

Portfolio(returns, weights, weight_drift=True)
Portfolio(returns, weights, weight_drift=True, compounded=True)

Two periods with returns of 10% and 10.9091% end with cumulative simple return of 0.2091 or wealth of 1.22 from starting wealth of 1. Set compounded=True separately on a MultiPeriodPortfolio when you want compounded wealth across child portfolios.

Use xpd check --fix --unsafe-fixes to add or set compounded=True when weight_drift=True.

skfolio weight drift changes period returns. Set compounded=True if you want accumulated wealth. Two drifted periods ended at 1.22 with compounding.

See all rules in the skfolio pack.