Draft:Canopy (software)
Submission declined on 21 February 2026 by ChrysGalley (talk). This draft reads like an advertisement. Wikipedia is an encyclopedia, not a platform for promotion or marketing. Drafts that are exclusively promotional may be deleted without notice.
Wikipedia articles must be written neutrally in a formal, impersonal, and dispassionate way. They should not read like a blog post, advertisement, or fan page. Rewrite the draft to remove:
Instead, only summarize in your own words a range of independent, reliable, published sources that discuss the subject. If you have a conflict of interest (e.g. you are the subject, an employee, or a relative) or are being paid to edit, you must disclose this to comply with Wikipedia's Terms of Use.
Where to get help
How to improve a draft
You can also browse Wikipedia:Featured articles and Wikipedia:Good articles to find examples of Wikipedia's best writing on topics similar to your proposed article. Improving your odds of a speedy review To improve your odds of a faster review, tag your draft with relevant WikiProject tags using the button below. This will let reviewers know a new draft has been submitted in their area of interest. For instance, if you wrote about a female astronomer, you would want to add the Biography, Astronomy, and Women scientists tags. Editor resources
|
Comment: This reads like an advert and appears to be AI written, at least in part. If the submitting editor, given their user name, has any connection with this product, particularly if it is a paid connection, this needs to be declared. ChrysGalley (talk) 10:14, 21 February 2026 (UTC)
| Canopy | |
|---|---|
| Developer | Anagatam Technologies |
| Release | February 10, 2025 |
| Stable release | 3.0.0
/ February 21, 2026 |
| Written in | Python |
| Operating system | Cross-platform |
| Type | Portfolio optimization, Mathematical finance |
| License | Apache License 2.0 |
| Website | github |
Canopy is a free and open-source Python library for hierarchical portfolio optimization. Developed by Anagatam Technologies, it implements three allocation algorithms — Hierarchical Risk Parity (HRP), Hierarchical Equal Risk Contribution (HERC), and Nested Cluster Optimization (NCO) — with institutional-grade covariance estimation, configurable risk measures, walk-forward backtesting, and compliance audit trails.
Overview
[edit]Canopy provides a unified facade interface for hierarchical portfolio construction, enabling researchers and practitioners to compute optimal portfolio weights in a single function call. Unlike traditional mean-variance approaches that require matrix inversion, hierarchical methods build a hierarchical clustering tree from asset correlations and allocate capital through the tree structure, resulting in more stable and diversified portfolios.[1]
The library targets quantitative analysts, portfolio managers, and academic researchers working on portfolio construction problems.
Algorithms
[edit]Hierarchical Risk Parity (HRP)
[edit]The HRP algorithm, introduced by Marcos López de Prado in 2016, applies hierarchical clustering to the correlation matrix of asset returns and then uses recursive bisection to allocate weights based on inverse-variance risk parity.[2] Unlike Markowitz mean-variance optimization, HRP does not require matrix inversion, making it more stable for large asset universes.
Hierarchical Equal Risk Contribution (HERC)
[edit]HERC, proposed by Thomas Raffinot in 2017, extends HRP with a two-stage allocation: inter-cluster risk parity followed by intra-cluster inverse-variance weighting.[3] It supports four risk measures: variance, CVaR (Conditional Value-at-Risk), CDaR (Conditional Drawdown-at-Risk), and MAD (Mean Absolute Deviation).
Nested Cluster Optimization (NCO)
[edit]NCO, also by López de Prado (2019), applies Tikhonov regularization within each cluster before combining inter-cluster allocations.[4] This approach reduces estimation error in the covariance matrix, producing portfolios with lower tail risk.
Features
[edit]- Covariance Estimation: Four estimators — Sample, Ledoit-Wolf shrinkage, Marchenko-Pastur denoising, and EWMA
- Detoning: Removes the market-mode eigenvector before clustering for sector-level discrimination
- Portfolio Modes: Long-only, long-short, and market neutral configurations
- Walk-Forward Backtesting: Monthly/quarterly rebalancing with configurable lookback windows
- Audit Trail: JSON-serializable computation logs for MiFID II, SEC Rule 15c3-5, and Basel III/IV regulatory compliance
- Performance Metrics: Sharpe ratio, Sortino ratio, maximum drawdown, CVaR, and information ratio
- Visualization: Dark-theme Plotly charts including dendrograms, correlation heatmaps, and risk contribution charts
Architecture
[edit]Canopy uses a facade pattern through its MasterCanopy class, which orchestrates five internal engines:
CovarianceEngine— covariance matrix estimation and eigenvalue analysisClusterEngine— hierarchical clustering with 7 linkage methodsHRP,HERC,NCO— the three optimizer implementationsChartEngine— visualization moduleDataLoader— data ingestion from Yahoo Finance, CSV, and Parquet files
See also
[edit]- Portfolio optimization
- Hierarchical risk parity
- Modern portfolio theory
- Risk parity
- Marcos López de Prado
External links
[edit]References
[edit]- ^ López de Prado, Marcos (2016). "Building Diversified Portfolios that Outperform Out-of-Sample". The Journal of Portfolio Management. 42 (4): 59–69. doi:10.3905/jpm.2016.42.4.059.
- ^ López de Prado, M. (2016). Building Diversified Portfolios that Outperform Out-of-Sample. The Journal of Portfolio Management, 42(4), 59–69.
- ^ Raffinot, T. (2017). Hierarchical Clustering Based Asset Allocation. The Journal of Portfolio Management, 44(2), 89–99.
- ^ López de Prado, M. (2019). A Robust Estimator of the Efficient Frontier. Available at SSRN.
Category:Free software programmed in Python
Category:Mathematical finance
Category:Portfolio theories
Category:Financial software
Category:Free and open-source software
Category:Software using the Apache license

LLM-generated pages with certain obvious signs of being machine generated may be deleted without notice.
These tools are prone to specific issues that violate our policies:
Instead, only summarize in your own words a range of independent, reliable, published sources that discuss the subject.
See the advice page on large language models for more information.