Repository Public
1{"job":{"id":"4652d2d0-751f-427d-ae8f-35591e3ae873","tool":"risk_lab","params":{"symbols":["AAPL","MSFT","TLT"],"period_days":2520,"confidence_levels":[0.95,0.99],"horizons":[1,10],"fhs_model":"garch","mc_distribution":"student_t","simulations":20000,"backtest_window":250,"corr_window":63,"corr_lambda":0.94,"seed":12345},"status":"done","startedAt":1795217724395,"finishedAt":1795217729120,"error":null,"progress":1,"engineVersion":"1.0.0","durationMs":4725,"projectId":null,"sessionId":null,"cancellable":false,"code":"import numpy as np, pandas as pd\nfrom scipy import stats\nfrom arch import arch_model\n# prices: DataFrame of adjusted daily closes, columns ['AAPL', 'MSFT', 'TLT'], common dates 2016-11-10 → 2026-11-20\nw = pd.Series({'AAPL': 0.333333, 'MSFT': 0.333333, 'TLT': 0.333333})\nr = prices.pct_change().dropna() @ w\nc = 0.99\nprint(\"historical VaR/ES:\", -np.quantile(r, 1 - c), -r[r <= np.quantile(r, 1 - c)].mean())\nprint(\"normal VaR:\", -(r.mean() + r.std() * stats.norm.ppf(1 - c)))\nres = arch_model(100 * r, mean=\"Constant\", vol=\"GARCH\", p=1, o=0, q=1, rescale=False).fit(disp=\"off\")\nsig = np.sqrt(res.forecast(horizon=1, reindex=False).variance.values[-1, 0])\nprint(\"FHS VaR:\", -np.quantile(res.params[\"mu\"] + sig * res.std_resid.dropna(), 1 - c) / 100)","result":{"success":true,"schema":"lab/1","engine":"risk_lab","engineVersion":"1.0.0","title":"Portfolio of 3 assets — risk analysis","headline":"Portfolio of 3 assets: 1-day 99% VaR is 2.68% of value by historical simulation (ES 3.73%), 2.78% conditional on current volatility; maximum drawdown -30.4%.","summary":[{"label":"Historical VaR 99%, 1-day","value":0.02683295196062506,"unit":"percent","kind":"calculated"},{"label":"Historical ES 99%, 1-day","value":0.03726425455007456,"unit":"percent","kind":"calculated"},{"label":"Filtered historical VaR 99%, 1-day","value":0.027769810608779564,"unit":"percent","kind":"calculated","note":"Conditional on today's volatility"},{"label":"Current volatility (GARCH, annualized)","value":0.17454553212656695,"unit":"percent","kind":"calculated"},{"label":"Volatility (annualized)","value":0.17426801492545305,"unit":"percent","kind":"observed","note":"2520 daily returns, 2016-11-11 → 2026-11-20"},{"label":"Backtest exceptions, historical VaR 99%","value":40,"unit":"count","kind":"observed","note":"22.7 expected over 2270 days; zone yellow"},{"label":"Maximum drawdown","value":-0.3044254472148804,"unit":"percent","kind":"observed","note":"2021-12-27 → 2022-11-03, recovered 2024-05-21"},{"label":"Max drawdown, peak to trough","value":216,"unit":"days","kind":"observed","note":"Trading days"},{"label":"Max drawdown, trough to recovery","value":387,"unit":"days","kind":"observed","note":"Trading days"},{"label":"Longest time under water","value":603,"unit":"days","kind":"observed","note":"Trading days from a peak to the next new high"},{"label":"Current drawdown","value":-0.050792241635939095,"unit":"percent","kind":"observed"},{"label":"Annualized return (CAGR)","value":0.18947834712530764,"unit":"percent","kind":"observed"},{"label":"Calmar ratio","value":0.622412971250604,"unit":"ratio","kind":"calculated","decimals":2,"note":"CAGR / |maximum drawdown| over the whole sample"},{"label":"Ulcer index","value":0.0866852859861858,"unit":"percent","kind":"calculated","note":"√(mean of squared drawdowns)"},{"label":"Average pairwise correlation","value":0.15413578707890732,"unit":"ratio","kind":"observed","decimals":3},{"label":"Average correlation, last 63 days","value":0.17892974536893982,"unit":"ratio","kind":"observed","decimals":3,"note":"Full sample 0.154; range -0.17 to 0.54"},{"label":"Skewness","value":0.1966881174793558,"unit":"ratio","kind":"observed","decimals":3},{"label":"Excess kurtosis","value":5.79148404427394,"unit":"ratio","kind":"observed","decimals":3},{"label":"Hill tail index (left tail)","value":2.8262281036683374,"unit":"ratio","kind":"calculated","decimals":2,"note":"k = 126 largest losses (5 % of the sample); moments of order ≥ α do not exist"}],"tables":[{"id":"var","title":"Value-at-Risk and Expected Shortfall","columns":[{"key":"method","label":"Method","align":"left","type":"text"},{"key":"confidence","label":"Confidence","unit":"percent","decimals":2,"type":"number"},{"key":"horizon","label":"Horizon (days)","decimals":0,"type":"integer"},{"key":"var","label":"VaR","unit":"percent","decimals":2,"type":"number"},{"key":"es","label":"Expected Shortfall","unit":"percent","decimals":2,"type":"number"},{"key":"scaling","label":"Horizon rule","align":"left","type":"text"}],"rows":[{"method":"Historical simulation","confidence":0.95,"horizon":1,"var":0.01668890734163277,"es":0.024761648865819923,"scaling":"none (1 day)"},{"method":"Parametric normal","confidence":0.95,"horizon":1,"var":0.017308042737167663,"es":0.021895239425516643,"scaling":"none (1 day)"},{"method":"Parametric Student-t","confidence":0.95,"horizon":1,"var":0.015787154702343285,"es":0.02443492542415701,"scaling":"none (1 day)"},{"method":"Cornish-Fisher","confidence":0.95,"horizon":1,"var":0.015403241136143324,"es":0.029880601563778534,"scaling":"none (1 day)"},{"method":"Filtered historical simulation","confidence":0.95,"horizon":1,"var":0.018163463244886373,"es":0.02420646423333288,"scaling":"current volatility × empirical residuals"},{"method":"Monte Carlo","confidence":0.95,"horizon":1,"var":0.016023850344691483,"es":0.02452830537740472,"scaling":"none (1 day)"},{"method":"Historical simulation","confidence":0.99,"horizon":1,"var":0.02683295196062506,"es":0.03726425455007456,"scaling":"none (1 day)"},{"method":"Parametric normal","confidence":0.99,"horizon":1,"var":0.02478938645018108,"es":0.0285094114104916,"scaling":"none (1 day)"},{"method":"Parametric Student-t","confidence":0.99,"horizon":1,"var":0.028760163179269257,"es":0.04090786769970037,"scaling":"none (1 day)"},{"method":"Cornish-Fisher","confidence":0.99,"horizon":1,"var":0.037905625920718625,"es":0.057112552748591935,"scaling":"none (1 day)"},{"method":"Filtered historical simulation","confidence":0.99,"horizon":1,"var":0.027769810608779564,"es":0.03450553473656037,"scaling":"current volatility × empirical residuals"},{"method":"Monte Carlo","confidence":0.99,"horizon":1,"var":0.028740636742995387,"es":0.04012197851450235,"scaling":"none (1 day)"},{"method":"Historical simulation","confidence":0.95,"horizon":10,"var":0.052774958859065364,"es":0.07830320903731604,"scaling":"√h on the 1-day figure"},{"method":"Parametric normal","confidence":0.95,"horizon":10,"var":0.04961193874846414,"es":0.0641179283588285,"scaling":"mean × h, volatility × √h"},{"method":"Parametric Student-t","confidence":0.95,"horizon":10,"var":0.04373382443081657,"es":0.07108047659466629,"scaling":"location × h, scale × √h"},{"method":"Cornish-Fisher","confidence":0.95,"horizon":10,"var":0.04870932533901264,"es":0.0944907587975292,"scaling":"√h on the 1-day figure"},{"method":"Filtered historical simulation","confidence":0.95,"horizon":10,"var":0.051002783838441826,"es":0.07109665334128189,"scaling":"simulated GARCH paths"},{"method":"Monte Carlo","confidence":0.95,"horizon":10,"var":0.04764277566609788,"es":0.06608991156263073,"scaling":"simulated i.i.d. daily paths"},{"method":"Historical simulation","confidence":0.99,"horizon":10,"var":0.08485324454145594,"es":0.11783991968652867,"scaling":"√h on the 1-day figure"},{"method":"Parametric normal","confidence":0.99,"horizon":10,"var":0.07327002484016763,"es":0.08503377666742636,"scaling":"mean × h, volatility × √h"},{"method":"Parametric Student-t","confidence":0.99,"horizon":10,"var":0.08475807932257458,"es":0.12317249394986034,"scaling":"location × h, scale × √h"},{"method":"Cornish-Fisher","confidence":0.99,"horizon":10,"var":0.11986811404378797,"es":0.18060574967206044,"scaling":"√h on the 1-day figure"},{"method":"Filtered historical simulation","confidence":0.99,"horizon":10,"var":0.08316736217000494,"es":0.10517708459936129,"scaling":"simulated GARCH paths"},{"method":"Monte Carlo","confidence":0.99,"horizon":10,"var":0.07557793709485022,"es":0.09637784377171452,"scaling":"simulated i.i.d. daily paths"}],"note":"Losses as positive fractions of portfolio value. ES = expected loss given that the loss exceeds the VaR."},{"id":"backtest","title":"VaR backtest — rolling 250-day estimation window, 1-day horizon","columns":[{"key":"method","label":"Method","align":"left","type":"text"},{"key":"confidence","label":"Confidence","unit":"percent","decimals":2,"type":"number"},{"key":"days","label":"Test days","decimals":0,"type":"integer"},{"key":"exceptions","label":"Exceptions","decimals":0,"type":"integer"},{"key":"expected","label":"Expected","decimals":1,"type":"number"},{"key":"rate","label":"Exception rate","unit":"percent","decimals":2,"type":"number"},{"key":"lr_uc","label":"Kupiec LR","decimals":2,"type":"number"},{"key":"p_uc","label":"p (coverage)","decimals":4,"type":"number"},{"key":"lr_ind","label":"Independence LR","decimals":2,"type":"number"},{"key":"p_ind","label":"p (independence)","decimals":4,"type":"number"},{"key":"lr_cc","label":"Cond. coverage LR","decimals":2,"type":"number"},{"key":"p_cc","label":"p (cond. coverage)","decimals":4,"type":"number"},{"key":"zone","label":"Traffic light","align":"left","type":"text"}],"rows":[{"method":"Historical simulation","confidence":0.95,"days":2270,"exceptions":139,"expected":113.5000000000001,"rate":0.061233480176211455,"lr_uc":5.645290583852784,"p_uc":0.017502315394386674,"lr_ind":3.4348471971488834,"p_ind":0.06383448989724617,"lr_cc":9.080137781001667,"p_cc":0.010672671282526738,"zone":"yellow"},{"method":"Historical simulation","confidence":0.99,"days":2270,"exceptions":40,"expected":22.70000000000002,"rate":0.01762114537444934,"lr_uc":10.854683021816356,"p_uc":0.000985462293877254,"lr_ind":7.868973391781481,"p_ind":0.005029019646957078,"lr_cc":18.723656413597837,"p_cc":8.59428337307402e-05,"zone":"yellow"},{"method":"Parametric normal","confidence":0.95,"days":2270,"exceptions":128,"expected":113.5000000000001,"rate":0.05638766519823789,"lr_uc":1.8759365079359895,"p_uc":0.17079670973674527,"lr_ind":5.778552735559629,"p_ind":0.01622289405479829,"lr_cc":7.654489243495618,"p_cc":0.021769516319249203,"zone":"green"},{"method":"Parametric normal","confidence":0.99,"days":2270,"exceptions":60,"expected":22.70000000000002,"rate":0.02643171806167401,"lr_uc":42.66010444131331,"p_uc":6.512713306245391e-11,"lr_ind":14.540728232096967,"p_ind":0.00013716197831162692,"lr_cc":57.200832673410275,"p_cc":3.79312368989079e-13,"zone":"red"},{"method":"EWMA normal (λ = 0.94)","confidence":0.95,"days":2270,"exceptions":123,"expected":113.5000000000001,"rate":0.05418502202643172,"lr_uc":0.8157653489885206,"p_uc":0.3664211946418552,"lr_ind":0.28157527270104765,"p_ind":0.5956705812709484,"lr_cc":1.0973406216895683,"p_cc":0.5777174845573587,"zone":"green"},{"method":"EWMA normal (λ = 0.94)","confidence":0.99,"days":2270,"exceptions":37,"expected":22.70000000000002,"rate":0.01629955947136564,"lr_uc":7.644108380138334,"p_uc":0.005695804245577177,"lr_ind":0.2259649269470856,"p_ind":0.6345320509890691,"lr_cc":7.87007330708542,"p_cc":0.01954498292147914,"zone":"yellow"}],"note":"Each day's VaR uses only earlier returns. Traffic light: green if the binomial probability of that many exceptions or fewer is below 95 %, yellow below 99.99 %, red otherwise (the Basel 0–4 / 5–9 / 10+ rule at 99 % over 250 days)."},{"id":"drawdowns","title":"Deepest drawdowns","columns":[{"key":"peak","label":"Peak","align":"left","type":"date"},{"key":"trough","label":"Trough","align":"left","type":"date"},{"key":"recovery","label":"Recovery","align":"left","type":"date"},{"key":"depth","label":"Depth","unit":"percent","decimals":2,"type":"number"},{"key":"to_trough","label":"Peak → trough (days)","decimals":0,"type":"integer"},{"key":"to_recovery","label":"Trough → recovery (days)","decimals":0,"type":"integer"},{"key":"length","label":"Under water (days)","decimals":0,"type":"integer"}],"rows":[{"peak":"2021-12-27","trough":"2022-11-03","recovery":"2024-05-21","depth":-0.3044254472148804,"to_trough":216,"to_recovery":387,"length":603},{"peak":"2024-12-17","trough":"2025-04-08","recovery":"2025-08-06","depth":-0.18793315214398398,"to_trough":75,"to_recovery":82,"length":157},{"peak":"2018-10-02","trough":"2018-12-24","recovery":"2019-04-05","depth":-0.1753880732235027,"to_trough":57,"to_recovery":70,"length":127},{"peak":"2025-10-28","trough":"2026-03-27","recovery":"2026-07-30","depth":-0.1609426919427689,"to_trough":103,"to_recovery":85,"length":188},{"peak":"2020-02-19","trough":"2020-03-18","recovery":"2020-04-15","depth":-0.1572640692084405,"to_trough":20,"to_recovery":19,"length":39}],"note":"Durations in trading days."},{"id":"stress_history","title":"Historical stress replays (current weights)","columns":[{"key":"scenario","label":"Episode","align":"left","type":"text"},{"key":"status","label":"Status","align":"left","type":"text"},{"key":"start","label":"From","align":"left","type":"date"},{"key":"end","label":"To","align":"left","type":"date"},{"key":"days","label":"Days","decimals":0,"type":"integer"},{"key":"ret","label":"Return","unit":"percent","decimals":2,"type":"number"},{"key":"mdd","label":"Max drawdown inside","unit":"percent","decimals":2,"type":"number"},{"key":"worst_day","label":"Worst day","unit":"percent","decimals":2,"type":"number"},{"key":"vol","label":"Volatility (ann.)","unit":"percent","decimals":2,"type":"number"}],"rows":[{"scenario":"Global financial crisis (Oct 2007 – Mar 2009)","status":"not covered by the sample","start":"2007-10-09","end":"2009-03-09","days":null,"ret":null,"mdd":null,"worst_day":null,"vol":null},{"scenario":"COVID crash (Feb – Mar 2020)","status":"replayed","start":"2020-02-19","end":"2020-03-23","days":23,"ret":-0.15171892275636778,"mdd":-0.15726406920844072,"worst_day":-0.07046808638290647,"vol":0.5607478245809351},{"scenario":"2022 rates shock (Jan – Oct 2022)","status":"replayed","start":"2022-01-03","end":"2022-10-12","days":195,"ret":-0.27407840906008973,"mdd":-0.27454219708969196,"worst_day":-0.0422234820482759,"vol":0.22660467586346128},{"scenario":"Worst day in the sample","status":"observed","start":"2020-03-16","end":"2020-03-16","days":1,"ret":-0.07046808638290647,"mdd":null,"worst_day":-0.07046808638290647,"vol":null},{"scenario":"Worst 5-day window in the sample","status":"observed","start":"2025-04-02","end":"2025-04-08","days":5,"ret":-0.11389919133840432,"mdd":null,"worst_day":-0.037173064656765946,"vol":null},{"scenario":"Worst 21-day window in the sample","status":"observed","start":"2020-02-19","end":"2020-03-18","days":21,"ret":-0.15235102417063529,"mdd":null,"worst_day":-0.07046808638290647,"vol":null}],"note":"A replay applies today's weights to the returns actually observed in the window; it needs every asset to have prices over the whole window."},{"id":"risk_contributions","title":"Risk contributions","columns":[{"key":"asset","label":"Asset","align":"left","type":"text"},{"key":"weight","label":"Weight","unit":"percent","decimals":2,"type":"number"},{"key":"vol","label":"Volatility (ann.)","unit":"percent","decimals":2,"type":"number"},{"key":"beta","label":"Beta to portfolio","decimals":3,"type":"number"},{"key":"contribution","label":"Share of portfolio variance","unit":"percent","decimals":2,"type":"number"}],"rows":[{"asset":"AAPL","weight":0.3333333333333333,"vol":0.2915955775967468,"beta":1.4614599801711654,"contribution":0.4871533267237218},{"asset":"MSFT","weight":0.3333333333333333,"vol":0.2790016446809135,"beta":1.3779497489246413,"contribution":0.45931658297488037},{"asset":"TLT","weight":0.3333333333333333,"vol":0.14766683723606164,"beta":0.16059027090419353,"contribution":0.05353009030139784}],"note":"Share of variance = wᵢ(Σw)ᵢ / w′Σw; the shares sum to 100 %."}],"charts":[{"id":"var_by_method","title":"1-day VaR by method","type":"bar","x":{"label":"Method","type":"category"},"y":{"label":"VaR (loss)","unit":"percent"},"series":[{"name":"VaR 95 %","kind":"calculated","x":["Historical simulation","Parametric normal","Parametric Student-t","Cornish-Fisher","Filtered historical simulation","Monte Carlo"],"y":[0.01668890734163277,0.017308042737167663,0.015787154702343285,0.015403241136143324,0.018163463244886373,0.016023850344691483],"style":"bar"},{"name":"VaR 99 %","kind":"calculated","x":["Historical simulation","Parametric normal","Parametric Student-t","Cornish-Fisher","Filtered historical simulation","Monte Carlo"],"y":[0.02683295196062506,0.02478938645018108,0.028760163179269257,0.037905625920718625,0.027769810608779564,0.028740636742995387],"style":"bar"}]},{"id":"return_distribution","title":"Distribution of daily returns","type":"histogram","x":{"label":"Daily return","type":"number","unit":"percent"},"y":{"label":"Days","unit":"count"},"series":[{"name":"Daily returns","kind":"observed","x":[-0.06889491739097142,-0.06574857940710135,-0.06260224142323126,-0.05945590343936118,-0.056309565455491095,-0.053163227471621013,-0.05001688948775093,-0.04687055150388084,-0.04372421352001076,-0.04057787553614068,-0.0374315375522706,-0.034285199568400516,-0.031138861584530435,-0.02799252360066035,-0.024846185616790264,-0.021699847632920183,-0.0185535096490501,-0.01540717166518002,-0.012260833681309934,-0.00911449569743985,-0.0059681577135697675,-0.002821819729699686,0.00032451825417039587,0.0034708562380404775,0.006617194221910559,0.009763532205780641,0.01290987018965073,0.016056208173520818,0.0192025461573909,0.02234888414126098,0.025495222125131063,0.028641560109001145,0.031787898092871227,0.03493423607674131,0.03808057406061139,0.04122691204448147,0.04437325002835155,0.04751958801222164,0.05066592599609173,0.05381226397996181,0.05695860196383189,0.06010493994770197,0.06325127793157206,0.06639761591544215,0.06954395389931223,0.07269029188318231,0.07583662986705239,0.07898296785092247,0.08212930583479255,0.08527564381866264],"y":[1,0,1,0,0,0,0,1,1,4,5,1,8,8,28,31,33,69,101,121,249,346,363,376,275,187,126,79,36,28,13,6,6,3,4,3,0,1,1,1,1,0,0,0,1,0,0,1,0,1],"style":"bar"}],"annotations":[{"x":-0.02683295196062506,"text":"Historical VaR 99% (1-day)"},{"x":-0.03726425455007456,"text":"Historical ES 99% (1-day)"}]},{"id":"backtest","title":"Backtest of the historical VaR 99%","type":"line","x":{"label":"Date","type":"time"},"y":{"label":"Daily return","unit":"percent"},"series":[{"name":"Daily return","kind":"observed","x":["2017-11-09","2017-11-30","2017-12-21","2018-01-11","2018-02-05","2018-02-23","2018-03-16","2018-04-06","2018-04-26","2018-05-17","2018-06-06","2018-06-27","2018-07-18","2018-08-08","2018-08-28","2018-09-17","2018-10-09","2018-10-26","2018-11-16","2018-12-10","2019-01-02","2019-01-23","2019-02-11","2019-03-05","2019-03-25","2019-04-15","2019-05-06","2019-05-28","2019-06-17","2019-07-05","2019-07-26","2019-08-15","2019-09-06","2019-09-26","2019-10-17","2019-11-06","2019-11-25","2019-12-17","2020-01-08","2020-01-30","2020-02-20","2020-03-12","2020-03-31","2020-04-21","2020-05-12","2020-06-02","2020-06-23","2020-07-14","2020-08-04","2020-08-21","2020-09-11","2020-10-02","2020-10-22","2020-11-12","2020-12-02","2020-12-24","2021-01-14","2021-02-04","2021-02-26","2021-03-18","2021-04-09","2021-04-28","2021-05-20","2021-06-09","2021-06-29","2021-07-21","2021-08-10","2021-08-31","2021-09-20","2021-10-11","2021-10-29","2021-11-18","2021-12-10","2021-12-30","2022-01-24","2022-02-10","2022-03-04","2022-03-24","2022-04-13","2022-05-05","2022-05-24","2022-06-15","2022-07-07","2022-07-27","2022-08-17","2022-09-06","2022-09-28","2022-10-17","2022-11-07","2022-11-28","2022-12-16","2023-01-10","2023-01-30","2023-02-21","2023-03-13","2023-04-03","2023-04-24","2023-05-11","2023-06-05","2023-06-23","2023-07-17","2023-08-04","2023-08-25","2023-09-15","2023-10-04","2023-10-26","2023-11-14","2023-12-06","2023-12-27","2024-01-19","2024-02-08","2024-02-28","2024-03-20","2024-04-10","2024-05-01","2024-05-21","2024-06-12","2024-07-03","2024-07-23","2024-08-13","2024-09-03","2024-09-24","2024-10-14","2024-11-04","2024-11-21","2024-12-12","2025-01-06","2025-01-28","2025-02-19","2025-03-11","2025-04-01","2025-04-21","2025-05-09","2025-06-02","2025-06-23","2025-07-15","2025-08-04","2025-08-25","2025-09-12","2025-10-02","2025-10-23","2025-11-12","2025-12-04","2025-12-23","2026-01-16","2026-02-05","2026-02-26","2026-03-19","2026-04-09","2026-04-30","2026-05-19","2026-06-10","2026-07-01","2026-07-22","2026-08-12","2026-08-31","2026-09-23","2026-10-12","2026-11-02","2026-11-20"],"y":[-0.0034799628073184743,0.006827096733787415,0.0030622610495699325,0.00432066859610584,-0.018926481761318538,0.017163553739543737,-0.0007900269613354548,-0.012578489118859466,0.010539981442169905,-0.0071139013682249095,-0.0005851608282831192,-0.0025818288139615175,-0.005737668191356978,0.002426555055759764,0.0027333335802286474,-0.012522461648530547,0.01228651511916438,-0.007422930705194064,0.008751066463596949,0.012451360150363078,0.0006028031390347132,0.004374025588858095,-0.004520815194235009,-0.0015139549235283858,-0.001681678469169001,0.0017180902768800057,-0.00616469101738574,0.0011210138650297556,0.003520770445586851,-0.005586144286586621,0.00472545547951575,0.0013118846084421891,0.00011617325700456299,0.000807740292336064,-0.0011869217805728915,0.0012675913889608943,0.010472182002564093,-0.001602278954906907,0.008433893652835756,0.008953244744851225,-0.005885254382530033,-0.06241911244679838,-0.008635071434988612,-0.019872176375154444,-0.007929747907236476,0.0041285781425964094,0.006996148447552882,0.00801061929034419,0.00039568313654170207,0.016744656889071785,-0.0058205619619395845,-0.021836258755406214,-0.006545437980754021,0.00317749077685218,-0.0029680697087785717,0.006505056543068581,-0.01328819521539215,0.006374317697878439,0.016705873405844285,-0.023568323852163564,0.008960888024631871,-0.011189718556130488,0.014376584835173642,0.005288460861803271,0.007720056790606389,-0.0034601361476804815,-0.004842839280279065,-0.006970997561308885,-0.009176729259825748,-0.0017344090106600576,0.0024209413536077817,0.012890857873441613,0.017976959924220177,-0.0019850604059698327,-0.003981699729698159,-0.022635164969910027,-0.007220954569896873,0.010091381327302732,0.012705552797215598,-0.0422234820482759,-0.001172260100160583,0.022832582558308372,0.007821851130438132,0.03185870384481345,-0.0014157655846483614,-0.01469947626066977,0.013544779014989516,0.02112564410238182,0.007733093080721379,-0.015523276604257856,-0.014347740826139061,-0.0014965212693732368,-0.01524175338857488,-0.022353204969150494,0.012293645439514684,0.0028993216242736057,-0.00080029641364295,0.0015222815704711845,-0.0025882893386926322,-0.0018771033582006456,0.0063879487511035995,-0.008934513666402667,0.008446645929758375,-0.011770880569307604,0.013049460714308717,-0.015596762103696054,0.015570021069154281,-0.0007928760534026136,0.0055590390378926395,0.010279036029836522,-0.003820945465051554,9.583506419774682e-05,0.0078036692330078665,-0.013361582557430177,0.005276907861320401,0.0069057601762471475,0.018476783570868644,0.007390813503050264,0.0025202915637292005,0.013921197008444,-0.009771029758226746,-0.002093995670145158,0.008029566841964986,0.0022791114369773067,-0.002383246983008291,-0.0016453369073796686,0.004301273153607509,0.021671872849240176,0.005132319134938612,-0.011848742022512737,0.010523585703255067,-0.020130881204235746,0.002684283241939589,-0.0005109167580635101,0.007900523277029576,0.0003210597628632666,0.009860409355825068,-0.0037659842222586373,0.010326263662260266,0.0006233214499475521,-0.0008059867797941543,3.947577245511077e-05,-0.0036599544727360374,0.0035894284332558994,-0.003047822697696249,-0.013593867112032436,0.0006947937268996599,-0.001655442303714801,0.00010486704363865675,-0.01202082739619518,-0.005719688527563179,-0.004776454456873321,0.013602915483436248,-0.008983703369570217,-0.01076341314238242,-0.008490864911030422,-0.006212540672554241,0.008380005851241027,-0.014612267398712055,-0.011002300208595273]},{"name":"−VaR 99% (historical, 250-day window)","kind":"calculated","x":["2017-11-09","2017-11-30","2017-12-21","2018-01-11","2018-02-05","2018-02-23","2018-03-16","2018-04-06","2018-04-26","2018-05-17","2018-06-06","2018-06-27","2018-07-18","2018-08-08","2018-08-28","2018-09-17","2018-10-09","2018-10-26","2018-11-16","2018-12-10","2019-01-02","2019-01-23","2019-02-11","2019-03-05","2019-03-25","2019-04-15","2019-05-06","2019-05-28","2019-06-17","2019-07-05","2019-07-26","2019-08-15","2019-09-06","2019-09-26","2019-10-17","2019-11-06","2019-11-25","2019-12-17","2020-01-08","2020-01-30","2020-02-20","2020-03-12","2020-03-31","2020-04-21","2020-05-12","2020-06-02","2020-06-23","2020-07-14","2020-08-04","2020-08-21","2020-09-11","2020-10-02","2020-10-22","2020-11-12","2020-12-02","2020-12-24","2021-01-14","2021-02-04","2021-02-26","2021-03-18","2021-04-09","2021-04-28","2021-05-20","2021-06-09","2021-06-29","2021-07-21","2021-08-10","2021-08-31","2021-09-20","2021-10-11","2021-10-29","2021-11-18","2021-12-10","2021-12-30","2022-01-24","2022-02-10","2022-03-04","2022-03-24","2022-04-13","2022-05-05","2022-05-24","2022-06-15","2022-07-07","2022-07-27","2022-08-17","2022-09-06","2022-09-28","2022-10-17","2022-11-07","2022-11-28","2022-12-16","2023-01-10","2023-01-30","2023-02-21","2023-03-13","2023-04-03","2023-04-24","2023-05-11","2023-06-05","2023-06-23","2023-07-17","2023-08-04","2023-08-25","2023-09-15","2023-10-04","2023-10-26","2023-11-14","2023-12-06","2023-12-27","2024-01-19","2024-02-08","2024-02-28","2024-03-20","2024-04-10","2024-05-01","2024-05-21","2024-06-12","2024-07-03","2024-07-23","2024-08-13","2024-09-03","2024-09-24","2024-10-14","2024-11-04","2024-11-21","2024-12-12","2025-01-06","2025-01-28","2025-02-19","2025-03-11","2025-04-01","2025-04-21","2025-05-09","2025-06-02","2025-06-23","2025-07-15","2025-08-04","2025-08-25","2025-09-12","2025-10-02","2025-10-23","2025-11-12","2025-12-04","2025-12-23","2026-01-16","2026-02-05","2026-02-26","2026-03-19","2026-04-09","2026-04-30","2026-05-19","2026-06-10","2026-07-01","2026-07-22","2026-08-12","2026-08-31","2026-09-23","2026-10-12","2026-11-02","2026-11-20"],"y":[-0.015068621010534222,-0.015125780363776988,-0.015226633467104808,-0.015226633467104808,-0.0159346023139515,-0.020028001733903553,-0.020028001733903553,-0.020672826441942023,-0.020672826441942023,-0.020672826441942023,-0.020672826441942023,-0.020075688302836736,-0.020075688302836736,-0.020075688302836736,-0.020075688302836736,-0.020075688302836736,-0.020075688302836736,-0.026529277307143155,-0.026529277307143155,-0.026529277307143155,-0.026529277307143155,-0.026757770220868102,-0.026165156946880538,-0.026165156946880538,-0.026165156946880538,-0.026165156946880538,-0.026165156946880538,-0.026732176295335097,-0.026732176295335097,-0.026732176295335097,-0.026732176295335097,-0.026732176295335097,-0.026732176295335097,-0.026732176295335097,-0.026090731897244722,-0.024851875792971382,-0.02426227814256942,-0.02349601879083172,-0.01833096013691783,-0.01833096013691783,-0.018664361735485194,-0.03294228295944529,-0.04133762779444081,-0.04133762779444081,-0.04133762779444081,-0.04133762779444081,-0.04133762779444081,-0.04133762779444081,-0.04133762779444081,-0.04133762779444081,-0.04407000578937743,-0.04407000578937743,-0.04407000578937743,-0.04407000578937743,-0.04407000578937743,-0.04407000578937743,-0.04407000578937743,-0.04407000578937743,-0.04376997034181426,-0.029643804183124567,-0.029643804183124567,-0.029643804183124567,-0.029643804183124567,-0.029643804183124567,-0.029219175142026696,-0.029219175142026696,-0.029219175142026696,-0.029219175142026696,-0.025289399162438546,-0.02541991972455962,-0.02458085346421332,-0.02458085346421332,-0.02458085346421332,-0.02458085346421332,-0.023898053369357058,-0.02353629566271016,-0.02310245257824958,-0.022866314607854942,-0.023276082542387697,-0.02544877208001082,-0.026894823470244876,-0.030127258922813236,-0.030127258922813236,-0.030127258922813236,-0.030127258922813236,-0.030127258922813236,-0.03383564940569029,-0.03479412513879448,-0.03479412513879448,-0.03479412513879448,-0.03479412513879448,-0.03479412513879448,-0.03479412513879448,-0.03479412513879448,-0.03479412513879448,-0.03479412513879448,-0.03479412513879448,-0.03112485611441147,-0.03112485611441147,-0.02657846698508709,-0.02657846698508709,-0.02657846698508709,-0.02657846698508709,-0.02533427108626151,-0.02533427108626151,-0.023583295731796954,-0.018273525243820903,-0.018273525243820903,-0.01796159560268893,-0.018272395744791108,-0.018272395744791108,-0.01796159560268893,-0.01796159560268893,-0.01796159560268893,-0.018429732598876595,-0.018429732598876595,-0.018429732598876595,-0.018429732598876595,-0.018429732598876595,-0.019313386788609187,-0.019313386788609187,-0.019313386788609187,-0.019313386788609187,-0.022443623035258653,-0.022443623035258653,-0.022443623035258653,-0.02448862058289241,-0.02448862058289241,-0.02448862058289241,-0.02450069898512678,-0.02450069898512678,-0.028608097147400684,-0.028608097147400684,-0.028608097147400684,-0.028608097147400684,-0.028608097147400684,-0.028608097147400684,-0.028608097147400684,-0.028608097147400684,-0.028608097147400684,-0.028608097147400684,-0.028608097147400684,-0.028608097147400684,-0.028608097147400684,-0.028608097147400684,-0.030983848217454025,-0.030983848217454025,-0.030983848217454025,-0.021744464445108466,-0.016801714642912687,-0.016801714642912687,-0.017022493592390244,-0.01847559638152829,-0.01847559638152829,-0.01847559638152829,-0.01847559638152829,-0.01847559638152829,-0.01847559638152829,-0.01847559638152829,-0.01847559638152829],"style":"dashed"},{"name":"Exceptions","kind":"observed","x":["2017-11-29","2018-02-02","2018-02-05","2018-02-08","2018-03-27","2018-10-10","2018-10-24","2019-01-03","2019-05-13","2020-02-24","2020-02-27","2020-03-09","2020-03-11","2020-03-12","2020-03-16","2020-03-18","2020-09-03","2022-04-11","2022-04-14","2022-04-29","2022-05-05","2022-05-18","2022-06-10","2022-06-13","2022-09-13","2024-01-02","2024-04-15","2024-04-30","2024-07-24","2024-08-05","2024-10-31","2024-12-18","2025-04-03","2025-04-04","2025-04-08","2025-04-10","2026-01-29","2026-06-03","2026-06-09","2026-06-25"],"y":[-0.01624623226638411,-0.026341195094452576,-0.018926481761318538,-0.02670998374678705,-0.020242450553233777,-0.034483979464508645,-0.02680368271557343,-0.04170208368603563,-0.026657751245699284,-0.02522421646829468,-0.04163766324200398,-0.039914816958131885,-0.038980362449122875,-0.06241911244679838,-0.07046808638290647,-0.04102534600207915,-0.04640696235450096,-0.02694767226098271,-0.025688873963978048,-0.030457714916864588,-0.0422234820482759,-0.02683981758600754,-0.02978331492900469,-0.037362476337548294,-0.037081115875346383,-0.018428603099846803,-0.018971264581791693,-0.019642092438296583,-0.02513528968724184,-0.02517473439392984,-0.02572514177969794,-0.023815556821222602,-0.037173064656765946,-0.03251114409806995,-0.02599294154705034,-0.031120697626168682,-0.030841413118587752,-0.01712592783995215,-0.016914837538805405,-0.032037242152675185],"style":"points"}]},{"id":"underwater","title":"Underwater curve (drawdown from the previous high)","type":"area","x":{"label":"Date","type":"time"},"y":{"label":"Drawdown","unit":"percent"},"series":[{"name":"Drawdown","kind":"observed","x":["2016-11-10","2016-12-02","2016-12-28","2017-01-20","2017-02-14","2017-03-08","2017-03-31","2017-04-24","2017-05-15","2017-06-08","2017-06-29","2017-07-25","2017-08-15","2017-09-08","2017-09-29","2017-10-20","2017-11-14","2017-12-06","2018-01-02","2018-01-24","2018-02-16","2018-03-12","2018-04-03","2018-04-26","2018-05-17","2018-06-12","2018-07-03","2018-07-27","2018-08-17","2018-09-10","2018-10-03","2018-10-24","2018-11-16","2018-12-11","2019-01-07","2019-01-29","2019-02-20","2019-03-15","2019-04-05","2019-05-01","2019-05-22","2019-06-17","2019-07-09","2019-07-30","2019-08-22","2019-09-13","2019-10-08","2019-10-29","2019-11-21","2019-12-13","2020-01-07","2020-01-31","2020-02-24","2020-03-18","2020-04-08","2020-05-04","2020-05-26","2020-06-16","2020-07-10","2020-07-31","2020-08-25","2020-09-16","2020-10-08","2020-10-30","2020-11-20","2020-12-16","2021-01-08","2021-02-02","2021-02-25","2021-03-19","2021-04-13","2021-05-04","2021-05-26","2021-06-18","2021-07-13","2021-08-04","2021-08-26","2021-09-17","2021-10-11","2021-11-02","2021-11-24","2021-12-17","2022-01-11","2022-02-02","2022-02-25","2022-03-21","2022-04-12","2022-05-05","2022-05-27","2022-06-21","2022-07-14","2022-08-05","2022-08-29","2022-09-21","2022-10-12","2022-11-04","2022-11-28","2022-12-20","2023-01-13","2023-02-06","2023-03-02","2023-03-23","2023-04-18","2023-05-09","2023-05-31","2023-06-26","2023-07-18","2023-08-10","2023-08-31","2023-09-26","2023-10-17","2023-11-07","2023-12-01","2023-12-22","2024-01-19","2024-02-09","2024-03-06","2024-03-27","2024-04-18","2024-05-13","2024-06-04","2024-06-28","2024-07-22","2024-08-14","2024-09-05","2024-09-26","2024-10-21","2024-11-11","2024-12-05","2024-12-27","2025-01-24","2025-02-14","2025-03-10","2025-04-02","2025-04-24","2025-05-19","2025-06-10","2025-07-07","2025-07-28","2025-08-18","2025-09-11","2025-10-02","2025-10-27","2025-11-17","2025-12-11","2026-01-05","2026-01-27","2026-02-20","2026-03-13","2026-04-08","2026-04-29","2026-05-22","2026-06-15","2026-07-08","2026-07-31","2026-08-21","2026-09-16","2026-10-07","2026-10-30","2026-11-20"],"y":[0,-0.021205883038957762,-0.002265334387076323,-0.00780037720675586,0,-0.006388236172589434,-0.0008253033691651979,0,-0.0015554048109475138,-0.003868077984000573,-0.0420057745550948,-0.00025702094130874986,0,-0.0111781939484904,-0.028904458415327183,-0.008736993492876821,-0.013152782803473761,-0.01346324551277811,-0.01317083826455323,-0.00782586773634908,-0.017364764379910302,0,-0.041136052225178354,-0.04163857019038553,-0.016124062931254235,-0.00564654555565014,-0.019411114717233446,-0.016152299168081696,0,-0.025529367202533737,-0.0016744436129678686,-0.06338710990239349,-0.07385716354751981,-0.10185444610842354,-0.14787865749099072,-0.13388815670202736,-0.08423897661149848,-0.03443029172484169,0,0,-0.04096994021578049,0,-0.011578182964149253,-0.002225369890662021,-0.004836061117093449,-0.017229894065341367,-0.011624734348640642,-0.010647489852653846,-0.004866709507637568,0,-0.006863625438088494,-0.01664251690552898,-0.045493783927659015,-0.1572640692084405,-0.03953343949446697,0,-0.011663080283959681,-0.007414088502389449,-0.0018315652416800443,0,-0.0009215582606054706,-0.09101420060565046,-0.08041757131398619,-0.112204477789138,-0.06816579989208515,-0.03507289076344766,-0.035827714708526415,-0.013639888275449374,-0.08815554542118542,-0.09601225627548449,-0.014423053624852744,-0.04119685712043719,-0.03799722586050336,-0.003011899617137881,-0.0025922200831468567,-0.00103345710510383,-0.015317362731631978,-0.02041785887138048,-0.04977559196557524,0,-0.005616005862498663,-0.02888110859863502,-0.04819387120281782,-0.04973294379076898,-0.09582525494838401,-0.10597991842857657,-0.13524899651610178,-0.17516413014491672,-0.18025949310067824,-0.2441518481832623,-0.2073053041989884,-0.14412968615321908,-0.17713336298521765,-0.22753093064748986,-0.28460860202000926,-0.30104912733673717,-0.2463870041832047,-0.2651140799997195,-0.2545539113612798,-0.20647349800276138,-0.23656804571894874,-0.16838351208167024,-0.14951258337102313,-0.12369744679219319,-0.09308931479077365,-0.07682772461384313,-0.038405873664883794,-0.11502442317399075,-0.08990661193765259,-0.15293330302126862,-0.13726902673801678,-0.09402746413243479,-0.047360354299321505,-0.023384892942820645,-0.020948021919250492,-0.00678135691909354,-0.04771840540283445,-0.028441550639269897,-0.07193236265858916,-0.022312794521982426,-0.001425111739013385,-0.01716397782273038,-0.0293924082433884,-0.03205215734668643,-0.030229583608317512,-0.011576589370227097,-0.027097463392137144,-0.04316349838044631,0,-0.026731129469504622,-0.05950726471775514,-0.046816125768106565,-0.08271122586743063,-0.0828550794246461,-0.10757410995192729,-0.05924145269192105,-0.05956578274732205,-0.028039828337790063,-0.013017222883270896,-0.01149450873163027,-0.006864773392582957,0,0,-0.032213028634995866,-0.03621679880858464,-0.05706877456988324,-0.06086559128609259,-0.10129607200919366,-0.12721461007574453,-0.13037448377628647,-0.08344779590105189,-0.0470585107959155,-0.06790355542203319,-0.06594188168488557,-0.01665601265802208,-0.017142542065550326,-0.013364536205562105,-0.0033718888023521743,-0.007832716366204306,-0.050792241635939095]}]},{"id":"wealth","title":"Growth of 1 unit invested","type":"line","x":{"label":"Date","type":"time"},"y":{"label":"Value","log":true},"series":[{"name":"Portfolio of 3 assets","kind":"observed","x":["2016-11-10","2016-12-02","2016-12-28","2017-01-20","2017-02-14","2017-03-08","2017-03-31","2017-04-24","2017-05-15","2017-06-08","2017-06-29","2017-07-25","2017-08-15","2017-09-08","2017-09-29","2017-10-20","2017-11-14","2017-12-06","2018-01-02","2018-01-24","2018-02-16","2018-03-12","2018-04-03","2018-04-26","2018-05-17","2018-06-12","2018-07-03","2018-07-27","2018-08-17","2018-09-10","2018-10-03","2018-10-24","2018-11-16","2018-12-11","2019-01-07","2019-01-29","2019-02-20","2019-03-15","2019-04-05","2019-05-01","2019-05-22","2019-06-17","2019-07-09","2019-07-30","2019-08-22","2019-09-13","2019-10-08","2019-10-29","2019-11-21","2019-12-13","2020-01-07","2020-01-31","2020-02-24","2020-03-18","2020-04-08","2020-05-04","2020-05-26","2020-06-16","2020-07-10","2020-07-31","2020-08-25","2020-09-16","2020-10-08","2020-10-30","2020-11-20","2020-12-16","2021-01-08","2021-02-02","2021-02-25","2021-03-19","2021-04-13","2021-05-04","2021-05-26","2021-06-18","2021-07-13","2021-08-04","2021-08-26","2021-09-17","2021-10-11","2021-11-02","2021-11-24","2021-12-17","2022-01-11","2022-02-02","2022-02-25","2022-03-21","2022-04-12","2022-05-05","2022-05-27","2022-06-21","2022-07-14","2022-08-05","2022-08-29","2022-09-21","2022-10-12","2022-11-04","2022-11-28","2022-12-20","2023-01-13","2023-02-06","2023-03-02","2023-03-23","2023-04-18","2023-05-09","2023-05-31","2023-06-26","2023-07-18","2023-08-10","2023-08-31","2023-09-26","2023-10-17","2023-11-07","2023-12-01","2023-12-22","2024-01-19","2024-02-09","2024-03-06","2024-03-27","2024-04-18","2024-05-13","2024-06-04","2024-06-28","2024-07-22","2024-08-14","2024-09-05","2024-09-26","2024-10-21","2024-11-11","2024-12-05","2024-12-27","2025-01-24","2025-02-14","2025-03-10","2025-04-02","2025-04-24","2025-05-19","2025-06-10","2025-07-07","2025-07-28","2025-08-18","2025-09-11","2025-10-02","2025-10-27","2025-11-17","2025-12-11","2026-01-05","2026-01-27","2026-02-20","2026-03-13","2026-04-08","2026-04-29","2026-05-22","2026-06-15","2026-07-08","2026-07-31","2026-08-21","2026-09-16","2026-10-07","2026-10-30","2026-11-20"],"y":[1,1.004245589794169,1.04383050592249,1.0562862287092503,1.1135841808353144,1.122256235510738,1.1493566598924163,1.1671276848853434,1.2008704810867,1.2347395436728672,1.1874665660479509,1.2396947503141327,1.2689796343996365,1.2792729611617264,1.2563398798966832,1.2844793695317307,1.3610509199868188,1.3606227325746674,1.3802372120198092,1.4073014975865878,1.3937715101627268,1.4432667074066035,1.3838964127558642,1.3847514625366353,1.454625836047308,1.508763409898131,1.48787800118236,1.539145488916119,1.6201472246577135,1.626290143370639,1.6679873371926934,1.5648787417484493,1.5473855334577578,1.500608094486448,1.4237115337410469,1.4470866522158545,1.5300397562040051,1.6132593584085548,1.6751199666647327,1.7517024656678775,1.68672135440975,1.7701810302634897,1.814259890307736,1.8509156031736542,1.913296956528826,1.9007177003627693,1.9507910235722525,2.0028210449207267,2.102971527761656,2.1599632740023464,2.2280762690635556,2.36174774641667,2.3670663203890454,2.0898887876988215,2.3818472933446557,2.5427569496948,2.6087193432237137,2.745523807175296,2.962016830554537,3.056931733259418,3.2532339706553417,3.084822761787052,3.120784515269808,3.0129093727904874,3.162363320328891,3.2746706406432353,3.272108996568628,3.3952440574274325,3.1387466189138076,3.1117022864008623,3.3925482494087,3.3003875911130427,3.3114013465276404,3.4318276691384213,3.6544144555576126,3.7418771417803938,3.784342025182717,3.7841181596237554,3.670709465995333,3.9436316084376184,4.068078988564754,4.132482929492527,4.060888126321407,4.054321661356681,3.8576684633664473,3.8143435139824633,3.6894667685214846,3.5191685456905133,3.4974291406790132,3.224831919178179,3.382037980827317,3.651577238280185,3.510766798719997,3.2957451909333013,3.0522228695886677,2.982079242615434,3.215295609013721,3.1353963968494645,3.1804514370917296,3.385586888323771,3.2571882703803055,3.548098104504087,3.628611066141103,3.7387515437453134,3.8693413729687487,3.9387215717998423,4.102648692659102,3.7757550653290335,3.882920399027534,3.6140165395974355,3.6808482941338996,3.865338751629167,4.064444332563506,4.166735821764915,4.177132750620057,4.237574935165991,4.062916704792596,4.145161553038223,3.9596076710134063,4.171309937875022,4.283566530460923,4.4958910519590685,4.597529517284898,4.584930939739411,4.593564023418897,4.692407170626165,4.618723909210501,4.542452569446665,4.8042967802949414,4.7226721023137275,4.563629781896962,4.625212032885246,4.451035304355506,4.450337271980229,4.3303910994453965,4.56491960331926,4.563345830078419,4.716321795812902,4.789217212313229,4.9463677048192265,4.9785816723764,5.210787762533966,5.3894797232508225,5.2561779571934135,5.234432956325708,5.1211831414352655,5.100562131934491,4.880978889068796,4.740211909868885,4.723050221414991,4.977915217237379,5.175550196738985,5.06233802575266,5.072992133073259,5.360620884820037,5.445618455612215,5.588934720854995,5.679134817717465,5.8123612350807115,5.669769546384977]}]},{"id":"correlation_matrix","title":"Correlation matrix of daily returns","type":"heatmap","x":{"label":"Asset","type":"category"},"y":{"label":"Asset"},"series":[],"z":{"label":"Correlation","unit":"ratio"},"matrix":{"x":["AAPL","MSFT","TLT"],"y":["AAPL","MSFT","TLT"],"z":[[1,0.6330079511026673,-0.07840456459073428],[0.6330079511026673,1,-0.09219602527521105],[-0.07840456459073428,-0.09219602527521105,1]]}},{"id":"average_correlation","title":"Average pairwise correlation through time","type":"line","x":{"label":"Date","type":"time"},"y":{"label":"Correlation"},"series":[{"name":"Average pairwise, rolling 63 days","kind":"calculated","x":["2017-02-13","2017-03-07","2017-03-29","2017-04-20","2017-05-12","2017-06-05","2017-06-27","2017-07-19","2017-08-09","2017-08-31","2017-09-22","2017-10-16","2017-11-06","2017-11-30","2017-12-20","2018-01-12","2018-02-07","2018-02-28","2018-03-23","2018-04-13","2018-05-08","2018-05-30","2018-06-19","2018-07-13","2018-08-02","2018-08-27","2018-09-18","2018-10-10","2018-10-31","2018-11-20","2018-12-17","2019-01-09","2019-02-01","2019-02-25","2019-03-19","2019-04-09","2019-05-01","2019-05-23","2019-06-14","2019-07-09","2019-07-30","2019-08-21","2019-09-12","2019-10-03","2019-10-25","2019-11-15","2019-12-10","2020-01-02","2020-01-28","2020-02-18","2020-03-10","2020-04-01","2020-04-23","2020-05-18","2020-06-08","2020-07-01","2020-07-22","2020-08-12","2020-09-04","2020-09-25","2020-10-20","2020-11-09","2020-12-03","2020-12-24","2021-01-15","2021-02-10","2021-03-04","2021-03-26","2021-04-19","2021-05-11","2021-06-02","2021-06-23","2021-07-16","2021-08-06","2021-08-30","2021-09-21","2021-10-13","2021-11-03","2021-11-24","2021-12-17","2022-01-10","2022-02-02","2022-02-24","2022-03-17","2022-04-08","2022-05-02","2022-05-24","2022-06-15","2022-07-11","2022-08-01","2022-08-22","2022-09-14","2022-10-05","2022-10-27","2022-11-17","2022-12-13","2023-01-04","2023-01-26","2023-02-21","2023-03-13","2023-04-05","2023-04-26","2023-05-19","2023-06-12","2023-07-03","2023-07-27","2023-08-16","2023-09-11","2023-10-02","2023-10-24","2023-11-14","2023-12-05","2023-12-29","2024-01-23","2024-02-14","2024-03-07","2024-04-01","2024-04-22","2024-05-13","2024-06-05","2024-06-27","2024-07-22","2024-08-12","2024-09-04","2024-09-25","2024-10-16","2024-11-07","2024-11-29","2024-12-23","2025-01-16","2025-02-11","2025-03-04","2025-03-25","2025-04-16","2025-05-08","2025-06-03","2025-06-24","2025-07-18","2025-08-07","2025-08-28","2025-09-23","2025-10-13","2025-11-05","2025-11-25","2025-12-19","2026-01-13","2026-02-03","2026-02-27","2026-03-20","2026-04-14","2026-05-05","2026-05-28","2026-06-18","2026-07-13","2026-08-04","2026-08-25","2026-09-17","2026-10-08","2026-10-30","2026-11-20"],"y":[0.14628788023772465,-0.057600694212389884,-0.09345920251682015,-0.1473141447719918,-0.0615704561868583,-0.0022775449420702567,0.07864459952270313,0.15084329516359596,0.15506663891181371,0.11973520727991006,0.10512316368550412,-0.035280146502053654,0.12328541202490147,0.18905023257433995,0.207567503168924,0.21938271075685992,0.2184421264274814,0.2833423260085639,0.21789059735363203,0.15353177293907636,0.14578271195004355,0.09450264143217997,0.08855549418980757,0.12856801382895833,0.04091824871691702,-0.05233189075560866,0.0015279916501121926,0.16559987726021783,0.17571010185159755,0.16357898937957577,0.12146000542165626,0.004949177660287925,-0.04199798130714092,-0.07521369063224208,-0.029077133369748782,0.044816616065245486,-0.03403217018170709,-0.026615935911291938,-0.05522819961962281,0.013899530103634428,0.03836219458003704,-0.054928330081550736,-0.048018163052770624,-0.05700262726964402,-0.07796408431220957,-0.016541088834758022,0.005759871641039582,0.06335109851904532,0.020146035340125434,-0.004261302690678963,-0.1112829725571246,-0.050815220473324985,-0.041058833943247976,-0.037392450431412184,-0.01643136251735755,0.07700957110809105,0.0438790681356252,0.06345837998613486,0.08430976429694743,0.13934740811326438,0.1387030108094295,0.2718152421289897,0.27224466784449225,0.28597440753372977,0.3771016923498663,0.262522198674173,0.3777027440398984,0.4546103765205766,0.4492675089160533,0.4599796367792855,0.5222137304032006,0.3954850905270797,0.4029868932606236,0.34165077848162406,0.19285896323896898,0.1908266906609473,0.21999076471455922,0.27634752687072983,0.29554223615127334,0.1421516398896983,0.1043829051958135,0.1063542488551366,0.08914996379665589,0.20541696635983794,0.23946042598448747,0.3148638281082167,0.24965632067401675,0.3341302390550202,0.29155769665896863,0.22248459763463516,0.3131759598421962,0.27776605120564424,0.30719724152557953,0.2944848601792874,0.3582545546972724,0.37001272236906185,0.3606813393098571,0.34287872566391703,0.3201886528197175,0.31442801073187715,0.2799182917935403,0.23276099016870658,0.18957904678728077,0.1504598528969565,0.16942896900450735,0.2971489115979456,0.2659780012150956,0.2654863728053921,0.19581635986965132,0.2354372911167918,0.29481368033660443,0.29870900525162647,0.2731596016711873,0.262993008923725,0.24497841087850827,0.15907051287763582,0.13390298773003276,0.10069132033733003,0.19405657290172626,0.22438273261293398,0.2696338220439131,0.25361519452164055,0.19453780566112924,0.17758832364569507,0.14366395819006744,0.12816797556836237,0.10219050116914502,0.10385898015165396,0.22427278383103108,0.26550561835019937,0.21225420573975193,0.1871952619231493,0.0941279913156232,0.24648059726692742,0.2998124861168195,0.3232701071343225,0.3534961922439847,0.21221037039003146,0.04540095080053406,-0.07591389773079331,-0.045685405075800566,-0.1253768462256142,0.012188341561553953,0.027337752862389136,-0.002066384155833665,0.10809986132124784,0.05252762068929807,-0.07367204952451538,0.004971026356676429,0.049041337731048545,0.11217035137335195,0.23316313192993188,0.18153414489706887,0.12249102660546873,0.06384651030390724,0.1083477473669856,0.10398922042634573,0.12372297886094619,0.16574549372893274,0.17892974536893982]},{"name":"Average pairwise, EWMA λ = 0.94","kind":"calculated","x":["2017-02-14","2017-03-08","2017-03-30","2017-04-21","2017-05-15","2017-06-06","2017-06-28","2017-07-20","2017-08-10","2017-09-01","2017-09-25","2017-10-17","2017-11-07","2017-12-01","2017-12-21","2018-01-16","2018-02-07","2018-03-01","2018-03-26","2018-04-16","2018-05-09","2018-05-30","2018-06-20","2018-07-16","2018-08-03","2018-08-28","2018-09-18","2018-10-11","2018-11-01","2018-11-21","2018-12-18","2019-01-09","2019-02-04","2019-02-26","2019-03-20","2019-04-10","2019-05-01","2019-05-24","2019-06-17","2019-07-10","2019-07-31","2019-08-22","2019-09-13","2019-10-04","2019-10-28","2019-11-18","2019-12-11","2020-01-03","2020-01-28","2020-02-19","2020-03-11","2020-04-02","2020-04-24","2020-05-18","2020-06-09","2020-07-01","2020-07-23","2020-08-13","2020-09-04","2020-09-28","2020-10-20","2020-11-10","2020-12-03","2020-12-24","2021-01-19","2021-02-10","2021-03-04","2021-03-26","2021-04-19","2021-05-12","2021-06-02","2021-06-23","2021-07-16","2021-08-06","2021-08-31","2021-09-21","2021-10-14","2021-11-03","2021-11-24","2021-12-20","2022-01-10","2022-02-03","2022-02-25","2022-03-17","2022-04-11","2022-05-02","2022-05-25","2022-06-16","2022-07-12","2022-08-02","2022-08-22","2022-09-15","2022-10-06","2022-10-28","2022-11-18","2022-12-13","2023-01-05","2023-01-27","2023-02-21","2023-03-14","2023-04-05","2023-04-27","2023-05-19","2023-06-12","2023-07-05","2023-07-27","2023-08-17","2023-09-11","2023-10-02","2023-10-24","2023-11-14","2023-12-06","2023-12-29","2024-01-23","2024-02-14","2024-03-07","2024-04-01","2024-04-22","2024-05-13","2024-06-05","2024-06-27","2024-07-22","2024-08-12","2024-09-05","2024-09-25","2024-10-16","2024-11-07","2024-11-29","2024-12-24","2025-01-16","2025-02-11","2025-03-04","2025-03-25","2025-04-17","2025-05-08","2025-06-03","2025-06-24","2025-07-18","2025-08-08","2025-08-28","2025-09-23","2025-10-13","2025-11-05","2025-11-26","2025-12-19","2026-01-13","2026-02-03","2026-02-27","2026-03-20","2026-04-14","2026-05-05","2026-05-28","2026-06-18","2026-07-13","2026-08-04","2026-08-25","2026-09-17","2026-10-08","2026-10-30","2026-11-20"],"y":[-0.11415543105561445,-0.12202766440426265,0.043999586111525955,-0.04316839155462188,-0.1008207917822672,0.14877658052687784,0.22516527857358756,0.3039079953325763,-0.0050582645700540385,0.04988123152685108,0.015570660245133558,0.045201569043671265,0.33592377379358246,0.24730486117032355,0.23876858232850798,0.15449634179562674,0.2819749855659307,0.29742278636374786,0.14282135513634406,-0.004440218130612517,0.089398169556846,0.14642906706115952,0.029911697747733456,0.0934844469773114,-0.01885554234311601,-0.045017895018331366,0.03412521841614808,0.3309501401564451,0.11342654646998324,0.12848442050549536,0.03369379384186102,-0.13594681971212064,-0.07052184304040626,0.03571755750285529,0.15803267967076473,0.03468469562605767,-0.10806854038289133,-0.07460308526019112,-0.0016612774187593031,0.12185290490349798,0.017371658652994598,-0.09567283616775961,0.0013453937989803173,0.08404771052933975,-0.10112206038122018,-0.007704383208675576,0.052646330229165324,0.16524696189788746,-0.026686449052105432,-0.03728408833664163,-0.024587944712197607,-0.043855309676855324,-0.007518153828020013,-0.033322021916590394,0.0812510266774565,0.006773135182690755,0.007293463952113499,0.07750032575149272,0.18913951509027752,0.20425885783855244,0.15692292919602469,0.4469603353842306,0.24377301453395098,0.27146657585325973,0.4195316019064461,0.28483507348377574,0.41321440442603974,0.48819160943745477,0.48737554091828095,0.4933547015836936,0.5729599481336839,0.3213600153783387,0.3690063241162689,0.13328082508531522,0.31235545545185445,0.1650739139630007,0.3301091646848635,0.17720219822370412,0.3198116335650994,0.03757160528162162,0.1353425957433403,0.18174625388210408,0.20955943913930075,0.28144816876227713,0.435354296348153,0.35508320221755535,0.10929983815717852,0.40737469272981364,0.1949470974911048,0.2192777828669018,0.3645701529836014,0.3394471275754034,0.3656396580240558,0.166182525792984,0.44934886160472964,0.4097482628870779,0.2724614593540099,0.20729170261182786,0.3696646207791143,0.24928557452376796,0.282233229008418,0.004424881620996413,0.10243791821221128,0.288395477722024,0.3365755435687414,0.34673903554993585,0.19599071649818853,0.22614554200751466,0.142042645300031,0.2474034134756221,0.39617045139324253,0.38086918657384955,0.20589928098910257,0.22582624638540336,0.2302737067985038,0.08652685515534665,0.005190201563017749,0.17656823700870247,0.32775431259245724,0.28595430031391383,0.20342717260824714,0.19973812419371084,0.14022322439251805,0.09422312415722507,0.02885774867546333,0.15834123637457995,0.12671602067470397,0.23445230180985807,0.3272536510633102,0.42750273301453107,0.12307396784617643,0.13661037955908528,0.01086231590677054,0.39464223771628676,0.30698847238079935,0.32613849276943646,0.2116377094490128,0.1828362023130222,-0.1146789275724986,-0.030358955158090808,-0.018135835468203493,-0.16706080516528923,0.09572512581076924,0.10444440265367373,0.032844575608519944,0.06161967373243447,0.025841298577190284,-0.16403794206651442,0.16470220462708277,0.21660468326892093,0.2586642636899302,0.174555411325666,0.12042666302580644,0.06928849730728416,0.0640030289048721,0.15164688110237692,0.1343921454592444,0.1481553787324077,0.005762442589187622,0.17145611762155943],"style":"dashed"}]},{"id":"pair_correlations","title":"Pairwise correlations: rolling 63 days and EWMA","type":"line","x":{"label":"Date","type":"time"},"y":{"label":"Correlation"},"series":[{"name":"AAPL–MSFT rolling","kind":"calculated","x":["2017-02-13","2017-03-07","2017-03-29","2017-04-20","2017-05-12","2017-06-05","2017-06-27","2017-07-19","2017-08-09","2017-08-31","2017-09-22","2017-10-16","2017-11-06","2017-11-30","2017-12-20","2018-01-12","2018-02-07","2018-02-28","2018-03-23","2018-04-13","2018-05-08","2018-05-30","2018-06-19","2018-07-13","2018-08-02","2018-08-27","2018-09-18","2018-10-10","2018-10-31","2018-11-20","2018-12-17","2019-01-09","2019-02-01","2019-02-25","2019-03-19","2019-04-09","2019-05-01","2019-05-23","2019-06-14","2019-07-09","2019-07-30","2019-08-21","2019-09-12","2019-10-03","2019-10-25","2019-11-15","2019-12-10","2020-01-02","2020-01-28","2020-02-18","2020-03-10","2020-04-01","2020-04-23","2020-05-18","2020-06-08","2020-07-01","2020-07-22","2020-08-12","2020-09-04","2020-09-25","2020-10-20","2020-11-09","2020-12-03","2020-12-24","2021-01-15","2021-02-10","2021-03-04","2021-03-26","2021-04-19","2021-05-11","2021-06-02","2021-06-23","2021-07-16","2021-08-06","2021-08-30","2021-09-21","2021-10-13","2021-11-03","2021-11-24","2021-12-17","2022-01-10","2022-02-02","2022-02-24","2022-03-17","2022-04-08","2022-05-02","2022-05-24","2022-06-15","2022-07-11","2022-08-01","2022-08-22","2022-09-14","2022-10-05","2022-10-27","2022-11-17","2022-12-13","2023-01-04","2023-01-26","2023-02-21","2023-03-13","2023-04-05","2023-04-26","2023-05-19","2023-06-12","2023-07-03","2023-07-27","2023-08-16","2023-09-11","2023-10-02","2023-10-24","2023-11-14","2023-12-05","2023-12-29","2024-01-23","2024-02-14","2024-03-07","2024-04-01","2024-04-22","2024-05-13","2024-06-05","2024-06-27","2024-07-22","2024-08-12","2024-09-04","2024-09-25","2024-10-16","2024-11-07","2024-11-29","2024-12-23","2025-01-16","2025-02-11","2025-03-04","2025-03-25","2025-04-16","2025-05-08","2025-06-03","2025-06-24","2025-07-18","2025-08-07","2025-08-28","2025-09-23","2025-10-13","2025-11-05","2025-11-25","2025-12-19","2026-01-13","2026-02-03","2026-02-27","2026-03-20","2026-04-14","2026-05-05","2026-05-28","2026-06-18","2026-07-13","2026-08-04","2026-08-25","2026-09-17","2026-10-08","2026-10-30","2026-11-20"],"y":[0.19603077532186636,0.033826610660995876,0.04623092444916181,0.026299921913848927,0.43401440188672397,0.49628304449723326,0.6347086551647677,0.6561274111402875,0.5558483525229081,0.6084631877145431,0.5437958793217953,0.47019651389231515,0.5788953658084386,0.5336313069589775,0.47065047180573194,0.47684772934796854,0.6234002004995534,0.6768080446197866,0.7416030819461858,0.8080598980526056,0.6612230479372887,0.6240613667940177,0.609140241218397,0.39285231784253766,0.5139275045853917,0.43674487628468733,0.43319755754480316,0.5160832556350577,0.7405476339983837,0.7032504259612471,0.7431176536820588,0.7989684819693255,0.7830672216330716,0.8062334718901509,0.8078419335622863,0.711862685699581,0.26643141039256074,0.4524887612067385,0.5117385562379886,0.5134940861793393,0.5691125824147165,0.7109324129302382,0.6734723100763638,0.6463958391835308,0.6457255042692687,0.5448335631568043,0.4489641587281983,0.41423254050157216,0.5985066362103864,0.5906219241604674,0.8791739039095897,0.9362430656059062,0.9367779553033233,0.9487281037719523,0.9481468887263563,0.8895737335566156,0.8444296045626283,0.672075271908288,0.60658409516295,0.6534813306099003,0.6851514596315357,0.7573781284996768,0.8168346732128747,0.6880766075143611,0.6892590945792482,0.5095890421171992,0.5880634332109135,0.7000741888825937,0.6750339220978714,0.785265574513797,0.8037357135133684,0.761203986915466,0.755251758903729,0.7735460526310175,0.6338381040200962,0.6410101258394411,0.6813907029456083,0.5335568684161819,0.5145361144117452,0.6029210660909331,0.6038991429227324,0.703689220895649,0.724308156639976,0.7950643579335688,0.7868621225835938,0.8211620700370705,0.8446972904212218,0.8545196935955022,0.8755248397317557,0.8545948758002532,0.8422818725768777,0.8388498993309385,0.7612667499600703,0.8037816201873241,0.8235815357688192,0.8120321468064157,0.7972574344450123,0.7632458463635694,0.6882094347909344,0.6567951875266219,0.658569471706305,0.5813388325842852,0.567932910434756,0.512691594247255,0.557034206626704,0.5769156967262032,0.4577562722236759,0.46084881721692533,0.41731602051652783,0.5374930388406397,0.6321263887897324,0.6323551028634502,0.6087931681032941,0.5588951172344407,0.4927111539226337,0.5277147053317693,0.4265469533807083,0.377804764524229,0.35649942511813437,0.29483133974042586,0.36495457898259503,0.42527303059746446,0.5343528868717571,0.5970421157517908,0.6044118705655226,0.5826415894678011,0.49471034822651316,0.4985911901720082,0.5448305908410797,0.5387830784480133,0.44336367680353345,0.39430548243671176,0.41461620807717364,0.6988541315410882,0.6892537287738748,0.726634872226054,0.7207768668850908,0.2892025737307839,0.20674192073773462,-0.0253039694877907,0.05465956040155107,0.11005055128018051,0.23699779395427867,0.22015446844794703,0.17068984599433223,0.09007916628060257,-0.03212800203443358,0.010982386085670126,0.054346800225601365,0.11984987037699346,0.23655168588013178,0.277037406366161,0.16865147479612455,0.2829082025305301,0.05462823163857479,0.08615920228670083,0.10918638193232415,-0.030129730382631198,0.2401066336173883,0.46590141782040306]},{"name":"AAPL–MSFT EWMA","kind":"calculated","x":["2017-02-14","2017-03-08","2017-03-30","2017-04-21","2017-05-15","2017-06-06","2017-06-28","2017-07-20","2017-08-10","2017-09-01","2017-09-25","2017-10-17","2017-11-07","2017-12-01","2017-12-21","2018-01-16","2018-02-07","2018-03-01","2018-03-26","2018-04-16","2018-05-09","2018-05-30","2018-06-20","2018-07-16","2018-08-03","2018-08-28","2018-09-18","2018-10-11","2018-11-01","2018-11-21","2018-12-18","2019-01-09","2019-02-04","2019-02-26","2019-03-20","2019-04-10","2019-05-01","2019-05-24","2019-06-17","2019-07-10","2019-07-31","2019-08-22","2019-09-13","2019-10-04","2019-10-28","2019-11-18","2019-12-11","2020-01-03","2020-01-28","2020-02-19","2020-03-11","2020-04-02","2020-04-24","2020-05-18","2020-06-09","2020-07-01","2020-07-23","2020-08-13","2020-09-04","2020-09-28","2020-10-20","2020-11-10","2020-12-03","2020-12-24","2021-01-19","2021-02-10","2021-03-04","2021-03-26","2021-04-19","2021-05-12","2021-06-02","2021-06-23","2021-07-16","2021-08-06","2021-08-31","2021-09-21","2021-10-14","2021-11-03","2021-11-24","2021-12-20","2022-01-10","2022-02-03","2022-02-25","2022-03-17","2022-04-11","2022-05-02","2022-05-25","2022-06-16","2022-07-12","2022-08-02","2022-08-22","2022-09-15","2022-10-06","2022-10-28","2022-11-18","2022-12-13","2023-01-05","2023-01-27","2023-02-21","2023-03-14","2023-04-05","2023-04-27","2023-05-19","2023-06-12","2023-07-05","2023-07-27","2023-08-17","2023-09-11","2023-10-02","2023-10-24","2023-11-14","2023-12-06","2023-12-29","2024-01-23","2024-02-14","2024-03-07","2024-04-01","2024-04-22","2024-05-13","2024-06-05","2024-06-27","2024-07-22","2024-08-12","2024-09-05","2024-09-25","2024-10-16","2024-11-07","2024-11-29","2024-12-24","2025-01-16","2025-02-11","2025-03-04","2025-03-25","2025-04-17","2025-05-08","2025-06-03","2025-06-24","2025-07-18","2025-08-08","2025-08-28","2025-09-23","2025-10-13","2025-11-05","2025-11-26","2025-12-19","2026-01-13","2026-02-03","2026-02-27","2026-03-20","2026-04-14","2026-05-05","2026-05-28","2026-06-18","2026-07-13","2026-08-04","2026-08-25","2026-09-17","2026-10-08","2026-10-30","2026-11-20"],"y":[-0.06273019478201998,0.15640329939140393,0.3766106846267496,0.40289988394151466,0.2398944432231382,0.5386852652672285,0.7310973936809895,0.720329554332449,0.4427150480165047,0.5345434627742962,0.586431252996722,0.48682625734395085,0.5454464254635918,0.5617118329097626,0.45042845536428083,0.5163885613738539,0.758649174109194,0.7679794711097021,0.8803818043579821,0.88241916075937,0.39374555120140425,0.43105413233894374,0.481635818301452,0.7037813518039805,0.409584930135299,0.36249600375691965,0.45056589084883636,0.7735642770378612,0.8099240093245877,0.73267746161784,0.7737715228618535,0.8385888954331259,0.8045059547599078,0.7157927141206005,0.7537623662645612,0.6978890398528115,-0.14159387929719636,0.4418915176918145,0.6648318163929132,0.66205705561966,0.18082659209777657,0.7314494429210833,0.644246013595267,0.665660634754567,0.548700008235157,0.42779845418511325,0.539174932173505,0.6178720117203169,0.823412148578524,0.524905835698162,0.9368698804411585,0.9472058600867655,0.9368266998133357,0.9041271452574504,0.8594681791435139,0.8814394242887316,0.8754685272769926,0.581901769619876,0.5529074802666382,0.77493458065848,0.7884308664948906,0.7601740988764341,0.7009874350283393,0.5088138875938002,0.7106390933224636,0.4664806117313541,0.691948695228727,0.7441212790414291,0.7613754828853513,0.7993426390060117,0.8217959599659796,0.7545699491412255,0.7205376679877065,0.7035324539710468,0.6572743258583414,0.6234574521435707,0.7793471391502074,0.3054460534816305,0.3879652027119463,0.7121553252562828,0.7505870984367713,0.667270324210167,0.7476492501452774,0.861788471479045,0.8623847945871761,0.7673483850504744,0.8713252368678606,0.9090128964561631,0.7704559025651995,0.7786309255116265,0.8380474517544105,0.8823381139009092,0.7714554439570266,0.7736377553091486,0.843860246101898,0.8488499042945902,0.6339277081906469,0.6572052329203993,0.6716874686117643,0.7278084929499553,0.6710107070598877,0.5051345442345803,0.5299161463421322,0.5911661846543295,0.7048752419960974,0.42091034948173545,0.3146632751794256,0.49055264173836716,0.5714271121899543,0.6372023210242336,0.6991573232338859,0.6529394479479829,0.4649869260528238,0.5841665549423483,0.4440953343701286,0.5239894043688589,0.2088439718623116,0.42181470140717353,0.35928300195318963,0.3120835254919,0.3783130459573776,0.5756728012019726,0.5900559536868514,0.6434136671265689,0.442445491181074,0.6353791987577868,0.4605105962860246,0.5337663424877744,0.5783723394313263,0.6102673664220203,0.3643145300275402,0.35348080173620783,0.5253063776773789,0.8681823891440534,0.5763353922809022,0.6168092633981516,0.4554055793531062,0.2978592194827552,0.011802135176456093,0.09424232986499093,0.18376724392378108,0.32597808920984217,0.2270269308459134,0.13851115511352385,0.06591103409312524,-0.05945328448144284,-0.1011752756998582,0.09154127683860457,0.2514163295804851,0.2520228377307541,0.2038593831669391,0.13021419279537183,0.15513305204479355,0.4770929117822876,-0.13364496216923516,-0.0699666544472967,0.15288951845314963,0.21359619048566264,-0.0027528027185585464,0.5595899895180275],"style":"dashed"},{"name":"AAPL–TLT rolling","kind":"calculated","x":["2017-02-13","2017-03-07","2017-03-29","2017-04-20","2017-05-12","2017-06-05","2017-06-27","2017-07-19","2017-08-09","2017-08-31","2017-09-22","2017-10-16","2017-11-06","2017-11-30","2017-12-20","2018-01-12","2018-02-07","2018-02-28","2018-03-23","2018-04-13","2018-05-08","2018-05-30","2018-06-19","2018-07-13","2018-08-02","2018-08-27","2018-09-18","2018-10-10","2018-10-31","2018-11-20","2018-12-17","2019-01-09","2019-02-01","2019-02-25","2019-03-19","2019-04-09","2019-05-01","2019-05-23","2019-06-14","2019-07-09","2019-07-30","2019-08-21","2019-09-12","2019-10-03","2019-10-25","2019-11-15","2019-12-10","2020-01-02","2020-01-28","2020-02-18","2020-03-10","2020-04-01","2020-04-23","2020-05-18","2020-06-08","2020-07-01","2020-07-22","2020-08-12","2020-09-04","2020-09-25","2020-10-20","2020-11-09","2020-12-03","2020-12-24","2021-01-15","2021-02-10","2021-03-04","2021-03-26","2021-04-19","2021-05-11","2021-06-02","2021-06-23","2021-07-16","2021-08-06","2021-08-30","2021-09-21","2021-10-13","2021-11-03","2021-11-24","2021-12-17","2022-01-10","2022-02-02","2022-02-24","2022-03-17","2022-04-08","2022-05-02","2022-05-24","2022-06-15","2022-07-11","2022-08-01","2022-08-22","2022-09-14","2022-10-05","2022-10-27","2022-11-17","2022-12-13","2023-01-04","2023-01-26","2023-02-21","2023-03-13","2023-04-05","2023-04-26","2023-05-19","2023-06-12","2023-07-03","2023-07-27","2023-08-16","2023-09-11","2023-10-02","2023-10-24","2023-11-14","2023-12-05","2023-12-29","2024-01-23","2024-02-14","2024-03-07","2024-04-01","2024-04-22","2024-05-13","2024-06-05","2024-06-27","2024-07-22","2024-08-12","2024-09-04","2024-09-25","2024-10-16","2024-11-07","2024-11-29","2024-12-23","2025-01-16","2025-02-11","2025-03-04","2025-03-25","2025-04-16","2025-05-08","2025-06-03","2025-06-24","2025-07-18","2025-08-07","2025-08-28","2025-09-23","2025-10-13","2025-11-05","2025-11-25","2025-12-19","2026-01-13","2026-02-03","2026-02-27","2026-03-20","2026-04-14","2026-05-05","2026-05-28","2026-06-18","2026-07-13","2026-08-04","2026-08-25","2026-09-17","2026-10-08","2026-10-30","2026-11-20"],"y":[0.06375703461367975,-0.21043979538721136,-0.2140110832408723,-0.31212552040467867,-0.3451795371880908,-0.27789714234304014,-0.22173014186089127,-0.15681954557308772,-0.06624789732342017,-0.13795313166900333,-0.18351590869067858,-0.29145644946909544,-0.14777733689306316,-0.03648848503916708,0.03254986686977084,0.01948686731681739,-0.05588462972272003,0.05812780241221248,-0.026168286443185876,-0.13106943681464397,-0.055793326657488575,-0.12634332574650886,-0.13107548347192394,0.018492164606747113,-0.1461348268987756,-0.2217519985589857,-0.18075400171989373,-0.020815259891263205,-0.11517165824134344,-0.08953497416829577,-0.15454188687854473,-0.36255600110773906,-0.40648325089772913,-0.5123320048483879,-0.44429245564235104,-0.21781917175024462,-0.08071327352251567,-0.21205455197084858,-0.28099932390008975,-0.2420742699135536,-0.2146524900754735,-0.46026099317966,-0.4651416769930418,-0.4228953951672087,-0.4712220258821621,-0.30349629228785613,-0.21001631214464095,-0.16964049999600067,-0.31880109582711674,-0.43334884870702334,-0.6200023155965687,-0.5693248307908537,-0.551704440332041,-0.5504566812340624,-0.528281187892287,-0.35191463586143873,-0.403738364919967,-0.24296922268311438,-0.12254571500626209,-0.04380168871858555,-0.07240551195604561,0.05672867446245882,-0.02720339185427662,0.06940674527937325,0.21749993397300793,0.15268194463918933,0.22524329181417715,0.27950897393058993,0.28238315748540443,0.2306401308916017,0.36575166699943407,0.14734473116633937,0.19757220626081948,0.09106982052519197,-0.07848320775955116,-0.06452428717114628,-0.12144097603195657,-0.03626549946843398,0.05230322078266357,-0.19806307748033594,-0.2747978906576783,-0.2085315379590193,-0.26135619944841826,-0.0939462573804413,-0.008579007797517073,0.09204142182778052,-0.049830675396381516,0.04198872165368239,-0.03614353661161444,-0.11235278192252328,0.027599302463550787,-0.015931180422875862,0.053220245225525396,0.0234260661442453,0.11676358085390938,0.13522883948355224,0.15693499343067147,0.17515926072647062,0.11051133372938451,0.14575748572643657,0.06795121114648968,0.05999461992121673,0.04111468038250065,-0.009755536480464008,0.049864688971769426,0.16822680225855405,0.1704170124614157,0.16530044171976238,0.07732336912606556,0.051848928124013025,0.19443618030877033,0.21269321443443653,0.26571908689017365,0.32626123209358454,0.27218450318523985,0.07503899823912762,0.03630840312562732,0.001239526118685526,0.16573143387406003,0.31595131947840766,0.29422403370360767,0.21162225038191765,0.14111061482776663,0.05047390477742256,-0.05355437794793818,-0.07668681944587005,-0.09552265983001151,-0.04349722453974386,0.16459540539035003,0.1948723711165492,0.12418310685784366,0.10458750774474582,0.004498100966025777,0.12235682089636073,0.19666629876974367,0.18269269745295155,0.20140315785200824,0.16950554659724315,-0.11747708030271535,-0.15244703986055,-0.03927008002690294,-0.1838944009354598,-0.04506937805334236,-0.02785523421171408,-0.1028098760503517,0.07970057564085033,0.18668860342152696,-0.13434185418241343,-0.012899014581890288,-0.006268448416765935,0.04341734158864438,0.2757879780604584,0.27783197710947927,0.1565691831550661,0.1916482514524663,0.23510870787898702,0.1565809907197184,0.29856612378636677,0.2342674817833085,0.09772330685725591]},{"name":"AAPL–TLT EWMA","kind":"calculated","x":["2017-02-14","2017-03-08","2017-03-30","2017-04-21","2017-05-15","2017-06-06","2017-06-28","2017-07-20","2017-08-10","2017-09-01","2017-09-25","2017-10-17","2017-11-07","2017-12-01","2017-12-21","2018-01-16","2018-02-07","2018-03-01","2018-03-26","2018-04-16","2018-05-09","2018-05-30","2018-06-20","2018-07-16","2018-08-03","2018-08-28","2018-09-18","2018-10-11","2018-11-01","2018-11-21","2018-12-18","2019-01-09","2019-02-04","2019-02-26","2019-03-20","2019-04-10","2019-05-01","2019-05-24","2019-06-17","2019-07-10","2019-07-31","2019-08-22","2019-09-13","2019-10-04","2019-10-28","2019-11-18","2019-12-11","2020-01-03","2020-01-28","2020-02-19","2020-03-11","2020-04-02","2020-04-24","2020-05-18","2020-06-09","2020-07-01","2020-07-23","2020-08-13","2020-09-04","2020-09-28","2020-10-20","2020-11-10","2020-12-03","2020-12-24","2021-01-19","2021-02-10","2021-03-04","2021-03-26","2021-04-19","2021-05-12","2021-06-02","2021-06-23","2021-07-16","2021-08-06","2021-08-31","2021-09-21","2021-10-14","2021-11-03","2021-11-24","2021-12-20","2022-01-10","2022-02-03","2022-02-25","2022-03-17","2022-04-11","2022-05-02","2022-05-25","2022-06-16","2022-07-12","2022-08-02","2022-08-22","2022-09-15","2022-10-06","2022-10-28","2022-11-18","2022-12-13","2023-01-05","2023-01-27","2023-02-21","2023-03-14","2023-04-05","2023-04-27","2023-05-19","2023-06-12","2023-07-05","2023-07-27","2023-08-17","2023-09-11","2023-10-02","2023-10-24","2023-11-14","2023-12-06","2023-12-29","2024-01-23","2024-02-14","2024-03-07","2024-04-01","2024-04-22","2024-05-13","2024-06-05","2024-06-27","2024-07-22","2024-08-12","2024-09-05","2024-09-25","2024-10-16","2024-11-07","2024-11-29","2024-12-24","2025-01-16","2025-02-11","2025-03-04","2025-03-25","2025-04-17","2025-05-08","2025-06-03","2025-06-24","2025-07-18","2025-08-08","2025-08-28","2025-09-23","2025-10-13","2025-11-05","2025-11-26","2025-12-19","2026-01-13","2026-02-03","2026-02-27","2026-03-20","2026-04-14","2026-05-05","2026-05-28","2026-06-18","2026-07-13","2026-08-04","2026-08-25","2026-09-17","2026-10-08","2026-10-30","2026-11-20"],"y":[-0.1836762801996104,-0.28322789331475545,-0.16755806425091443,-0.3404313232106857,-0.23417753486939658,-0.08961366567946112,-0.07779359883864793,0.00785857845536528,-0.20936052088493978,-0.2458183847384584,-0.3101704486092249,-0.20629933552344412,0.2598179118793275,0.03854186193636702,0.06275293481127225,-0.1318061626355015,0.04409584621340552,0.06856545307751932,-0.17806087127731762,-0.43643817782352157,-0.04130061195343847,0.028378755235906907,-0.16140791091130874,-0.2331208339968996,-0.2517782279042419,-0.21691056963918726,-0.17568910551000116,0.04910073584472939,-0.23071357128656197,-0.09835176737008133,-0.30818759869984774,-0.6368861240220332,-0.4795157623776433,-0.26497171127776237,-0.09231080545684163,-0.18530878730578673,0.024747842850097942,-0.35086487749699796,-0.35685857799754717,-0.19380362209745333,0.12443691219412784,-0.5014184647806937,-0.3381109584422582,-0.1807991531581927,-0.4108161220825088,-0.22524934193910662,-0.32358144163795954,-0.11597296981265819,-0.4860048656664569,-0.526422510606732,-0.5241479264983495,-0.5750855570198335,-0.4971407391592047,-0.534646122941048,-0.31068807113186353,-0.4624927156578097,-0.47651571260899167,-0.16621619825411926,0.07780581379891575,-0.020707722907722183,-0.16748244251681232,0.25687574430879573,-0.029416545600852672,0.141219379768494,0.24522085761910062,0.24657500206645735,0.16538892505425332,0.3054990014560493,0.3096860656782297,0.2987649187711293,0.41358609111322775,0.024325423617175095,0.22887262980758769,-0.132036934981466,0.08239008449899989,-0.10358132000705159,-0.013918581440465295,-0.19031423367051598,0.17508035972141253,-0.35635512163469063,-0.3281397774080395,-0.11945459367190092,-0.08596398247243252,0.03704373342434177,0.2189415168603894,0.22684280644915902,-0.3032023396659756,0.08475194665063467,-0.11432574808099076,-0.058724590020791584,0.1386795656589127,0.028596985934273487,0.06543528326735525,-0.136514955338975,0.27872733031084646,0.1587780703429464,0.10720796239536803,0.04178338259482073,0.16883092965991098,0.04752887454516384,0.04152610897037376,-0.15091418908471352,-0.063228085720909,0.20004410599869457,0.23234377861493505,0.3479340819879647,0.0922834912541127,0.10745425226079405,-0.024627288723193044,0.04668082494577034,0.3436094707486943,0.40541596182248596,0.35996440966880455,0.23279359726483442,0.1523426343362126,-0.18646523806563525,0.07674825522876318,0.1656797051149738,0.3773958951338905,0.41045614919495904,0.16351468023639634,0.07925228218080804,0.10489426182903543,-0.11423013341218116,-0.28191646030701106,-0.10756614395662709,0.13689625650971884,0.3108669521051305,0.20461467596031388,0.24239853086680835,0.03260081536767952,0.1360023998548738,-0.17183764306025456,0.22414731228322626,0.3066369189516887,0.22333161985581854,0.000690026553035265,0.14561213164173895,-0.29487877983401883,-0.07748978990731827,-0.04644372262768944,-0.30134666181063635,-0.10473064765903344,0.09410935243729517,-0.0010062633576640974,0.0466547709229882,0.18396084721726294,-0.3603753283248542,0.08214264557965155,0.05522763252083349,0.3931583332324324,0.3211799873519137,0.2834237025598708,-0.06762385397223816,0.3173257806328385,0.41503227533283044,0.08343285734187757,0.21542357403308088,0.22737398449507273,0.0781190579521256],"style":"dashed"},{"name":"MSFT–TLT rolling","kind":"calculated","x":["2017-02-13","2017-03-07","2017-03-29","2017-04-20","2017-05-12","2017-06-05","2017-06-27","2017-07-19","2017-08-09","2017-08-31","2017-09-22","2017-10-16","2017-11-06","2017-11-30","2017-12-20","2018-01-12","2018-02-07","2018-02-28","2018-03-23","2018-04-13","2018-05-08","2018-05-30","2018-06-19","2018-07-13","2018-08-02","2018-08-27","2018-09-18","2018-10-10","2018-10-31","2018-11-20","2018-12-17","2019-01-09","2019-02-01","2019-02-25","2019-03-19","2019-04-09","2019-05-01","2019-05-23","2019-06-14","2019-07-09","2019-07-30","2019-08-21","2019-09-12","2019-10-03","2019-10-25","2019-11-15","2019-12-10","2020-01-02","2020-01-28","2020-02-18","2020-03-10","2020-04-01","2020-04-23","2020-05-18","2020-06-08","2020-07-01","2020-07-22","2020-08-12","2020-09-04","2020-09-25","2020-10-20","2020-11-09","2020-12-03","2020-12-24","2021-01-15","2021-02-10","2021-03-04","2021-03-26","2021-04-19","2021-05-11","2021-06-02","2021-06-23","2021-07-16","2021-08-06","2021-08-30","2021-09-21","2021-10-13","2021-11-03","2021-11-24","2021-12-17","2022-01-10","2022-02-02","2022-02-24","2022-03-17","2022-04-08","2022-05-02","2022-05-24","2022-06-15","2022-07-11","2022-08-01","2022-08-22","2022-09-14","2022-10-05","2022-10-27","2022-11-17","2022-12-13","2023-01-04","2023-01-26","2023-02-21","2023-03-13","2023-04-05","2023-04-26","2023-05-19","2023-06-12","2023-07-03","2023-07-27","2023-08-16","2023-09-11","2023-10-02","2023-10-24","2023-11-14","2023-12-05","2023-12-29","2024-01-23","2024-02-14","2024-03-07","2024-04-01","2024-04-22","2024-05-13","2024-06-05","2024-06-27","2024-07-22","2024-08-12","2024-09-04","2024-09-25","2024-10-16","2024-11-07","2024-11-29","2024-12-23","2025-01-16","2025-02-11","2025-03-04","2025-03-25","2025-04-16","2025-05-08","2025-06-03","2025-06-24","2025-07-18","2025-08-07","2025-08-28","2025-09-23","2025-10-13","2025-11-05","2025-11-25","2025-12-19","2026-01-13","2026-02-03","2026-02-27","2026-03-20","2026-04-14","2026-05-05","2026-05-28","2026-06-18","2026-07-13","2026-08-04","2026-08-25","2026-09-17","2026-10-08","2026-10-30","2026-11-20"],"y":[0.17907583077762781,0.00381110208904583,-0.11259744875874993,-0.15611683582514574,-0.27354623325920807,-0.2252185369804039,-0.1770447147357671,-0.0467779800764119,-0.02440053846404678,-0.11130443420580956,-0.04491047957460435,-0.28458050392938067,-0.061261792840670994,0.07000787580320936,0.11950217083126925,0.1618135356057938,0.08781080850561084,0.1150911309936926,-0.06176300344210378,-0.21639514242073254,-0.16808158542966942,-0.21421011675096888,-0.21239827517705043,-0.02564044096240983,-0.24503793153586503,-0.3719885499925276,-0.24785958087457283,0.0015316360368589606,-0.09824567020224767,-0.122978483654224,-0.2241957505385453,-0.42156494788072263,-0.5025779146567653,-0.5195425389384892,-0.4507808780291816,-0.3595936657535999,-0.2878146474151663,-0.3202820169697657,-0.3964238311967673,-0.22972122595488242,-0.2393735085991319,-0.4154564099952304,-0.3523851222416338,-0.3945083258252542,-0.40839573132373524,-0.29096053737322225,-0.22166823166043859,-0.054538744948435545,-0.2192674343628933,-0.170056983525481,-0.5930205059843948,-0.5193638962350274,-0.5082500168010262,-0.5104487738321264,-0.46915978838614203,-0.3066303843709038,-0.3090540352357857,-0.23873090926676901,-0.23110908726584556,-0.1916374175515216,-0.19663691524720156,0.0013389234248336408,0.027102722174878593,0.10043986980745485,0.22454604849734272,0.12529560926613034,0.31980150709460464,0.3842479667485462,0.3903854471648842,0.36403320493245794,0.3971538106967996,0.27790655349943366,0.2561367146173223,0.16033646228866272,0.0232219934563619,-0.004005766685452849,0.10002256723002591,0.33175121166444166,0.3197873732594113,0.021596931058497745,-0.0159525366776136,-0.17609493637121995,-0.19550206580159016,-0.08486720147361368,-0.05990183683261426,0.03138799245979922,-0.04589765300279,0.10588230191587596,0.03529178685676458,-0.07478830097382433,0.06964670448616023,0.010379434708870152,0.10710472939114286,0.05624689420629277,0.13441854746908868,0.1627771808172176,0.12785159005388755,0.09023106990171116,0.1618451899388336,0.1407313589425731,0.11323419252782621,0.05694951800061787,-0.04031045045541437,-0.05155649907592151,-0.09861198858495136,0.1463042358090796,0.16976071896019532,0.17030985947948865,0.09280968996636062,0.11696990638572266,0.05787847191131053,0.05107869845699266,-0.055033449979905925,-0.09617732255685021,-0.02996042447234875,-0.12554216493798948,-0.06114639331623731,-0.0769703296309245,0.059938859712984294,0.06236553861996848,0.1497228534455367,0.12395030258553956,-0.091850084716136,-0.11475104959212806,-0.11986561804738212,-0.12145084331684393,-0.09261618488906657,-0.14351702517730247,-0.036607644738336415,0.06286140548603564,0.06921583355787864,0.06269279558799037,-0.1367303350963298,-0.08176916063666662,0.013517430806839998,0.060482751723962024,0.13830855199485506,0.1779229908420674,0.046938011966582927,-0.04999068384403921,-0.15244569560204982,-0.3022866890215633,-0.15536339121627446,-0.11028597564906556,-0.07407912241148153,0.15451984204229063,0.0030222606808008334,-0.09765668047680282,-0.02653470657368179,0.03354259123291811,0.05654202665127966,0.1466640113631763,0.09811898278560288,-0.07200430586919004,-0.05473695217931936,0.0037753319352689563,0.04620028862699464,0.10273254317910298,0.022862365786101433,-0.026835488570839453]},{"name":"MSFT–TLT EWMA","kind":"calculated","x":["2017-02-14","2017-03-08","2017-03-30","2017-04-21","2017-05-15","2017-06-06","2017-06-28","2017-07-20","2017-08-10","2017-09-01","2017-09-25","2017-10-17","2017-11-07","2017-12-01","2017-12-21","2018-01-16","2018-02-07","2018-03-01","2018-03-26","2018-04-16","2018-05-09","2018-05-30","2018-06-20","2018-07-16","2018-08-03","2018-08-28","2018-09-18","2018-10-11","2018-11-01","2018-11-21","2018-12-18","2019-01-09","2019-02-04","2019-02-26","2019-03-20","2019-04-10","2019-05-01","2019-05-24","2019-06-17","2019-07-10","2019-07-31","2019-08-22","2019-09-13","2019-10-04","2019-10-28","2019-11-18","2019-12-11","2020-01-03","2020-01-28","2020-02-19","2020-03-11","2020-04-02","2020-04-24","2020-05-18","2020-06-09","2020-07-01","2020-07-23","2020-08-13","2020-09-04","2020-09-28","2020-10-20","2020-11-10","2020-12-03","2020-12-24","2021-01-19","2021-02-10","2021-03-04","2021-03-26","2021-04-19","2021-05-12","2021-06-02","2021-06-23","2021-07-16","2021-08-06","2021-08-31","2021-09-21","2021-10-14","2021-11-03","2021-11-24","2021-12-20","2022-01-10","2022-02-03","2022-02-25","2022-03-17","2022-04-11","2022-05-02","2022-05-25","2022-06-16","2022-07-12","2022-08-02","2022-08-22","2022-09-15","2022-10-06","2022-10-28","2022-11-18","2022-12-13","2023-01-05","2023-01-27","2023-02-21","2023-03-14","2023-04-05","2023-04-27","2023-05-19","2023-06-12","2023-07-05","2023-07-27","2023-08-17","2023-09-11","2023-10-02","2023-10-24","2023-11-14","2023-12-06","2023-12-29","2024-01-23","2024-02-14","2024-03-07","2024-04-01","2024-04-22","2024-05-13","2024-06-05","2024-06-27","2024-07-22","2024-08-12","2024-09-05","2024-09-25","2024-10-16","2024-11-07","2024-11-29","2024-12-24","2025-01-16","2025-02-11","2025-03-04","2025-03-25","2025-04-17","2025-05-08","2025-06-03","2025-06-24","2025-07-18","2025-08-08","2025-08-28","2025-09-23","2025-10-13","2025-11-05","2025-11-26","2025-12-19","2026-01-13","2026-02-03","2026-02-27","2026-03-20","2026-04-14","2026-05-05","2026-05-28","2026-06-18","2026-07-13","2026-08-04","2026-08-25","2026-09-17","2026-10-08","2026-10-30","2026-11-20"],"y":[-0.09605981818521299,-0.23925839928943643,-0.07705386204125735,-0.1919737353946946,-0.3081792837005432,-0.002741858007133866,0.022192040878421037,0.18353585320991447,-0.24852932084172702,-0.13908138345528456,-0.2295488236520965,-0.14492221468949296,0.20250698403782788,0.14166088866484108,0.2031243568099709,0.07890662664852774,0.043179936375192574,0.055723434904022213,-0.2738568676716323,-0.459301637327686,-0.08425043057742775,-0.0201456863913721,-0.23049281414694292,-0.19020717687514674,-0.21437332926040512,-0.2806391191727265,-0.17250113009039095,0.1701854075867446,-0.23893079862807604,-0.24887243273127255,-0.3645025426364227,-0.6095432305474546,-0.5365557215034833,-0.3436683303342723,-0.18735352179542528,-0.40852616566885175,-0.20735958470157562,-0.3148358959753899,-0.31295707065164396,-0.10269471881171274,-0.2531485283329206,-0.5170494866436683,-0.30209887375606786,-0.23271835000835508,-0.4412500672963087,-0.22566226187203337,-0.057654499848049455,-0.006158156213996384,-0.41746663006838336,-0.11033559010135491,-0.4864857880794018,-0.503686232097498,-0.462240422138191,-0.46944708806617363,-0.30502702797928083,-0.3986273030828496,-0.3770724228116605,-0.1831845941112786,-0.0632947487947213,-0.14145028423510053,-0.15017963639000417,0.3238311629674619,0.05974815417436639,0.16436646019748502,0.30273485477777423,0.14144960665351583,0.38230559299513894,0.4149545478148859,0.3910650741912618,0.3819565469739397,0.4834977933218442,0.18518467337661554,0.15760867455351243,-0.17165304373363516,0.19740195599822213,-0.02465439024751707,0.2248989363448485,0.41647477485999784,0.39638933826193945,-0.24308538777672728,-0.01641953379871093,-0.002576968891953853,-0.03300695025494262,-0.054487698616555384,0.2247365775968935,0.07105841515303249,-0.24022338273034952,0.2283592350826431,-0.07128886201089432,-0.06207298689012953,0.116983441537481,0.10740628289102742,0.2600282468477855,-0.13857522259122163,0.22545900840144456,0.22161681402369718,0.07624870747601477,-0.0771135076797364,0.2684754640656675,-0.0274806439238153,0.13416287099499247,-0.3409457102868775,-0.1593743059845894,0.073976142513048,0.0725076100951919,0.2713726751801074,0.1810253830610272,0.08042973202338277,-0.12067188756666827,0.05832709445686243,0.14574456019714752,0.08425214995107967,-0.20725349275432065,-0.13948141305097256,0.09438315168917022,-0.07794360083718367,-0.27002162240202154,-0.05778969549604,0.24658404069029163,0.1353232262548825,0.06845379163096743,-0.055710710801648154,-0.2742805423383326,-0.2465141612427125,-0.07395578484767296,-0.0527893456774199,-0.21725879077163157,-0.14127638916333077,0.19877393779829053,0.42984230175476457,-0.027693441856690447,-0.07965206291382576,-0.3208817868968127,0.09159701172158054,0.03799310590980707,0.13827459505433926,0.178817522440897,0.10503725581457247,-0.06096013805993312,-0.10782940543194508,-0.1917310277007021,-0.5258138428950736,0.1648790942454277,0.08071270041020219,0.0336289560900987,0.19765753475575806,-0.005261675785833893,-0.22327977471329363,0.1605476387211116,0.3425635795551752,0.17897507467041904,0.07227205382971236,-0.07727676552724505,-0.2016035658881969,0.008328268251012972,0.10987502242159707,0.16685406058270605,0.01544637167847958,-0.20733385400895132,-0.12334069460547481],"style":"dashed"}]},{"id":"hill_plot","title":"Hill plot — left-tail index against the number of tail observations","type":"line","x":{"label":"k (largest losses used)","type":"number","unit":"count"},"y":{"label":"Tail index α"},"series":[{"name":"Hill α","kind":"calculated","x":[50,63,76,88,101,113,126,139,151,164,176,189,202,214,227,239,252],"y":[4.214779901499433,4.106638977937025,3.9126346239064027,3.599900546146671,3.351356262800595,2.955487566018864,2.8262281036683374,2.7508454375643367,2.790215322150548,2.6731885315909305,2.7193347088214335,2.59629740985608,2.5214849473146392,2.5590964355094306,2.415355022978134,2.3203832676063696,2.2867459520303193]}]},{"id":"qq","title":"QQ plot of standardized returns against the normal","type":"scatter","x":{"label":"Normal quantile","type":"number","unit":null},"y":{"label":"Sample quantile"},"series":[{"name":"Returns","kind":"observed","x":[-3.542186105472275,-2.4210396184961915,-2.2293045097472652,-2.044815856743997,-1.9565803648391933,-1.8419928859962775,-1.7756316439006836,-1.6908104228904564,-1.6429328597560107,-1.5740487025869785,-1.5309018546956705,-1.4725477746250397,-1.438131221788101,-1.3868871050915887,-1.3538205029999861,-1.308000865064554,-1.2781672067616636,-1.238647172300711,-1.2112655411599142,-1.1728074849653431,-1.147462613569956,-1.1116937655934245,-1.0898172566810322,-1.0562083957088353,-1.0338838279697562,-1.0021527148179448,-0.9826217193074821,-0.952441707509717,-0.9322826413863892,-0.9034825578523383,-0.8856732058197684,-0.858035219847031,-0.8394969924792194,-0.8129096850459073,-0.7950450423296176,-0.7693818388286001,-0.7534318056280703,-0.7285616551279172,-0.7118021493140056,-0.687660393895967,-0.6726177973987142,-0.6491060350627618,-0.6332241126945596,-0.6102946101863327,-0.595977173151191,-0.5735537136686049,-0.5583765217413578,-0.5364223812298266,-0.5215493639026421,-0.5000164535318543,-0.48653583904874154,-0.46536978680435526,-0.4510075229492566,-0.4301816735610138,-0.40954076508204273,-0.3965942862569676,-0.3762298419933044,-0.3623861443914906,-0.3422764493245228,-0.3296470506296032,-0.30975663389937924,-0.2962181457340539,-0.2765276089658628,-0.2641469768259236,-0.2446259984067142,-0.23132349910128683,-0.21195408262352514,-0.1987474335968556,-0.17950692212587607,-0.1673896199072998,-0.14825331527855895,-0.13519168966532064,-0.11614240414971852,-0.10413339181422518,-0.08514909838451043,-0.07217791894684931,-0.05324125868245436,-0.04129152163397301,-0.02238247829941801,-0.009449731355413663,0.009449731355413663,0.02238247829941787,0.04129152163397315,0.053241258682454495,0.07217791894684931,0.08514909838451043,0.10413339181422504,0.11614240414971838,0.13519168966532077,0.14825331527855895,0.1673896199072998,0.17950692212587593,0.19874743359685573,0.21195408262352528,0.23132349910128683,0.2446259984067142,0.2641469768259235,0.27652760896586265,0.29621814573405414,0.30975663389937924,0.3296470506296032,0.34227644932452267,0.3623861443914907,0.3762298419933045,0.3965942862569676,0.40954076508204273,0.4301816735610136,0.45100752294925683,0.4653697868043555,0.48653583904874154,0.5000164535318543,0.521549363902642,0.5364223812298267,0.5583765217413578,0.5735537136686049,0.595977173151191,0.6102946101863326,0.6332241126945597,0.6491060350627619,0.6726177973987142,0.687660393895967,0.7118021493140056,0.7285616551279174,0.7534318056280703,0.7693818388286001,0.7950450423296176,0.8129096850459073,0.8394969924792195,0.858035219847031,0.8856732058197684,0.9034825578523383,0.932282641386389,0.9524417075097174,0.9826217193074821,1.0021527148179448,1.0338838279697562,1.0562083957088353,1.0898172566810325,1.1116937655934245,1.147462613569956,1.1728074849653431,1.2112655411599142,1.2386471723007118,1.2781672067616636,1.308000865064554,1.3538205029999861,1.3868871050915883,1.4381312217881015,1.4725477746250397,1.5309018546956705,1.5740487025869778,1.6429328597560102,1.690810422890457,1.775631643900684,1.8419928859962775,1.9565803648391933,2.0448158567439956,2.2293045097472666,2.4210396184961924,3.5421861054722767],"y":[-6.4873345113109915,-2.8776420687690365,-2.416741770383009,-2.242840690212636,-2.1347085133895125,-1.964174026397918,-1.8507665515720422,-1.6700781229549855,-1.5881396337035047,-1.4993442535479413,-1.437889740341785,-1.3933298437309498,-1.338291428692645,-1.279597814380913,-1.2341920181093033,-1.1688247650095063,-1.1404597229481526,-1.0814095545749014,-1.0563253205829684,-1.0038038466079893,-0.9684365473912608,-0.927502768659873,-0.9025358279629994,-0.8535372847180778,-0.8257323585549312,-0.7817225292753349,-0.7670082552880964,-0.7361753179015214,-0.7203739012264242,-0.7007078339112331,-0.6844173958983593,-0.6542703589830294,-0.6409861146258973,-0.6221987468313961,-0.6120649044923671,-0.5865749458321455,-0.5775370949499627,-0.5507995527553168,-0.5322785813545753,-0.5100374417720912,-0.501208216795885,-0.48367639568048204,-0.46575801624412755,-0.450936111890129,-0.4354275232491124,-0.41660654618753856,-0.4066629042463873,-0.3922071345287905,-0.38266185691569504,-0.3674611343592522,-0.35447956623718857,-0.3397549689408162,-0.32850067539312644,-0.3175448848324949,-0.30100784524327884,-0.2885316362010665,-0.26701789728047143,-0.2533692014443214,-0.23768583975076793,-0.23234789753646895,-0.22146646764673356,-0.2141764552640826,-0.19988248909846437,-0.18955288714601817,-0.17641718121360325,-0.15962131346536146,-0.14649856142526385,-0.13222075301005498,-0.11960291499972367,-0.10718076118863203,-0.09163354956609428,-0.0826621753057609,-0.06811108537329884,-0.06283981842985088,-0.048219164157293916,-0.03856313544448259,-0.022329310648693864,-0.011440966772917276,0.005358205269404111,0.015120865121792958,0.03080050251283098,0.040141008791550234,0.05888418471127239,0.0656642861464948,0.07401782050322898,0.08040594871992683,0.0996828006999786,0.10628068231812536,0.11778654864741957,0.1229434109777395,0.14003631453632884,0.14987873396498425,0.16645911876832792,0.17629718008838174,0.18911379877464823,0.19961082590129808,0.21185033174010756,0.22080030225205738,0.2308092076466738,0.2380898970220024,0.25059981603393244,0.2596407622971799,0.28296994447802304,0.29755005500566195,0.30823389504324533,0.3175882828552814,0.3314150183755857,0.35496930036829977,0.3620674010521092,0.3748822185808851,0.38424016673981826,0.40101105294418116,0.41363047415182036,0.4373422695142835,0.4510186522801967,0.4670777967263196,0.47702446425379524,0.5015107164589876,0.5139254581794657,0.5242274939600811,0.5390281592866619,0.5544950879516582,0.5668350753941391,0.587309695849599,0.6050267532424279,0.6282780734679185,0.6362058531510844,0.6632123870641056,0.6853531545600137,0.7104302430939352,0.7252995586697557,0.748048755038476,0.7648310444191937,0.8061544341373564,0.8300499129892805,0.8547536261307945,0.868122142496498,0.9038522346649822,0.9276017565991403,0.9586132050845778,0.9800544519041956,1.028154101769747,1.0513733505353315,1.0874765685144943,1.1204870326669698,1.154420877475889,1.1827767717997169,1.2413780768746803,1.2753309536263786,1.3396278603525869,1.4133633842160926,1.4759551537158195,1.524052254266855,1.5870224853375254,1.7306473927092703,1.8761597231612308,2.0116559872042337,2.293787371287289,2.8338678740320393,7.8430539700822495],"style":"points"},{"name":"Normal reference","kind":"calculated","x":[-3.542186105472275,3.5421861054722767],"y":[-3.542186105472275,3.5421861054722767],"style":"dashed"}]}],"diagnostics":[{"name":"VaR backtest, Historical simulation, 95.00%: Kupiec unconditional coverage","statistic":5.645290583852784,"pvalue":0.017502315394386674,"conclusion":"139 exceptions in 2270 days against 113.5 expected: too many exceptions, the VaR is too low.","passed":false,"df":1},{"name":"VaR backtest, Historical simulation, 95.00%: Christoffersen conditional coverage","statistic":9.080137781001667,"pvalue":0.010672671282526738,"conclusion":"Rejected because of the exception rate. Independence LR = 3.43 (p = 0.064).","passed":false,"df":2},{"name":"VaR backtest, Historical simulation, 99.00%: Kupiec unconditional coverage","statistic":10.854683021816356,"pvalue":0.000985462293877254,"conclusion":"40 exceptions in 2270 days against 22.7 expected: too many exceptions, the VaR is too low.","passed":false,"df":1},{"name":"VaR backtest, Historical simulation, 99.00%: Christoffersen conditional coverage","statistic":18.723656413597837,"pvalue":8.59428337307402e-05,"conclusion":"Rejected: exceptions cluster in time. Independence LR = 7.87 (p = 0.005).","passed":false,"df":2},{"name":"VaR backtest, Parametric normal, 95.00%: Kupiec unconditional coverage","statistic":1.8759365079359895,"pvalue":0.17079670973674527,"conclusion":"128 exceptions in 2270 days against 113.5 expected: coverage is consistent with the confidence level.","passed":true,"df":1},{"name":"VaR backtest, Parametric normal, 95.00%: Christoffersen conditional coverage","statistic":7.654489243495618,"pvalue":0.021769516319249203,"conclusion":"Rejected: exceptions cluster in time. Independence LR = 5.78 (p = 0.016).","passed":false,"df":2},{"name":"VaR backtest, Parametric normal, 99.00%: Kupiec unconditional coverage","statistic":42.66010444131331,"pvalue":6.512713306245391e-11,"conclusion":"60 exceptions in 2270 days against 22.7 expected: too many exceptions, the VaR is too low.","passed":false,"df":1},{"name":"VaR backtest, Parametric normal, 99.00%: Christoffersen conditional coverage","statistic":57.200832673410275,"pvalue":3.79312368989079e-13,"conclusion":"Rejected: exceptions cluster in time. Independence LR = 14.54 (p = < 0.001).","passed":false,"df":2},{"name":"VaR backtest, EWMA normal (λ = 0.94), 95.00%: Kupiec unconditional coverage","statistic":0.8157653489885206,"pvalue":0.3664211946418552,"conclusion":"123 exceptions in 2270 days against 113.5 expected: coverage is consistent with the confidence level.","passed":true,"df":1},{"name":"VaR backtest, EWMA normal (λ = 0.94), 95.00%: Christoffersen conditional coverage","statistic":1.0973406216895683,"pvalue":0.5777174845573587,"conclusion":"Coverage and independence of exceptions are not rejected. Independence LR = 0.28 (p = 0.596).","passed":true,"df":2},{"name":"VaR backtest, EWMA normal (λ = 0.94), 99.00%: Kupiec unconditional coverage","statistic":7.644108380138334,"pvalue":0.005695804245577177,"conclusion":"37 exceptions in 2270 days against 22.7 expected: too many exceptions, the VaR is too low.","passed":false,"df":1},{"name":"VaR backtest, EWMA normal (λ = 0.94), 99.00%: Christoffersen conditional coverage","statistic":7.87007330708542,"pvalue":0.01954498292147914,"conclusion":"Rejected because of the exception rate. Independence LR = 0.23 (p = 0.635).","passed":false,"df":2},{"name":"Jarque-Bera normality of returns","statistic":3538.0833912175417,"pvalue":0,"conclusion":"Returns are not normal (skewness 0.20, excess kurtosis 5.79): the parametric normal VaR understates the tail.","passed":false,"df":2},{"name":"Hill estimator stability","statistic":0.6821933257852042,"pvalue":null,"conclusion":"α ranges from 2.29 to 4.21 when k goes from 2 % to 10 % of the sample: the estimate depends strongly on the number of tail observations; read it as an order of magnitude.","passed":false}],"assumptions":["Daily simple returns from adjusted closes; VaR and ES are positive loss fractions of the portfolio value; annualized figures use 252 trading days a year. Portfolio return = weighted sum of asset returns with constant weights (rebalanced daily).","Horizon scaling: historical and Cornish-Fisher = 1-day figure × √h; normal and Student-t = mean × h and dispersion × √h; filtered historical simulation and Monte Carlo = compounded simulated daily paths."],"warnings":["Multi-day VaR by the historical, parametric and Cornish-Fisher methods uses the square-root-of-time rule, which assumes i.i.d. returns: it understates risk when volatility clusters and misstates it when returns are autocorrelated. The filtered historical simulation simulates the horizon instead.","Not replayed because the common sample (2016-11-10 → 2026-11-20) does not cover them: Global financial crisis (Oct 2007 – Mar 2009). Lengthen the history, or remove the assets with the shortest history.","The left-tail index is 2.83 (< 3): the tail is very heavy, skewness and kurtosis estimates are unstable and normal-based VaR is not credible at high confidence."],"methodology":"Let $r_t$ be the daily portfolio return ($r_t=\\sum_i w_i R_{i,t}$), $L=-r$ the loss and $c$ the confidence level.\n$\\text{VaR}_c$ is the $c$-quantile of $L$; $\\text{ES}_c = E[L\\mid L\\ge \\text{VaR}_c]$.\n\n- **Historical simulation**: empirical quantile of the sample, $\\text{VaR}_c=-\\hat q_{1-c}(r)$; ES is the mean of returns at or below that quantile.\n- **Parametric normal**: $\\text{VaR}_c=-\\mu h+\\sigma\\sqrt{h}\\,z_c$, $\\text{ES}_c=-\\mu h+\\sigma\\sqrt{h}\\,\\varphi(z_c)/(1-c)$.\n- **Student-t** (location $m$, scale $s$, $\\nu$ by maximum likelihood): $\\text{VaR}_c=-m+s\\,t_{c,\\nu}$, $\\text{ES}_c=-m+s\\,\\dfrac{f_\\nu(t_{c,\\nu})}{1-c}\\,\\dfrac{\\nu+t_{c,\\nu}^2}{\\nu-1}$.\n- **Cornish-Fisher**: the normal quantile is replaced by $z+\\frac{(z^2-1)S}{6}+\\frac{(z^3-3z)K}{24}-\\frac{(2z^3-5z)S^2}{36}$ with sample skewness $S$ and excess kurtosis $K$; ES integrates this quantile function over the tail.\n- **Filtered historical simulation**: a GARCH(1,1) (or GJR) is fitted to $r_t$; with standardized residuals $\\hat z_t$ and the forecast $\\hat\\sigma_{T+1}$, the 1-day distribution is $\\{\\hat\\mu+\\hat\\sigma_{T+1}\\hat z_t\\}$. For $h>1$ days, paths are simulated by drawing $\\hat z$ with replacement and updating the variance.\n- **Monte Carlo**: i.i.d. daily returns with the sample mean and variance (normal, or Student-t with the fitted $\\nu$ rescaled to unit variance), compounded over the horizon. With constant weights the portfolio return of a multivariate normal or t is itself normal or t, so the simulation is run on the portfolio return.\n\n**Backtest.** With $x$ exceptions in $n$ days and $p=1-c$: Kupiec $LR_{uc}=-2\\ln\\dfrac{(1-p)^{n-x}p^x}{(1-\\hat p)^{n-x}\\hat p^x}\\sim\\chi^2_1$. Christoffersen independence compares a first-order Markov chain of exceptions with an i.i.d. one, $LR_{ind}\\sim\\chi^2_1$; conditional coverage $LR_{cc}=LR_{uc}+LR_{ind}\\sim\\chi^2_2$.\n\n**Drawdown.** $D_t=W_t/\\max_{s\\le t}W_s-1$; Calmar = CAGR$/|\\min D|$; ulcer index $=\\sqrt{\\overline{D_t^2}}$.\n\n**Hypothetical shocks.** For a shock vector $s$ on series $F$: a non-shocked asset returns $\\hat\\beta_i's$ where $\\hat\\beta_i$ is the OLS slope of $R_i$ on $F$; portfolio impact $=\\sum_i w_i r_i^{shock}$.\n\n**Correlations.** Rolling Pearson correlation and the EWMA recursion $s_t=\\lambda s_{t-1}+(1-\\lambda)x_t$ applied to $r_ir_j$, $r_i^2$, $r_j^2$.\n\n**Tails.** Hill estimator on the $k$ largest losses: $1/\\hat\\alpha=\\frac1k\\sum_{i=1}^{k}\\ln X_{(i)}-\\ln X_{(k+1)}$.","provenance":{"data":[{"symbol":"AAPL","provider":"FMP","retrievedAt":"2026-11-20T23:35:27+00:00","start":"2016-11-10","end":"2026-11-20","observations":2521,"frequency":"1d","adjusted":"split_div","currency":null},{"symbol":"MSFT","provider":"FMP","retrievedAt":"2026-11-20T23:35:28+00:00","start":"2016-11-10","end":"2026-11-20","observations":2521,"frequency":"1d","adjusted":"split_div","currency":null},{"symbol":"TLT","provider":"FMP","retrievedAt":"2026-11-20T23:35:28+00:00","start":"2016-11-10","end":"2026-11-20","observations":2521,"frequency":"1d","adjusted":"split_div","currency":null}],"spec":{"symbols":["AAPL","MSFT","TLT"],"weights":[0.3333333333333333,0.3333333333333333,0.3333333333333333],"period_days":2520,"start":null,"end":null,"confidence_levels":[0.95,0.99],"horizons":[1,10],"fhs_model":"garch","mc_distribution":"student_t","simulations":20000,"backtest_window":250,"shocks":null,"corr_window":63,"corr_lambda":0.94,"seed":12345},"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:28+00:00","durationMs":3572,"reproduce":"import numpy as np, pandas as pd\nfrom scipy import stats\nfrom arch import arch_model\n# prices: DataFrame of adjusted daily closes, columns ['AAPL', 'MSFT', 'TLT'], common dates 2016-11-10 → 2026-11-20\nw = pd.Series({'AAPL': 0.333333, 'MSFT': 0.333333, 'TLT': 0.333333})\nr = prices.pct_change().dropna() @ w\nc = 0.99\nprint(\"historical VaR/ES:\", -np.quantile(r, 1 - c), -r[r <= np.quantile(r, 1 - c)].mean())\nprint(\"normal VaR:\", -(r.mean() + r.std() * stats.norm.ppf(1 - c)))\nres = arch_model(100 * r, mean=\"Constant\", vol=\"GARCH\", p=1, o=0, q=1, rescale=False).fit(disp=\"off\")\nsig = np.sqrt(res.forecast(horizon=1, reindex=False).variance.values[-1, 0])\nprint(\"FHS VaR:\", -np.quantile(res.params[\"mu\"] + sig * res.std_resid.dropna(), 1 - c) / 100)"}}}}2