Okama 1.4.1
Okama 1.4.1 adds custom exceptions for time period and Student's t distribution for Monte-Carlo methods in Portfolio and AssetList.
New features
Custom exceptions for time periods issues
ShortPeriodLengthError
is raised when an asset has less then 3 months of history in AssetList, Portfolio and EfficentFrontier classesRollingWindowLengthBelowOneYearError
is raised when rolling windows size is below one yearLongRollingWindowLengthError
is raised when rolling window size is more than data history depth
Student's t distribution in Monte-Carlo methods
- set
distr="t"
in methods likePortfolio.dcf.monte_carlo_wealth
orAssetList.kstest
Changes in existing methods & properties
Portfolio.dcf.monte_carlo_wealth
usesinitial_amount
value by default.
Bugs fixed
- wrong formula for 0 period rate of return in
helpers.Rebalance.return_ror_ts