Repository Public
1{"job":{"id":"eb52bdc4-3ec0-4c0e-9ea5-f1781707d3a0","tool":"portfolio_lab","params":{"symbols":["SPY","TLT","GLD"],"base_currency":"USD","portfolio_value":100000,"benchmark":"SPY","lookback_days":756,"confidence":0.95,"covariance":"ledoit_wolf","factors":true,"objective":"min_variance","expected_returns":"james_stein","min_weight":0,"max_weight":1,"risk_free":0.04,"cost_bps":5,"horizon_days":252,"simulations":5000,"seed":12345},"status":"done","startedAt":1795217741080,"finishedAt":1795217751122,"error":null,"progress":1,"engineVersion":"1.0.0","durationMs":10042,"projectId":null,"sessionId":null,"cancellable":false,"code":"from vqlab import portfolio\nr = portfolio.run({'symbols': ['SPY', 'TLT', 'GLD'], 'base_currency': 'USD', 'portfolio_value': 100000, 'benchmark': 'SPY', 'lookback_days': 756, 'confidence': 0.95, 'covariance': 'ledoit_wolf', 'factors': True, 'objective': 'min_variance', 'expected_returns': 'james_stein', 'min_weight': 0, 'max_weight': 1, 'risk_free': 0.04, 'cost_bps': 5, 'horizon_days': 252, 'simulations': 5000, 'seed': 12345})\nprint(r[\"headline\"])\n# or the mathematics alone: portfolio.risk_contributions(w, cov), portfolio.min_variance(cov), portfolio.erc_weights(cov), portfolio.hrp_weights(cov)","result":{"success":true,"schema":"lab/1","engine":"portfolio_lab","engineVersion":"1.0.0","title":"Portfolio Lab — 3 holdings in USD","headline":"Portfolio of 3 holdings worth 100,000 USD: volatility 11.2% a year, 1-day 95% VaR 1.17%, beta 0.46 to SPY; GLD carries 51% of the risk for 33% of the weight.","summary":[{"label":"Portfolio value","value":100000,"unit":"currency","kind":"assumption","currency":"USD","note":"parameter (weights mode)"},{"label":"Volatility (annual)","value":0.1121519943801955,"unit":"percent","kind":"calculated","note":"Ledoit-Wolf covariance, 756 daily returns"},{"label":"Diversification ratio","value":1.4994062269631223,"unit":"ratio","kind":"calculated","decimals":2,"note":"weighted average volatility ÷ portfolio volatility"},{"label":"Effective number of bets","value":1.9240752125212175,"unit":"count","kind":"calculated","decimals":2,"note":"entropy of principal-component risk shares"},{"label":"Effective number of holdings","value":3,"unit":"count","kind":"calculated","decimals":2,"note":"1 / Σ weights²"},{"label":"Value at risk, 1 day, 95.0%","value":0.01169879975572194,"unit":"percent","kind":"calculated","note":"historical; 1,170 USD"},{"label":"Expected shortfall, 1 day, 95.0%","value":0.016484424472205467,"unit":"percent","kind":"calculated","note":"historical, 38 tail days; 1,648 USD"},{"label":"Hypothetical return (annual)","value":0.1377013013542332,"unit":"percent","kind":"calculated","note":"today's weights held constant over the sample"},{"label":"Hypothetical Sharpe ratio","value":0.8433492132095751,"unit":"ratio","kind":"calculated","decimals":2,"note":"risk-free 4.00%"},{"label":"Hypothetical maximum drawdown","value":-0.13927618600045788,"unit":"percent","kind":"calculated"},{"label":"Beta to SPY","value":0.46297700759022525,"unit":"ratio","kind":"calculated","decimals":2},{"label":"Tracking error vs SPY","value":0.12090845168493942,"unit":"percent","kind":"calculated"},{"label":"Information ratio","value":-0.2604106472134403,"unit":"ratio","kind":"calculated","decimals":2},{"label":"SPY return (annual)","value":0.1673113202858496,"unit":"percent","kind":"calculated","note":"same dates, base currency"},{"label":"Factor model R²","value":0.6723400050612347,"unit":"percent","kind":"calculated","note":"share of daily variance explained by the proxies"},{"label":"Rebalancing turnover (one-way)","value":0.20943980733814874,"unit":"percent","kind":"calculated","note":"toward Minimum variance; a proposal, not an order"},{"label":"Estimated rebalancing cost","value":20.943980733814875,"unit":"currency","kind":"calculated","currency":"USD","note":"5 bps × 41,888 USD traded"},{"label":"Simulated median value in 252 sessions","value":111114.39727010817,"unit":"currency","kind":"forecast","currency":"USD"},{"label":"Simulated 5 % worst-case value","value":92012.98488974679,"unit":"currency","kind":"forecast","currency":"USD","note":"5th percentile of the simulated values"},{"label":"Simulated probability of a loss","value":0.1742,"unit":"percent","kind":"forecast","note":"over 252 sessions"}],"tables":[{"id":"holdings","title":"Holdings valued in USD","columns":[{"key":"symbol","label":"Holding","type":"text"},{"key":"name","label":"Name","type":"text"},{"key":"quantity","label":"Quantity","decimals":4,"type":"number"},{"key":"price","label":"Price (local)","decimals":4,"unit":"currency","currencyKey":"currency","type":"number"},{"key":"currency","label":"Currency","type":"text"},{"key":"fx","label":"FX to USD","decimals":4,"type":"number"},{"key":"value","label":"Value (USD)","unit":"currency","currency":"USD","type":"number"},{"key":"weight","label":"Weight","unit":"percent","type":"number"},{"key":"costBasis","label":"Cost basis (local)","decimals":4,"unit":"currency","currencyKey":"currency","type":"number"},{"key":"pnl","label":"P&L (USD)","unit":"currency","currency":"USD","type":"number"},{"key":"pnlPct","label":"P&L (local)","unit":"percent","type":"number"},{"key":"currencySource","label":"Currency from","type":"text"}],"rows":[{"symbol":"SPY","name":"State Street SPDR S&P 500 ETF","quantity":48.32248493546532,"price":689.81,"currency":"USD","fx":1,"value":33333.33333333333,"weight":0.3333333333333333,"costBasis":null,"pnl":null,"pnlPct":null,"currencySource":"profile"},{"symbol":"TLT","name":"iShares 20+ Year Treasury Bond ETF","quantity":409.2490280335584,"price":81.45,"currency":"USD","fx":1,"value":33333.33333333333,"weight":0.3333333333333333,"costBasis":null,"pnl":null,"pnlPct":null,"currencySource":"profile"},{"symbol":"GLD","name":"SPDR Gold Shares","quantity":103.24072640175095,"price":322.87,"currency":"USD","fx":1,"value":33333.33333333333,"weight":0.3333333333333333,"costBasis":null,"pnl":null,"pnlPct":null,"currencySource":"profile"}],"note":"P&L in the base currency converts the local price gain at today's exchange rate: the currency gain or loss since purchase is not known and not included. Quantities are derived from the weights and the portfolio value."},{"id":"allocation","title":"Allocation breakdown","columns":[{"key":"dimension","label":"By","type":"text"},{"key":"group","label":"Group","type":"text"},{"key":"weight","label":"Weight","unit":"percent","type":"number"}],"rows":[{"dimension":"Currency","group":"USD","weight":1},{"dimension":"Asset class","group":"Fund / ETF","weight":1},{"dimension":"Sector","group":"Unknown","weight":1},{"dimension":"Country","group":"US","weight":1}]},{"id":"risk","title":"Risk and return contributions","columns":[{"key":"holding","label":"Holding","type":"text"},{"key":"weight","label":"Weight","unit":"percent","type":"number"},{"key":"vol","label":"Volatility","unit":"percent","type":"number"},{"key":"marginal","label":"Marginal risk","decimals":4,"type":"number"},{"key":"component","label":"Risk contribution","unit":"percent","type":"number"},{"key":"share","label":"Share of risk","unit":"percent","type":"number"},{"key":"assetReturn","label":"Return over the sample","unit":"percent","type":"number"},{"key":"contribution","label":"Contribution to return","unit":"percent","type":"number"}],"rows":[{"holding":"SPY","weight":0.3333333333333333,"vol":0.15755758379459012,"marginal":0.09998956227109096,"component":0.03332985409036365,"share":0.297184675801443,"assetReturn":0.5905967533665417,"contribution":0.16692319893028934},{"holding":"TLT","weight":0.3333333333333333,"vol":0.12917400746691818,"marginal":0.06514634270848865,"component":0.021715447569496216,"share":0.19362515744375264,"assetReturn":0.04651162790697372,"contribution":0.022993310496623315},{"holding":"GLD","weight":0.3333333333333333,"vol":0.21775260495848642,"marginal":0.17132007816100697,"component":0.05710669272033565,"share":0.5091901667548046,"assetReturn":0.7775269764369079,"contribution":0.21639554289340523}],"note":"Risk contribution_i = w_i·(Σw)_i/σ_p; the contributions add up to the portfolio volatility. Contribution to return = Σ over days of w_i·r_i with today's weights held constant (arithmetic; returns in the base currency)."},{"id":"performance","title":"Performance over 2023-11-16 → 2026-11-20","columns":[{"key":"series","label":"Series","type":"text"},{"key":"annual","label":"Annual return","unit":"percent","type":"number"},{"key":"vol","label":"Volatility","unit":"percent","type":"number"},{"key":"sharpe","label":"Sharpe","decimals":2,"type":"number"},{"key":"maxDrawdown","label":"Max drawdown","unit":"percent","type":"number"},{"key":"total","label":"Total return","unit":"percent","type":"number"}],"rows":[{"series":"Today's weights, constant (hypothetical)","annual":0.1377013013542332,"vol":0.11316468821999459,"sharpe":0.8433492132095751,"maxDrawdown":-0.13927618600045788,"total":0.47259989290641236},{"series":"Benchmark SPY in USD","annual":0.1673113202858496,"vol":0.15645918838208206,"sharpe":0.8112224040197359,"maxDrawdown":-0.18755302690023445,"total":0.5905967533665417}]},{"id":"var","title":"Value at risk and expected shortfall (1 day)","columns":[{"key":"method","label":"Method","type":"text"},{"key":"var","label":"VaR","unit":"percent","type":"number"},{"key":"es","label":"Expected shortfall","unit":"percent","type":"number"},{"key":"varAmount","label":"VaR (USD)","unit":"currency","currency":"USD","type":"number"},{"key":"esAmount","label":"ES (USD)","unit":"currency","currency":"USD","type":"number"}],"rows":[{"method":"Historical","var":0.01169879975572194,"es":0.016484424472205467,"varAmount":1169.8799755721939,"esAmount":1648.4424472205467},{"method":"Gaussian","var":0.011188226948801748,"es":0.01416702190014646,"varAmount":1118.8226948801748,"esAmount":1416.702190014646}],"note":"Confidence 95.0%; losses as positive numbers; from the hypothetical constant-weight returns."},{"id":"factors","title":"Factor exposures (regression on ETF proxies)","columns":[{"key":"factor","label":"Factor proxy","type":"text"},{"key":"beta","label":"Exposure (beta)","decimals":3,"type":"number"},{"key":"t","label":"t (HAC)","decimals":2,"type":"number"},{"key":"p","label":"p-value","decimals":3,"type":"number"},{"key":"factorVol","label":"Proxy volatility","unit":"percent","type":"number"}],"rows":[{"factor":"US equity market (SPY)","beta":0.4669435352108112,"t":11.624274930203823,"p":3.102160099764152e-31,"factorVol":0.15645918838208206},{"factor":"Size: small minus large (IWM − SPY)","beta":0.022786361842792847,"t":0.9642045174726979,"p":0.33494339996928946,"factorVol":0.12314758607078657},{"factor":"Value minus growth (IWD − IWF)","beta":0.02787018372457232,"t":1.406487496473073,"p":0.15957941488252658,"factorVol":0.1550192692711441},{"factor":"Momentum (MTUM − SPY)","beta":0.04971614139926046,"t":2.134990615104476,"p":0.03276177671992516,"factorVol":0.14155316267339668},{"factor":"Long Treasuries (TLT)","beta":0.2639601247064601,"t":6.027276195550931,"p":1.667459142286691e-09,"factorVol":0.12526786488411948},{"factor":"Credit: high yield minus Treasuries (HYG − IEF)","beta":-0.19591576778865255,"t":-1.5874341632850593,"p":0.11241434695508136,"factorVol":0.057096531583493496},{"factor":"US dollar index (UUP)","beta":-0.4479538216451632,"t":-8.061881056116114,"p":7.512928508663588e-16,"factorVol":0.06483070721215656},{"factor":"Alpha (annual, unexplained)","beta":0.07664828000542127,"t":2.0531137367555825,"p":0.04006154800153439,"factorVol":null}],"note":"Daily returns in USD regressed jointly on the proxies; Newey-West errors (6 lags); R² = 0.67, 756 days. Proxies are investable ETFs (long-short ones as return differences), not the academic factors; exposures are partial effects and the proxies are correlated with each other."},{"id":"optimizers","title":"Optimized portfolios of the same assets","columns":[{"key":"portfolio","label":"Portfolio","type":"text"},{"key":"expReturn","label":"Expected return","unit":"percent","type":"number"},{"key":"vol","label":"Volatility","unit":"percent","type":"number"},{"key":"sharpe","label":"Sharpe","decimals":2,"type":"number"},{"key":"divRatio","label":"Diversification ratio","decimals":2,"type":"number"},{"key":"maxRiskShare","label":"Largest risk share","unit":"percent","type":"number"},{"key":"SPY","label":"SPY","unit":"percent","type":"number"},{"key":"TLT","label":"TLT","unit":"percent","type":"number"},{"key":"GLD","label":"GLD","unit":"percent","type":"number"}],"rows":[{"portfolio":"Minimum variance","expReturn":0.09509203579763861,"vol":0.10054923727992594,"sharpe":0.5479110263587987,"divRatio":1.4898689233632254,"maxRiskShare":0.5427731266103114,"SPY":0.3300827398395086,"TLT":0.5427731406714821,"GLD":0.1271441194890093},{"portfolio":"Maximum Sharpe","expReturn":0.11352353940857035,"vol":0.11615758803990461,"sharpe":0.6329637232421886,"divRatio":1.4504751228699782,"maxRiskShare":0.5323112955932829,"SPY":0.4916936785996821,"TLT":0.22207849685626493,"GLD":0.286227824544053},{"portfolio":"Risk parity (equal risk contribution)","expReturn":0.10278924868846576,"vol":0.1042255790184633,"sharpe":0.602436074520083,"divRatio":1.5345399757676754,"maxRiskShare":0.33333333333754117,"SPY":0.33542684303389386,"TLT":0.4247443807782004,"GLD":0.2398287761879056},{"portfolio":"Hierarchical risk parity","expReturn":0.09587547496556804,"vol":0.1008150620951898,"sharpe":0.5542373709278708,"divRatio":1.506298574900096,"maxRiskShare":0.5332967225272124,"SPY":0.30342580402449865,"TLT":0.5377179053398796,"GLD":0.15885629063562173},{"portfolio":"Maximum diversification","expReturn":0.10196120149386326,"vol":0.1035957649402224,"sharpe":0.5981055454305161,"divRatio":1.53501020235381,"maxRiskShare":0.3562922869844592,"SPY":0.3302607869863231,"TLT":0.438616041488458,"GLD":0.23112317152521888},{"portfolio":"Equal weight","expReturn":0.1088557819506738,"vol":0.1121519943801955,"sharpe":0.6139505795791071,"divRatio":1.4994062269631223,"maxRiskShare":0.5091901667548046,"SPY":0.3333333333333333,"TLT":0.3333333333333333,"GLD":0.3333333333333333},{"portfolio":"Current","expReturn":0.1088557819506738,"vol":0.1121519943801955,"sharpe":0.6139505795791071,"divRatio":1.4994062269631223,"maxRiskShare":0.5091901667548046,"SPY":0.3333333333333333,"TLT":0.3333333333333333,"GLD":0.3333333333333333}],"note":"Weights among the invested assets (sum to 100 %), bounds [0%, 100%] for the mean-variance optimizers; risk parity and HRP are long-only by construction and ignore the bounds. Expected returns: Bayes-Stein shrinkage of historical means toward the minimum-variance portfolio's mean (intensity 0.66). Expected return, volatility and Sharpe are in-sample model figures, not forecasts."},{"id":"rebalance","title":"Rebalancing proposal toward: Minimum variance","columns":[{"key":"symbol","label":"Holding","type":"text"},{"key":"current","label":"Current weight","unit":"percent","type":"number"},{"key":"target","label":"Target weight","unit":"percent","type":"number"},{"key":"change","label":"Change","unit":"percent","type":"number"},{"key":"action","label":"Action","type":"text"},{"key":"units","label":"Units","decimals":4,"type":"number"},{"key":"tradeLocal","label":"Amount (local)","unit":"currency","currencyKey":"currency","type":"number"},{"key":"currency","label":"Currency","type":"text"},{"key":"tradeBase","label":"Amount (USD)","unit":"currency","currency":"USD","type":"number"}],"rows":[{"symbol":"SPY","current":0.3333333333333333,"target":0.3300827398395086,"change":-0.003250593493824727,"action":"sell","units":-0.4712302654100009,"tradeLocal":-325.0593493824727,"currency":"USD","tradeBase":-325.0593493824727},{"symbol":"TLT","current":0.3333333333333333,"target":0.5427731406714821,"change":0.20943980733814876,"action":"buy","units":257.1391127540193,"tradeLocal":20943.980733814875,"currency":"USD","tradeBase":20943.980733814875},{"symbol":"GLD","current":0.3333333333333333,"target":0.1271441194890093,"change":-0.206189213844324,"action":"sell","units":-63.861372640481925,"tradeLocal":-20618.9213844324,"currency":"USD","tradeBase":-20618.9213844324}],"note":"A PROPOSAL ONLY — nothing is sent to any broker. The invested fraction (100.0%) and the cash are left unchanged; units are fractional (round them yourself); estimated cost 20.94 USD at 5 bps of traded value; taxes on realized gains are not considered."},{"id":"scenarios","title":"Shock scenarios (through factor betas)","columns":[{"key":"scenario","label":"Scenario","type":"text"},{"key":"factor","label":"Shocked proxy","type":"text"},{"key":"factorShock","label":"Proxy return","unit":"percent","type":"number"},{"key":"impact","label":"Portfolio impact","unit":"percent","type":"number"},{"key":"impactAmount","label":"Impact (USD)","unit":"currency","currency":"USD","type":"number"}],"rows":[{"scenario":"Equities −20 %","factor":"US equity market (SPY)","factorShock":-0.2,"impact":-0.09338870704216223,"impactAmount":-9338.870704216224},{"scenario":"Rates +100 bps","factor":"Long Treasuries (TLT)","factorShock":-0.17,"impact":-0.04487322120009819,"impactAmount":-4487.32212000982},{"scenario":"US dollar +10 %","factor":"US dollar index (UUP)","factorShock":0.1,"impact":-0.044795382164516326,"impactAmount":-4479.538216451632},{"scenario":"Credit: high yield −10 % vs Treasuries","factor":"Credit: high yield minus Treasuries (HYG − IEF)","factorShock":-0.1,"impact":0.01959157677886521,"impactAmount":1959.1576778865212}],"note":"Impact = Σ w_i·β_i,factor × shock, other proxies unchanged; betas are linear, estimated on normal days, and typically understate losses in a crisis. A rate shock in bps is converted to a TLT return with a duration of 17 years (assumption)."},{"id":"scenarios_by_holding","title":"Scenario impact by holding","columns":[{"key":"scenario","label":"Scenario","type":"text"},{"key":"holding","label":"Holding","type":"text"},{"key":"beta","label":"Beta to the proxy","decimals":3,"type":"number"},{"key":"impact","label":"Holding return","unit":"percent","type":"number"},{"key":"contribution","label":"Contribution","unit":"percent","type":"number"}],"rows":[{"scenario":"Equities −20 %","holding":"SPY","beta":0.9999999999999993,"impact":-0.19999999999999987,"contribution":-0.06666666666666662},{"scenario":"Equities −20 %","holding":"TLT","beta":-2.0546185942253525e-16,"impact":4.1092371884507053e-17,"contribution":1.3697457294835684e-17},{"scenario":"Equities −20 %","holding":"GLD","beta":0.4008306056324342,"impact":-0.08016612112648686,"contribution":-0.026722040375495616},{"scenario":"Rates +100 bps","holding":"SPY","beta":-9.535898686219824e-17,"impact":1.62110277665737e-17,"contribution":5.403675922191233e-18},{"scenario":"Rates +100 bps","holding":"TLT","beta":0.9999999999999988,"impact":-0.16999999999999982,"contribution":-0.0566666666666666},{"scenario":"Rates +100 bps","holding":"GLD","beta":-0.2081196258806188,"impact":0.0353803363997052,"contribution":0.011793445466568398},{"scenario":"US dollar +10 %","holding":"SPY","beta":2.1454527752656878e-16,"impact":2.145452775265688e-17,"contribution":7.151509250885626e-18},{"scenario":"US dollar +10 %","holding":"TLT","beta":2.602856442223299e-16,"impact":2.6028564422232992e-17,"contribution":8.67618814074433e-18},{"scenario":"US dollar +10 %","holding":"GLD","beta":-1.34386146493549,"impact":-0.13438614649354902,"contribution":-0.04479538216451634},{"scenario":"Credit: high yield −10 % vs Treasuries","holding":"SPY","beta":-1.5220817375250764e-16,"impact":1.5220817375250764e-17,"contribution":5.073605791750254e-18},{"scenario":"Credit: high yield −10 % vs Treasuries","holding":"TLT","beta":-2.3892294430752267e-16,"impact":2.3892294430752268e-17,"contribution":7.96409814358409e-18},{"scenario":"Credit: high yield −10 % vs Treasuries","holding":"GLD","beta":-0.5877473033659559,"impact":0.058774730336595596,"contribution":0.019591576778865197}]}],"charts":[{"id":"allocation","title":"Weights","type":"bar","x":{"label":"Holding","type":"category"},"y":{"label":"Weight","unit":"percent"},"series":[{"name":"Weight","kind":"calculated","x":["SPY","TLT","GLD"],"y":[0.3333333333333333,0.3333333333333333,0.3333333333333333],"style":"bar"}]},{"id":"risk_share","title":"Weight against share of risk","type":"bar","x":{"label":"Holding","type":"category"},"y":{"label":"Share","unit":"percent"},"series":[{"name":"Weight","kind":"calculated","x":["SPY","TLT","GLD"],"y":[0.3333333333333333,0.3333333333333333,0.3333333333333333],"style":"bar"},{"name":"Share of risk","kind":"calculated","x":["SPY","TLT","GLD"],"y":[0.297184675801443,0.19362515744375264,0.5091901667548046],"style":"bar"}]},{"id":"correlation","title":"Correlation matrix (base-currency returns)","type":"heatmap","x":{"label":"","type":"category"},"y":{"label":""},"series":[],"z":{"label":"Correlation","unit":"ratio"},"matrix":{"x":["SPY","TLT","GLD"],"y":["SPY","TLT","GLD"],"z":[[0.9999999999999999,0.09397390264403341,0.2012647032358535],[0.09397390264403341,1.0000000000000002,0.11804486980294074],[0.2012647032358535,0.11804486980294074,1]]},"note":"Implied by the covariance estimator in use."},{"id":"performance","title":"Hypothetical history of today's holdings (growth of 100)","type":"line","x":{"label":"Date","type":"time"},"y":{"label":"Value (USD)","unit":null},"series":[{"name":"Today's weights, constant (hypothetical)","kind":"calculated","x":["2023-11-16","2023-11-24","2023-11-30","2023-12-07","2023-12-14","2023-12-21","2023-12-28","2024-01-05","2024-01-12","2024-01-22","2024-01-26","2024-02-02","2024-02-09","2024-02-16","2024-02-23","2024-03-01","2024-03-08","2024-03-15","2024-03-21","2024-03-28","2024-04-05","2024-04-12","2024-04-18","2024-04-25","2024-05-02","2024-05-09","2024-05-15","2024-05-22","2024-05-30","2024-06-06","2024-06-12","2024-06-20","2024-06-27","2024-07-05","2024-07-11","2024-07-18","2024-07-25","2024-08-01","2024-08-07","2024-08-14","2024-08-21","2024-08-28","2024-09-04","2024-09-11","2024-09-18","2024-09-25","2024-10-01","2024-10-08","2024-10-15","2024-10-22","2024-10-28","2024-11-04","2024-11-11","2024-11-18","2024-11-22","2024-12-02","2024-12-09","2024-12-16","2024-12-20","2024-12-30","2025-01-07","2025-01-15","2025-01-22","2025-01-29","2025-02-05","2025-02-12","2025-02-19","2025-02-26","2025-03-05","2025-03-12","2025-03-18","2025-03-25","2025-04-01","2025-04-08","2025-04-14","2025-04-22","2025-04-29","2025-05-06","2025-05-12","2025-05-19","2025-05-27","2025-06-03","2025-06-09","2025-06-16","2025-06-24","2025-07-01","2025-07-08","2025-07-15","2025-07-22","2025-07-29","2025-08-04","2025-08-11","2025-08-18","2025-08-25","2025-08-29","2025-09-08","2025-09-15","2025-09-22","2025-09-26","2025-10-03","2025-10-10","2025-10-17","2025-10-23","2025-10-30","2025-11-06","2025-11-13","2025-11-19","2025-11-26","2025-12-04","2025-12-11","2025-12-17","2025-12-24","2026-01-02","2026-01-09","2026-01-15","2026-01-23","2026-01-30","2026-02-06","2026-02-12","2026-02-20","2026-02-27","2026-03-06","2026-03-12","2026-03-19","2026-03-26","2026-04-02","2026-04-09","2026-04-16","2026-04-23","2026-04-30","2026-05-06","2026-05-13","2026-05-20","2026-05-28","2026-06-03","2026-06-10","2026-06-17","2026-06-25","2026-07-01","2026-07-09","2026-07-16","2026-07-23","2026-07-29","2026-08-05","2026-08-12","2026-08-19","2026-08-25","2026-09-01","2026-09-09","2026-09-16","2026-09-22","2026-09-29","2026-10-06","2026-10-13","2026-10-19","2026-10-26","2026-11-02","2026-11-09","2026-11-13","2026-11-20"],"y":[100.83237400331082,101.61918985705502,102.96098818274677,104.5046289320669,107.13238809237413,107.43013493964222,108.43275546369414,106.10367174830951,106.9206558763944,106.26769580635431,106.1919135995502,107.9944239628154,107.46357977955331,106.68639978002908,108.14593699985164,109.66390543735433,111.71819309393278,110.25938698205773,111.62256596944893,112.98928289851165,113.1873177536374,112.49227100519911,111.65523153099501,110.77348659084278,111.02861991854734,113.50529489248741,115.51046501065892,115.21987733709591,113.30968733546393,116.23448084228463,115.60542494741557,117.24017315097102,116.57343262280244,117.9573238591573,118.92475750909723,119.07786392437379,116.24528467617621,119.30678946743853,116.87287867533288,120.57306741419227,123.23036364229554,122.62305145958395,122.48301709177704,123.72634132732783,124.41047031546917,126.2163474424567,126.51910474591813,124.7908769468276,125.84988189945574,126.3022010642983,125.8304146223506,125.26444052970811,125.48954023877599,123.75872384123532,125.82793905983142,127.08000107541967,127.33586907761116,125.99082493583047,123.7558454583886,123.07032157448494,122.88618894138938,124.31133927341259,126.55024808408896,126.44135660261853,129.30626908158274,128.5353041891466,130.21613134508783,130.4320291316965,129.25025694880233,127.17935823705062,129.26704769245967,129.82090895912515,131.11745719011668,122.71987732046385,129.02155109177545,129.75315395539855,133.11136388767417,133.69273076328318,132.47420608249885,133.25933680105823,133.81841076616863,134.63926110335436,134.81140374077964,135.81827800338363,136.4748614411439,138.05904631949934,136.64751416814389,136.6263249346475,139.31753914001598,138.75859255862048,139.75707166751857,139.40182791034337,139.0385635220128,139.76976304581234,141.08218362682922,145.72307514002497,147.44476502315499,148.11461909488258,148.0989301878819,150.6396013126831,151.73791819232872,155.6677502593824,155.09309622595322,154.0640236065125,152.53039052933684,154.76111084279938,152.6907519687522,156.12429441831694,156.02773403818512,156.97702929404338,156.191871056538,159.81552346427273,156.91444944022712,160.41918222106978,161.65900685597438,165.53683401425758,163.90537781775478,165.6943944515268,165.55352529182744,168.45801034983378,170.89865836504686,167.3165672280515,165.08969381530375,160.03472751194872,154.9283782929443,160.1402518883012,163.09334710601803,164.83057165657192,164.4027142047417,163.6660452992824,166.2650283680215,166.01709385364322,163.66834079301816,165.22104321819378,164.48607370007363,157.60028247037897,161.60703215415552,159.22736797626916,159.3113005252319,160.17572222756547,158.0614874181608,157.47377873749932,156.6051431329488,162.4189625407266,164.12894758814048,165.72826624870953,167.68930774461117,162.3909381260446,163.25314580283265,160.5286229195932,163.7545803333382,158.42266115538305,158.9318114001796,159.52513583472822,159.2069301626304,158.937802829209,157.41213880944258,160.22397263048498,155.23757552719007,147.25998929064124]},{"name":"SPY in USD","kind":"observed","x":["2023-11-16","2023-11-24","2023-11-30","2023-12-07","2023-12-14","2023-12-21","2023-12-28","2024-01-05","2024-01-12","2024-01-22","2024-01-26","2024-02-02","2024-02-09","2024-02-16","2024-02-23","2024-03-01","2024-03-08","2024-03-15","2024-03-21","2024-03-28","2024-04-05","2024-04-12","2024-04-18","2024-04-25","2024-05-02","2024-05-09","2024-05-15","2024-05-22","2024-05-30","2024-06-06","2024-06-12","2024-06-20","2024-06-27","2024-07-05","2024-07-11","2024-07-18","2024-07-25","2024-08-01","2024-08-07","2024-08-14","2024-08-21","2024-08-28","2024-09-04","2024-09-11","2024-09-18","2024-09-25","2024-10-01","2024-10-08","2024-10-15","2024-10-22","2024-10-28","2024-11-04","2024-11-11","2024-11-18","2024-11-22","2024-12-02","2024-12-09","2024-12-16","2024-12-20","2024-12-30","2025-01-07","2025-01-15","2025-01-22","2025-01-29","2025-02-05","2025-02-12","2025-02-19","2025-02-26","2025-03-05","2025-03-12","2025-03-18","2025-03-25","2025-04-01","2025-04-08","2025-04-14","2025-04-22","2025-04-29","2025-05-06","2025-05-12","2025-05-19","2025-05-27","2025-06-03","2025-06-09","2025-06-16","2025-06-24","2025-07-01","2025-07-08","2025-07-15","2025-07-22","2025-07-29","2025-08-04","2025-08-11","2025-08-18","2025-08-25","2025-08-29","2025-09-08","2025-09-15","2025-09-22","2025-09-26","2025-10-03","2025-10-10","2025-10-17","2025-10-23","2025-10-30","2025-11-06","2025-11-13","2025-11-19","2025-11-26","2025-12-04","2025-12-11","2025-12-17","2025-12-24","2026-01-02","2026-01-09","2026-01-15","2026-01-23","2026-01-30","2026-02-06","2026-02-12","2026-02-20","2026-02-27","2026-03-06","2026-03-12","2026-03-19","2026-03-26","2026-04-02","2026-04-09","2026-04-16","2026-04-23","2026-04-30","2026-05-06","2026-05-13","2026-05-20","2026-05-28","2026-06-03","2026-06-10","2026-06-17","2026-06-25","2026-07-01","2026-07-09","2026-07-16","2026-07-23","2026-07-29","2026-08-05","2026-08-12","2026-08-19","2026-08-25","2026-09-01","2026-09-09","2026-09-16","2026-09-22","2026-09-29","2026-10-06","2026-10-13","2026-10-19","2026-10-26","2026-11-02","2026-11-09","2026-11-13","2026-11-20"],"y":[100.1222099243682,101.24976941523707,101.49418926397348,101.90001844678108,104.96448994650439,105.54325770153115,106.43331488655237,104.47565024903163,106.4310090389228,107.94364508393295,108.8267847260654,110.37631433314898,111.90739715919582,111.52923814794332,113.39236303265095,114.50839328537185,114.2547500461171,114.18788046485902,116.95720346799499,117.15320051651,116.11326323556553,114.41615938018828,111.87742114001118,112.76747832503237,113.11335546947068,116.50295148496599,118.65661317100182,118.6658365615202,117.04943737317855,119.74958494742687,121.24838590665952,122.51199040767409,122.76563364692885,124.62414683637728,125.03689356207362,124.17911824386663,120.97629588636805,122.01162147205333,116.53984504703952,122.17764250138374,125.96845600442748,125.44733444014045,123.79404168972539,124.57341818852636,126.14370042427623,128.47491237779036,128.15670540490714,129.18050175244454,130.6700793211588,131.46790260099644,130.9075816270064,128.42418372993947,134.94973252167532,132.5585685297919,134.21647297546616,136.04731599335952,136.28251245157756,136.75751706327284,133.68151632540156,133.01743220808,133.11197196089316,134.05045194613572,137.13798192215492,136.09112709832166,136.63530713890458,136.44161593801917,138.60680686220292,134.44705773842503,131.8506733075082,126.38120273012395,126.86773657996714,130.52481092049473,127.23667220070129,112.61068068622055,122.28140564471528,119.58817561335577,125.72864785095035,126.74552665559892,132.23113816639034,134.92206235012029,134.08273381295004,135.2033757609301,136.0173399741749,136.69756502490353,138.0372624976945,140.50913115661353,141.12248662608414,141.53062165652128,143.05939863493853,144.51438848920898,143.58513189448476,144.66657443276182,146.3452315071023,146.15615200147604,146.74183729939156,147.60191846522812,150.35048883969776,152.11907397159223,150.97537354731628,152.66094816454554,148.96698026194454,151.56105884523177,153.2420217672019,155.08208817561365,152.90997970854116,153.30658550083044,151.15984135768338,155.0475004611698,156.1220254565581,157.2126913853535,153.15901125253671,157.95517432208104,156.30649326692517,158.7991145545105,158.38175613355497,157.69230769230793,158.31949824755603,158.01051466519112,155.87068806493286,157.73842464489965,156.95213060320992,153.83693045563567,152.39116399188362,150.95923261390908,147.99621840988772,150.46116952591797,155.98598044641238,160.9758347168422,162.53228186681457,164.87502305847664,168.3545471315259,170.30068253089868,170.0585685297919,173.12073418188564,173.03772366722046,166.4291643608194,169.99169894853387,168.8987271721089,171.53431101272872,172.90398450470437,172.67570558937507,169.79109020475966,167.78500276701752,177.06142778085263,177.68170079321197,176.89310090389264,176.16906474820183,175.21905552481132,175.36201807784582,173.44124700239848,178.32964397712644,176.21287585316406,179.64628297362162,179.39725142962604,176.73860911271035,176.48266002582602,173.42280022136188,173.55884523150763,173.94622763327848,159.05967533665418],"style":"dashed"}],"note":"NOT the account's realized performance: today's holdings carried back over the common history of their prices."},{"id":"factors","title":"Factor exposures (betas on ETF proxies)","type":"bar","x":{"label":"Factor proxy","type":"category"},"y":{"label":"Beta"},"series":[{"name":"Beta","kind":"calculated","x":["market","size","value","momentum","rates","credit","usd"],"y":[0.4669435352108112,0.022786361842792847,0.02787018372457232,0.04971614139926046,0.2639601247064601,-0.19591576778865255,-0.4479538216451632],"style":"bar"}]},{"id":"frontier","title":"Efficient frontier","type":"scatter","x":{"label":"Volatility (annual)","type":"number","unit":"percent"},"y":{"label":"Expected return (annual)","unit":"percent"},"series":[{"name":"Efficient frontier","kind":"calculated","x":[0.10054923727992594,0.10069633090864065,0.10113632764070539,0.10186543205686485,0.10287749752414864,0.1041642765773662,0.10571573819560126,0.10752042531007114,0.10956582580814118,0.11183873336322966,0.11432557957369473,0.11701272485814876,0.11988670143887709,0.12293440671495542,0.1261432491103654,0.129501250986928,0.13299711458350114,0.13662025741751016,0.14036082343783163,0.14585970556168165,0.15512510631803755,0.16754785999221267,0.1824842843641701,0.19937021985738526,0.21775260495848642],"y":[0.09509203579763861,0.09681630742569286,0.0985405790537471,0.10026485068180133,0.10198912230925719,0.1037133939372866,0.10543766556533418,0.10716193719323727,0.10888620882207253,0.11061048045012681,0.11233475207818103,0.11405902370623525,0.1157832953342895,0.11750756696234373,0.11923183859039796,0.1209561102184522,0.12268038184650643,0.12440465347393398,0.12612892510261492,0.12785319673066914,0.1295774683587234,0.13130173998677766,0.1330260116148319,0.13475028324288613,0.13647455487094037],"style":"line"},{"name":"Assets","kind":"calculated","x":[0.15755758379459012,0.12917400746691818,0.21775260495848642],"y":[0.11959713458806273,0.07049565639301834,0.13647455487094037],"style":"points"},{"name":"Minimum variance","kind":"calculated","x":[0.10054923727992594],"y":[0.09509203579763861],"style":"points"},{"name":"Maximum Sharpe","kind":"calculated","x":[0.11615758803990461],"y":[0.11352353940857035],"style":"points"},{"name":"Risk parity (equal risk contribution)","kind":"calculated","x":[0.1042255790184633],"y":[0.10278924868846576],"style":"points"},{"name":"Hierarchical risk parity","kind":"calculated","x":[0.1008150620951898],"y":[0.09587547496556804],"style":"points"},{"name":"Maximum diversification","kind":"calculated","x":[0.1035957649402224],"y":[0.10196120149386326],"style":"points"},{"name":"Equal weight","kind":"calculated","x":[0.1121519943801955],"y":[0.1088557819506738],"style":"points"},{"name":"Current","kind":"calculated","x":[0.1121519943801955],"y":[0.1088557819506738],"style":"points"}],"annotations":[{"x":0.15755758379459012,"y":0.11959713458806273,"text":"SPY"},{"x":0.12917400746691818,"y":0.07049565639301834,"text":"TLT"},{"x":0.21775260495848642,"y":0.13647455487094037,"text":"GLD"}],"note":"Expected returns: Bayes-Stein shrinkage of historical means toward the minimum-variance portfolio's mean (intensity 0.66). The frontier is very sensitive to them."},{"id":"scenarios","title":"Portfolio impact by scenario","type":"bar","x":{"label":"Scenario","type":"category"},"y":{"label":"Impact","unit":"percent"},"series":[{"name":"Impact","kind":"forecast","x":["Equities −20 %","Rates +100 bps","US dollar +10 %","Credit: high yield −10 % vs Treasuries"],"y":[-0.09338870704216223,-0.04487322120009819,-0.044795382164516326,0.01959157677886521],"style":"bar"}]},{"id":"fan","title":"Monte Carlo fan of the portfolio value (252 sessions)","type":"fan","x":{"label":"Date","type":"time"},"y":{"label":"Value (USD)","unit":"currency","currency":"USD"},"series":[{"name":"5–95 %","kind":"forecast","x":["2026-11-20","2026-11-26","2026-12-02","2026-12-08","2026-12-14","2026-12-21","2026-12-25","2026-12-31","2027-01-06","2027-01-12","2027-01-19","2027-01-25","2027-01-29","2027-02-04","2027-02-10","2027-02-17","2027-02-23","2027-03-01","2027-03-05","2027-03-11","2027-03-18","2027-03-24","2027-03-30","2027-04-05","2027-04-09","2027-04-16","2027-04-22","2027-04-28","2027-05-04","2027-05-10","2027-05-17","2027-05-21","2027-05-27","2027-06-02","2027-06-08","2027-06-15","2027-06-21","2027-06-25","2027-07-01","2027-07-07","2027-07-14","2027-07-20","2027-07-26","2027-07-30","2027-08-05","2027-08-12","2027-08-18","2027-08-24","2027-08-30","2027-09-03","2027-09-10","2027-09-16","2027-09-22","2027-09-28","2027-10-04","2027-10-11","2027-10-15","2027-10-21","2027-10-27","2027-11-02","2027-11-09"],"y":[100000,100174.35220177475,100324.8558074602,100500.2856171979,100760.3502838795,101012.14701937919,101130.34772437463,101314.4558235732,101531.58947348357,101650.41968789617,101839.65038414348,102007.89507725007,102168.38814301653,102303.90466876884,102497.84161864461,102827.81148448758,102976.57366118937,103036.70009501418,103224.48698993906,103420.57039081238,103644.90278539722,103782.74633847238,103972.6007748429,104139.39718624021,104300.04157241923,104564.85567827881,104743.7788114367,104888.36344087051,104980.36470541419,105195.00323138488,105519.64044383637,105618.62491994703,105789.9876228499,106002.06600370878,106051.42865922094,106362.86260328721,106542.3984523966,106862.5378525657,106999.34039951884,107175.44208084713,107342.11671907506,107581.72343624668,107675.16108234614,107831.32298163451,108056.22358077555,108122.79325116047,108234.85629796956,108593.74950185917,108685.25147269003,108831.35778784267,109270.54928702944,109448.74748903992,109586.01505944744,109813.05014934298,109903.39236141604,110056.69204170837,110172.17321725408,110340.54260312772,110595.82535356913,110810.78612696222,111114.39727010817],"lower":[100000,97960.41100675186,97221.91525473374,96569.04379529945,96161.82691658344,95773.34785395407,95564.04196659401,95292.36410227996,95012.23636793428,94870.41392770897,94482.02220417601,94235.92237402577,94052.79382592367,93832.67275566833,93644.51454170114,93472.39810520712,93453.89060710171,93242.91590840888,93100.19273621876,93130.0441307745,92928.7802570632,92838.22805156458,92620.00775234679,92698.51706680798,92672.33126633735,92482.22339735889,92435.39586687183,92383.81934036805,92226.69344430508,92268.15571470301,92220.14398056536,92216.17256851522,92060.64809554505,92085.17027983685,92066.06373174925,91957.50427473127,92050.48550922477,91876.1939454745,91741.81295431197,92045.65184507807,92240.83550401012,92031.37989351263,92046.7060409476,92178.60995623026,92423.22677056563,92338.97050893356,92294.87805349872,92211.75802445336,92289.17601780218,92243.97567628365,92284.46703917065,91966.67738971309,91990.07818386238,92116.43038618808,91904.82831383354,91928.87955211406,92054.28638686365,92049.7936304708,92045.74948601352,92119.15465873227,92012.98488974679],"upper":[100000,102534.95480289403,103682.76224041336,104668.01014489675,105410.5268107994,106425.18126892971,107288.51640114201,107885.55480476959,108585.50673244034,109198.71543329564,109862.38638922348,110298.30837404652,110889.63967511355,111384.52313711878,111882.02247887795,112543.1987853974,112974.04958650221,113526.8677463053,114127.35173752026,114490.85235887294,114877.32449209444,115337.82311402471,115971.8173154196,116428.23554637721,116977.57395715264,117680.3337885111,118303.16150861554,118744.8459705061,119007.85248727091,119642.67113570718,120332.65706828918,120470.78991099162,120786.4946390273,121025.29532504168,121570.82021622836,122042.40759586218,122816.80328650486,123293.7329374522,123414.27327595664,123984.67669950477,124584.17980769034,124929.12755908839,125284.85820852616,125809.71986084277,126485.65315380867,126861.51735493877,127184.5414853037,127786.75784526652,128147.47004522051,128631.04086977226,129359.37974007275,129872.16014952908,130212.02706534781,130687.96394092661,130849.33726970195,131637.47650412502,131907.94443859678,132486.5051576581,133055.15325772463,133429.84197197412,133509.91896149446],"style":"band","line":false},{"name":"25–75 %","kind":"forecast","x":["2026-11-20","2026-11-26","2026-12-02","2026-12-08","2026-12-14","2026-12-21","2026-12-25","2026-12-31","2027-01-06","2027-01-12","2027-01-19","2027-01-25","2027-01-29","2027-02-04","2027-02-10","2027-02-17","2027-02-23","2027-03-01","2027-03-05","2027-03-11","2027-03-18","2027-03-24","2027-03-30","2027-04-05","2027-04-09","2027-04-16","2027-04-22","2027-04-28","2027-05-04","2027-05-10","2027-05-17","2027-05-21","2027-05-27","2027-06-02","2027-06-08","2027-06-15","2027-06-21","2027-06-25","2027-07-01","2027-07-07","2027-07-14","2027-07-20","2027-07-26","2027-07-30","2027-08-05","2027-08-12","2027-08-18","2027-08-24","2027-08-30","2027-09-03","2027-09-10","2027-09-16","2027-09-22","2027-09-28","2027-10-04","2027-10-11","2027-10-15","2027-10-21","2027-10-27","2027-11-02","2027-11-09"],"y":[100000,100174.35220177475,100324.8558074602,100500.2856171979,100760.3502838795,101012.14701937919,101130.34772437463,101314.4558235732,101531.58947348357,101650.41968789617,101839.65038414348,102007.89507725007,102168.38814301653,102303.90466876884,102497.84161864461,102827.81148448758,102976.57366118937,103036.70009501418,103224.48698993906,103420.57039081238,103644.90278539722,103782.74633847238,103972.6007748429,104139.39718624021,104300.04157241923,104564.85567827881,104743.7788114367,104888.36344087051,104980.36470541419,105195.00323138488,105519.64044383637,105618.62491994703,105789.9876228499,106002.06600370878,106051.42865922094,106362.86260328721,106542.3984523966,106862.5378525657,106999.34039951884,107175.44208084713,107342.11671907506,107581.72343624668,107675.16108234614,107831.32298163451,108056.22358077555,108122.79325116047,108234.85629796956,108593.74950185917,108685.25147269003,108831.35778784267,109270.54928702944,109448.74748903992,109586.01505944744,109813.05014934298,109903.39236141604,110056.69204170837,110172.17321725408,110340.54260312772,110595.82535356913,110810.78612696222,111114.39727010817],"lower":[100000,99208.31541245716,99036.77536299941,98902.51279840444,98843.79907593681,98816.97133914234,98817.32160298974,98776.47969996984,98828.74172986244,98748.26821392088,98789.05392785353,98808.18670329757,98792.16450670623,98793.16960040329,98799.19672385653,98869.95311467344,98921.56673562128,98954.01412628136,98914.94455110916,99010.08359649178,98970.17995813236,99146.90668866638,99149.6298059699,99187.91909538068,99360.56795878352,99485.11078673557,99407.0257010097,99632.11424494382,99740.99726195754,99806.78044136535,99813.04463656382,99885.8362883593,99954.15864897567,100063.00087812396,100207.75464948251,100387.52693704129,100499.45519842627,100549.24813881572,100690.03480377264,100765.91884997734,101010.04169309576,101092.0339533457,101294.7449348785,101422.85809087112,101382.94242581278,101505.77334629884,101598.89457658927,101702.06240635991,101743.06635742667,101793.7699433465,101843.31601170331,102016.23286702995,102110.72434841873,102092.43573707601,102330.52659714146,102227.48066277776,102303.58191804554,102703.39799178763,102746.130679729,102898.67745019993,103118.25492684937],"upper":[100000,101087.23579285009,101716.31537024461,102175.18715194281,102680.65208156094,103227.56994383362,103605.39858442155,103979.58615604727,104280.63644037122,104749.0293351525,105037.83650888744,105428.02858561625,105697.44137764025,105996.4903636924,106338.3643914106,106771.51858188362,107039.94617581577,107304.7983693867,107568.74292404964,107954.55533031616,108268.82840220006,108615.51823233513,108982.78393605398,109296.54592314336,109515.6931662926,110023.5892116212,110127.75980681363,110464.05388320489,110708.19404409599,111005.72433626979,111377.27596242909,111608.02661967698,112111.8053499446,112210.83110375026,112543.25363090873,112662.60373721716,112912.77286558007,113225.9927592953,113492.79225093588,113747.26812536283,113993.4893215045,114436.43260971333,114638.34486696623,114900.10923684377,115171.41469756128,115659.5052197845,116069.47783750188,116224.19473318674,116480.15460441995,116744.64487658892,117095.11803643692,117151.54608081716,117373.40321088635,117718.9128109462,118067.18105228909,118390.59775737893,118738.5912793846,118955.869667077,119377.13097911187,119582.27828019395,119744.09576025432],"style":"band","line":false},{"name":"Median","kind":"forecast","x":["2026-11-20","2026-11-26","2026-12-02","2026-12-08","2026-12-14","2026-12-21","2026-12-25","2026-12-31","2027-01-06","2027-01-12","2027-01-19","2027-01-25","2027-01-29","2027-02-04","2027-02-10","2027-02-17","2027-02-23","2027-03-01","2027-03-05","2027-03-11","2027-03-18","2027-03-24","2027-03-30","2027-04-05","2027-04-09","2027-04-16","2027-04-22","2027-04-28","2027-05-04","2027-05-10","2027-05-17","2027-05-21","2027-05-27","2027-06-02","2027-06-08","2027-06-15","2027-06-21","2027-06-25","2027-07-01","2027-07-07","2027-07-14","2027-07-20","2027-07-26","2027-07-30","2027-08-05","2027-08-12","2027-08-18","2027-08-24","2027-08-30","2027-09-03","2027-09-10","2027-09-16","2027-09-22","2027-09-28","2027-10-04","2027-10-11","2027-10-15","2027-10-21","2027-10-27","2027-11-02","2027-11-09"],"y":[100000,100174.35220177475,100324.8558074602,100500.2856171979,100760.3502838795,101012.14701937919,101130.34772437463,101314.4558235732,101531.58947348357,101650.41968789617,101839.65038414348,102007.89507725007,102168.38814301653,102303.90466876884,102497.84161864461,102827.81148448758,102976.57366118937,103036.70009501418,103224.48698993906,103420.57039081238,103644.90278539722,103782.74633847238,103972.6007748429,104139.39718624021,104300.04157241923,104564.85567827881,104743.7788114367,104888.36344087051,104980.36470541419,105195.00323138488,105519.64044383637,105618.62491994703,105789.9876228499,106002.06600370878,106051.42865922094,106362.86260328721,106542.3984523966,106862.5378525657,106999.34039951884,107175.44208084713,107342.11671907506,107581.72343624668,107675.16108234614,107831.32298163451,108056.22358077555,108122.79325116047,108234.85629796956,108593.74950185917,108685.25147269003,108831.35778784267,109270.54928702944,109448.74748903992,109586.01505944744,109813.05014934298,109903.39236141604,110056.69204170837,110172.17321725408,110340.54260312772,110595.82535356913,110810.78612696222,111114.39727010817],"style":"line"}],"note":"5000 paths, seed 12345; geometric Brownian motion with the portfolio's expected return 10.9% and volatility 11.2% a year, weights held constant."}],"diagnostics":[{"name":"Risk contributions add up","statistic":1.3877787807814457e-17,"pvalue":null,"conclusion":"Σ contributions − portfolio volatility = 1.4e-17.","passed":true},{"name":"Covariance matrix conditioning","statistic":3.0842345962390842,"pvalue":null,"conclusion":"Condition number 3; smallest eigenvalue 1.61e-02; Ledoit-Wolf shrinkage intensity 0.07.","passed":true},{"name":"Observations per asset","statistic":252,"pvalue":null,"conclusion":"756 daily returns for 3 series.","passed":true},{"name":"Risk parity equalizes contributions","statistic":7.34584615358358e-12,"pvalue":null,"conclusion":"Risk shares range from 33.33% to 33.33% (target 33.33%).","passed":true}],"assumptions":["Weights mode: the portfolio value of 100,000 USD is a parameter; quantities are derived from it (weight × value ÷ price).","Sector, country and asset class come from the FMP company profile; a fund or ETF has no sector there and is shown as Unknown (no look-through into its holdings).","Factor exposures are estimated on ETF proxies — market SPY, size IWM − SPY, value IWD − IWF, momentum MTUM − SPY, rates TLT, credit HYG − IEF, US dollar UUP — by one joint OLS regression over the sample; they are proxies, not the academic factor portfolios.","Covariance: Ledoit-Wolf shrinkage toward a scaled identity of 756 daily base-currency returns, ×252. Expected returns: Bayes-Stein shrinkage of historical means toward the minimum-variance portfolio's mean (intensity 0.66).","The rebalancing table is a proposal computed from model inputs. It is never an order, and it is not investment advice.","Scenario shocks act through the joint regression betas of each holding on the ETF proxies; the rates scenario maps +100 bps to a -17% return of TLT (duration 17).","Monte Carlo: lognormal portfolio value with constant annual drift 10.89% (from the expected-return estimator) and volatility 11.22%, no fat tails, no volatility clustering, weights held constant. The drift is the least reliable input; the fan mostly illustrates the dispersion implied by the volatility.","Return-based figures use today's holdings carried back through history (constant weights rebalanced daily, or today's quantities bought and held). They are hypothetical and are NOT the account's realized performance: past trades, deposits and withdrawals are unknown.","Valuation: latest observed closes and exchange rates (2026-11-20); returns use split- and dividend-adjusted closes converted into USD day by day with observed FX closes (the last FX close is carried over at most 5 sessions when FX and the asset's market do not trade the same day).","Base-currency cash earns nothing in the hypothetical history; foreign cash is a pure currency exposure. Risk-free rate 4.00% for Sharpe ratios. Past performance does not guarantee future results."],"warnings":["Expected returns are the fragile input of any optimizer: sample means are estimated with large error, and maximum-Sharpe weights amplify that error. Minimum variance, risk parity, HRP and maximum diversification do not use expected returns."],"methodology":"**Valuation.** Value in base currency $V = \\sum_i q_i P_i X_{c(i)} + \\sum_c \\text{cash}_c X_c$, with $X_c$ the observed price of one unit of currency $c$ in the base currency; weights $w_i = q_i P_i X_{c(i)} / V$.\nBase-currency return of an asset: $(1 + r^{local})(1 + r^{fx}) - 1$.\n\n**Risk.** With annualized covariance $\\Sigma$ (Ledoit-Wolf shrinkage by default), $\\sigma_p = \\sqrt{w^\\top \\Sigma w}$. Euler decomposition: marginal risk $\\partial\\sigma_p/\\partial w_i = (\\Sigma w)_i/\\sigma_p$,\ncontribution $RC_i = w_i (\\Sigma w)_i / \\sigma_p$, $\\sum_i RC_i = \\sigma_p$. Diversification ratio $= \\sum_i |w_i|\\sigma_i / \\sigma_p$. Effective number of bets $= \\exp(-\\sum_k p_k \\ln p_k)$\nwith $p_k$ the share of variance of the $k$-th principal portfolio. VaR$_\\alpha$ is the $(1-\\alpha)$ quantile of daily hypothetical returns; expected shortfall is the mean beyond it.\nBeta $= \\mathrm{cov}(r_p, r_b)/\\mathrm{var}(r_b)$; tracking error $= \\sqrt{252}\\,\\sigma(r_p - r_b)$.\n\n**Factor exposures.** $r_{p,t} = \\alpha + \\sum_k \\beta_k f_{k,t} + \\varepsilon_t$ on ETF proxy returns, OLS with Newey-West standard errors.\n\n**Optimizers.** Minimum variance $\\min w^\\top\\Sigma w$; maximum Sharpe $\\max (w^\\top\\mu - r_f)/\\sqrt{w^\\top\\Sigma w}$; maximum diversification $\\max w^\\top\\sigma/\\sqrt{w^\\top\\Sigma w}$ — all with $\\sum w = 1$ and the weight bounds (SLSQP).\nRisk parity: $RC_i = \\sigma_p/n$ for all $i$ (convex formulation of Spinu). Hierarchical risk parity: single-linkage clustering on $d_{ij} = \\sqrt{(1-\\rho_{ij})/2}$, quasi-diagonalization, recursive bisection by inverse cluster variance.\nExpected returns: historical means, or Bayes-Stein shrinkage $\\hat\\mu = (1-\\phi)\\bar r + \\phi\\,\\mu_{MV}\\mathbf{1}$ with $\\phi = \\frac{n+2}{n+2+T(\\bar r-\\mu_{MV}\\mathbf 1)^\\top\\Sigma^{-1}(\\bar r-\\mu_{MV}\\mathbf 1)}$ (Jorion 1986).\n\n**Scenarios.** Shock table: impact $= \\sum_i w_i \\beta_{i,k}\\,\\Delta f_k$. Monte Carlo: $V_T = V_0 \\exp((\\mu_p - \\sigma_p^2/2)T + \\sigma_p\\sqrt{T}Z)$ simulated along the horizon.","provenance":{"data":[{"symbol":"SPY","provider":"FMP","retrievedAt":"2026-11-20T23:35:44+00:00","start":"2023-11-06","end":"2026-11-20","observations":764,"frequency":"1d","adjusted":"split_div","currency":null},{"symbol":"TLT","provider":"FMP","retrievedAt":"2026-11-20T23:35:44+00:00","start":"2023-11-06","end":"2026-11-20","observations":764,"frequency":"1d","adjusted":"split_div","currency":null},{"symbol":"GLD","provider":"FMP","retrievedAt":"2026-11-20T23:35:44+00:00","start":"2023-11-06","end":"2026-11-20","observations":764,"frequency":"1d","adjusted":"split_div","currency":null},{"symbol":"SPY","provider":"FMP","retrievedAt":"2026-11-20T23:35:45+00:00","start":"2023-11-06","end":"2026-11-20","observations":764,"frequency":"1d","adjusted":"split_div","currency":null},{"symbol":"IWM","provider":"FMP","retrievedAt":"2026-11-20T23:35:44+00:00","start":"2023-11-06","end":"2026-11-20","observations":764,"frequency":"1d","adjusted":"split_div","currency":null},{"symbol":"IWD","provider":"FMP","retrievedAt":"2026-11-20T23:35:44+00:00","start":"2023-11-06","end":"2026-11-20","observations":764,"frequency":"1d","adjusted":"split_div","currency":null},{"symbol":"IWF","provider":"FMP","retrievedAt":"2026-11-20T23:35:45+00:00","start":"2023-11-06","end":"2026-11-20","observations":764,"frequency":"1d","adjusted":"split_div","currency":null},{"symbol":"MTUM","provider":"FMP","retrievedAt":"2026-11-20T23:35:47+00:00","start":"2023-11-06","end":"2026-11-20","observations":764,"frequency":"1d","adjusted":"split_div","currency":null},{"symbol":"TLT","provider":"FMP","retrievedAt":"2026-11-20T23:35:47+00:00","start":"2023-11-06","end":"2026-11-20","observations":764,"frequency":"1d","adjusted":"split_div","currency":null},{"symbol":"HYG","provider":"FMP","retrievedAt":"2026-11-20T23:35:47+00:00","start":"2023-11-06","end":"2026-11-20","observations":764,"frequency":"1d","adjusted":"split_div","currency":null},{"symbol":"IEF","provider":"FMP","retrievedAt":"2026-11-20T23:35:47+00:00","start":"2023-11-06","end":"2026-11-20","observations":764,"frequency":"1d","adjusted":"split_div","currency":null},{"symbol":"UUP","provider":"FMP","retrievedAt":"2026-11-20T23:35:50+00:00","start":"2023-11-06","end":"2026-11-20","observations":764,"frequency":"1d","adjusted":"split_div","currency":null}],"spec":{"positions":null,"symbols":["SPY","TLT","GLD"],"weights":{"SPY":0.3333333333333333,"TLT":0.3333333333333333,"GLD":0.3333333333333333},"cash":null,"base_currency":"USD","portfolio_value":100000,"benchmark":"SPY","lookback_days":756,"confidence":0.95,"covariance":"ledoit_wolf","factors":true,"objective":"min_variance","target_weights":null,"expected_returns":"james_stein","min_weight":0,"max_weight":1,"risk_free":0.04,"cost_bps":5,"shocks":null,"horizon_days":252,"simulations":5000,"seed":12345,"mode":"weights","sampleStart":"2023-11-16","sampleEnd":"2026-11-20","observations":756,"profileSource":"FMP profile","currencies":{"SPY":{"currency":"USD","source":"profile"},"TLT":{"currency":"USD","source":"profile"},"GLD":{"currency":"USD","source":"profile"}},"fxRates":{"USD":1},"portfolioValue":100000,"hypotheticalHistory":true,"rebalanceIsProposalOnly":true,"expectedReturnsUsed":{"SPY":0.11959713458806273,"TLT":0.07049565639301834,"GLD":0.13647455487094037},"shrinkageMeans":0.6588514121049005,"shrinkageCovariance":0.07262550271162561},"seed":12345,"software":{"python":"3.14.4","numpy":"2.4.6","pandas":"3.0.3","scipy":"1.17.1","statsmodels":"0.14.6","arch":"8.0.0","scikit-learn":"1.8.0"},"computedAt":"2026-11-20T23:35:50+00:00","durationMs":8972,"reproduce":"from vqlab import portfolio\nr = portfolio.run({'symbols': ['SPY', 'TLT', 'GLD'], 'base_currency': 'USD', 'portfolio_value': 100000, 'benchmark': 'SPY', 'lookback_days': 756, 'confidence': 0.95, 'covariance': 'ledoit_wolf', 'factors': True, 'objective': 'min_variance', 'expected_returns': 'james_stein', 'min_weight': 0, 'max_weight': 1, 'risk_free': 0.04, 'cost_bps': 5, 'horizon_days': 252, 'simulations': 5000, 'seed': 12345})\nprint(r[\"headline\"])\n# or the mathematics alone: portfolio.risk_contributions(w, cov), portfolio.min_variance(cov), portfolio.erc_weights(cov), portfolio.hrp_weights(cov)"}}}}2