SPB Git

Repository Public

job_portfolio_lab.json 53.1 KB 2 lines json

1{"job":{"id":"c3ed9fea-6a7b-4931-adef-a26836158ffe","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":1795211368530,"finishedAt":1795211379527,"error":null,"progress":1,"engineVersion":"1.0.0","durationMs":10997,"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.11214228191451638,"unit":"percent","kind":"calculated","note":"Ledoit-Wolf covariance, 756 daily returns"},{"label":"Diversification ratio","value":1.499455265305132,"unit":"ratio","kind":"calculated","decimals":2,"note":"weighted average volatility ÷ portfolio volatility"},{"label":"Effective number of bets","value":1.9241751606766624,"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.01648023714368966,"unit":"percent","kind":"calculated","note":"historical, 38 tail days; 1,648 USD"},{"label":"Hypothetical return (annual)","value":0.13776286088428025,"unit":"percent","kind":"calculated","note":"today's weights held constant over the sample"},{"label":"Hypothetical Sharpe ratio","value":0.8438888534827269,"unit":"ratio","kind":"calculated","decimals":2,"note":"risk-free 4.00%"},{"label":"Hypothetical maximum drawdown","value":-0.13913646051943263,"unit":"percent","kind":"calculated"},{"label":"Beta to SPY","value":0.462896591360202,"unit":"ratio","kind":"calculated","decimals":2},{"label":"Tracking error vs SPY","value":0.12091582851009937,"unit":"percent","kind":"calculated"},{"label":"Information ratio","value":-0.25995611202954344,"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.6724408007409177,"unit":"percent","kind":"calculated","note":"share of daily variance explained by the proxies"},{"label":"Rebalancing turnover (one-way)","value":0.20938827230837015,"unit":"percent","kind":"calculated","note":"toward Minimum variance; a proposal, not an order"},{"label":"Estimated rebalancing cost","value":20.938827230837017,"unit":"currency","kind":"calculated","currency":"USD","note":"5 bps × 41,878 USD traded"},{"label":"Simulated median value in 252 sessions","value":111119.85981770964,"unit":"currency","kind":"forecast","currency":"USD"},{"label":"Simulated 5 % worst-case value","value":92019.01155543757,"unit":"currency","kind":"forecast","currency":"USD","note":"5th percentile of the simulated values"},{"label":"Simulated probability of a loss","value":0.174,"unit":"percent","kind":"forecast","note":"over 252 sessions"}],"tables":[{"id":"holdings","title":"Holdings valued in USD","columns":[{"key":"symbol","label":"Holding"},{"key":"name","label":"Name"},{"key":"quantity","label":"Quantity","decimals":4},{"key":"price","label":"Price (local)","decimals":4},{"key":"currency","label":"Currency"},{"key":"fx","label":"FX to USD","decimals":4},{"key":"value","label":"Value (USD)","unit":"currency"},{"key":"weight","label":"Weight","unit":"percent"},{"key":"costBasis","label":"Cost basis (local)","decimals":4},{"key":"pnl","label":"P&L (USD)","unit":"currency"},{"key":"pnlPct","label":"P&L (local)","unit":"percent"},{"key":"currencySource","label":"Currency from"}],"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.18959023413717,"price":323.03,"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"},{"key":"group","label":"Group"},{"key":"weight","label":"Weight","unit":"percent"}],"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"},{"key":"weight","label":"Weight","unit":"percent"},{"key":"vol","label":"Volatility","unit":"percent"},{"key":"marginal","label":"Marginal risk","decimals":4},{"key":"component","label":"Risk contribution","unit":"percent"},{"key":"share","label":"Share of risk","unit":"percent"},{"key":"assetReturn","label":"Return over the sample","unit":"percent"},{"key":"contribution","label":"Contribution to return","unit":"percent"}],"rows":[{"holding":"SPY","weight":0.3333333333333333,"vol":0.15755717133705774,"marginal":0.09998071994587553,"component":0.03332690664862517,"share":0.29718413144142675,"assetReturn":0.5905967533665417,"contribution":0.16692319893028934},{"holding":"TLT","weight":0.3333333333333333,"vol":0.12917453664735606,"marginal":0.06515784609428685,"component":0.02171928203142895,"share":0.19367611984197972,"assetReturn":0.04651162790697372,"contribution":0.022993310496623315},{"holding":"GLD","weight":0.3333333333333333,"vol":0.21772529725574843,"marginal":0.1712882797033868,"component":0.05709609323446227,"share":0.5091397487165936,"assetReturn":0.7784078396828888,"contribution":0.21655466137700602}],"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"},{"key":"annual","label":"Annual return","unit":"percent"},{"key":"vol","label":"Volatility","unit":"percent"},{"key":"sharpe","label":"Sharpe","decimals":2},{"key":"maxDrawdown","label":"Max drawdown","unit":"percent"},{"key":"total","label":"Total return","unit":"percent"}],"rows":[{"series":"Today's weights, constant (hypothetical)","annual":0.13776286088428025,"vol":0.11315517425533508,"sharpe":0.8438888534827269,"maxDrawdown":-0.13913646051943263,"total":0.4728389472058838},{"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"},{"key":"var","label":"VaR","unit":"percent"},{"key":"es","label":"Expected shortfall","unit":"percent"},{"key":"varAmount","label":"VaR (USD)","unit":"currency"},{"key":"esAmount","label":"ES (USD)","unit":"currency"}],"rows":[{"method":"Historical","var":0.01169879975572194,"es":0.01648023714368966,"varAmount":1169.8799755721939,"esAmount":1648.023714368966},{"method":"Gaussian","var":0.01118703067528343,"es":0.014165575193826703,"varAmount":1118.7030675283431,"esAmount":1416.5575193826703}],"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"},{"key":"beta","label":"Exposure (beta)","decimals":3},{"key":"t","label":"t (HAC)","decimals":2},{"key":"p","label":"p-value","decimals":3},{"key":"factorVol","label":"Proxy volatility","unit":"percent"}],"rows":[{"factor":"US equity market (SPY)","beta":0.46709908795285515,"t":11.623120973027484,"p":3.144358149047209e-31,"factorVol":0.15645918838208206},{"factor":"Size: small minus large (IWM − SPY)","beta":0.022087638950740396,"t":0.9330031153070163,"p":0.3508183598703737,"factorVol":0.12318492657310118},{"factor":"Value minus growth (IWD − IWF)","beta":0.02864144385415912,"t":1.4446642099024571,"p":0.14855222749815983,"factorVol":0.15487631466861124},{"factor":"Momentum (MTUM − SPY)","beta":0.049926849265923445,"t":2.1438344077453717,"p":0.0320461573260103,"factorVol":0.14155316267339668},{"factor":"Long Treasuries (TLT)","beta":0.2641229750487283,"t":6.0338286824969725,"p":1.6011981707882168e-09,"factorVol":0.12526786488411948},{"factor":"Credit: high yield minus Treasuries (HYG − IEF)","beta":-0.19555030390633493,"t":-1.5848304056835578,"p":0.11300487207547401,"factorVol":0.057096531583493496},{"factor":"US dollar index (UUP)","beta":-0.44828723178807317,"t":-8.064914246238008,"p":7.328729130704691e-16,"factorVol":0.06483006386015225},{"factor":"Alpha (annual, unexplained)","beta":0.07667913122528473,"t":2.054548860539315,"p":0.03992259943957557,"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"},{"key":"expReturn","label":"Expected return","unit":"percent"},{"key":"vol","label":"Volatility","unit":"percent"},{"key":"sharpe","label":"Sharpe","decimals":2},{"key":"divRatio","label":"Diversification ratio","decimals":2},{"key":"maxRiskShare","label":"Largest risk share","unit":"percent"},{"key":"SPY","label":"SPY","unit":"percent"},{"key":"TLT","label":"TLT","unit":"percent"},{"key":"GLD","label":"GLD","unit":"percent"}],"rows":[{"portfolio":"Minimum variance","expReturn":0.09512185632667414,"vol":0.10054722414394039,"sharpe":0.5482185788417524,"divRatio":1.4899064621247868,"maxRiskShare":0.542721591139073,"SPY":0.33009050844696175,"TLT":0.5427216056417035,"GLD":0.12718788591133479},{"portfolio":"Maximum Sharpe","expReturn":0.11359245790001628,"vol":0.11617825156449263,"sharpe":0.6334443573474144,"divRatio":1.4503951468781309,"maxRiskShare":0.532001892662028,"SPY":0.4916310055039304,"TLT":0.22179830680378496,"GLD":0.2865706876922847},{"portfolio":"Risk parity (equal risk contribution)","expReturn":0.10282994297104567,"vol":0.10422152413041892,"sharpe":0.602849972645023,"divRatio":1.5345618243050922,"maxRiskShare":0.3333333333375198,"SPY":0.33543533852108637,"TLT":0.4247101787744092,"GLD":0.2398544827045045},{"portfolio":"Hierarchical risk parity","expReturn":0.09590756037199102,"vol":0.10081302972348247,"sharpe":0.5545668107122509,"divRatio":1.5063273975078448,"maxRiskShare":0.5332505455494829,"SPY":0.30343339930229185,"TLT":0.5376673136766386,"GLD":0.15889928702106962},{"portfolio":"Maximum diversification","expReturn":0.10200202809737632,"vol":0.10359246662438984,"sharpe":0.5985186965591429,"divRatio":1.5350307404967265,"maxRiskShare":0.35625228625114286,"SPY":0.3302933117167124,"TLT":0.4385568985194669,"GLD":0.23114978976382072},{"portfolio":"Equal weight","expReturn":0.10890409749565029,"vol":0.11214228191451638,"sharpe":0.6144345943323536,"divRatio":1.499455265305132,"maxRiskShare":0.5091397487165936,"SPY":0.3333333333333333,"TLT":0.3333333333333333,"GLD":0.3333333333333333},{"portfolio":"Current","expReturn":0.10890409749565029,"vol":0.11214228191451638,"sharpe":0.6144345943323536,"divRatio":1.499455265305132,"maxRiskShare":0.5091397487165936,"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"},{"key":"current","label":"Current weight","unit":"percent"},{"key":"target","label":"Target weight","unit":"percent"},{"key":"change","label":"Change","unit":"percent"},{"key":"action","label":"Action"},{"key":"units","label":"Units","decimals":4},{"key":"tradeLocal","label":"Amount (local)","unit":"currency"},{"key":"currency","label":"Currency"},{"key":"tradeBase","label":"Amount (USD)","unit":"currency"}],"rows":[{"symbol":"SPY","current":0.3333333333333333,"target":0.33009050844696175,"change":-0.0032428248863715647,"action":"sell","units":-0.47010407016012595,"tradeLocal":-324.28248863715646,"currency":"USD","tradeBase":-324.28248863715646},{"symbol":"TLT","current":0.3333333333333333,"target":0.5427216056417035,"change":0.20938827230837015,"action":"buy","units":257.0758407714796,"tradeLocal":20938.827230837014,"currency":"USD","tradeBase":20938.827230837014},{"symbol":"GLD","current":0.3333333333333333,"target":0.12718788591133479,"change":-0.20614544742199853,"action":"sell","units":-63.816192744326706,"tradeLocal":-20614.544742199854,"currency":"USD","tradeBase":-20614.544742199854}],"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"},{"key":"factor","label":"Shocked proxy"},{"key":"factorShock","label":"Proxy return","unit":"percent"},{"key":"impact","label":"Portfolio impact","unit":"percent"},{"key":"impactAmount","label":"Impact (USD)","unit":"currency"}],"rows":[{"scenario":"Equities −20 %","factor":"US equity market (SPY)","factorShock":-0.2,"impact":-0.09341981759057105,"impactAmount":-9341.981759057106},{"scenario":"Rates +100 bps","factor":"Long Treasuries (TLT)","factorShock":-0.17,"impact":-0.04490090575828379,"impactAmount":-4490.090575828379},{"scenario":"US dollar +10 %","factor":"US dollar index (UUP)","factorShock":0.1,"impact":-0.04482872317880732,"impactAmount":-4482.872317880731},{"scenario":"Credit: high yield −10 % vs Treasuries","factor":"Credit: high yield minus Treasuries (HYG − IEF)","factorShock":-0.1,"impact":0.019555030390633523,"impactAmount":1955.5030390633524}],"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"},{"key":"holding","label":"Holding"},{"key":"beta","label":"Beta to the proxy","decimals":3},{"key":"impact","label":"Holding return","unit":"percent"},{"key":"contribution","label":"Contribution","unit":"percent"}],"rows":[{"scenario":"Equities −20 %","holding":"SPY","beta":0.9999999999999994,"impact":-0.1999999999999999,"contribution":-0.06666666666666662},{"scenario":"Equities −20 %","holding":"TLT","beta":3.476576432182166e-16,"impact":-6.953152864364332e-17,"contribution":-2.3177176214547773e-17},{"scenario":"Equities −20 %","holding":"GLD","beta":0.40129726385856596,"impact":-0.0802594527717132,"contribution":-0.0267531509239044},{"scenario":"Rates +100 bps","holding":"SPY","beta":-6.676150694925498e-17,"impact":1.1349456181373347e-17,"contribution":3.7831520604577824e-18},{"scenario":"Rates +100 bps","holding":"TLT","beta":0.9999999999999994,"impact":-0.16999999999999993,"contribution":-0.05666666666666664},{"scenario":"Rates +100 bps","holding":"GLD","beta":-0.20763107485381493,"impact":0.035297282725148545,"contribution":0.011765760908382848},{"scenario":"US dollar +10 %","holding":"SPY","beta":1.5477772241699868e-16,"impact":1.547777224169987e-17,"contribution":5.159257413899957e-18},{"scenario":"US dollar +10 %","holding":"TLT","beta":-1.4526507368189058e-16,"impact":-1.4526507368189058e-17,"contribution":-4.8421691227296855e-18},{"scenario":"US dollar +10 %","holding":"GLD","beta":-1.3448616953642194,"impact":-0.13448616953642195,"contribution":-0.04482872317880732},{"scenario":"Credit: high yield −10 % vs Treasuries","holding":"SPY","beta":-5.475666439339817e-16,"impact":5.4756664393398176e-17,"contribution":1.8252221464466056e-17},{"scenario":"Credit: high yield −10 % vs Treasuries","holding":"TLT","beta":-6.770874452963732e-17,"impact":6.7708744529637325e-18,"contribution":2.2569581509879107e-18},{"scenario":"Credit: high yield −10 % vs Treasuries","holding":"GLD","beta":-0.5866509117190051,"impact":0.05866509117190051,"contribution":0.019555030390633502}]}],"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.29718413144142675,0.19367611984197972,0.5091397487165936],"style":"bar"}]},{"id":"correlation","title":"Correlation matrix (base-currency returns)","type":"heatmap","x":{"label":"","type":"category"},"y":{"label":""},"series":[],"matrix":{"x":["SPY","TLT","GLD"],"y":["SPY","TLT","GLD"],"z":[[1.0000000000000002,0.09397068430565755,0.2011244414851695],[0.09397068430565755,1.0000000000000002,0.11812667048641091],[0.2011244414851695,0.11812667048641091,0.9999999999999999]]},"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)"},"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.2838947205884]},{"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.46709908795285515,0.022087638950740396,0.02864144385415912,0.049926849265923445,0.2641229750487283,-0.19555030390633493,-0.44828723178807317],"style":"bar"}]},{"id":"frontier","title":"Efficient frontier","type":"scatter","x":{"label":"Volatility (annual)","type":"number"},"y":{"label":"Expected return (annual)","unit":"percent"},"series":[{"name":"Efficient frontier","kind":"calculated","x":[0.10054722414394039,0.10069446270945354,0.10113489168984371,0.10186470818376907,0.10287775361607367,0.1041657648380302,0.10571869228746246,0.10752505844237521,0.10957232974962824,0.11184727828549068,0.11433631458316222,0.11702577905845712,0.11990218536818613,0.12295241399454537,0.12616385820662904,0.1295245269724887,0.13302311083795315,0.13664901721415865,0.14039238139706464,0.14592031057586924,0.1551967785473486,0.16761219635404784,0.18252715404550193,0.19938149578996142,0.21772529725574843],"y":[0.09512185632667414,0.09684929117423023,0.09857672602178634,0.1003041608693424,0.10203159571689852,0.1037590305644546,0.10548646541201069,0.10721390025918592,0.10894133510712288,0.11066876995467897,0.11239620480223506,0.11412363964903335,0.11585107449734723,0.11757850934490333,0.11930594419245945,0.12103337903980396,0.1227608138875716,0.12448824873454709,0.1262156835826838,0.12794311839868444,0.12967055327779597,0.13139798812535208,0.13312542297290816,0.13485285782046424,0.13658029266802035]},{"name":"Assets","kind":"calculated","x":[0.15755717133705774,0.12917453664735606,0.21772529725574843],"y":[0.11963558913126797,0.07049641068766258,0.13658029266802035],"style":"points"},{"name":"Minimum variance","kind":"calculated","x":[0.10054722414394039],"y":[0.09512185632667414],"style":"points"},{"name":"Maximum Sharpe","kind":"calculated","x":[0.11617825156449263],"y":[0.11359245790001628],"style":"points"},{"name":"Risk parity (equal risk contribution)","kind":"calculated","x":[0.10422152413041892],"y":[0.10282994297104567],"style":"points"},{"name":"Hierarchical risk parity","kind":"calculated","x":[0.10081302972348247],"y":[0.09590756037199102],"style":"points"},{"name":"Maximum diversification","kind":"calculated","x":[0.10359246662438984],"y":[0.10200202809737632],"style":"points"},{"name":"Equal weight","kind":"calculated","x":[0.11214228191451638],"y":[0.10890409749565029],"style":"points"},{"name":"Current","kind":"calculated","x":[0.11214228191451638],"y":[0.10890409749565029],"style":"points"}],"annotations":[{"x":0.15755717133705774,"y":0.11963558913126797,"text":"SPY"},{"x":0.12917453664735606,"y":0.07049641068766258,"text":"TLT"},{"x":0.21772529725574843,"y":0.13658029266802035,"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.09341981759057105,-0.04490090575828379,-0.04482872317880732,0.019555030390633523],"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"},"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.42977017548,100325.01326878919,100500.52113049908,100760.65707860222,101012.54956769013,101130.83406688897,101315.02082884737,101532.2308022884,101651.14551726771,101840.478939322,102008.8047967188,102169.37991021495,102304.98065948702,102498.99766919871,102829.06155555019,102977.90792270511,103038.1252570769,103225.99397574342,103422.15892728262,103646.59518513895,103784.5250641816,103974.46249394874,104141.34378619908,104302.07375172863,104566.99098525057,104745.99917390206,104890.67138222787,104982.7638293137,105197.48598105824,105522.22473295566,105621.30077694413,105792.75084740159,106004.91445760637,106054.37228431064,106365.91087308613,106545.53488112518,106865.7548102453,107002.64861832658,107178.83964185385,107345.6292621477,107585.32258304703,107678.85488321894,107835.10837383548,108060.09734685242,108126.78868433359,108238.94630379905,108597.9224105431,108689.52052842782,108835.72061449048,109275.01798296219,109453.30929254167,109590.6720812351,109817.79873928029,109908.23871696499,110061.65915672999,110177.23747287187,110345.70209641012,110601.0769767521,110816.1318489908,111119.85981770964],"lower":[100000,97960.67645601659,97222.33236513755,96569.60379941174,96162.50871917009,95774.1712389017,95564.9700744892,95293.40123069278,95013.38257708287,94871.65847337322,94483.40449053505,94237.40953260787,94054.38095687007,93834.36202761438,93646.30334569374,93474.30661556896,93455.88680689067,93245.01212164928,93102.3842292398,93132.31990615827,92931.175999468,92840.71519330912,92622.59361802968,92701.18408877544,92675.0855446522,92485.09543077064,92438.3560237251,92386.86778661722,92229.83563223433,92271.38109243792,92223.47849245853,92219.59260158557,92064.16099543741,92088.76719127019,92069.74673363449,91961.29868234333,92054.36086480778,91880.16205029999,91745.87176734908,92049.78290680291,92245.0650843835,92035.7031396437,92051.1138446021,92183.09793167363,92427.79095617095,92343.64462193416,92299.63914722172,92216.60734385032,92294.10809072762,92248.99459532597,92289.59138579514,91971.89665686182,91995.38186556555,92121.81563273743,91910.30452949704,91934.46143897146,92059.95019312757,92055.54271847327,92051.58383710384,92125.07253612195,92019.01155543757],"upper":[100000,102534.82737889135,103682.62936105573,104667.8871134363,105410.4359014062,106425.12427263816,107288.48313698448,107885.56932276717,108585.56099447362,109198.81777755704,109862.55876162488,110298.54565167698,110889.9294723899,111384.87432719194,111882.43557021278,112543.68704608797,112974.60685608535,113527.48478582116,114128.02549112866,114491.60265542228,114878.17665133889,115338.7454400527,115972.79695294065,116429.28715460007,116978.69106923518,117681.53266668103,118304.42210578553,118746.18281517201,119009.27959726658,119644.16142928654,120334.23519573252,120472.46934076272,120788.26284578149,121027.15829993437,121572.75671672307,122044.45183184407,122818.90684808344,123295.91735680884,123416.56357079805,123987.04277929312,124586.64936762748,124931.68962786974,125287.51263669164,125812.45626051191,126488.46258671767,126864.44925463165,127187.57051295775,127789.86716850878,128150.67542658394,128634.33540065582,129362.77927750397,129875.64882637138,130215.61587425784,130691.64548923569,130853.13044420925,131641.37630717887,131911.9508507378,132490.60150647923,133059.34094157675,133434.1324056488,133514.35944110624],"style":"band"},{"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.42977017548,100325.01326878919,100500.52113049908,100760.65707860222,101012.54956769013,101130.83406688897,101315.02082884737,101532.2308022884,101651.14551726771,101840.478939322,102008.8047967188,102169.37991021495,102304.98065948702,102498.99766919871,102829.06155555019,102977.90792270511,103038.1252570769,103225.99397574342,103422.15892728262,103646.59518513895,103784.5250641816,103974.46249394874,104141.34378619908,104302.07375172863,104566.99098525057,104745.99917390206,104890.67138222787,104982.7638293137,105197.48598105824,105522.22473295566,105621.30077694413,105792.75084740159,106004.91445760637,106054.37228431064,106365.91087308613,106545.53488112518,106865.7548102453,107002.64861832658,107178.83964185385,107345.6292621477,107585.32258304703,107678.85488321894,107835.10837383548,108060.09734685242,108126.78868433359,108238.94630379905,108597.9224105431,108689.52052842782,108835.72061449048,109275.01798296219,109453.30929254167,109590.6720812351,109817.79873928029,109908.23871696499,110061.65915672999,110177.23747287187,110345.70209641012,110601.0769767521,110816.1318489908,111119.85981770964],"lower":[100000,99208.4754879038,99037.04163267424,98902.88183069907,98844.26442228298,98817.55316372942,98817.99482495859,98777.24756787987,98829.5969132618,98749.22102929762,98790.11785373792,98809.34059578551,98793.41100243504,98794.50742569202,98800.62551836767,98871.49114650328,98923.19262229779,98955.7292888891,98916.75393640209,99011.97808398303,98972.19159753516,99148.9983333634,99151.81300681503,99190.19159273314,99362.92137661699,99487.57141831685,99409.58313400022,99634.75013464391,99743.71887964805,99809.59049822338,99815.96976347241,99888.84965859562,99957.2606410625,100066.18939723255,100211.02795043023,100390.90662847701,100502.92194380076,100552.80531915749,100693.67792457476,100769.65137337676,101013.87891311226,101095.9607175845,101298.75572071904,101426.95668665206,101387.13666734802,101510.07942066444,101603.29053550438,101706.54798785558,101747.6443317271,101798.4399899262,101848.10182571177,102021.10620772357,102115.68849241936,102097.49503552893,102335.67173068943,102232.74776622932,102308.94100471283,102708.83835408551,102751.66466904458,102904.30164087663,103123.99134407038],"upper":[100000,101087.2346524103,101716.35368188168,102175.28033997517,102680.79684823088,103227.7873739624,103605.67988538086,103979.93221088918,104281.05386814925,104749.50489694478,105038.4098122446,105428.6677066067,105698.15656165639,105997.27970435628,106339.22500768256,106772.46859693262,107040.97433725194,107305.90538841739,107569.92930280216,107955.81237216844,108270.18706070512,108616.95166095081,108984.29118333306,109298.13142004528,109517.36416921778,110025.35112058514,110129.61624935236,110465.9890287125,110710.21472829563,111007.82735322895,111379.48259666204,111610.32108231637,112114.17016964409,112213.2932514202,112545.79836783432,112665.27112755174,112915.52895805708,113228.83409222247,113495.72215155774,113750.28777326341,113996.62599521337,114439.64891543842,114641.65541148788,114903.51095292908,115174.90748111423,115663.10420902872,116073.16140595087,116227.97733697368,116484.03111727693,116748.61527487778,117099.20538031515,117155.73889790798,117377.69333321566,117723.2945121752,118071.65474961352,118395.1925846397,118743.2792909389,118960.65748420444,119382.0096551634,119587.25819940915,119749.2068834817],"style":"band"},{"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.42977017548,100325.01326878919,100500.52113049908,100760.65707860222,101012.54956769013,101130.83406688897,101315.02082884737,101532.2308022884,101651.14551726771,101840.478939322,102008.8047967188,102169.37991021495,102304.98065948702,102498.99766919871,102829.06155555019,102977.90792270511,103038.1252570769,103225.99397574342,103422.15892728262,103646.59518513895,103784.5250641816,103974.46249394874,104141.34378619908,104302.07375172863,104566.99098525057,104745.99917390206,104890.67138222787,104982.7638293137,105197.48598105824,105522.22473295566,105621.30077694413,105792.75084740159,106004.91445760637,106054.37228431064,106365.91087308613,106545.53488112518,106865.7548102453,107002.64861832658,107178.83964185385,107345.6292621477,107585.32258304703,107678.85488321894,107835.10837383548,108060.09734685242,108126.78868433359,108238.94630379905,108597.9224105431,108689.52052842782,108835.72061449048,109275.01798296219,109453.30929254167,109590.6720812351,109817.79873928029,109908.23871696499,110061.65915672999,110177.23747287187,110345.70209641012,110601.0769767521,110816.1318489908,111119.85981770964],"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.0834577562178804,"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.309319816073412e-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.21%, 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":["Valuation uses today's running session (2026-11-20): latest prices, not final closes.","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-20T21:49:32+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-20T21:49:32+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-20T21:49:32+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-20T21:49:34+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-20T21:49:33+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-20T21:49:34+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-20T21:49:34+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-20T21:49:37+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-20T21:49:37+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-20T21:49:37+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-20T21:49:37+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-20T21:49:38+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.11963558913126797,"TLT":0.07049641068766258,"GLD":0.13658029266802035},"shrinkageMeans":0.658589477290865,"shrinkageCovariance":0.07265589127585925},"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-20T21:49:39+00:00","durationMs":9803,"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
Files main
Menu

Theme