Skip to content

Instantly share code, notes, and snippets.

@danwagnerco
Last active October 4, 2024 03:53
Show Gist options
  • Save danwagnerco/f0ab215755d0d9322db65edeb4e8f331 to your computer and use it in GitHub Desktop.
Save danwagnerco/f0ab215755d0d9322db65edeb4e8f331 to your computer and use it in GitHub Desktop.
Calculate the correlation between pct change in spot price and implied vol
Display the source blob
Display the rendered blob
Raw
{
"cells": [
{
"cell_type": "code",
"execution_count": 1,
"metadata": {},
"outputs": [
{
"data": {
"text/html": [
"\n",
" <div id=\"2Ttl1a\"></div>\n",
" <script type=\"text/javascript\" data-lets-plot-script=\"library\">\n",
" if(!window.letsPlotCallQueue) {\n",
" window.letsPlotCallQueue = [];\n",
" }; \n",
" window.letsPlotCall = function(f) {\n",
" window.letsPlotCallQueue.push(f);\n",
" };\n",
" (function() {\n",
" var script = document.createElement(\"script\");\n",
" script.type = \"text/javascript\";\n",
" script.src = \"https://cdn.jsdelivr.net/gh/JetBrains/[email protected]/js-package/distr/lets-plot.min.js\";\n",
" script.onload = function() {\n",
" window.letsPlotCall = function(f) {f();};\n",
" window.letsPlotCallQueue.forEach(function(f) {f();});\n",
" window.letsPlotCallQueue = [];\n",
" \n",
" };\n",
" script.onerror = function(event) {\n",
" window.letsPlotCall = function(f) {}; // noop\n",
" window.letsPlotCallQueue = [];\n",
" var div = document.createElement(\"div\");\n",
" div.style.color = 'darkred';\n",
" div.textContent = 'Error loading Lets-Plot JS';\n",
" document.getElementById(\"2Ttl1a\").appendChild(div);\n",
" };\n",
" var e = document.getElementById(\"2Ttl1a\");\n",
" e.appendChild(script);\n",
" })()\n",
" </script>\n",
" "
]
},
"metadata": {},
"output_type": "display_data"
}
],
"source": [
"import os\n",
"import requests\n",
"import polars as pl\n",
"import numpy as np\n",
"from lets_plot import *\n",
"LetsPlot.setup_html()\n",
"\n",
"uw_token = os.environ['UW_TOKEN']\n",
"headers = {'Accept': 'application/json, text/plain', 'Authorization': uw_token}"
]
},
{
"cell_type": "code",
"execution_count": 2,
"metadata": {},
"outputs": [],
"source": [
"def theme_dark():\n",
" darkest_black = '#0d1117'\n",
" darker_black = '#161b22'\n",
" dark_black = '#21262d'\n",
" darkest_gray = '#89929b'\n",
" darker_gray = '#c6cdd5'\n",
" dark_gray = '#ecf2f8'\n",
" white = '#ffffff'\n",
" red = '#fa7970'\n",
" orange = '#faa356'\n",
" green = '#7ce38b'\n",
" sky_blue = 'a2d2fb'\n",
" blue = '#77bdfb'\n",
" purple = '#cea5fb'\n",
" return theme_none() + theme(\n",
" line=element_line(color=dark_gray, size=1),\n",
" rect=element_rect(color=darkest_gray, fill=darkest_black, size=2),\n",
" text=element_text(color=darker_gray),\n",
" axis_ontop=True,\n",
" axis_ticks=element_line(color=darker_gray),\n",
" legend_background=element_rect(size=2, fill=darker_black),\n",
" legend_position='bottom',\n",
" panel_grid_major=element_line(color=darker_gray, size=1, linetype='dashed'),\n",
" panel_grid_minor=element_blank(),\n",
" plot_background=element_rect(fill=darkest_black),\n",
" plot_title=element_text(hjust=0.5, color=dark_gray),\n",
" tooltip=element_rect(fill=darkest_black, color=dark_gray),\n",
" axis_tooltip=element_rect(color=darker_gray)\n",
" )\n",
"\n",
"\n",
"def theme_light():\n",
" darkest_black = '#0d1117'\n",
" darker_black = '#161b22'\n",
" dark_black = '#21262d'\n",
" darkest_gray = '#89929b'\n",
" darker_gray = '#c6cdd5'\n",
" dark_gray = '#ecf2f8'\n",
" white = '#ffffff'\n",
" red = '#fa7970'\n",
" orange = '#faa356'\n",
" green = '#7ce38b'\n",
" sky_blue = 'a2d2fb'\n",
" blue = '#77bdfb'\n",
" purple = '#cea5fb'\n",
" return theme_none() + theme(\n",
" line=element_line(color=darkest_black, size=1),\n",
" rect=element_rect(color=darkest_black, fill=white, size=2),\n",
" text=element_text(color=darkest_black),\n",
" axis_ontop=True,\n",
" axis_ticks=element_line(color=darker_black),\n",
" legend_background=element_rect(size=2),\n",
" legend_position='bottom',\n",
" panel_grid_major=element_line(color=darker_black, size=1, linetype='dashed'),\n",
" panel_grid_minor=element_blank(),\n",
" # plot_background=element_rect(fill=dark_gray),\n",
" plot_title=element_text(hjust=0.5, color=darkest_black),\n",
" tooltip=element_rect(color=dark_black),\n",
" axis_tooltip=element_rect(color=darker_black)\n",
" )\n",
"\n",
"\n",
"dark_theme = {\n",
" 'darkest_black': '#0d1117',\n",
" 'darker_black': '#161b22',\n",
" 'dark_black': '#21262d',\n",
" 'darkest_gray': '#89929b',\n",
" 'darker_gray': '#c6cdd5',\n",
" 'dark_gray': '#ecf2f8',\n",
" 'white': '#ffffff',\n",
" 'red': '#fa7970',\n",
" 'orange': '#faa356',\n",
" 'green': '#7ce38b',\n",
" 'sky_blue': '#a2d2fb',\n",
" 'blue': '#77bdfb',\n",
" 'purple': '#cea5fb'\n",
"}\n",
"\n",
"\n",
"def create_uw_iv_rv_df(ticker: str) -> pl.DataFrame:\n",
" \"\"\"\n",
" Return a Polars DataFrame containing queried data from\n",
" the Unusual Whales API endpoint for realized volatilty.\n",
" \"\"\"\n",
" # Collect implied volatility and closing price data\n",
" # # from the Unusual Whales API\n",
" base_url = ('https://api.unusualwhales.com/api/'\n",
" 'stock/{}/volatility/realized?timeframe={}')\n",
" full_url = base_url.format(ticker, '2Y')\n",
" r = requests.get(full_url, headers=headers)\n",
"\n",
" df = pl.DataFrame(r.json()['data'])\n",
" df = (\n",
" df\n",
" .with_columns(\n",
" [\n",
" pl.col('date').cast(pl.Date),\n",
" pl.col('implied_volatility').cast(pl.Float64) * 100,\n",
" pl.col('price').cast(pl.Float64),\n",
" pl.col('realized_volatility').cast(pl.Float64) * 100\n",
" ]\n",
" )\n",
" )\n",
" return (\n",
" df\n",
" .with_columns(\n",
" [\n",
" (\n",
" (pl.col('price') / pl.col('price').shift(1) - 1) * 100\n",
" ).alias('price_pct_change_from_yesterday'),\n",
" (\n",
" pl.col('implied_volatility') - pl.col('implied_volatility').shift(1)\n",
" ).alias('iv_change_from_yesterday')\n",
" ]\n",
" )\n",
" )\n",
"\n",
"\n",
"def create_pct_price_vs_iv_plot(ticker: str,\n",
" df: pl.DataFrame,\n",
" dark_color: bool = True) -> ggplot:\n",
" \"\"\"\n",
" Create a scatter plot of the percentage change in price vs the\n",
" percentage change in implied volatility then add a line of best\n",
" fit to the plot.\n",
" \"\"\"\n",
" price_pct_raw = df['price_pct_change_from_yesterday'].to_numpy()\n",
" iv_pct_raw = df['iv_change_from_yesterday'].to_numpy()\n",
" price_pct = price_pct_raw[1:] # remove the known first value, it's a NaN \n",
" iv_pct = iv_pct_raw[1:] # remove the known first value, it's a NaN\n",
" \n",
" # Linear regression\n",
" coefficients = np.polyfit(price_pct, iv_pct, 1)\n",
" slope, intercept = coefficients\n",
" linear_regression = slope * price_pct + intercept\n",
"\n",
" if dark_color:\n",
" return ggplot(df, aes(x='price_pct_change_from_yesterday',\n",
" y='iv_change_from_yesterday')) + \\\n",
" geom_point(color=dark_theme['sky_blue']) + \\\n",
" geom_line(aes(x=price_pct,\n",
" y=linear_regression),\n",
" color=dark_theme['orange'],\n",
" size=1) + \\\n",
" ggtitle(f'Spot-to-Implied Volatility Correlation: {ticker}') + \\\n",
" xlab('Price % Change from Yesterday') + \\\n",
" ylab('Implied Volatility % Change from Yesterday') + \\\n",
" ggsize(600, 600) + \\\n",
" theme_dark()\n",
" else:\n",
" return ggplot(df, aes(x='price_pct_change_from_yesterday',\n",
" y='iv_change_from_yesterday')) + \\\n",
" geom_point(color=dark_theme['blue']) + \\\n",
" geom_line(aes(x=price_pct,\n",
" y=linear_regression),\n",
" color=dark_theme['red'],\n",
" size=1) + \\\n",
" ggtitle(f'Spot-to-Implied Volatility Correlation: {ticker}') + \\\n",
" xlab('Price % Change from Yesterday') + \\\n",
" ylab('Implied Volatility % Change from Yesterday') + \\\n",
" ggsize(600, 600) + \\\n",
" theme_light()\n",
"\n",
"\n",
"def create_linear_regression_str(df: pl.DataFrame) -> str:\n",
" \"\"\"\n",
" Calculate the line of best fit (linear regression) for the\n",
" price pct change since yesterday and iv pct change since\n",
" yesterday data provided in the DataFrame and return a string\n",
" for easy printing.\n",
" \"\"\"\n",
" price_pct_raw = df['price_pct_change_from_yesterday'].to_numpy()\n",
" iv_pct_raw = df['iv_change_from_yesterday'].to_numpy()\n",
" price_pct = price_pct_raw[1:] # remove the known first value, it's a NaN \n",
" iv_pct = iv_pct_raw[1:] # remove the known first value, it's a NaN\n",
" \n",
" # Linear regression\n",
" coefficients = np.polyfit(price_pct, iv_pct, 1)\n",
" slope, intercept = coefficients\n",
" linear_regression = slope * price_pct + intercept\n",
" \n",
" # Calculate R-squared\n",
" ss_tot = np.sum((iv_pct - np.mean(iv_pct)) ** 2)\n",
" ss_res = np.sum((iv_pct - linear_regression) ** 2)\n",
" r_squared = 1 - (ss_res / ss_tot)\n",
"\n",
" return (f'Linear regression (y=mx+b): y={slope:.6f}x + {intercept:.6f} || R^2 = {r_squared:.6f}')\n"
]
},
{
"cell_type": "code",
"execution_count": 3,
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"Linear regression (y=mx+b): y=-0.719900x + 0.037563 || R^2 = 0.425913\n"
]
},
{
"data": {
"text/html": [
" <div id=\"RRrqf3\"></div>\n",
" <script type=\"text/javascript\" data-lets-plot-script=\"plot\">\n",
" (function() {\n",
" var plotSpec={\n",
"\"data\":{\n",
"\"price_pct_change_from_yesterday\":[null,-2.0888996842360785,-1.5463491275944818,2.6401254269555974,3.0986607021085133,-0.23282271079716477,-1.031583971996075,-2.789389067524106,-0.7635271093470175,-0.6332981501027679,-0.32984849331917365,2.6391070226609914,-2.2788753176489984,2.5696949361071475,1.174963197208445,-0.7086465658933561,-0.8385345997286242,2.430146958211332,1.2236501108765951,1.5968538020957102,-0.7404135924347965,-0.547020179548241,2.379072582767505,-0.7223279008791383,-0.4375857694000618,-2.5096223863518063,-1.0296902926347884,1.4393143041966594,0.9565563969708979,0.5395446769311807,-2.06020942408377,5.495416031860589,0.9678481846512543,-0.8506687410604452,0.8529054464466501,-0.7628798715149765,-0.3059805285118178,0.4540381493506329,-0.36360881751382745,1.345700600623423,0.6301575393848458,-0.022364693603704744,-1.5957050182685784,-0.17175620721880946,3.1500645193937693,-0.07358712715855864,-0.11537139771220506,-1.7989235948981497,-1.4414775144523162,-0.17012416524895269,0.7833960728456546,-0.7470220068645395,1.4417209113100071,0.7569870911141807,-0.6393511953628472,-2.4461692538808144,-1.6323178400020621,-0.8479661857176413,0.1368349034261529,1.495243601198304,-1.4266110866582027,0.5752258877915528,-0.3943485414327208,-1.2427897220765427,1.8000318589709519,-0.2634049655747983,-0.42099207698140795,0.7720182763510275,-1.1413383364602847,2.29321524592756,-0.05668934240361523,0.7012839684422234,1.2647857033130316,0.364077669902918,0.3879484079000406,-0.18318695106650518,-1.578801820147313,-0.7279879434979208,1.8629065459036642,1.1998585429928266,-0.10733095374785284,0.03748125937033109,1.0990383414512195,0.22977146386657932,-1.2546834943798157,1.4703312613894681,1.0627829167486613,1.4556962025316311,-1.0629108882383886,-0.6111313204801849,1.3078593563184748,-1.0934752763794964,-0.8669183002556924,0.2333636296642183,1.1739045191647701,-0.04602378703097987,0.3247382706475399,-1.3768781100536365,-0.24982854903496943,-2.0060894760104198,-0.13781352577111328,0.5319415867917954,-1.0682374082763513,0.3405822695393468,-0.3695974656173884,-0.38358653409377164,0.7777271115164464,1.6037806993288273,0.06927435117147773,-1.5328701757856056,0.16320586536773263,-1.8449814499147732,-1.442946164061698,-0.14252027674847012,1.6529997924019213,-0.6254307814055671,1.7545211672832073,-1.5450253717401718,0.9615631170029948,1.3130492202976685,-1.7046451580557065,0.2703323047104078,0.6562046951700262,0.1869867340492659,-0.22446972180887315,1.4534883720930258,0.5855238569826726,1.4094624721327609,0.3810547399790032,-0.554812020927109,-0.2618249443316123,0.3900883218841855,0.10264180454067073,0.026854813114907117,-0.4075954310260754,1.328268594534987,-0.2442740706701918,0.35882267371381005,0.06522684447021199,-0.016899640279088857,-0.5457091804703662,0.07769253180538449,0.10431829209121002,-1.5873785231321103,-0.42356185973206895,1.9908002769809086,0.8535195557818565,-0.10097853004111812,-1.1239200019253492,-0.6863985979943532,-0.7082986128130964,1.8512576210105491,0.026658265273971082,-0.4385327324708088,0.467232862044642,-0.1743974809252813,-0.13102661781476677,0.34500352292330394,-0.668264690927578,1.213893967093238,0.9633215326445566,-0.14550485413734604,0.040609622091647424,-1.1222808567539877,-0.7244801854669247,0.858692743681444,1.302397375910469,0.03809342412266492,-0.554524251511257,0.9501017111403609,1.4461144564032136,-0.1916246027294788,0.21774760009365401,-0.34577015629744245,0.6048528894619487,0.1794328059096184,0.9071877180739873,0.6592899953895781,0.11908578756927302,1.239763941625882,-0.7094441934026308,-0.5188185500386799,-0.5123747655428001,0.36096932910285595,-0.7559964261987129,-0.4085778259966255,1.0963285740775097,0.0504390489946438,0.3941428538692504,1.1800689324598768,0.11505143475907254,-0.14871898871088307,-0.7830659174508536,-0.25246781603966983,0.2531068293239125,0.6368557521721163,0.8045925055372161,0.7936863817766149,-0.062283121274142594,0.3472222222222321,0.7430574039570592,0.2223738963869737,-0.6634446397188021,0.0,0.4467247556282805,0.27300748568912514,0.015369752327409891,-0.6629931285811463,0.9790271608212331,0.1904053225947555,-0.28615740841870796,-1.3910795653697905,-0.2865838757692307,-0.4522769806612592,0.8728542333430234,-0.4348694282354515,-0.6685236768802283,0.035894559730786924,-0.058307730259477,0.5520026926960631,-1.1648925487045658,-0.7338165232902094,-0.7619870803384554,0.04813312246441104,0.6506300114547559,-0.2708608367096077,1.1137738217505522,-1.3859106606776028,0.7049829476527325,0.6341341455099236,1.4454783629957557,0.4118799536913187,-0.14633821866476548,0.18652159431553628,-0.4321904297524326,-0.6722464606891632,-0.3070234413518058,0.15061256603348117,0.6576584665110463,-0.5485561378079984,0.11659454247852086,0.8622427269266097,-1.552091660005328,0.058641766470435286,-0.2073800238937884,-0.9193377154344762,-1.652836038664962,-0.2248545399754165,0.4205194925886335,-1.4691252342502903,0.0399173476096637,0.5797441614833865,-0.24269579016147347,-0.03976794235988068,-1.3386066321874113,0.7281956403140555,-0.037677200584007586,1.1872791519434767,0.6402197699864942,0.5204839343958989,0.4096285727435811,-0.6096442977631011,-0.498086058202285,1.0521436848204058,-0.004586735161915545,-1.332507683133799,-0.8786406638618294,-1.2288066036629686,-0.17331845485411002,0.7539361651524468,-1.435214692066189,-1.197461381870435,-0.45327839049812413,1.195578065647207,0.6280228109434738,1.0664753706360663,1.9164340131547775,0.912340978735271,0.23004900043708254,0.28460602722120143,0.07323827615406397,-0.7798742138364845,1.5604831274202535,-0.09532239395384501,1.9400713328335595,0.21170859982617696,0.12230919765165993,0.1243808719987527,0.7697597550966107,-0.2179368643508095,0.38608334987977333,0.06153575667005029,-0.18010103228640606,0.099014258053165,-0.07034049194380998,0.39374408833945385,0.5915863277826672,-0.5249401001960363,-0.019707022268933283,-0.40297853701271036,0.7630398451930809,0.4299151081334607,0.3889613211647047,0.4567198424208385,1.3790131437190212,0.3209351753453715,-0.5677845808351512,0.5625039950567956,0.608089497213804,-1.3857299300817139,0.9481911758424832,0.20097313306537412,0.42225271825186983,0.1808052139177896,0.03777465320768947,-0.28949631836203693,-0.5596347646798949,-0.8166719559927982,-0.32210584696773514,0.13696284882727117,1.4275944605915525,-0.1517067003792727,0.5655440195830197,-0.04406580493536705,0.06927679227457517,-0.3671225979692827,-0.5558713915734925,0.8892841262783335,1.246615878612345,0.21142963746034749,0.2916537387527285,0.10930990388977602,0.5438925400193639,-0.12704137040754349,0.7919410763012502,-0.07735054043601641,-1.6317301228381043,1.308813783962881,1.0527391659852947,-0.3641144937797103,0.29032585524313426,0.834041864043078,0.04416783778358191,0.5779418847327022,-0.04389465283319849,-1.3773004910375697,0.9087597150259086,0.6899733237057948,-0.49799804784764756,-0.5505395287381587,0.09058700378452578,2.069548078276795,0.06896551724138167,-0.3662498769321676,0.18577442241940467,-0.13216814944864153,0.35949907162327044,0.9388285309400279,-0.10724383347958666,-0.9994144056217014,0.5067234512401875,0.99264345267287,-0.6002214409199347,-0.08598452278590907,1.075731497418242,-0.15673981191220987,-0.19768591197162344,-0.9942712884746241,0.5943157523095932,0.5557072105447869,0.9249384343914091,0.33046418690441115,-0.1895825354270464,-0.27628019416359173,-0.1846970775535417,0.8403847265858522,-0.019114245847418054,-0.1739728908176863,-0.6358204381798571,0.10986045794463273,-1.2206156985810623,1.0446917574599812,0.055938120864929,0.1156693399136488,-1.0013094046060322,0.7546876215669407,-1.380308880308878,-1.252813937555064,-0.18237684606997595,-0.5918217385259994,-0.20577364898611838,-0.8728379244074214,0.920914451894328,1.186664532137982,-0.04746366063481666,-0.3798895945865799,0.9473872370851399,0.35414945106835294,-1.5841273575657788,-0.3247141320371294,0.9353452583191757,1.239530324931204,1.0326820395470282,0.11034322550669273,0.009668561704767598,0.5761905682631019,0.12880404483150976,0.013439827970196383,0.45881246280548016,1.2382954328301166,-0.2057457812676855,0.1437515368174047,0.11521390121822517,0.24525525412217863,-0.2879403794037838,-0.7304229658569694,0.6616472735569312,0.06988516168024983,-0.7002510333893097,-0.6633719825128281,0.910813034576452,0.08153668202588449,0.1117847669571903,1.1885160582145726,-0.0018703125292174327,-0.1215725881868801,0.30898297784685,0.24082440353956347,0.8213055219294052,0.20134476134181511,0.060835100009204446,0.7959025756291815,0.2540668981904526,-0.2716549071086094,-0.45521023765996427,-0.32506290058951226,0.38508309687881326,0.12480957362845935,0.15765063885171404,-0.39350623204055246,0.2057991253537228,0.6729746580115048,0.44625780951168537,0.5766510717005735,0.1153901629886045,0.0972482351246251,0.9895289842035249,-0.862253260172452,0.6307504312823342,0.2750049108019681,0.5930226345876477,-1.4021173388096053,-0.7684849355406476,-0.6640610863822172,1.0309841709320589,-0.15685567474984508,-2.26624291234786,-0.5210354193226685,1.119964339443924,0.05877599000807532,-0.5066451281298123,1.6254612546125369,-1.4160962945480193,-1.8618441649325135,-2.9123662976168085,0.9219529166183404,-0.6683903092980947,2.311726371804257,0.4409686233864285,0.05253381864573914,1.6445702927222472,0.31547487270313646,1.714022988505759,0.22420308460049387,0.9561436741173823,-0.16261324851235548,0.3436549131913269,-0.7848453497912966,1.0625292150587828,-0.23837902264601807,0.13730630004100686,-0.5805256784671253,0.008955758552753323,0.95459837019789,-2.057905194436549,-0.20468048108969183,-0.2432162628187684,-1.683011590036576,1.1196239544007724,0.43557035925403387,1.0258933289600813,0.8423217055661958,0.5222772719955637,0.14768420490738343,0.04086418875701714,-0.2965883460315899,1.7064481653010333,-0.47812532838278354,0.2498900131984172,0.286130566819387,-0.2205496236653226,0.39646340607677466,-0.1450288310326675],\n",
"\"iv_change_from_yesterday\":[null,0.9757219949805496,-0.9239543159793477,-0.7151463648981995,-1.134724584471602,0.44166723834629806,1.338985469259903,0.4454724415223481,1.9596012204688478,0.5152375889255545,0.281579203287297,-1.2789013866497498,0.17754759511890228,-0.9516181704318001,-0.4091726146281509,0.5837686414761016,-0.5386442440915999,-0.9747894917055042,0.8736708925675529,-1.124516985698147,-0.812521460748151,-0.8179499595672546,-1.499260560012928,1.1059692980324805,-0.15221184411245048,-0.18336585389995008,-0.3257844983621503,-1.490533714432214,1.4658879836041159,0.2952030329659969,0.9641154684287052,-2.4215874217336015,-1.3153455021435612,0.8255187002539408,-0.11813432377084254,-1.2618073872929791,1.9539355170693895,-0.39374235000159885,-0.13345396558243294,-1.3446644769624676,-2.076283814553605,1.4945057645129047,-0.4942024832512786,0.45474535841468366,-1.2057278134419107,-0.9316409061513653,-0.48211540598434866,1.204596529983501,1.3884554773256568,0.48692393767451136,-0.5113493843432941,1.432112205660026,0.8485102135950093,-1.658757038866888,-1.4698191185915768,1.4137628977643608,0.255357454525182,-0.3575692338388059,-2.0060950518336718,0.6464886156168816,1.351036322258814,-0.9592316634738403,0.9705600557680825,-0.47820419197032393,-0.07504047634217414,0.45340955430754093,1.0790377657358512,-0.5540399854851437,0.46783450022539697,-1.5656181923325292,0.2513544287039018,-0.6231053966945268,-0.4456380992322764,-1.5413332433764992,-1.0159649193144915,1.5410140371659296,0.010259200387015,0.37178211053005583,-0.7306734729377737,-0.35231163627177153,-0.004618971353941959,-0.06031586213881823,-0.45541577694574187,-0.5593473374903404,1.1301099636773273,-0.03988912219514873,-1.1206658706992947,-0.5972168475592206,0.5435227122036075,0.7872105457816616,-0.5300872384600694,1.1070399066753147,1.1096862677276498,0.5723864051714571,-0.4728900785025978,-1.6069833355314245,0.2280934033614237,0.4550111246190838,0.10205376031738211,2.4763581953546243,-0.5067172179722057,-0.5754252286526267,0.8328960894173889,-1.0095197689817361,-0.527365968659339,0.46502914981929067,-0.9482857037212788,-0.9240676010602122,1.1701729869028554,-0.7618208891859197,1.2424040660054025,1.6288817307276986,1.4043152671687338,0.7828067483009029,-2.452980641730452,2.124631881663124,-2.989849046255724,2.811957558319776,-0.9042357736884306,-2.173564641020775,0.7696698706364664,0.519282579877121,-0.9592281659433546,-0.49373692771155575,-0.47832430697973294,-1.20218224905771,-0.5052907040996786,-0.7440297969283485,0.8280414434584173,0.4816969050376798,-0.19855813794541533,-0.3210140643624442,-0.2985925043111308,0.16042557629013032,-0.08641109463124508,-0.6735618983859197,-0.9440596771186449,-0.4355771634572587,0.021852495817633155,-0.6372932638120243,0.8562139095848611,-0.4598256467838464,0.5297683006809937,1.7893422721621715,-0.01997240391177968,-2.088711978043511,-0.9975303862106095,-0.13730582326227037,1.6634982077639346,0.6181935255460047,1.4629796723816142,-2.8390237847435245,0.39120918744175803,-0.5590185423706711,-0.1697572734166961,0.2156249649594848,0.012176241750426087,0.5727795690729831,0.5428714111525608,-1.181334484131881,-0.5093680426007552,0.016572235820881076,0.06833357105668014,1.470471450916012,1.540368847814193,-1.2187373333575433,-1.3166047974850557,0.0632838924202801,-0.3134200425440472,-1.140919867926529,-1.054198541561055,0.0376147454602318,-0.46780581653909614,-0.46089820344769983,0.005509415944263907,-0.526534218899819,1.0274691414832287,0.5001165742342213,-0.5023584392943654,-0.19933414609816857,0.11579945103798472,0.5334311652177295,-0.4896737976557901,-0.5763903588198342,0.28798717629646475,1.229055125338384,-0.9491903990392494,0.30943956326911426,-0.4224264582089141,-0.42831050437418483,0.3589486007037088,0.5796616606540095,0.6935818190795509,-0.4693429010149046,0.5498419173062761,-0.2573147103108653,-1.0099910436819552,-0.20536729305448453,0.04611745991388361,0.3071022449066607,0.014396565825219199,-0.07068999111652374,0.0681951642036438,0.25895871222019196,0.4907876253128052,-0.500868633389473,0.00740736722946167,0.15138648450374603,-0.9216252714395523,0.6096776574850082,0.08232556283473969,1.4146003872156143,0.14246664941310883,1.1169333010911942,-0.7754109799861908,0.3801017999649048,-0.3318287432193756,0.2612702548503876,-0.6874121725559235,0.2380017191171646,0.2040855586528778,1.0223466902971268,0.3213241696357727,0.7629573345184326,-0.8341006934642792,0.1739121973514557,-1.0527744889259338,0.12964680790901184,-0.4342198371887207,-0.753706693649292,-0.05483254790306091,-0.7057938724756241,-1.084563136100769,0.3473062068223953,0.025467947125434875,0.8020218461751938,-0.20120814442634583,-0.414792075753212,-0.04840977489948273,0.31805075305557295,-0.7679235000000002,-0.8142484999999997,1.3678589999999993,0.5942489999999996,0.15866800000000048,1.0837200000000013,1.6361989999999995,-0.06138499999999958,-0.046799000000000035,1.954402,-0.5805390000000017,-0.7342069999999996,0.41014599999999923,0.2792120000000011,1.8079190000000018,-1.310143,-0.05740400000000179,-0.9651779999999981,0.07979899999999773,-0.990022999999999,-0.23861199999999982,-0.11422000000000132,1.9176059999999993,-1.6642869999999998,0.5698330000000009,1.8277789999999996,1.1173800000000007,0.5697589999999977,-0.9167845258331937,-1.1420747743184947,1.4284059523768953,0.5134767503720212,0.10740033693070572,-1.1967088617318709,-1.1917054742435909,-1.3705636935963756,-1.437193510453291,-0.7485104426212583,0.10532316765104355,-0.08364050721474214,-0.2610149830292716,0.6618743673174343,-1.31568830650132,1.4852719422056069,-0.9113856829638856,-0.34468790860707443,-0.1358738702757858,-0.26204631725577165,-0.537791149021885,0.027326080734146885,-0.4478181716088301,-0.44338875347657414,0.08100064097055792,-0.010693301460435123,0.4513207563627972,-0.2098473648421315,0.05528041875531997,0.3812626980354743,0.03301985255033735,0.06731790746971811,0.05759213513633554,-0.7143876443835548,0.43056438602210356,-0.805490458181108,-0.07059783740280956,-0.07862972084142683,0.21773511592234662,0.5240797150645289,-0.03556290493306058,1.114329481609417,0.08966971470456286,-0.7381066498172135,0.02355234480808832,-0.4570105933959496,-0.14063498180645517,0.03978829873822143,1.107027277852806,0.5478651827446352,0.15842682686763965,-0.6229692604448207,-0.5128011424318455,-0.2520238987225891,0.09691414887693917,-0.41857755983945033,-0.13389722150141026,1.2963651308545199,0.7774737608472808,-0.4700780294428295,-0.8982272183304705,0.7568384072305925,-1.4740560307001438,1.6938911046232104,-1.2700169215595114,-0.02484289150362251,0.32844968006494035,-0.22182711072201222,1.1242238310312018,-0.7152223969381559,-0.4748896573839243,0.24470223984940453,-0.4033454676739101,-0.11386330775056841,-0.05830213302983722,-0.0060982292402691485,0.972180545978441,0.8850115482848189,-0.8246290304691897,-0.09323068380187927,0.34883325721025393,0.7009659949826261,-0.22069235349751004,-0.6056099180594963,-0.5357009895101097,-0.06348389656402453,-0.3354605836309421,0.16997351101289837,-0.07042884909014546,-0.23563004440777036,0.44500737296625914,0.7494078682422796,0.027729659100025117,0.05126522138323608,0.11362201736076827,0.5858161201274275,-1.166085634183327,-0.17181119733791483,0.4846029345529441,0.5701391028070653,0.05330685831616222,-0.5259541892520065,-0.38669977884968,-0.645346028212634,-0.2599335828219793,0.5035943280013537,-0.08064840926463468,-0.5458698401529567,0.2196857523924347,0.3301856280432709,1.4162910261120292,-0.12729720687906365,1.804478619088579,-0.5727852038702679,-0.5712244772116346,0.11216123193781158,0.42298171885637714,-0.4407844494770732,1.7289700231903282,1.683172405679974,-0.3060954184706972,0.01294716607944224,-0.3434479864306077,0.6078880469142227,-1.5869686898894848,-1.0062508488418995,-0.040218284849279584,0.6399369686842071,-1.2970968919778123,-0.4060420307074981,1.295976113710486,-0.27936324059345274,-0.5401738298851058,-1.25308237026438,0.10872921927769141,-0.5131354832579209,-0.1752102174068959,-0.42604175835986346,-0.26930080933331624,1.271877375485225,-0.4193880618690695,-1.0055359447430163,-0.09671309188931332,-0.27474291659821937,0.259295214739943,-0.21832488392868044,0.4252818387150423,0.08118288418095965,-0.7396772108953655,0.47093736241562567,0.9275097378372994,0.4100730349673434,-0.8584791754559227,0.048844420014537704,0.23835400374843196,-0.6398393509517799,-0.08651386675439987,-0.2574425569620651,0.48965603056041473,0.06892589101581059,-1.0868678909193115,-0.22307175536220392,0.33328864494391475,0.4849450225255314,-0.14381301780431066,0.6474624755266039,0.14012666922235617,0.38660447350254934,-0.33594141235710495,-0.4351171507929017,-0.203488807695269,0.18712464184046063,-0.2754323573171149,-0.4889105348409455,0.39739609270076315,-0.04459897854508732,0.3134824113042747,-0.03859153494834544,0.05006656728133407,0.4646624987994894,-0.6766210456448096,0.610440205757838,0.14579176368878954,1.138940296842117,0.8351148005781326,0.7438472178219495,-1.0604491335470687,0.20431092189672917,2.42525500787926,0.5225741350054811,-1.3785895947959919,0.2881803418085589,0.7775876114647993,-1.1062720936322599,1.823270024330741,3.3811831561326215,9.061313577777518,-6.8010278608158,0.9047249132892219,-3.6631486037568095,-2.089927333450092,0.23121518331388202,-2.091286467618062,-1.45681740325686,-1.1910365567391281,-0.22625233781731247,0.03856934886594132,0.6278021717907194,0.1801086630550408,0.9680314159408887,-1.436446621965528,-0.02078518508869287,-0.35196620885128915,1.0029906432811213,-0.76748211119987,-1.6125077709740303,4.54720826404073,0.44550764943640075,-0.27809052236560916,2.2553014685870174,-1.7279656357521596,-0.32711747448841066,-1.2315907877758292,-0.9199277385236506,-0.5190834625379388,0.36574152554769057,0.22163956110573046,0.263156459516539,-1.7935038335393205,0.057870992122809994,-0.1067606423268419,-0.3775904896345281,0.22475048765534034,-0.15846572452391072,0.8523781542616593]\n",
"},\n",
"\"mapping\":{\n",
"\"x\":\"price_pct_change_from_yesterday\",\n",
"\"y\":\"iv_change_from_yesterday\"\n",
"},\n",
"\"data_meta\":{\n",
"},\n",
"\"ggtitle\":{\n",
"\"text\":\"Spot-to-Implied Volatility Correlation: SPY\"\n",
"},\n",
"\"ggsize\":{\n",
"\"width\":600.0,\n",
"\"height\":600.0\n",
"},\n",
"\"theme\":{\n",
"\"name\":\"none\",\n",
"\"line\":{\n",
"\"color\":\"#0d1117\",\n",
"\"size\":1.0,\n",
"\"blank\":false\n",
"},\n",
"\"rect\":{\n",
"\"fill\":\"#ffffff\",\n",
"\"color\":\"#0d1117\",\n",
"\"size\":2.0,\n",
"\"blank\":false\n",
"},\n",
"\"text\":{\n",
"\"color\":\"#0d1117\",\n",
"\"blank\":false\n",
"},\n",
"\"axis_ontop\":true,\n",
"\"axis_ticks\":{\n",
"\"color\":\"#161b22\",\n",
"\"blank\":false\n",
"},\n",
"\"legend_background\":{\n",
"\"size\":2.0,\n",
"\"blank\":false\n",
"},\n",
"\"legend_position\":\"bottom\",\n",
"\"panel_grid_major\":{\n",
"\"color\":\"#161b22\",\n",
"\"size\":1.0,\n",
"\"linetype\":\"dashed\",\n",
"\"blank\":false\n",
"},\n",
"\"panel_grid_minor\":{\n",
"\"blank\":true\n",
"},\n",
"\"plot_title\":{\n",
"\"color\":\"#0d1117\",\n",
"\"hjust\":0.5,\n",
"\"blank\":false\n",
"},\n",
"\"axis_tooltip\":{\n",
"\"color\":\"#161b22\",\n",
"\"blank\":false\n",
"},\n",
"\"tooltip\":{\n",
"\"color\":\"#21262d\",\n",
"\"blank\":false\n",
"}\n",
"},\n",
"\"kind\":\"plot\",\n",
"\"scales\":[{\n",
"\"name\":\"Price % Change from Yesterday\",\n",
"\"aesthetic\":\"x\"\n",
"},{\n",
"\"name\":\"Implied Volatility % Change from Yesterday\",\n",
"\"aesthetic\":\"y\"\n",
"}],\n",
"\"layers\":[{\n",
"\"geom\":\"point\",\n",
"\"mapping\":{\n",
"},\n",
"\"data_meta\":{\n",
"},\n",
"\"color\":\"#77bdfb\",\n",
"\"data\":{\n",
"}\n",
"},{\n",
"\"geom\":\"line\",\n",
"\"mapping\":{\n",
"\"x\":\"x\",\n",
"\"y\":\"y\"\n",
"},\n",
"\"data_meta\":{\n",
"},\n",
"\"color\":\"#fa7970\",\n",
"\"size\":1.0,\n",
"\"data\":{\n",
"\"x\":[-2.0888996842360785,-1.5463491275944818,2.6401254269555974,3.0986607021085133,-0.23282271079716477,-1.031583971996075,-2.789389067524106,-0.7635271093470175,-0.6332981501027679,-0.32984849331917365,2.6391070226609914,-2.2788753176489984,2.5696949361071475,1.174963197208445,-0.7086465658933561,-0.8385345997286242,2.430146958211332,1.2236501108765951,1.5968538020957102,-0.7404135924347965,-0.547020179548241,2.379072582767505,-0.7223279008791383,-0.4375857694000618,-2.5096223863518063,-1.0296902926347884,1.4393143041966594,0.9565563969708979,0.5395446769311807,-2.06020942408377,5.495416031860589,0.9678481846512543,-0.8506687410604452,0.8529054464466501,-0.7628798715149765,-0.3059805285118178,0.4540381493506329,-0.36360881751382745,1.345700600623423,0.6301575393848458,-0.022364693603704744,-1.5957050182685784,-0.17175620721880946,3.1500645193937693,-0.07358712715855864,-0.11537139771220506,-1.7989235948981497,-1.4414775144523162,-0.17012416524895269,0.7833960728456546,-0.7470220068645395,1.4417209113100071,0.7569870911141807,-0.6393511953628472,-2.4461692538808144,-1.6323178400020621,-0.8479661857176413,0.1368349034261529,1.495243601198304,-1.4266110866582027,0.5752258877915528,-0.3943485414327208,-1.2427897220765427,1.8000318589709519,-0.2634049655747983,-0.42099207698140795,0.7720182763510275,-1.1413383364602847,2.29321524592756,-0.05668934240361523,0.7012839684422234,1.2647857033130316,0.364077669902918,0.3879484079000406,-0.18318695106650518,-1.578801820147313,-0.7279879434979208,1.8629065459036642,1.1998585429928266,-0.10733095374785284,0.03748125937033109,1.0990383414512195,0.22977146386657932,-1.2546834943798157,1.4703312613894681,1.0627829167486613,1.4556962025316311,-1.0629108882383886,-0.6111313204801849,1.3078593563184748,-1.0934752763794964,-0.8669183002556924,0.2333636296642183,1.1739045191647701,-0.04602378703097987,0.3247382706475399,-1.3768781100536365,-0.24982854903496943,-2.0060894760104198,-0.13781352577111328,0.5319415867917954,-1.0682374082763513,0.3405822695393468,-0.3695974656173884,-0.38358653409377164,0.7777271115164464,1.6037806993288273,0.06927435117147773,-1.5328701757856056,0.16320586536773263,-1.8449814499147732,-1.442946164061698,-0.14252027674847012,1.6529997924019213,-0.6254307814055671,1.7545211672832073,-1.5450253717401718,0.9615631170029948,1.3130492202976685,-1.7046451580557065,0.2703323047104078,0.6562046951700262,0.1869867340492659,-0.22446972180887315,1.4534883720930258,0.5855238569826726,1.4094624721327609,0.3810547399790032,-0.554812020927109,-0.2618249443316123,0.3900883218841855,0.10264180454067073,0.026854813114907117,-0.4075954310260754,1.328268594534987,-0.2442740706701918,0.35882267371381005,0.06522684447021199,-0.016899640279088857,-0.5457091804703662,0.07769253180538449,0.10431829209121002,-1.5873785231321103,-0.42356185973206895,1.9908002769809086,0.8535195557818565,-0.10097853004111812,-1.1239200019253492,-0.6863985979943532,-0.7082986128130964,1.8512576210105491,0.026658265273971082,-0.4385327324708088,0.467232862044642,-0.1743974809252813,-0.13102661781476677,0.34500352292330394,-0.668264690927578,1.213893967093238,0.9633215326445566,-0.14550485413734604,0.040609622091647424,-1.1222808567539877,-0.7244801854669247,0.858692743681444,1.302397375910469,0.03809342412266492,-0.554524251511257,0.9501017111403609,1.4461144564032136,-0.1916246027294788,0.21774760009365401,-0.34577015629744245,0.6048528894619487,0.1794328059096184,0.9071877180739873,0.6592899953895781,0.11908578756927302,1.239763941625882,-0.7094441934026308,-0.5188185500386799,-0.5123747655428001,0.36096932910285595,-0.7559964261987129,-0.4085778259966255,1.0963285740775097,0.0504390489946438,0.3941428538692504,1.1800689324598768,0.11505143475907254,-0.14871898871088307,-0.7830659174508536,-0.25246781603966983,0.2531068293239125,0.6368557521721163,0.8045925055372161,0.7936863817766149,-0.062283121274142594,0.3472222222222321,0.7430574039570592,0.2223738963869737,-0.6634446397188021,0.0,0.4467247556282805,0.27300748568912514,0.015369752327409891,-0.6629931285811463,0.9790271608212331,0.1904053225947555,-0.28615740841870796,-1.3910795653697905,-0.2865838757692307,-0.4522769806612592,0.8728542333430234,-0.4348694282354515,-0.6685236768802283,0.035894559730786924,-0.058307730259477,0.5520026926960631,-1.1648925487045658,-0.7338165232902094,-0.7619870803384554,0.04813312246441104,0.6506300114547559,-0.2708608367096077,1.1137738217505522,-1.3859106606776028,0.7049829476527325,0.6341341455099236,1.4454783629957557,0.4118799536913187,-0.14633821866476548,0.18652159431553628,-0.4321904297524326,-0.6722464606891632,-0.3070234413518058,0.15061256603348117,0.6576584665110463,-0.5485561378079984,0.11659454247852086,0.8622427269266097,-1.552091660005328,0.058641766470435286,-0.2073800238937884,-0.9193377154344762,-1.652836038664962,-0.2248545399754165,0.4205194925886335,-1.4691252342502903,0.0399173476096637,0.5797441614833865,-0.24269579016147347,-0.03976794235988068,-1.3386066321874113,0.7281956403140555,-0.037677200584007586,1.1872791519434767,0.6402197699864942,0.5204839343958989,0.4096285727435811,-0.6096442977631011,-0.498086058202285,1.0521436848204058,-0.004586735161915545,-1.332507683133799,-0.8786406638618294,-1.2288066036629686,-0.17331845485411002,0.7539361651524468,-1.435214692066189,-1.197461381870435,-0.45327839049812413,1.195578065647207,0.6280228109434738,1.0664753706360663,1.9164340131547775,0.912340978735271,0.23004900043708254,0.28460602722120143,0.07323827615406397,-0.7798742138364845,1.5604831274202535,-0.09532239395384501,1.9400713328335595,0.21170859982617696,0.12230919765165993,0.1243808719987527,0.7697597550966107,-0.2179368643508095,0.38608334987977333,0.06153575667005029,-0.18010103228640606,0.099014258053165,-0.07034049194380998,0.39374408833945385,0.5915863277826672,-0.5249401001960363,-0.019707022268933283,-0.40297853701271036,0.7630398451930809,0.4299151081334607,0.3889613211647047,0.4567198424208385,1.3790131437190212,0.3209351753453715,-0.5677845808351512,0.5625039950567956,0.608089497213804,-1.3857299300817139,0.9481911758424832,0.20097313306537412,0.42225271825186983,0.1808052139177896,0.03777465320768947,-0.28949631836203693,-0.5596347646798949,-0.8166719559927982,-0.32210584696773514,0.13696284882727117,1.4275944605915525,-0.1517067003792727,0.5655440195830197,-0.04406580493536705,0.06927679227457517,-0.3671225979692827,-0.5558713915734925,0.8892841262783335,1.246615878612345,0.21142963746034749,0.2916537387527285,0.10930990388977602,0.5438925400193639,-0.12704137040754349,0.7919410763012502,-0.07735054043601641,-1.6317301228381043,1.308813783962881,1.0527391659852947,-0.3641144937797103,0.29032585524313426,0.834041864043078,0.04416783778358191,0.5779418847327022,-0.04389465283319849,-1.3773004910375697,0.9087597150259086,0.6899733237057948,-0.49799804784764756,-0.5505395287381587,0.09058700378452578,2.069548078276795,0.06896551724138167,-0.3662498769321676,0.18577442241940467,-0.13216814944864153,0.35949907162327044,0.9388285309400279,-0.10724383347958666,-0.9994144056217014,0.5067234512401875,0.99264345267287,-0.6002214409199347,-0.08598452278590907,1.075731497418242,-0.15673981191220987,-0.19768591197162344,-0.9942712884746241,0.5943157523095932,0.5557072105447869,0.9249384343914091,0.33046418690441115,-0.1895825354270464,-0.27628019416359173,-0.1846970775535417,0.8403847265858522,-0.019114245847418054,-0.1739728908176863,-0.6358204381798571,0.10986045794463273,-1.2206156985810623,1.0446917574599812,0.055938120864929,0.1156693399136488,-1.0013094046060322,0.7546876215669407,-1.380308880308878,-1.252813937555064,-0.18237684606997595,-0.5918217385259994,-0.20577364898611838,-0.8728379244074214,0.920914451894328,1.186664532137982,-0.04746366063481666,-0.3798895945865799,0.9473872370851399,0.35414945106835294,-1.5841273575657788,-0.3247141320371294,0.9353452583191757,1.239530324931204,1.0326820395470282,0.11034322550669273,0.009668561704767598,0.5761905682631019,0.12880404483150976,0.013439827970196383,0.45881246280548016,1.2382954328301166,-0.2057457812676855,0.1437515368174047,0.11521390121822517,0.24525525412217863,-0.2879403794037838,-0.7304229658569694,0.6616472735569312,0.06988516168024983,-0.7002510333893097,-0.6633719825128281,0.910813034576452,0.08153668202588449,0.1117847669571903,1.1885160582145726,-0.0018703125292174327,-0.1215725881868801,0.30898297784685,0.24082440353956347,0.8213055219294052,0.20134476134181511,0.060835100009204446,0.7959025756291815,0.2540668981904526,-0.2716549071086094,-0.45521023765996427,-0.32506290058951226,0.38508309687881326,0.12480957362845935,0.15765063885171404,-0.39350623204055246,0.2057991253537228,0.6729746580115048,0.44625780951168537,0.5766510717005735,0.1153901629886045,0.0972482351246251,0.9895289842035249,-0.862253260172452,0.6307504312823342,0.2750049108019681,0.5930226345876477,-1.4021173388096053,-0.7684849355406476,-0.6640610863822172,1.0309841709320589,-0.15685567474984508,-2.26624291234786,-0.5210354193226685,1.119964339443924,0.05877599000807532,-0.5066451281298123,1.6254612546125369,-1.4160962945480193,-1.8618441649325135,-2.9123662976168085,0.9219529166183404,-0.6683903092980947,2.311726371804257,0.4409686233864285,0.05253381864573914,1.6445702927222472,0.31547487270313646,1.714022988505759,0.22420308460049387,0.9561436741173823,-0.16261324851235548,0.3436549131913269,-0.7848453497912966,1.0625292150587828,-0.23837902264601807,0.13730630004100686,-0.5805256784671253,0.008955758552753323,0.95459837019789,-2.057905194436549,-0.20468048108969183,-0.2432162628187684,-1.683011590036576,1.1196239544007724,0.43557035925403387,1.0258933289600813,0.8423217055661958,0.5222772719955637,0.14768420490738343,0.04086418875701714,-0.2965883460315899,1.7064481653010333,-0.47812532838278354,0.2498900131984172,0.286130566819387,-0.2205496236653226,0.39646340607677466,-0.1450288310326675],\n",
"\"y\":[1.541362198235048,1.1507798495049832,-1.8630647487505732,-2.193164464901305,0.20517169057613494,0.7802002213822534,2.0456447673631613,0.5872259856635278,0.49347410917638995,0.2750205877174437,-1.8623315991178344,1.6781257278113646,-1.812361812036104,-0.8082939113422267,0.5477174618968229,0.6412239060544725,-1.7119011705348472,-0.8433436387088984,-1.1120131156575392,0.570586556190136,0.4313625658919335,-1.6751327085425596,0.5575666600721731,0.35258069307966255,1.8442406289081419,0.7788369609015133,-0.9986003721741449,-0.6510627741308951,-0.35085588084284314,1.5207080692164914,-3.9185895235733295,-0.6591917363069827,0.6499592789394293,-0.5764444160658643,0.5867600389060673,0.25783803092205576,-0.2892996996440017,0.29932465773712846,-0.93120783194474,-0.4160881144274568,0.05366288525240322,1.186311173668544,0.16120989180108924,-2.230170092198503,0.09053793433421746,0.12061844634002608,1.3326083030215823,1.0752827359645833,0.16003498417633533,-0.526404592002488,0.5753439562107495,-1.0003328895355135,-0.5073927561726662,0.49783169872396266,1.7985606951002926,1.2126687577337392,0.6480137083369414,-0.060944964216411296,-1.0388638940124502,1.0645803890330945,-0.37654279789190837,0.32145419648808843,0.9322473198911179,-1.2582810748242745,0.22718786723338247,0.340634887698684,-0.5182137120488254,0.8592124294263506,-1.6133239796266172,0.07837321276656316,-0.46729205731892925,-0.8729571670954145,-0.22453711682947092,-0.24172167004520956,0.16943888857403705,1.1741425550164493,0.5616413268712281,-1.303544585472682,-0.826216080087386,0.11483012772163101,0.010579761314095198,-0.7536355792741273,-0.12785002885114238,0.9408096510224851,-1.0209294912627276,-0.7275352854652213,-1.0103937069150344,0.8027524801065508,0.47751620023702634,-0.9039659060107142,0.8247557945654782,0.6616573426841146,-0.13043603035292772,-0.8075317686224641,0.07069507546311854,-0.1962166685860725,1.0287776005670959,0.217414199886531,1.4817470983486614,0.13677454272670744,-0.3453824134066845,0.8065870438748809,-0.20762276931656432,0.3036358877476284,0.31370662337800553,-0.5223235046204604,-1.1169997915674672,-0.012308097369432988,1.1410763470544125,-0.07992942958526254,1.3657653700813166,1.0763400173678956,0.14016293451641115,-1.1524326350868814,0.487810387507576,-1.2255179108497298,1.1498268771701616,-0.6546671137553443,-0.9077020910312046,1.2647372210629553,-0.15704979335108776,-0.4348394716231591,-0.09704928584708243,0.1991583706780623,-1.0088042889561881,-0.3839563097657418,-0.9771100271018142,-0.236758915929481,0.43697191541601993,0.22605040934922316,-0.24326219492307777,-0.03632933953486976,0.018229743949426037,0.3309906372628754,-0.9186585242392172,0.21341552883343257,-0.22075404310669305,-0.00939429578075382,0.049728591319177035,0.4304187771652406,-0.01836834875757646,-0.037536243549787046,1.1803169267043123,0.3424848752624093,-1.3956153303286307,-0.5768865136060579,0.11025701551829398,0.8466729638773081,0.5317011414819055,0.5474669703441519,-1.295158520083501,0.018371238813657337,0.35326241214861437,-0.29879857824942707,0.16311134573065217,0.1318886451495058,-0.21080563128195623,0.518646534999449,-0.8363201871488458,-0.6559329978336433,0.14231153289538925,0.00832765182049371,0.8454929426551331,0.5591160905522315,-0.5806106935106002,-0.9000338242713054,0.01013906367983905,0.43676475010587457,-0.6464160433863698,-1.0034958042920263,0.17551315716329113,-0.11919404482209674,0.2864825988528387,-0.3978712874798326,-0.09161121015292979,-0.6155222437209455,-0.43706058040562784,-0.048167369069934074,-0.854943991494552,0.5482916742391946,0.41106020225591955,0.4064213193862929,-0.22229942112447187,0.5818046440473403,0.3316978637697529,-0.7516848167278918,0.001251443715192757,-0.24618105401619256,-0.8119695320601231,-0.04526303697235452,0.1446253895774973,0.6012919809282302,0.21931420919073785,-0.14464916717516862,-0.420910160319254,-0.54166391182812,-0.5338125892521663,0.0824001762684557,-0.21240287373741568,-0.497364769176244,-0.1225245172546587,0.5151765783307537,0.037562533958996155,-0.28403478476685956,-0.15897565713862716,0.026497843507660473,0.5148515352938153,-0.6672394854345393,-0.09951032902009878,0.24356735934989548,1.039001233562892,0.24387437335510626,0.36315690156354513,-0.5908055552167141,0.350625198058898,0.5188329790836657,0.011722026978291535,0.07953829078954318,-0.3598244110533435,0.8761691156341855,0.5658373236445511,0.586117318204038,0.002911481087105809,-0.4308262547306808,0.23255535165306257,-0.7642436570551274,1.0352801371409595,-0.4699549538366056,-0.4189508746648098,-1.003037880409993,-0.2589499988147129,0.1429114723304949,-0.09671443157873115,0.34869658604858356,0.5215130125406556,0.2585888242657853,-0.07086350868255493,-0.43588604215551074,0.43246830281783566,-0.04637392079696327,-0.5831663277770768,1.15491390073621,-0.0046536956648046135,0.18685549075461494,0.6993940992848653,1.2274398166283658,0.1994354014201426,-0.2651696060995085,1.0951863397919719,0.008826020479099118,-0.3797955048132422,0.21227932410466793,0.06619149054367209,1.0012259493313282,-0.4866657799688842,0.0646863647569373,-0.8171601717641831,-0.42333191800252457,-0.33713404515981876,-0.2573292288280472,0.4764456920266049,0.3961348736255127,-0.719876098419235,0.04086452631825788,0.9968353136256155,0.6700962766302783,0.9221808677131833,0.1623345544582815,-0.5051963934312622,1.0707741277854774,0.8996154308164332,0.3638778168797973,-0.823134562844667,-0.4145513226237711,-0.7301934844003536,-1.3420790291748979,-0.6192320779991768,-0.12804982753209232,-0.16732545152734468,-0.015161728447561376,0.59899427230202,-1.085829853350021,0.10618516103273425,-1.3590955444559258,-0.11484656626995356,-0.05048790319433373,-0.05197930233195518,-0.5165878017527096,0.19445536414963144,-0.24037901407857848,-0.006737080292339166,0.1672173344895989,-0.03371786746121111,0.08820068042834053,-0.24589398256208767,-0.38832068476302617,0.41546710850467417,0.051749626664091934,0.3276669335351708,-0.511750136098799,-0.27193351324574616,-0.24245086668343857,-0.2912302514886402,-0.9551895441836704,-0.19347881885505386,0.4463108661477057,-0.36738430255206145,-0.4002013226114206,1.0351500291173559,-0.645040648310571,-0.10711809973200874,-0.2664173559029858,-0.09259920719152016,0.010368546980803004,0.24597104186740337,0.4404438104481555,0.6254849806488012,0.2694466537120109,-0.0610370721585491,-0.9901632523776654,0.14677624432547004,-0.36957281734596287,0.06928552341987725,-0.012309854720466216,0.3018542296017467,0.43773455674073153,-0.6026334412883454,-0.859876703494866,-0.11464574115841479,-0.1723991016959025,-0.04112970675126436,-0.3539859091068473,0.1290196640499031,-0.532556143187418,0.09324721696079927,1.2122456599275022,-0.9046529988290364,-0.7203047855326472,0.2996886942701442,-0.17144315786049724,-0.5628645160354282,0.0057660910125080025,-0.3784980451060746,0.06916231095748686,1.02908167279547,-0.6166539249148209,-0.4591495199411196,0.3960715149382787,0.4338961466905748,-0.027651083960028702,-1.4523059019462612,-0.012085767707601787,0.3012259574005853,-0.09617654225113996,0.13271043419985415,-0.22124098221479843,-0.6383004767421133,0.11476740980790878,0.7570413385125951,-0.327227868187322,-0.6770418590332813,0.46966217385950004,0.09946282408502657,-0.7368569735341665,0.15039958320124897,0.17987669595464473,0.7533388065540365,-0.39028559850121713,-0.3624912948387431,-0.6283009910395657,-0.20033875784183525,0.17404307214819859,0.23645674911192305,0.1705260291970921,-0.5674307451532526,0.05132288669644655,0.16280568315332755,0.49528990530684003,-0.04152605082135412,0.9162842320799637,-0.7145114531242102,-0.002707340181789336,-0.04570786712433286,0.7584055489904585,-0.5057373671852257,1.031247413357521,0.9394637563648224,0.16885569368392217,0.463615224963226,0.18569906085753302,0.6659188823258642,-0.625404124534281,-0.8167177067362379,0.0717316410092719,0.31104519524351043,-0.6444618924983533,-0.21738978837566908,1.1779764113966358,0.27132435910939845,-0.6357928674790408,-0.8547758107486418,-0.7058656527050515,-0.04187359536991615,0.03060213277009033,-0.3772372717243268,-0.055163546109256306,0.02788719677452987,-0.29273672968653036,-0.8538868114630148,0.185678998876606,-0.06592425118274008,-0.045379996637087874,-0.13899681524965074,0.2448509208291781,0.5633943003786089,-0.4387575858403179,-0.01274782008324233,0.5416735149058401,0.5151242723809872,-0.6181321104275388,-0.021135753939663354,-0.042911361599504635,-0.8180506210515529,0.03890897264858648,0.1250826856830171,-0.18487442740376653,-0.13580704425735401,-0.5536956185822935,-0.10738563506726916,-0.006232677300034593,-0.5354080280358527,-0.14534032111141565,0.23312700323041774,0.3652685543744369,0.2715754377207561,-0.23965893156892704,-0.052287924795586416,-0.07593021993780584,0.3208478176415032,-0.11059233338611148,-0.4469121741474835,-0.2836986300828075,-0.3775687883212672,-0.04550688755153505,-0.03244650689417013,-0.6747997520168726,0.658298978582692,-0.41651493752629853,-0.16041360422473067,-0.3893546825693483,1.0469473307921704,0.5907951265953703,0.5156203585143994,-0.7046433564538509,0.15048299290141443,1.669031654508463,0.41265612728293927,-0.7687002130588648,-0.004750323239773514,0.4022965512688495,-1.1326076314283287,1.0570107862586995,1.3779048449320366,2.134176121320752,-0.6261517156776554,0.5187369677113861,-1.6266501460714786,-0.27989094301220335,-2.5658174042161863E-4,-1.1463642351134549,-0.18954794493985117,-1.1963632567948177,-0.12384135053399127,-0.6507656547942225,0.15462787240733197,-0.20983476663130252,0.6025729949359175,-0.7273526455237513,0.20917168155510546,-0.061284322815825076,0.45548318710024494,0.031115280025931856,-0.6496531899243803,1.5190492534312934,0.18491208887986965,0.2126540125653975,1.2491632073514454,-0.7684551697389397,-0.2760047306434475,-0.7009784574134061,-0.5688251770459529,-0.3384250695688228,-0.06875538041218504,0.00814438918284395,0.2510765952403077,-1.190910138735497,0.3817651367598342,-0.1423333800428025,-0.1684229681545088,0.1963362905577542,-0.2478516204186602,0.1419688436842197]\n",
"}\n",
"}],\n",
"\"metainfo_list\":[]\n",
"};\n",
" var plotContainer = document.getElementById(\"RRrqf3\");\n",
" window.letsPlotCall(function() {{\n",
" LetsPlot.buildPlotFromProcessedSpecs(plotSpec, -1, -1, plotContainer);\n",
" }});\n",
" })();\n",
" </script>"
]
},
"metadata": {},
"output_type": "display_data"
}
],
"source": [
"ticker = 'SPY'\n",
"df = create_uw_iv_rv_df(ticker)\n",
"linreg_str = create_linear_regression_str(df)\n",
"print(linreg_str)\n",
"p = create_pct_price_vs_iv_plot(ticker, df, dark_color=False)\n",
"p.show()"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"**SPY Spot-to-Implied Volatility Correlation Chart (above)**\n",
"- Pretty tight R<sup>2</sup> of 0.4259\n",
"- Slope of the linear regression is -0.719900 which tells us that, based on the last two years, it is expected that for every +1% move in the SPY its 30-calendar day implied volatility will drop by 0.7199 points\n",
"- 30-calendar day implied volatility in SPY is very similar to VIX (though of course VIX is derived from SPX options)\n",
"- This past Friday (2024-09-27) was very unusual since **SPY declined close-to-close by -0.15% but the VIX was up +1.59 points... using our linear regression we can say that a +1.59 point increase in VIX would be much more expected if SPY was down by more than -2%**"
]
},
{
"cell_type": "code",
"execution_count": 4,
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"Linear regression (y=mx+b): y=-0.541614x + 0.034197 || R^2 = 0.334099\n"
]
},
{
"data": {
"text/html": [
" <div id=\"oFqIQV\"></div>\n",
" <script type=\"text/javascript\" data-lets-plot-script=\"plot\">\n",
" (function() {\n",
" var plotSpec={\n",
"\"data\":{\n",
"\"price_pct_change_from_yesterday\":[null,-2.8827605915553334,-1.695663368521727,2.346030083065176,3.1440792600446077,-0.053166979761098965,-0.7872898787148142,-3.810408921933073,-0.9996283909327386,-1.3738223039675757,-0.03425309229304618,2.345237188761118,-3.0057287404210986,3.302140062897907,0.7907926489697292,-0.3646677471636939,-0.5101852194166145,2.344766080784799,1.1001379710986692,2.0685940025139127,-2.2096337215439243,-1.8206023099341606,3.0600652325283084,-1.1627906976744318,-1.021766504767041,-3.427719821162445,-1.953477868112019,1.6085070444162852,1.0994408342148931,0.7287267835121014,-2.307635230392535,7.378854625550657,1.8426171529619673,-0.8751215446589744,1.3838284753363128,-1.364940046304286,-0.22071188340807568,0.003511112671605865,-1.028719893265928,1.4402781226719563,1.0036719706242314,-0.6578491794197006,-1.4673079604070938,-0.7569594283895142,4.55857718216488,0.12271611671665905,-0.398338553724642,-1.6783455819518123,-2.0720344875538754,-0.408264697529126,1.1834741382383607,-0.6376607363043907,1.2551411147354807,1.0750052524686637,-0.7413822968993511,-3.3576489476807136,-0.9534472173065023,-1.6408386508659945,-0.07784986098238189,1.4506195740891847,-2.446516730663739,0.22492127755286973,-1.413824057450641,-1.3202822672433223,2.437524029219529,-0.06005104338688838,-0.6759801712482916,0.47640653357532425,-1.5654399036652444,2.7601498585518858,0.6473214285714235,0.8464552376727941,1.7300150276729154,0.5404431633939888,0.6880487367855181,0.20286863366194563,-1.2999928962136864,-0.9824384626457516,2.7366890786843623,2.221593321069748,-0.20418050941305443,-0.22193709470471612,1.9497445521843293,0.9954319220017771,-2.021872679403225,1.498604747304233,2.1383477021247765,3.588993752492353,-1.777235981008607,-0.8459076360311069,2.0718732501070702,-1.7781076545759666,-0.8837927522423406,-0.6563245823389074,1.60160160160161,0.738916256157629,0.7660961695191704,-1.8764153995470712,-0.7055720408836064,-2.367512285828144,0.07482229704451893,0.8734069668649092,-1.6744154706556102,0.7161212951858786,-0.1292780839627139,-0.8039242403597213,0.8276098901099038,2.067368277647219,0.11345435130805104,-1.2265848943403768,0.4994263346156602,-1.732590155127245,-1.4043600082006447,0.7416392306359265,2.297980666689603,0.5245989844301802,2.6360686448332338,-0.47260519539780166,0.19976421273251166,1.4282445991436798,-1.359798930205569,1.1858094864758861,0.3680387409200847,-0.6851297886712349,-0.5311568856069426,1.8233915082052743,0.9465336403172042,1.6630765331981712,-0.24304365437947117,-0.33734187099796475,-0.9872441783934538,0.6742213218536408,-0.05659487501965543,-0.6417717935004896,-0.883386632048877,1.958216202402241,-0.18798759281888344,0.08475374329033336,0.006272738677726153,-0.04704258922412219,-0.7624486210034198,0.1043379284178636,-0.2084583557057651,-1.8863744263332705,0.6064711764895536,2.7190816686439856,0.689870454190733,-0.11470734126983739,-0.8721561811353529,-0.6543928862170367,-0.35298937880172687,2.1254388461903417,0.24776239586237203,-0.6333220056226718,1.0881731127969196,0.3260134096081613,-0.35867565910484567,0.5414884779866513,0.11322255882983967,1.2104169213840166,1.8573326890553243,-0.22533874936994103,0.3357998276425578,-1.2676223196303682,-0.5129589632829501,2.4302728780340788,2.558064231256063,0.45350172215845586,-0.5686039202240201,1.15520560935658,0.7499786937871011,0.07049203440010476,-0.01690617075232881,-1.6965392853116823,1.2413279055099924,0.3822738213223875,1.6897038081805427,0.7683985686149253,0.7267521885151007,1.1915823995627184,-0.6292875276832421,-0.2799445546707302,-1.3627691469065173,1.179883945841409,-0.9913428189092466,-1.340541733325984,1.7194140013419679,0.19514608470989625,-0.20025237285345998,1.5420136884637614,0.23550430404417622,-0.0027005860271822613,-0.7615858269417686,-0.3320089261416137,0.0327653997378885,0.4940495687302038,1.2630035038161624,1.6978702859288708,-0.02109982856388637,0.9338644577518762,0.8180653929588777,-0.02333177788148566,-2.305199014650583,-0.299925682131863,0.15973165082661112,0.6777768917948901,-0.33264691905591226,-0.23839796567068916,1.821464606234402,0.0521539584854569,-0.2319641367806491,-2.1944146921288543,-0.1602606907235682,-0.46817731881537705,0.8466831523492147,-0.8502358804872157,-1.099462365591386,0.18482781114945723,-0.6375647738679713,1.1222149410222926,-1.061158363710002,-1.058894165165658,-1.0922932641915462,-0.12549500808745062,1.611146790271678,-0.14289640010991533,1.5768616874896946,-2.1375741648830937,0.7751508775815097,0.7527058952804921,2.1839895299378353,0.5576753742295271,0.2998460966937344,-0.10582290536788053,0.12712201064646322,-0.8807892718279642,-0.7151625126754602,0.13976240391333494,1.1782704385635334,-1.1088415523781703,0.3809115051369272,0.8177226690895489,-1.7123015347098813,-0.04045198349558188,-0.21313332973614818,-1.4410468543001542,-1.8324463707686367,0.01397194433576665,0.4749797435109393,-1.5016267623258583,0.23432427091274466,0.8365254619197682,0.07262366972988765,0.8345661093588586,-1.7549687205890452,1.3608700552237174,-0.2946490618485065,1.6755415539881247,0.5100082259391403,0.5537974683544222,0.7135299384139593,-0.34750282851140346,-1.2569945665396265,1.1306395094174526,-0.3275493354267689,-1.3117870722433422,-0.9356853895478356,-1.4917909825818865,0.3017484489565625,0.9728118761773485,-2.4475816556678742,-1.9067191870754008,0.48012570563928936,1.1265239929338922,0.4782359679266879,1.7356855815544137,1.8153294486777272,1.174884437596302,0.40793016235620705,0.9452615042929491,0.06439495572847509,-0.7695607872580057,2.2482233091036807,-0.3118475646819441,2.1526470666207276,0.07526016661043577,0.0855764742492493,0.023319082782746747,1.217490415500988,-0.5809489686236291,0.40929801529074883,-0.14100394811055184,-0.08728915817308724,0.2620962561348472,-0.09738845177990063,-0.2514045304122581,0.2854718000154355,-0.9283479509668124,0.2510871816111093,-0.5783779596684635,1.3972211401116708,0.44566247470738674,0.8542213835836421,0.7964199029126373,1.271728497253366,-0.08668945360876812,0.48340315823396374,0.42926925543989025,0.510956077429503,-1.4859712581875129,1.1635407363302486,0.1495941339480611,0.6121749351094552,0.15089563862928923,-0.0486026731470246,-0.43277413080476945,-1.6922250439538988,-1.0581484885367254,-0.514648658147765,0.11860300797417178,2.0667926906112077,0.1975552537350378,0.6777572396795994,0.20807833537332954,0.05130084279956204,-0.009766578767467227,-0.5640750146512996,1.419415043834893,1.9830988643792846,0.13058549788689255,0.4149574372228626,0.5549258524605527,0.12211445882159833,-0.5957546616629616,1.0240437932092172,-0.6656545603176411,-1.9586174465083483,1.1775427488788015,1.6900540438039346,-0.13053308780681672,-0.20072353833586742,1.0290231296335328,0.18518947197851965,0.9843110977610259,-0.3912595812836095,-1.5597004640051426,1.089721152724299,0.29777018604864036,-0.9067685438770123,-0.7548133869057283,-0.40016849199662197,2.9275627922276115,-0.2944734859725684,-0.05265808874032052,0.24052227694422168,-0.5324497257769734,0.8569393709651596,1.5056947608200533,-0.356814254617277,-1.7949641908022063,0.6283683063868839,1.517810342077075,-1.4434841171848678,-0.3712814905926787,1.4335032808248993,-0.7686065906324702,-0.2521294718909717,-1.188686979095499,0.8204277286135708,0.24915424705129752,1.1856716145655088,0.47321810847962276,0.1143831161549258,-0.3629194856400342,-0.32377012321251897,0.34061174772173075,-0.18434008497628662,0.21170694353731534,-0.8630183166647876,0.22443381469474666,-1.5290658222121833,1.1783893049111205,0.029513928303859238,0.36995006808897557,-0.8728489699929898,1.5968246002235453,-1.5941801199003125,-1.6451046158760585,0.009279450656518584,-1.2201345395499996,-0.5706368589141309,-2.0689166528896408,1.0056674303629665,1.492287856358332,0.33876773237349056,-0.4829898478347472,1.5431735186712148,0.40603248259860614,-1.8856152512998325,-0.7230504722202546,1.276333270070218,2.0098383696416144,1.0953430697161703,0.015900056785911332,-0.059047965116276746,0.21815207017223948,0.23581696975194522,0.2307379088811512,0.6432246998284707,1.5630255869755194,-0.20313534996687643,-0.04867472012036744,0.6972728882592705,0.19564309423840687,-0.019745502413348603,-0.44984749072873864,0.9456421108319013,0.3777704989627706,-0.7048381482770649,-1.0713346770659826,-0.1860259107518636,0.5369306205764257,0.27365215280383826,2.015978167572685,-0.03451772269323916,-0.08848220644409599,0.4039225851045547,0.6862724006626131,1.3097730866202362,0.5420225666983081,0.5181238462829363,1.2249838268745261,0.03092400940090112,-0.7708002720471452,-0.2679294660103526,-1.2953475779915902,1.1435564182631586,0.2065167508031207,0.25813435476820246,-0.5190922115404617,0.586504143098665,1.0499667994687822,0.8337098032773493,1.0426849136526473,0.23782650757819823,0.08645996702456582,1.0426502199811116,-2.1930173373628015,0.5874819588152835,0.26878460854451447,0.038294870502864065,-2.9354877704799165,-0.47325487265706956,-0.886358422490563,1.4897735880817997,-0.3524630950406338,-3.5870334151720695,-1.1027666278216608,1.0255962642110594,0.2008769466703919,-1.3731407630954928,2.9593687845605787,-2.422145328719716,-2.3734934516816852,-2.9816155988857895,0.955509107196173,-1.082974996018471,3.0590887135726996,0.5222398285982255,0.21535933926866146,2.4812796313527397,0.032426823468378885,2.5263112398158816,0.12857805320178883,1.3136012462370728,-0.20986140835704825,0.4664140257360616,-1.5854922279792683,1.0845530167421291,-0.970833333333343,0.2987335380990386,-1.1347428475543153,-0.1463880343693602,1.1919432286576104,-3.036092972473592,-0.2598471232758026,0.09335446473155429,-2.6787263577997655,1.2859658115848216,0.924173744664003,2.1715431910347416,0.9816055652767774,0.44799459025399724,-0.4417890352168885,0.05282731806270924,-0.4329552894464572,2.5284235533683974,-0.19033432638199121,0.12436779703175471,0.48236170917521637,0.09271277582050264,0.7513070684615819,-0.555703107442751],\n",
"\"iv_change_from_yesterday\":[null,1.666806915154595,-1.1151099422898483,-0.7315685248251498,-1.1262650112445947,0.25992239019329233,1.1534813369202084,0.4401746539283451,2.6438516820757982,0.5001419595362009,0.3555497459687018,-1.2631729265608485,0.17583298209270026,-1.3662325349327986,-0.5872955115732523,0.1143373416898541,-0.36373374049180285,-1.1666943253541504,0.7297495772952445,-1.614591508284395,-0.14425963257654573,-0.5490784645276037,-1.7387765724738493,0.9944965450023986,-0.4615193973448015,0.5437114137694508,-0.2551572122852015,-1.805749014953797,1.9824157652477474,-0.23807065261949845,2.0248530843016006,-3.2549303204458013,-0.9036112933312026,-1.9246805301750456,1.7007198237209025,-1.7742017855131529,2.309326721440552,-0.08202686183989982,0.2793047674302471,-1.2312983381570497,-2.18042856703655,0.6859971694309515,0.4348545286295469,0.4999041370708994,-1.6868018963376983,-0.9114652513524497,-0.9318000768262991,1.4207122056592496,1.4712376098904478,0.4909881497843003,1.6305340175781993,-2.0857074757837992,2.5572252691761506,-2.107231488321048,-2.0369735008294008,1.0509428818953488,-2.217232492133949,2.3420041967388023,0.4708677671692456,-1.7131106221126977,2.0026760606440526,-0.9730428359326027,1.5043241019779998,-0.03534391377305113,-1.009189117528848,0.4911915599234504,1.7206717610788012,-0.3430188160990504,-1.3180182817241537,0.2588887995557023,0.26171587611700176,-0.9288358124885008,-0.6229911722344035,-2.0356252481626314,-1.0061281914925857,1.3667106414238823,-0.015584609938695593,0.2628650251026521,-1.0122064064140552,1.2556838204950331,-1.3003057188833687,0.3177593229202387,-0.7097900985182584,0.213404520416411,1.187505157379249,-0.17152785813753724,-1.165647552128224,-0.022136470467227554,0.4751337407759486,0.5722368517103718,0.023460778473399557,0.9330968677885494,0.7323789893554498,0.06089261552025249,0.28693716389884827,-2.9596411726103966,-0.46415690439419777,1.0498141007604431,0.6656295083323513,2.9034962765914507,-0.7145009819429511,-0.3793020627777004,0.5669154533231975,-1.2306165829472953,-0.6787429969313017,0.5184275074062477,-0.7686261811488997,-0.5812681845781498,-0.5928959346031633,0.4757291916945654,-0.41863133566028665,2.3161616109788348,0.7545794526540526,1.4190813162683007,-2.6861473531306537,0.8988294840376518,-1.490351248282849,1.8869967103098482,-1.0066816356812005,-1.551777261319149,0.553413552240599,0.35884335692490055,-0.5053015168112722,-0.5996846095720407,-0.880688227417771,-0.5117538262727557,0.8191257840821855,-1.8357248384695097,-0.8242610956325116,2.4422172428074305,0.22928956132766487,-0.5721584663268438,0.6744031715011083,-0.7680063281749199,0.2578396172191013,-0.47356901171212584,-0.9332420259011407,-0.8646808114582605,-0.040995633410098264,-0.8883929055455617,1.1884323961558962,-0.9435912241654378,0.28306032730041863,2.1708781649821987,-0.7632537593340452,-1.3990727928660966,-1.0228992939121042,-0.7716016513816903,1.0704589200924026,1.0387163395920886,0.6056635055852588,-2.9834059842873657,0.7935936627720288,0.054877647981943056,-0.6871857160918466,-0.4595409829734507,-0.35237623159370557,1.0182140165661515,-0.7544939168196834,-0.09183892084150003,-2.472816440906044,1.5327924361773526,-0.5907810530695983,2.2874439932172628,1.9702686913502738,-1.102065022340657,-8.776206791338836E-5,1.3133249310046828,2.9518093762892903,-5.155712132065233,-0.4849258850972582,0.6587432847623305,-1.603461060607998,0.46391337262331334,-0.044880620757719925,-0.6441898596495115,1.4285497846108832,0.5055398924958254,-0.513209400051597,0.8612573296432906,-1.2057780165823537,0.5588388638111716,-0.44854014933125086,-0.539561663770332,0.10024670076228759,1.9043206432722641,-0.8527008348579201,0.10464108138406303,-0.09627909579707605,-0.6600956941435818,0.33713251004868994,0.19655714024481696,0.8735089782277861,-0.2180986788160375,0.5450161045926123,-0.31875375164415587,-1.251309272200185,0.2924479167929448,-0.12409673946441657,0.3006977626858358,-0.9191781282424927,0.7338210940361023,-0.24786964058876038,0.18273890018463135,0.4671633243560791,-0.2896450459957123,-0.559050589799881,0.2593427896499634,-1.0342292487621307,0.7465198636054993,0.033689290285110474,2.1905258297920227,0.23537129163742065,-1.1903345584869385,0.6100878119468689,0.4043683409690857,-0.38780346512794495,-0.22002756595611572,-0.001780688762664795,-0.14613792300224304,0.42077749967575073,0.02499595284461975,0.5092494189739227,0.49542486667633057,-0.12875273823738098,0.08739903569221497,-0.9399324655532837,0.4727579653263092,-0.35165250301361084,-0.7613882422447205,-1.2904554605484009,-0.004607439041137695,-0.7233232259750366,-0.39047375321388245,0.20362064242362976,0.8656010031700134,0.2622365951538086,-0.6254330277442932,0.4122123122215271,-0.3018441244049086,-0.7937519999999978,-1.1719910000000002,1.2900560000000016,1.5302869999999977,-0.5043629999999979,1.1136729999999986,1.880510000000001,-0.2002510000000015,0.2344930000000005,1.691913999999997,-0.5481329999999964,-1.0374020000000002,0.05293299999999945,0.13829199999999986,2.239056999999999,-1.3189749999999982,0.01023299999999594,-1.424008999999998,0.07712000000000074,-0.7826689999999985,-0.5999340000000011,-0.017390999999999934,1.9976379999999985,-1.345908999999999,0.4713920000000016,1.7725839999999984,0.8309759999999997,0.8204590000000032,-0.7925717559406777,-1.3776700839647695,2.137603699796351,0.7807907686362441,-0.6705855780444558,-1.0454150932546646,-1.2948812028622996,-1.6827155132606286,-1.350863503784705,-1.1054653476911653,0.23408703565362288,-0.32751658511596915,-0.2536330794784796,0.8137892170271286,-1.1513486805216395,1.0941510343442253,-1.1989838108601845,-0.1977299047798411,-0.11215283243517149,-0.16051736896828217,-0.2516069287577949,0.40484802632999006,-1.0127743639357103,-0.3126749332660932,0.06841711330670108,-0.021959235992358828,0.19324888087615477,0.28786412113971593,-0.299100986477546,0.8261085341335797,-0.0703696998381016,0.15813062282785673,-0.11751126779984666,-1.1371840853008415,0.565570425993764,-0.99536886576686,-0.17191866748508566,-0.07004909387706348,-0.250010303578339,0.5901228504601743,-0.0071288035807626216,1.0593186665046233,-0.8560931369585223,0.4975529447710567,0.539510196983608,-0.5133573486752496,-0.10971260185753096,-0.30698264634522765,1.7871544458899429,0.5842619016395361,-0.08539180054749096,-0.7818933372533579,-0.1690239330251515,-0.3591300910527284,-0.10123544145191055,-0.14599068120159941,-0.2056796984814664,1.1964330953044193,0.6209673097983206,-0.2751662599304723,-0.6760824745093927,-0.1861328517651959,-0.5985702985754298,0.4511839593493381,0.2925624499720154,-0.15655705541388798,0.3973631874246344,0.47230021098933506,0.4546429732387267,-0.7760063319574364,-0.4657304813344556,0.27245250742651983,-0.19310226804419273,-0.326007495357576,-0.17858019016330573,-0.0460412905969978,1.2291986862338096,0.877841698114846,-1.1043595468889436,-0.0259627186867597,0.7108604943892516,1.1567611578106565,-0.06790992242047622,-1.3001282270836505,-0.6351324171248827,-0.06009634053654267,-0.17895129764590578,0.23081685418243225,-0.41088581523090006,0.00762676989880795,0.45143304242811055,0.969331501453869,-0.04081341478588385,0.11193621062588477,0.4406093663484292,0.35943863472367354,-1.312490946582308,-0.16006466789001905,0.4219372968776689,0.840213048990794,0.06783789952521246,-0.7485326586650629,-0.9311269950749157,-0.40637043344916,-0.4336948895609609,0.7408924733653084,-0.0316029035414509,-0.6721442112900036,0.06789511113544933,1.1784624907843657,0.5041556218668184,-0.06365984605348984,1.8698465140629885,-0.9400185221722062,-0.3300005684394911,-0.10213537418268359,0.33110929070571515,-0.6689228348506049,1.9224778703015666,2.0999054045383723,-0.7930782340134144,0.33578916061563646,-0.4468416055298867,1.3278635935355183,-1.0603666322359189,-1.2921502067812725,-0.12792944230118053,0.7378418397142461,-1.3594657095787923,-0.3381838335924776,1.1688829750372385,-0.6670497238563016,-0.5682809825233797,-1.3570502859550828,-0.061946799041315614,-0.710528862852307,-0.07253248435203474,-0.27786118306259056,-0.2916042231294682,1.1076170409526753,-0.21335019649661646,-1.1877422782822542,-0.2359636810189798,-0.3551650964923425,-0.003861358851857233,-0.3788709325066453,0.7671365028740613,-0.48892285005656255,-0.6886029294801919,0.7272319540047558,0.9514920042448249,0.40450817710389586,-0.6102184784893403,0.29360833751869997,-0.0643524681124994,-0.30469645047447536,-0.1592573275976097,-0.47349628073315664,0.34529474819760253,-0.026260318239232916,-1.215875341512712,-0.05505449680529573,0.5026692258033041,0.9551986799769647,-0.30074457758214024,0.6132177243817001,-0.15001641673662292,0.9592048210143496,-0.45324613407640335,-0.41172682457417054,-0.11888449157191339,-0.03381135869880403,0.21836202546341177,-0.23226542504052006,0.06689005961351846,0.34450227225774377,0.3353778485678909,-0.05025571318219946,0.31374039255279484,0.4666870451375864,-0.7120603574494169,0.8892174166261171,0.08159494236752707,2.057062839154792,0.24609495502890155,1.0923501609228374,-1.4592355208333991,0.1222567835983881,2.964032566872362,1.4759249539835366,-1.6552615208729868,0.5103381837985488,1.0710283774541836,-1.4070077862495936,2.2046188208801425,3.85350469777746,8.9150153921519,-7.581477671436602,0.6620082006513499,-3.180439246521402,-2.3817313758883465,-0.5219787124522206,-1.7593472924095117,-2.1321265863100187,-1.1853339250218475,-0.43219551395390354,-0.2985999410576383,0.6576950270395798,0.06304133592139038,1.9614704452281977,-1.9041040390938377,0.7154054220813784,-0.6029388754772889,1.633126070152361,-1.549627202102542,-1.8863552983678282,4.718894208483771,0.3672137213024591,0.3099532427335383,2.100445724113758,-1.7260527372129602,-0.385279896594227,-1.5255753447942624,-1.0139451952815683,-0.8588730633720196,0.47297848171160695,0.10864371200947076,0.5148552863750488,-2.4512764736475567,0.32894339421929786,-0.4777283965387795,-0.3637411740694567,0.11239177573281722,-0.07254092897397157,0.6111735548530035]\n",
"},\n",
"\"mapping\":{\n",
"\"x\":\"price_pct_change_from_yesterday\",\n",
"\"y\":\"iv_change_from_yesterday\"\n",
"},\n",
"\"data_meta\":{\n",
"},\n",
"\"ggtitle\":{\n",
"\"text\":\"Spot-to-Implied Volatility Correlation: QQQ\"\n",
"},\n",
"\"ggsize\":{\n",
"\"width\":600.0,\n",
"\"height\":600.0\n",
"},\n",
"\"theme\":{\n",
"\"name\":\"none\",\n",
"\"line\":{\n",
"\"color\":\"#0d1117\",\n",
"\"size\":1.0,\n",
"\"blank\":false\n",
"},\n",
"\"rect\":{\n",
"\"fill\":\"#ffffff\",\n",
"\"color\":\"#0d1117\",\n",
"\"size\":2.0,\n",
"\"blank\":false\n",
"},\n",
"\"text\":{\n",
"\"color\":\"#0d1117\",\n",
"\"blank\":false\n",
"},\n",
"\"axis_ontop\":true,\n",
"\"axis_ticks\":{\n",
"\"color\":\"#161b22\",\n",
"\"blank\":false\n",
"},\n",
"\"legend_background\":{\n",
"\"size\":2.0,\n",
"\"blank\":false\n",
"},\n",
"\"legend_position\":\"bottom\",\n",
"\"panel_grid_major\":{\n",
"\"color\":\"#161b22\",\n",
"\"size\":1.0,\n",
"\"linetype\":\"dashed\",\n",
"\"blank\":false\n",
"},\n",
"\"panel_grid_minor\":{\n",
"\"blank\":true\n",
"},\n",
"\"plot_title\":{\n",
"\"color\":\"#0d1117\",\n",
"\"hjust\":0.5,\n",
"\"blank\":false\n",
"},\n",
"\"axis_tooltip\":{\n",
"\"color\":\"#161b22\",\n",
"\"blank\":false\n",
"},\n",
"\"tooltip\":{\n",
"\"color\":\"#21262d\",\n",
"\"blank\":false\n",
"}\n",
"},\n",
"\"kind\":\"plot\",\n",
"\"scales\":[{\n",
"\"name\":\"Price % Change from Yesterday\",\n",
"\"aesthetic\":\"x\"\n",
"},{\n",
"\"name\":\"Implied Volatility % Change from Yesterday\",\n",
"\"aesthetic\":\"y\"\n",
"}],\n",
"\"layers\":[{\n",
"\"geom\":\"point\",\n",
"\"mapping\":{\n",
"},\n",
"\"data_meta\":{\n",
"},\n",
"\"color\":\"#77bdfb\",\n",
"\"data\":{\n",
"}\n",
"},{\n",
"\"geom\":\"line\",\n",
"\"mapping\":{\n",
"\"x\":\"x\",\n",
"\"y\":\"y\"\n",
"},\n",
"\"data_meta\":{\n",
"},\n",
"\"color\":\"#fa7970\",\n",
"\"size\":1.0,\n",
"\"data\":{\n",
"\"x\":[-2.8827605915553334,-1.695663368521727,2.346030083065176,3.1440792600446077,-0.053166979761098965,-0.7872898787148142,-3.810408921933073,-0.9996283909327386,-1.3738223039675757,-0.03425309229304618,2.345237188761118,-3.0057287404210986,3.302140062897907,0.7907926489697292,-0.3646677471636939,-0.5101852194166145,2.344766080784799,1.1001379710986692,2.0685940025139127,-2.2096337215439243,-1.8206023099341606,3.0600652325283084,-1.1627906976744318,-1.021766504767041,-3.427719821162445,-1.953477868112019,1.6085070444162852,1.0994408342148931,0.7287267835121014,-2.307635230392535,7.378854625550657,1.8426171529619673,-0.8751215446589744,1.3838284753363128,-1.364940046304286,-0.22071188340807568,0.003511112671605865,-1.028719893265928,1.4402781226719563,1.0036719706242314,-0.6578491794197006,-1.4673079604070938,-0.7569594283895142,4.55857718216488,0.12271611671665905,-0.398338553724642,-1.6783455819518123,-2.0720344875538754,-0.408264697529126,1.1834741382383607,-0.6376607363043907,1.2551411147354807,1.0750052524686637,-0.7413822968993511,-3.3576489476807136,-0.9534472173065023,-1.6408386508659945,-0.07784986098238189,1.4506195740891847,-2.446516730663739,0.22492127755286973,-1.413824057450641,-1.3202822672433223,2.437524029219529,-0.06005104338688838,-0.6759801712482916,0.47640653357532425,-1.5654399036652444,2.7601498585518858,0.6473214285714235,0.8464552376727941,1.7300150276729154,0.5404431633939888,0.6880487367855181,0.20286863366194563,-1.2999928962136864,-0.9824384626457516,2.7366890786843623,2.221593321069748,-0.20418050941305443,-0.22193709470471612,1.9497445521843293,0.9954319220017771,-2.021872679403225,1.498604747304233,2.1383477021247765,3.588993752492353,-1.777235981008607,-0.8459076360311069,2.0718732501070702,-1.7781076545759666,-0.8837927522423406,-0.6563245823389074,1.60160160160161,0.738916256157629,0.7660961695191704,-1.8764153995470712,-0.7055720408836064,-2.367512285828144,0.07482229704451893,0.8734069668649092,-1.6744154706556102,0.7161212951858786,-0.1292780839627139,-0.8039242403597213,0.8276098901099038,2.067368277647219,0.11345435130805104,-1.2265848943403768,0.4994263346156602,-1.732590155127245,-1.4043600082006447,0.7416392306359265,2.297980666689603,0.5245989844301802,2.6360686448332338,-0.47260519539780166,0.19976421273251166,1.4282445991436798,-1.359798930205569,1.1858094864758861,0.3680387409200847,-0.6851297886712349,-0.5311568856069426,1.8233915082052743,0.9465336403172042,1.6630765331981712,-0.24304365437947117,-0.33734187099796475,-0.9872441783934538,0.6742213218536408,-0.05659487501965543,-0.6417717935004896,-0.883386632048877,1.958216202402241,-0.18798759281888344,0.08475374329033336,0.006272738677726153,-0.04704258922412219,-0.7624486210034198,0.1043379284178636,-0.2084583557057651,-1.8863744263332705,0.6064711764895536,2.7190816686439856,0.689870454190733,-0.11470734126983739,-0.8721561811353529,-0.6543928862170367,-0.35298937880172687,2.1254388461903417,0.24776239586237203,-0.6333220056226718,1.0881731127969196,0.3260134096081613,-0.35867565910484567,0.5414884779866513,0.11322255882983967,1.2104169213840166,1.8573326890553243,-0.22533874936994103,0.3357998276425578,-1.2676223196303682,-0.5129589632829501,2.4302728780340788,2.558064231256063,0.45350172215845586,-0.5686039202240201,1.15520560935658,0.7499786937871011,0.07049203440010476,-0.01690617075232881,-1.6965392853116823,1.2413279055099924,0.3822738213223875,1.6897038081805427,0.7683985686149253,0.7267521885151007,1.1915823995627184,-0.6292875276832421,-0.2799445546707302,-1.3627691469065173,1.179883945841409,-0.9913428189092466,-1.340541733325984,1.7194140013419679,0.19514608470989625,-0.20025237285345998,1.5420136884637614,0.23550430404417622,-0.0027005860271822613,-0.7615858269417686,-0.3320089261416137,0.0327653997378885,0.4940495687302038,1.2630035038161624,1.6978702859288708,-0.02109982856388637,0.9338644577518762,0.8180653929588777,-0.02333177788148566,-2.305199014650583,-0.299925682131863,0.15973165082661112,0.6777768917948901,-0.33264691905591226,-0.23839796567068916,1.821464606234402,0.0521539584854569,-0.2319641367806491,-2.1944146921288543,-0.1602606907235682,-0.46817731881537705,0.8466831523492147,-0.8502358804872157,-1.099462365591386,0.18482781114945723,-0.6375647738679713,1.1222149410222926,-1.061158363710002,-1.058894165165658,-1.0922932641915462,-0.12549500808745062,1.611146790271678,-0.14289640010991533,1.5768616874896946,-2.1375741648830937,0.7751508775815097,0.7527058952804921,2.1839895299378353,0.5576753742295271,0.2998460966937344,-0.10582290536788053,0.12712201064646322,-0.8807892718279642,-0.7151625126754602,0.13976240391333494,1.1782704385635334,-1.1088415523781703,0.3809115051369272,0.8177226690895489,-1.7123015347098813,-0.04045198349558188,-0.21313332973614818,-1.4410468543001542,-1.8324463707686367,0.01397194433576665,0.4749797435109393,-1.5016267623258583,0.23432427091274466,0.8365254619197682,0.07262366972988765,0.8345661093588586,-1.7549687205890452,1.3608700552237174,-0.2946490618485065,1.6755415539881247,0.5100082259391403,0.5537974683544222,0.7135299384139593,-0.34750282851140346,-1.2569945665396265,1.1306395094174526,-0.3275493354267689,-1.3117870722433422,-0.9356853895478356,-1.4917909825818865,0.3017484489565625,0.9728118761773485,-2.4475816556678742,-1.9067191870754008,0.48012570563928936,1.1265239929338922,0.4782359679266879,1.7356855815544137,1.8153294486777272,1.174884437596302,0.40793016235620705,0.9452615042929491,0.06439495572847509,-0.7695607872580057,2.2482233091036807,-0.3118475646819441,2.1526470666207276,0.07526016661043577,0.0855764742492493,0.023319082782746747,1.217490415500988,-0.5809489686236291,0.40929801529074883,-0.14100394811055184,-0.08728915817308724,0.2620962561348472,-0.09738845177990063,-0.2514045304122581,0.2854718000154355,-0.9283479509668124,0.2510871816111093,-0.5783779596684635,1.3972211401116708,0.44566247470738674,0.8542213835836421,0.7964199029126373,1.271728497253366,-0.08668945360876812,0.48340315823396374,0.42926925543989025,0.510956077429503,-1.4859712581875129,1.1635407363302486,0.1495941339480611,0.6121749351094552,0.15089563862928923,-0.0486026731470246,-0.43277413080476945,-1.6922250439538988,-1.0581484885367254,-0.514648658147765,0.11860300797417178,2.0667926906112077,0.1975552537350378,0.6777572396795994,0.20807833537332954,0.05130084279956204,-0.009766578767467227,-0.5640750146512996,1.419415043834893,1.9830988643792846,0.13058549788689255,0.4149574372228626,0.5549258524605527,0.12211445882159833,-0.5957546616629616,1.0240437932092172,-0.6656545603176411,-1.9586174465083483,1.1775427488788015,1.6900540438039346,-0.13053308780681672,-0.20072353833586742,1.0290231296335328,0.18518947197851965,0.9843110977610259,-0.3912595812836095,-1.5597004640051426,1.089721152724299,0.29777018604864036,-0.9067685438770123,-0.7548133869057283,-0.40016849199662197,2.9275627922276115,-0.2944734859725684,-0.05265808874032052,0.24052227694422168,-0.5324497257769734,0.8569393709651596,1.5056947608200533,-0.356814254617277,-1.7949641908022063,0.6283683063868839,1.517810342077075,-1.4434841171848678,-0.3712814905926787,1.4335032808248993,-0.7686065906324702,-0.2521294718909717,-1.188686979095499,0.8204277286135708,0.24915424705129752,1.1856716145655088,0.47321810847962276,0.1143831161549258,-0.3629194856400342,-0.32377012321251897,0.34061174772173075,-0.18434008497628662,0.21170694353731534,-0.8630183166647876,0.22443381469474666,-1.5290658222121833,1.1783893049111205,0.029513928303859238,0.36995006808897557,-0.8728489699929898,1.5968246002235453,-1.5941801199003125,-1.6451046158760585,0.009279450656518584,-1.2201345395499996,-0.5706368589141309,-2.0689166528896408,1.0056674303629665,1.492287856358332,0.33876773237349056,-0.4829898478347472,1.5431735186712148,0.40603248259860614,-1.8856152512998325,-0.7230504722202546,1.276333270070218,2.0098383696416144,1.0953430697161703,0.015900056785911332,-0.059047965116276746,0.21815207017223948,0.23581696975194522,0.2307379088811512,0.6432246998284707,1.5630255869755194,-0.20313534996687643,-0.04867472012036744,0.6972728882592705,0.19564309423840687,-0.019745502413348603,-0.44984749072873864,0.9456421108319013,0.3777704989627706,-0.7048381482770649,-1.0713346770659826,-0.1860259107518636,0.5369306205764257,0.27365215280383826,2.015978167572685,-0.03451772269323916,-0.08848220644409599,0.4039225851045547,0.6862724006626131,1.3097730866202362,0.5420225666983081,0.5181238462829363,1.2249838268745261,0.03092400940090112,-0.7708002720471452,-0.2679294660103526,-1.2953475779915902,1.1435564182631586,0.2065167508031207,0.25813435476820246,-0.5190922115404617,0.586504143098665,1.0499667994687822,0.8337098032773493,1.0426849136526473,0.23782650757819823,0.08645996702456582,1.0426502199811116,-2.1930173373628015,0.5874819588152835,0.26878460854451447,0.038294870502864065,-2.9354877704799165,-0.47325487265706956,-0.886358422490563,1.4897735880817997,-0.3524630950406338,-3.5870334151720695,-1.1027666278216608,1.0255962642110594,0.2008769466703919,-1.3731407630954928,2.9593687845605787,-2.422145328719716,-2.3734934516816852,-2.9816155988857895,0.955509107196173,-1.082974996018471,3.0590887135726996,0.5222398285982255,0.21535933926866146,2.4812796313527397,0.032426823468378885,2.5263112398158816,0.12857805320178883,1.3136012462370728,-0.20986140835704825,0.4664140257360616,-1.5854922279792683,1.0845530167421291,-0.970833333333343,0.2987335380990386,-1.1347428475543153,-0.1463880343693602,1.1919432286576104,-3.036092972473592,-0.2598471232758026,0.09335446473155429,-2.6787263577997655,1.2859658115848216,0.924173744664003,2.1715431910347416,0.9816055652767774,0.44799459025399724,-0.4417890352168885,0.05282731806270924,-0.4329552894464572,2.5284235533683974,-0.19033432638199121,0.12436779703175471,0.48236170917521637,0.09271277582050264,0.7513070684615819,-0.555703107442751],\n",
"\"y\":[1.595540873408866,0.9525922950758543,-1.236445812615917,-1.6686804887846691,0.0629931134923461,0.4606044169690775,2.097968276688601,0.5756099463451633,0.778278640819739,0.052749085604504906,-1.2360163698915378,1.6621421550557423,-1.7542884461725252,-0.3941073100738717,0.23170631715003062,0.31052062998999935,-1.2357612111751848,-0.5616530942081329,-1.0861825232175324,1.2309658784429034,1.0202609857280618,-1.623177307997508,0.6639809501025671,0.5876002606518258,1.8906984688667627,1.0922282598215343,-0.8369929455833717,-0.561275515051489,-0.3604915630358887,1.2840448761577523,-3.962294480951084,-0.963790278221536,0.5081752845068741,-0.7153038675795441,0.7734678849471865,0.15373779347018438,0.03229546022085583,0.5913663138134462,-0.7458777917684177,-0.5094057494590537,0.3904975108324871,0.8289117892561538,0.444177017815521,-2.43479248907909,-0.03226764918065452,0.24994290029556676,0.9432127379183138,1.1564401949883234,0.25531903960714974,-0.6067891362664758,0.3795631656517488,-0.645604980291868,-0.5480408597598782,0.4357402239693414,1.852747096718404,0.5505975721666938,0.9228984556915933,0.07636170966329105,-0.7514788675333963,1.3592650530931663,-0.0876234040277688,0.7999441540007401,0.7492806027249422,-1.286000222705168,0.0667216193261349,0.4003175114135432,-0.22383136129865622,0.8820614320846062,-1.460738916619942,-0.31640127606339413,-0.424254952220245,-0.9028033809673571,-0.2585145020762353,-0.33845975990742655,-0.07567938144643349,0.7382915935640589,0.5662996390347639,-1.4480322277576256,-1.1690491094100341,0.1447841684412011,0.15440138516768614,-1.0218119867169155,-0.5049428230496539,1.1292718530772405,-0.7774683133016518,-1.1239621095294812,-1.9096524452921717,0.9967731710914864,0.49235262006508707,-1.087958609907917,0.9972452817746134,0.5128717326831309,0.3896717675769165,-0.833252860479719,-0.36601032495722763,-0.38073134891039606,1.0504901412872758,0.41634488486120463,1.3164751328545972,-0.006327681778112312,-0.43885238841287955,0.9410841342778081,-0.35366425298808407,0.10421595968579447,0.46961382156,-0.4140480465105441,-1.0855186533632553,-0.027251346567208165,0.6985327856695388,-0.2362992098162109,0.9725923628796959,0.7948182916092765,-0.3674851262925256,-1.2104215718469442,-0.2499330715564992,-1.3935347833692797,0.29016675960112714,-0.07399798333986046,-0.7393602659123041,0.7706833840465207,-0.6080539937693789,-0.16513783824692185,0.40527307309815325,0.3218791798212327,-0.9533773981945213,-0.4784588248715759,-0.8665485494142127,0.1658329952102955,0.21690623768597303,0.5689024823806202,-0.3309706371970287,0.06484970985227285,0.3817897721405778,0.5126517722654387,-1.026400351812928,0.13601385670828203,-0.011706692966614057,0.030799724673614772,0.059676057304780664,0.44715004186007873,-0.022313763509141653,0.14710111025427078,1.05588409048497,-0.29427620408869554,-1.4384958064486306,-0.33944642771616274,0.09632424018896953,0.5065692018501555,0.3886255337459972,0.2253811483349711,-1.116970491311606,-0.09999447546124554,0.3772132479959293,-0.5551727584059759,-0.14237632680818266,0.2284609178483311,-0.2590806591847033,-0.027125804495806934,-0.6213817271543274,-0.9717604198637292,0.15624376925261993,-0.14767678867440476,0.7207592332904176,0.31202292874103427,-1.2820728970779973,-1.3512864941474605,-0.21142579278100135,0.342161021276737,-0.5914785028124945,-0.37200189701110764,-0.003982350530584142,0.04335374853636083,0.9530667039481121,-0.6381235515921626,-0.1728477583187824,-0.8809702566363458,-0.38197836069397,-0.3594220945698933,-0.6111806848187722,0.375028117911265,0.18581904262168056,0.7722920952524448,-0.6048446374901555,0.5711223638204849,0.7602534149452808,-0.8970617157725422,-0.07149674014841179,0.14265663434585962,-0.8009792073244154,-0.09335532025587498,0.03565980373874626,0.4466827404423269,0.2140178396279294,0.01645092624802237,-0.23338707767150807,-0.6498633609734494,-0.8853933360239447,0.04562509268209618,-0.4715970171266273,-0.4088786124026337,0.046833947873412864,1.2827253873935567,0.19664110272371343,-0.052315783883061316,-0.3328963839636228,0.21436338557755813,0.1633168247629786,-0.9523337609433167,0.005949809708621391,0.15983217240441436,1.2227230377250875,0.12099657595160987,0.2877685592697097,-0.4243783940195707,0.4946968582333994,0.6296814333562101,-0.06590821783717093,0.3795111910443855,-0.5736102921114528,0.6089354463584764,0.6077091245316681,0.6257985470487406,0.10216699250051989,-0.8384226691240839,0.11159183154889021,-0.8198533744917996,1.1919374074706681,-0.3856355063483389,-0.37347898775732513,-1.1486823664179058,-0.2678477102105537,-0.12820374152141753,0.09151230455167064,-0.03465394339774868,0.5112450053814365,0.4215392194822205,-0.04150015845310583,-0.6039707392193896,0.6347613330421619,-0.1721099086821339,-0.40869298832714085,0.9616037602609929,0.05610649240200906,0.14963314204430173,0.8146884042550829,1.0266758959203002,0.026629726432459356,-0.223058591700955,0.84749933581563,-0.0927161976890637,-0.41887684579416934,-0.005136874253001716,-0.41781563284627726,0.9847129091749923,-0.7028692638371113,0.19378321084783365,-0.8732997802656433,-0.2420305112214315,-0.26574738176151874,-0.3522607376566258,0.2224095554100872,0.715003092506005,-0.5781731570290334,0.2116024624756442,0.744679485443292,0.5409775160462296,0.8421721389521559,-0.1292340823049199,-0.4926914875882851,1.3598418314767347,1.066903099494401,-0.2258457172795349,-0.5759441353272984,-0.22482220871413328,-0.9058746328292333,-0.9490108731862105,-0.6021368333977987,-0.18674359403707907,-0.47776981808058133,-6.800868340260321E-4,0.4510020912908477,-1.183472286059111,0.20309816225337826,-1.1317068467720153,-0.006564838103170587,-0.012152295643565632,0.021567184578802308,-0.6252128312105997,0.3488472733915363,-0.18748444245502485,0.11056685288754278,0.08147416599076658,-0.10775789610227846,0.08694408567440863,0.1703613634471966,-0.12041841995337307,0.537003455950108,-0.10179522625817666,0.34745477872426644,-0.7225575234809556,-0.20717994593200834,-0.4284612062452914,-0.3971551100790522,-0.6545889403258123,0.08114935755084499,-0.22762083177345543,-0.19830114744960314,-0.24254388094075585,0.8390200942391791,-0.5959929249962567,-0.04682516193700515,-0.2973654401046377,-0.04753007520632522,0.06052102073393183,0.2685936939274191,0.9507300500551109,0.6073052555652804,0.3129380912821217,-0.030039931545401986,-1.0852069073164026,-0.07280158002978251,-0.332885740101147,-0.07850102928106795,0.006411869181726707,0.039486844943735236,0.3397081022210055,-0.734578054377355,-1.039877152055454,-0.03652981687643302,-0.19054966509630147,-0.2663585304886602,-0.0319417827892872,0.3568662453056879,-0.5204394155437887,0.39472501507923613,1.0950119278809256,-0.6035766122353584,-0.8811599491836555,0.10489568744668196,0.14291182420832035,-0.5231362942938494,-0.06610409843681567,-0.4989196279846276,0.24610882910181117,0.8789528707146617,-0.556011198637491,-0.12707939907320698,0.5253157450866285,0.4430146915171595,0.2509340206415482,-1.5514121198023232,0.19368811648013268,0.06271749094687354,-0.09607312506545329,0.3225794002692335,-0.4299333064987213,-0.7813083644970452,0.22745275495673023,1.0063750192485026,-0.30613599810041414,-0.7878703339749737,0.8160084601665489,0.23528841375729787,-0.7422084419885698,0.45048528495693135,0.17075400196413495,0.6780067409145766,-0.4101580866708397,-0.10074832167182288,-0.6079793204005518,-0.22210446535228728,-0.02775437869155077,0.2307594340814991,0.20955558790360088,-0.1502829923735846,0.13403831507921216,-0.08046633457796712,0.5016200057301142,-0.08735938727704348,0.8623607171771527,-0.6040351189076829,0.018211968979347445,-0.16617303996597504,0.5069444260545929,-0.8306655692409504,0.8976275380536681,0.925208962434613,0.029171247111110438,0.6950391826505558,0.34326208950879356,1.1547515318140265,-0.5104865185630887,-0.7740469961809084,-0.14928424768480042,0.2957912336469463,-0.8016073877030067,-0.18571578394822816,1.0554729105925535,0.4258114494873701,-0.657082950149688,-1.054359644778172,-0.5590561080748098,0.025585433568629107,0.06617833800466202,-0.08395710595430902,-0.09352466440764531,-0.09077377349257881,-0.3141824300666304,-0.8123595475476777,0.1442180953622546,0.060560042389601776,-0.3434556902838971,-0.07176592751030053,0.04489157056091535,0.2778408661703391,-0.4779759599435858,-0.17040869549165202,0.41594739828734245,0.6144470810232252,0.1349513820670655,-0.25661205940594184,-0.11401673252319447,-1.0576850458274187,0.05289241315703086,0.08212033774051383,-0.1845730337438581,-0.337497671240464,-0.6751944258514068,-0.25936992915450907,-0.24642604552232028,-0.6292713683682967,0.01744824919373418,0.451673413712954,0.1793115013497083,0.73577562377755,-0.5851691368170922,-0.07765525308019638,-0.10561207451180224,0.31534478239481784,-0.2834617775336465,-0.5344796809047946,-0.41735184540996495,-0.5305357089686942,-0.0946130584021945,-0.012630807776216085,-0.5305169183874695,1.2219662106996105,-0.2839913763000095,-0.11138040198448115,0.013456086989456991,1.6240986562688393,0.29051863395658567,0.5142613358315153,-0.772685233064478,0.225096105636337,1.9769849555926364,0.6314710683264323,-0.5212802557076524,-0.07460065571541763,0.7779095086827251,-1.5686386932928191,1.3460651584865149,1.319714616536044,1.6490821379244995,-0.48332006416835477,0.6207516417421186,-1.622648411575175,-0.24865531952508163,-0.08244452355643805,-1.3096988731946033,0.01663430392502696,-1.3340886266871075,-0.035442556556615844,-0.6772678110262007,0.14786102333465317,-0.21841927829098373,0.8929220534050969,-0.5532120633873249,0.5600141375206451,-0.12760116411419906,0.648789839374549,0.1134829498495733,-0.6113761149394737,1.6785878508686214,0.17493399067076035,-0.016364964855364567,1.4850330582282607,-0.6623000703251708,-0.4663483904076136,-1.1419412539395655,-0.49745427347900756,-0.2084430525639738,0.27347629314769867,0.005585108676135653,0.2686918119996931,-1.3352326854627763,0.13728488066390274,-0.03316222250611272,-0.22705676829260868,-0.016017417101829773,-0.3727213634472841,0.33517375934391846]\n",
"}\n",
"}],\n",
"\"metainfo_list\":[]\n",
"};\n",
" var plotContainer = document.getElementById(\"oFqIQV\");\n",
" window.letsPlotCall(function() {{\n",
" LetsPlot.buildPlotFromProcessedSpecs(plotSpec, -1, -1, plotContainer);\n",
" }});\n",
" })();\n",
" </script>"
]
},
"metadata": {},
"output_type": "display_data"
}
],
"source": [
"ticker = 'QQQ'\n",
"df = create_uw_iv_rv_df(ticker)\n",
"linreg_str = create_linear_regression_str(df)\n",
"print(linreg_str)\n",
"p = create_pct_price_vs_iv_plot(ticker, df, dark_color=False)\n",
"p.show()"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"**QQQ Spot-to-Implied Volatility Correlation Chart (above)**\n",
"- Less tight than SPY but still respectable R<sup>2</sup> of 0.3341\n",
"- Slope of the linear regression is -0.5416 which tells us that, based on the last two years, it is expected that for every +1% move in the QQQ its 30-calendar day implied volatility will drop by 0.5416 points\n",
"- 30-calendar day implied volatility in QQQ is very similar to VXN (though of course VXN is calculated from NDX options, which are much thinner trading-wise than SPX options)\n",
"- Not nearly as extreme a reaction in the QQQ/implied volatility relationship this past Friday as QQQ was down by -0.56% and VXN was up by +0.75 points\n",
"- **Whatever was driving the outsize reaction in S&P500 implied volatility this past Friday was not as pronounced in the Nasdaq 100**"
]
},
{
"cell_type": "code",
"execution_count": 5,
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"Linear regression (y=mx+b): y=-0.001678x + -0.040973 || R^2 = 0.000003\n"
]
},
{
"data": {
"text/html": [
" <div id=\"0BttO4\"></div>\n",
" <script type=\"text/javascript\" data-lets-plot-script=\"plot\">\n",
" (function() {\n",
" var plotSpec={\n",
"\"data\":{\n",
"\"price_pct_change_from_yesterday\":[null,-3.9234362951875656,0.2077235388537435,5.775935173843405,10.787457687511125,-2.6332716893141317,-0.21470746108427363,-8.842636653287538,0.15887426236949054,-1.9397235440743343,0.9289642741600046,0.9891015660774771,-5.0920467942323295,5.6471262720366955,6.272328494550727,-3.7957446808510653,-2.2425690021231515,5.25315596579341,2.1408305390766103,13.085016835016816,1.4998697383601822,-0.7920211205632022,3.485363690124177,-4.457302046501654,-3.854061530410091,-3.4875583203732408,0.08459896064134664,11.53598454355176,-3.7748105377120145,-20.552055205520546,-19.58081570996979,2.7236440478985546,0.10285714285713787,-5.297408379952051,3.393610608800479,-1.21844575292952,2.620396600566588,-2.1624108580630352,-7.582882671055735,6.271466734512132,5.572180991141984,3.747377969272647,-3.4590163934426155,3.0169242089771675,8.84065934065934,0.4492907264374679,4.00040205045733,-5.446023001836275,-0.07665968211785223,-1.0382569558101462,4.6927489792754296,0.3356864293824202,-3.4883148831488353,2.8803017944535103,0.45587433724789683,-7.265821536033146,-7.5797872340425565,-2.037410071942436,-0.7990129839609894,-0.017767249037603516,-1.53417841487975,-2.141611020874701,-9.178090612897282,-6.531744957357521,-1.0572814830907329,3.615604186489052,2.436956982411531,13.818783616052954,-5.1496425542227,2.4846704138988374,9.074478030539112,8.565224844294605,2.5052631578947215,7.912302320805087,3.2354760432031116,8.733926349264864,-6.243641912512709,0.11754600117546143,8.390155791375031,4.243219597550296,-1.0850668425154364,-0.6707070707070772,-0.21151968760169115,5.31550627751507,-4.904009908654594,2.458382514550861,6.43149406109722,9.036279486413857,-2.5228494163557436,-0.9516786065458693,0.6452756603439136,-2.786486772113994,-9.755036961878538,-2.2767426919370393,2.4160742901754517,8.782347041123373,10.053846721251002,-4.815683646112601,3.5277963595395034,-8.206087400102025,-0.49644339063426024,-1.0536897758582242,-3.744120413922869,1.1141516810007746,1.3995747148656479,-1.6624089678575538,-1.9464154162304625,-2.3646644786270765,-3.8313555546555356,-2.5310591703516683,0.5530591081921887,-9.410450326572695,-8.922303386775454,16.223113379511478,2.827567664455999,-0.8367106811347891,5.945945945945952,11.025385764061713,-1.3823507434805204,3.568722533717228,-9.70078279318165,6.671797780118283,-2.5291459385561765,-6.899910390774144,3.8918647472380385,14.408281640215904,-1.6899623279231113,4.687891702181002,1.7344006568144499,0.5346514677695868,-2.7225901398086783,-0.2544354284142458,7.817993795243017,6.256793912654257,-2.864450127877227,5.54161633057646,-2.045667997182443,-6.208239700374529,5.373286905408414,-4.5869334546005724,-6.35803253685816,-1.2520783142750513,-1.9551920830183422,1.955630322784141,2.939053315458384,6.404862085086482,3.05674114988701,-6.367622875936418,6.68032653592221,-7.243681595073326,7.385373870172551,-9.80962291870715,2.9728170495809003,3.8493227433015864,-8.803275046809055,-5.6964888471308655,4.243542435424352,-3.2070796460176965,6.264628437682851,-1.029011942044944,0.24341052924403694,2.0258082419869483,-1.6285869713042245,-1.693567898247672,-1.2094364166930438,1.4626855048222476,4.970185899684321,0.7885855581916124,-0.5602890959122142,0.730146029205847,-8.529440969119262,8.127080619481841,-2.6805434709858855,0.04126405556892365,-2.9560375348021806,-1.6399249105656488,2.203817068779257,-0.3311958283419125,-1.7533936651583648,5.56635002878525,6.820273356283457,5.714741544352275,-1.231475053575204,0.574519451150568,-7.100969280787572,6.260221102897878,0.22469835016005746,4.497711986732589,0.6362874902646531,10.344021961334038,0.07145881854753178,-0.41257835021554223,1.112734032664986,7.083574092556599,1.1258002011233392,0.28862478777589295,11.690730126484317,-0.6430937790961933,-1.9570239288671964,-0.9080199164221536,1.638645565786967,-2.7080114764952645,-0.9482113286300775,-1.3088285812435596,1.3656351886015328,1.520076919554958,-3.9033960221891317,1.9852164730728594,0.7523987022848067,-0.6622819037179095,-6.356614097199875,-4.276630741659093,-3.3187145751583658,-1.6314295567286585,5.032091041475639,-2.988600184861867,0.044992589455872256,1.666622576122312,1.176133850277128,-3.2610652470231205,-1.7227170011963389,-6.189303973814475,-5.239482107327198,2.017527843710054,-1.7121551081282549,5.125792843919763,-2.8406466512702178,-0.1515331590206892,2.475822050290133,10.787815431077053,-2.5791570559865806,-3.8070383125269003,-1.6921656923894357,-0.634459997723924,0.41517537580531005,0.6757912745936734,0.9091681536239182,-3.81722240934097,1.4824325901716007,-1.7023234414538901,1.33395740697404,-1.6224018475750501,-0.04695111215448078,-0.39927191591802025,-1.706655662323886,-2.2220889435331515,-0.9967490645893529,1.4838449862147884,-3.144078144078133,-0.5263157894736858,4.210626366314996,-0.19457618873890414,0.3685877909101798,-5.511548150171475,2.9133074229916733,0.9425717852684201,5.3212540968400335,-0.05284326101635539,0.00293728888236533,-1.718263525818009,-3.290397776515941,-1.6625463535228646,2.3819998743007886,2.9496623695518753,-1.869353925046946,4.013489700431427,1.6620417701183055,8.461671072290544,12.551325862936768,1.9653070350931001,-4.563501223396893,-1.6180916676744372,3.3090766053692544,0.7543667602684323,0.7746994496799608,6.318700635151275,0.07054207173247118,1.2512391232514464,3.028522942366685,0.2006123957343675,4.124341412012633,3.058271095188947,-0.8444950705055132,-4.927903660275712,5.40624999999999,-3.3343215732779874,-0.5847714075406962,4.588457899716181,-3.0460346488899392,3.009897777056625,2.4336457430889302,-4.778563739812403,2.117566312729635,0.24314547215686932,-1.7353579175705014,5.896046558298229,6.735142510612491,2.5354213273676374,-1.4917748917748885,0.38760030586146854,4.9554360958868005,-7.272393600160165,0.45340050377833396,4.957730333858712,-0.6194539249146702,-2.0536772155159144,0.2612156168370072,-0.10491344640670697,0.37983546297917226,1.478717282508235,6.407766990291264,-2.4788450358503966,11.06492904336882,-0.42194092827004814,-5.429119003413785,8.475032456223675,-7.8946216157045885,3.921972554115305,-3.7709092572543956,-5.240223109589904,-3.464825002926375,-2.0128531587243814,-5.2132868987218695,-9.446454548845551,-0.6982060840730719,3.4969096113162124,-2.4849699398797664,-1.150842581175493,-2.2474012474012484,-4.253599608668834,0.17770274772872519,1.5055766203241783,8.021320284853006,3.9049544994944396,1.1093594908623716,-3.5225500952820843,0.45290397238682,-0.6713275601811453,-1.899620075984798,1.5083571137382679,2.01004016064259,15.708352197791363,9.95389666729045,11.016214878078955,-4.390121529713442,12.224133407189285,-6.738712526627532,-2.5682451253481786,0.7747727142775496,-4.564668501234081,5.997324613555288,-3.6051321601346165,15.861747934365166,9.456609079951805,10.455379674237196,6.219429876940663,5.5287239450940495,23.58924948350458,-21.214233776358505,18.572611107410953,4.317891848083399,9.659082167966627,4.113384633730588,7.35196027569851,10.845074842313362,-5.056195679868647,6.292154933357175,-15.687066585874899,-5.673560648406939,9.101940035273358,3.4121770167860888,-4.770241794796437,21.864740643466817,1.1309267241379484,2.2466821879711496,-11.181975447591663,-3.9787393814239347,-3.538130674389328,1.7278617710583033,0.5796614179601756,-10.920998873358013,5.141765114662955,-4.756806059524521,8.67302327518007,-0.9061302681992234,-4.654564669643846,-9.712215628759512,-6.127047339581393,-5.261437126703505,1.6926897016118714,-2.8183353198251937,12.767117220703339,1.1049765485154905,-5.451054801888489,-1.9957808907535068,3.383558662055286,0.8258082627614183,-17.629179331306986,-3.4515459658413405,9.83691053906075,8.28655416054258,3.744858995429312,-0.8953271175353272,-1.9348681856137473,2.4750227066303365,-6.580988256148901,5.546896177825977,4.147003114064662,15.862765195009354,-4.2228976966617315,10.036250503479206,9.00852003786683,-4.1580787846506535,-0.5086322504258778,-6.249544626593795,9.116814652185457,-0.5632582322357083,-3.3813829945981366,-4.8001482671279465,-1.0713822193380795,6.751110207348021,0.698041673579497,3.412315334061522,-2.245838471932915,-3.647766851982648,0.23305350206739295,-2.7770138506925224,3.0974162482561685,-7.469741280936837,0.7857778257001957,0.7836634259197339,-2.509852314796379,-0.27425600402878336,1.2529002320185612,-7.522106000970508,9.007032758809164,-2.5412170564403036,4.642149094825521,-9.697128622000783,-0.835583819728769,-3.351464527039394,-1.371014778175872,-1.5644079902310981,0.6912586212277194,0.8670520231213841,0.3034330181214795,4.046809423153497,2.811800730184899,15.35840087058622,3.290551611141468,-4.464339361893899,-2.191194968553467,14.361223282491832,1.213944335113859,-4.35089356643279,-2.8505549521713025,-3.9588925622799254,9.103188979563882,-3.871718652829037,-4.794492091284097,0.6464805151894737,-6.357003047496335,-4.2214299415931915,-9.598823196292795,4.599694423223832,-8.936540048641184,9.066848458114452,-0.4559158761673676,-2.8883799955677025,2.981895633652809,-3.7006943418525617,1.19659430850656,0.8413552641552302,1.7363199037883303,-1.2264499445881039,5.78203306156031,-5.381134210154137,12.10671848142888,-2.0731951203252996,-4.690265486725675,-5.656738804371109,0.35581800287682874,-0.105612552806289,-7.627246639480434,2.0683453237410054,-4.229074889867846,-4.407460065233748,9.203849518810149,3.861560647332163,-0.2776920703486452,1.1525371287128827,8.182304809971708,-4.905633703258639,-2.423251319408304,1.0665041517482932,9.037461370317335,0.08295313148072303,3.5847492747617116,2.607188104287528,-1.2607226410189742,9.240489666973794,6.169418002168947],\n",
"\"iv_change_from_yesterday\":[null,1.2810804417050434,-1.16575116329372,-4.01039853469328,-6.52348695358846,1.2508297189877027,-0.1618451931385465,5.129406169065604,5.167156976562396,-2.193961516861151,1.0388367193816919,-2.786642715813386,1.5025405935473515,-4.046622971094109,-6.570303141987509,3.9033593438245617,-0.5305523271566983,-3.638219722168458,-1.3811106237742479,-6.400153638702349,4.43659118317035,-0.8363322342211035,-3.5521284461216993,3.384887203179602,-0.4040119732631524,-8.182548327774242,-0.2945769964623537,-2.6387732633469057,-2.8356336334534973,60.20094889596679,33.13927748208971,-8.983742142763589,-25.581328862909487,4.728254719704864,-14.19170502460797,1.5378142705687736,-6.997357211064795,1.2676909816243551,9.218660460983202,-2.339518475127605,-15.558938131872154,-12.835127152925295,9.79528679984395,-6.185335757899395,-6.442505901930147,-3.27876844709445,-0.7928653444935634,0.926428215481863,-1.1669965714044537,0.6589691253564922,-6.0712379389800475,-1.7265766052158966,7.686929766016647,-6.329110302581498,-0.3900760996399981,3.0627631396867514,5.540592445597042,-5.8636945849241044,-3.707693872228944,-3.8043760334170997,1.1530059973335085,-2.8158280846581505,15.020094741772354,4.8208356190109924,-2.8796481731444032,-8.175519316411538,1.8613951555981316,-1.5392537579993473,1.892762879161154,0.5279292551197443,-1.580386495166593,-3.6457323962761023,1.1365458231088041,6.318107807114345,3.8231196324820047,0.2803976886486055,3.8407665190445925,-4.275466309490042,-7.716174723109205,-0.0872153586791029,1.3381671217810123,-3.4935150267667012,2.063573959886,0.48074139214178047,3.1690743225505145,-0.94089635762856,-3.582378180571098,8.975103876587553,-4.798315045287211,2.665744751619272,-6.146697962744355,-2.1492675638904046,5.522583656845043,-2.302125834074843,-0.35286374269520593,-2.4420796107641394,1.2846333690898888,6.886976081897956,-6.199286362346442,7.691484772079292,-4.972978266632197,-2.294387254078103,-1.765832530526609,-1.3940670498020467,-0.5353565480999549,-1.1583006913133858,-1.037956063613052,-0.9460772870162941,0.9356960212627996,-0.44132465297960266,1.4926252254333008,5.452206991312337,9.4521685250279,5.762828879408062,-5.202446792744553,1.8014796447481558,-8.567920580032663,4.161999821785955,-2.9596676782682465,-2.689781384978346,0.9260124839208856,0.3298065500982119,1.5954450398426445,3.8919907157886513,-3.5342072434420544,-4.301781843120793,0.6666103141606499,-2.9371900487515035,1.6806301374467978,-1.7349160440990943,4.988979953140884,-1.6603545417070364,-1.999981132803157,1.339912039854653,-4.047860049058102,-1.289402269276792,-0.5891615283343583,-0.8927783047567459,-0.6982101179749947,-0.7868413457693606,0.6396731957267008,-4.905955198276644,3.014782249693539,-0.3140904024663911,3.0492140372937513,-3.0965142925973055,-4.848724386713798,-0.03744857129319712,-1.604011345341803,0.030777174488449077,-5.374554685534747,4.865530061424593,-0.4418790552009,-2.539112089135344,5.191006463573302,0.9980328671387468,1.5198455995340936,-2.6058063432328,-2.4152555946347434,-1.6586911185626434,-1.0221648705196031,-2.1181773603805,-0.8143721268009045,0.8777426178625518,1.8560044345065023,-1.6875105144072506,0.6675434266659437,-0.06429075030193587,-1.0484593032113025,-2.9243289672587593,6.1419503398446125,-3.0107355827662587,-1.3919371678922943,-0.799832208941865,0.9550964294604682,1.4812377185237438,-2.758209940800242,1.0027900188376861,-1.3789501055514393,-3.438682623072708,3.6940720235712448,4.399417092028408,-1.8091552347926125,-0.5416839367239845,2.180594523579444,-2.1261267100883003,-1.2917907607775447,-3.554342180418601,-0.7071737610311999,6.1131362060873045,3.5556969122932855,1.5807988574550649,-0.9339436127492604,2.1145505634623447,-0.7895975566815991,-3.655565849245292,4.871926438044341,1.627363750675812,1.4512816920670133,0.6225466728210449,0.07076561450958252,-3.278955817222595,-4.756492376327515,0.3948807716369629,0.6876975297927856,-2.7799874544143677,-0.9105026721954346,-3.4428298473358154,4.053783416748047,-0.5298972129821777,1.0848313570022583,-0.49819648265838623,-2.4218499660491943,-1.1748254299163818,0.32271742820739746,-0.32962560653686523,-1.8242895603179932,-0.8582890033721924,0.10523796081542969,-1.0349243879318237,0.7298260927200317,1.5449166297912598,5.380135774612427,-1.543194055557251,-0.999721884727478,-2.584969997406006,-0.6193548440933228,-3.4352362155914307,0.24894177913665771,4.764896631240845,-3.415977954864502,0.7557898759841919,-1.962369680404663,2.0746439695358276,-2.5189876556396484,0.5411744117736816,-2.3476332426071167,2.5690704584121704,-0.8783462675476059,-0.3030420000000049,-2.4771929999999998,-1.3755899999999954,2.8627740000000017,0.8872629999999972,-0.34975699999999676,0.10069999999999624,-1.6765200000000036,2.0832200000000114,1.8889199999999917,0.7532339999999991,0.020790000000005193,-3.979450000000007,6.166142000000001,3.772598000000009,-2.618864000000002,-0.4917650000000009,-2.698588000000001,2.0248029999999915,-2.671919999999993,-1.114933999999998,0.5639499999999984,2.0807979999999944,3.100266000000005,-1.0710499999999996,-0.81053,0.36944399999999433,-1.0973339999999894,8.597938176230194,6.765512847134559,2.7363451128724847,-1.8662666059500452,-3.203577509873753,0.22586064784165671,-3.0087747696777,-3.14299361632726,-4.351246429770086,-3.1776242938700534,0.14001743189935212,-0.9745181973030554,0.34414953677271143,7.944915137881445,-0.7712561226738615,-0.12563549997669554,-2.012549411470445,5.349807526843989,-4.57126005125734,-5.191560276489405,-0.5656903975595426,-1.3071061611826096,-0.23047971779480037,0.7528671882529139,-1.0717055470910637,0.941618141005506,-1.9059776422739603,-0.26470023462958636,1.005093209146942,10.62076304890411,-0.9533751322541093,-2.5328910960597426,-0.6685880721410058,-2.4402373653114395,5.2776760098888005,-1.0261764845185581,-1.4944614796507523,0.6473999392531056,-0.9064701688520103,1.9804541980653454,0.5438797311630168,3.2642974555088387,0.7802442813084554,3.142261011003015,0.35660904686068307,9.655284552120804,1.6667378909051394,-5.4924184641857465,4.247786219651303,-0.3746932124417981,-0.31611972068554905,0.6347795963711889,-1.6763791190524984,-0.49423568078879043,-0.7804901912604407,-7.971616945601369,-0.14272061339688946,-2.9365567756427566,-3.4508509133461445,0.9290925480237462,-1.7346629589272027,-2.1071702215377,0.7380154792391096,-1.3809628649746486,-0.4296171534296036,1.7654013362964491,5.759940070757054,-0.4261987817752555,-1.8631273825945982,-3.9809697057852986,-1.6429128780417557,3.5937235515477965,-0.42009328000708024,-2.3848852681379213,6.425200969160301,5.901617916398109,9.623795366305345,-5.133089384592097,10.103299372387895,3.416682045554353,-5.481551542971943,-0.6145998645054931,-6.2253747271537065,0.2808846370141964,-5.3098787593093135,16.059827026667705,6.678968084668156,20.767253496410348,5.715989907677326,1.7159980065504215,34.07222041303007,-16.769942222251302,2.5892960428792833,-3.9187669941048,7.09147805140006,2.7899939122138164,1.2632925592061213,-1.956875703275358,7.741333268698526,-1.960595104308112,-6.905289809234688,-10.764958584331453,0.7916541871901472,-1.8645948460935244,-2.2558213219522827,11.969707121895198,-2.245701109639498,-2.521306990437097,-2.5036507703257485,2.3231172009628835,-3.146792649231827,-4.0272387356517925,-1.615712233069445,-4.162486020224662,3.2314900352136817,-6.816474015535334,-1.7192220652478056,-1.300132542491113,0.053369489588803276,-7.757319500862337,3.879618171695654,1.9183914951297112,0.20899123667928166,-0.4260250554759324,0.011494116701044277,-2.990931802237199,-2.7913732753282545,-1.1497204790144053,-0.9290426998258141,-0.7835265323238474,-3.9523715779912436,-4.810056921274295,0.48124435334779037,-3.602773445520441,0.8403314117888954,-4.14023075128155,-5.190203693980848,-3.845149949356795,-3.6986098698561563,3.5463032384991067,-0.4309540840327486,18.72517831374185,-6.287011267188959,5.01001112202826,-1.42148769264071,-6.467174772771841,-3.685464505696501,-4.703285938560555,-0.752432987055883,3.2223426580597874,-3.1045470471936483,3.788447683288041,-0.030385441616203934,-4.193433720303332,0.878769853455097,-1.1193305540877532,-0.6482377931659045,-1.7276180385096467,2.401559749927202,-0.3151738559275543,0.05495991900960462,7.7561165307512425,-4.590775783621041,4.942564403087047,-0.9371918510854584,-1.0195247735066886,-4.424307100116806,0.14759264321556032,-4.29843140982986,-1.163824072683397,-1.197789941803805,-0.469639292661995,2.8347101488514426,-2.6462546177907456,1.632877093522552,1.7331987044583883,-0.10224229340337843,-2.5556344358375185,-1.0064540783701403,0.8412434127755972,-0.44437819336745576,9.008733119397448,-1.1510885493810008,-2.444122576365089,-0.4637255246262981,11.248184474044393,-3.2193267703835033,-4.6939843873032885,-0.5036125102465974,-1.4712533724708123,3.140860379591203,-4.472858201792306,-2.497571029013187,-1.6142418144132051,1.7240459993928,5.141138710891198,14.416211275511301,-13.302834977124505,8.522665218722693,-12.601151162670078,-3.809642705469713,0.8469130571237997,-4.371968383829795,-2.152216374655808,-3.271288904259393,-3.738379169397504,-1.3774817106355925,4.416309250722293,-1.1466338035036046,3.5322440555192145,2.298377183245492,2.1042857290347,-2.9181437232243894,2.2447625779976903,-4.5502998749380055,-3.644261428954593,9.9572560962079,-2.189379134546499,2.3057799233858987,2.1054468977240077,-3.1606870974546126,-2.5305083048637016,-0.6119864250224936,-2.424852705699209,-0.4593172308267839,3.2121363033471937,4.8367114648578,-6.545093947839007,-1.3765833114199921,-1.6023422512799073,1.019812034816212,-1.2077027767941075,-0.2588070730420071,4.264032314559913,3.3143972298743023]\n",
"},\n",
"\"mapping\":{\n",
"\"x\":\"price_pct_change_from_yesterday\",\n",
"\"y\":\"iv_change_from_yesterday\"\n",
"},\n",
"\"data_meta\":{\n",
"},\n",
"\"ggtitle\":{\n",
"\"text\":\"Spot-to-Implied Volatility Correlation: MSTR\"\n",
"},\n",
"\"ggsize\":{\n",
"\"width\":600.0,\n",
"\"height\":600.0\n",
"},\n",
"\"theme\":{\n",
"\"name\":\"none\",\n",
"\"line\":{\n",
"\"color\":\"#0d1117\",\n",
"\"size\":1.0,\n",
"\"blank\":false\n",
"},\n",
"\"rect\":{\n",
"\"fill\":\"#ffffff\",\n",
"\"color\":\"#0d1117\",\n",
"\"size\":2.0,\n",
"\"blank\":false\n",
"},\n",
"\"text\":{\n",
"\"color\":\"#0d1117\",\n",
"\"blank\":false\n",
"},\n",
"\"axis_ontop\":true,\n",
"\"axis_ticks\":{\n",
"\"color\":\"#161b22\",\n",
"\"blank\":false\n",
"},\n",
"\"legend_background\":{\n",
"\"size\":2.0,\n",
"\"blank\":false\n",
"},\n",
"\"legend_position\":\"bottom\",\n",
"\"panel_grid_major\":{\n",
"\"color\":\"#161b22\",\n",
"\"size\":1.0,\n",
"\"linetype\":\"dashed\",\n",
"\"blank\":false\n",
"},\n",
"\"panel_grid_minor\":{\n",
"\"blank\":true\n",
"},\n",
"\"plot_title\":{\n",
"\"color\":\"#0d1117\",\n",
"\"hjust\":0.5,\n",
"\"blank\":false\n",
"},\n",
"\"axis_tooltip\":{\n",
"\"color\":\"#161b22\",\n",
"\"blank\":false\n",
"},\n",
"\"tooltip\":{\n",
"\"color\":\"#21262d\",\n",
"\"blank\":false\n",
"}\n",
"},\n",
"\"kind\":\"plot\",\n",
"\"scales\":[{\n",
"\"name\":\"Price % Change from Yesterday\",\n",
"\"aesthetic\":\"x\"\n",
"},{\n",
"\"name\":\"Implied Volatility % Change from Yesterday\",\n",
"\"aesthetic\":\"y\"\n",
"}],\n",
"\"layers\":[{\n",
"\"geom\":\"point\",\n",
"\"mapping\":{\n",
"},\n",
"\"data_meta\":{\n",
"},\n",
"\"color\":\"#77bdfb\",\n",
"\"data\":{\n",
"}\n",
"},{\n",
"\"geom\":\"line\",\n",
"\"mapping\":{\n",
"\"x\":\"x\",\n",
"\"y\":\"y\"\n",
"},\n",
"\"data_meta\":{\n",
"},\n",
"\"color\":\"#fa7970\",\n",
"\"size\":1.0,\n",
"\"data\":{\n",
"\"x\":[-3.9234362951875656,0.2077235388537435,5.775935173843405,10.787457687511125,-2.6332716893141317,-0.21470746108427363,-8.842636653287538,0.15887426236949054,-1.9397235440743343,0.9289642741600046,0.9891015660774771,-5.0920467942323295,5.6471262720366955,6.272328494550727,-3.7957446808510653,-2.2425690021231515,5.25315596579341,2.1408305390766103,13.085016835016816,1.4998697383601822,-0.7920211205632022,3.485363690124177,-4.457302046501654,-3.854061530410091,-3.4875583203732408,0.08459896064134664,11.53598454355176,-3.7748105377120145,-20.552055205520546,-19.58081570996979,2.7236440478985546,0.10285714285713787,-5.297408379952051,3.393610608800479,-1.21844575292952,2.620396600566588,-2.1624108580630352,-7.582882671055735,6.271466734512132,5.572180991141984,3.747377969272647,-3.4590163934426155,3.0169242089771675,8.84065934065934,0.4492907264374679,4.00040205045733,-5.446023001836275,-0.07665968211785223,-1.0382569558101462,4.6927489792754296,0.3356864293824202,-3.4883148831488353,2.8803017944535103,0.45587433724789683,-7.265821536033146,-7.5797872340425565,-2.037410071942436,-0.7990129839609894,-0.017767249037603516,-1.53417841487975,-2.141611020874701,-9.178090612897282,-6.531744957357521,-1.0572814830907329,3.615604186489052,2.436956982411531,13.818783616052954,-5.1496425542227,2.4846704138988374,9.074478030539112,8.565224844294605,2.5052631578947215,7.912302320805087,3.2354760432031116,8.733926349264864,-6.243641912512709,0.11754600117546143,8.390155791375031,4.243219597550296,-1.0850668425154364,-0.6707070707070772,-0.21151968760169115,5.31550627751507,-4.904009908654594,2.458382514550861,6.43149406109722,9.036279486413857,-2.5228494163557436,-0.9516786065458693,0.6452756603439136,-2.786486772113994,-9.755036961878538,-2.2767426919370393,2.4160742901754517,8.782347041123373,10.053846721251002,-4.815683646112601,3.5277963595395034,-8.206087400102025,-0.49644339063426024,-1.0536897758582242,-3.744120413922869,1.1141516810007746,1.3995747148656479,-1.6624089678575538,-1.9464154162304625,-2.3646644786270765,-3.8313555546555356,-2.5310591703516683,0.5530591081921887,-9.410450326572695,-8.922303386775454,16.223113379511478,2.827567664455999,-0.8367106811347891,5.945945945945952,11.025385764061713,-1.3823507434805204,3.568722533717228,-9.70078279318165,6.671797780118283,-2.5291459385561765,-6.899910390774144,3.8918647472380385,14.408281640215904,-1.6899623279231113,4.687891702181002,1.7344006568144499,0.5346514677695868,-2.7225901398086783,-0.2544354284142458,7.817993795243017,6.256793912654257,-2.864450127877227,5.54161633057646,-2.045667997182443,-6.208239700374529,5.373286905408414,-4.5869334546005724,-6.35803253685816,-1.2520783142750513,-1.9551920830183422,1.955630322784141,2.939053315458384,6.404862085086482,3.05674114988701,-6.367622875936418,6.68032653592221,-7.243681595073326,7.385373870172551,-9.80962291870715,2.9728170495809003,3.8493227433015864,-8.803275046809055,-5.6964888471308655,4.243542435424352,-3.2070796460176965,6.264628437682851,-1.029011942044944,0.24341052924403694,2.0258082419869483,-1.6285869713042245,-1.693567898247672,-1.2094364166930438,1.4626855048222476,4.970185899684321,0.7885855581916124,-0.5602890959122142,0.730146029205847,-8.529440969119262,8.127080619481841,-2.6805434709858855,0.04126405556892365,-2.9560375348021806,-1.6399249105656488,2.203817068779257,-0.3311958283419125,-1.7533936651583648,5.56635002878525,6.820273356283457,5.714741544352275,-1.231475053575204,0.574519451150568,-7.100969280787572,6.260221102897878,0.22469835016005746,4.497711986732589,0.6362874902646531,10.344021961334038,0.07145881854753178,-0.41257835021554223,1.112734032664986,7.083574092556599,1.1258002011233392,0.28862478777589295,11.690730126484317,-0.6430937790961933,-1.9570239288671964,-0.9080199164221536,1.638645565786967,-2.7080114764952645,-0.9482113286300775,-1.3088285812435596,1.3656351886015328,1.520076919554958,-3.9033960221891317,1.9852164730728594,0.7523987022848067,-0.6622819037179095,-6.356614097199875,-4.276630741659093,-3.3187145751583658,-1.6314295567286585,5.032091041475639,-2.988600184861867,0.044992589455872256,1.666622576122312,1.176133850277128,-3.2610652470231205,-1.7227170011963389,-6.189303973814475,-5.239482107327198,2.017527843710054,-1.7121551081282549,5.125792843919763,-2.8406466512702178,-0.1515331590206892,2.475822050290133,10.787815431077053,-2.5791570559865806,-3.8070383125269003,-1.6921656923894357,-0.634459997723924,0.41517537580531005,0.6757912745936734,0.9091681536239182,-3.81722240934097,1.4824325901716007,-1.7023234414538901,1.33395740697404,-1.6224018475750501,-0.04695111215448078,-0.39927191591802025,-1.706655662323886,-2.2220889435331515,-0.9967490645893529,1.4838449862147884,-3.144078144078133,-0.5263157894736858,4.210626366314996,-0.19457618873890414,0.3685877909101798,-5.511548150171475,2.9133074229916733,0.9425717852684201,5.3212540968400335,-0.05284326101635539,0.00293728888236533,-1.718263525818009,-3.290397776515941,-1.6625463535228646,2.3819998743007886,2.9496623695518753,-1.869353925046946,4.013489700431427,1.6620417701183055,8.461671072290544,12.551325862936768,1.9653070350931001,-4.563501223396893,-1.6180916676744372,3.3090766053692544,0.7543667602684323,0.7746994496799608,6.318700635151275,0.07054207173247118,1.2512391232514464,3.028522942366685,0.2006123957343675,4.124341412012633,3.058271095188947,-0.8444950705055132,-4.927903660275712,5.40624999999999,-3.3343215732779874,-0.5847714075406962,4.588457899716181,-3.0460346488899392,3.009897777056625,2.4336457430889302,-4.778563739812403,2.117566312729635,0.24314547215686932,-1.7353579175705014,5.896046558298229,6.735142510612491,2.5354213273676374,-1.4917748917748885,0.38760030586146854,4.9554360958868005,-7.272393600160165,0.45340050377833396,4.957730333858712,-0.6194539249146702,-2.0536772155159144,0.2612156168370072,-0.10491344640670697,0.37983546297917226,1.478717282508235,6.407766990291264,-2.4788450358503966,11.06492904336882,-0.42194092827004814,-5.429119003413785,8.475032456223675,-7.8946216157045885,3.921972554115305,-3.7709092572543956,-5.240223109589904,-3.464825002926375,-2.0128531587243814,-5.2132868987218695,-9.446454548845551,-0.6982060840730719,3.4969096113162124,-2.4849699398797664,-1.150842581175493,-2.2474012474012484,-4.253599608668834,0.17770274772872519,1.5055766203241783,8.021320284853006,3.9049544994944396,1.1093594908623716,-3.5225500952820843,0.45290397238682,-0.6713275601811453,-1.899620075984798,1.5083571137382679,2.01004016064259,15.708352197791363,9.95389666729045,11.016214878078955,-4.390121529713442,12.224133407189285,-6.738712526627532,-2.5682451253481786,0.7747727142775496,-4.564668501234081,5.997324613555288,-3.6051321601346165,15.861747934365166,9.456609079951805,10.455379674237196,6.219429876940663,5.5287239450940495,23.58924948350458,-21.214233776358505,18.572611107410953,4.317891848083399,9.659082167966627,4.113384633730588,7.35196027569851,10.845074842313362,-5.056195679868647,6.292154933357175,-15.687066585874899,-5.673560648406939,9.101940035273358,3.4121770167860888,-4.770241794796437,21.864740643466817,1.1309267241379484,2.2466821879711496,-11.181975447591663,-3.9787393814239347,-3.538130674389328,1.7278617710583033,0.5796614179601756,-10.920998873358013,5.141765114662955,-4.756806059524521,8.67302327518007,-0.9061302681992234,-4.654564669643846,-9.712215628759512,-6.127047339581393,-5.261437126703505,1.6926897016118714,-2.8183353198251937,12.767117220703339,1.1049765485154905,-5.451054801888489,-1.9957808907535068,3.383558662055286,0.8258082627614183,-17.629179331306986,-3.4515459658413405,9.83691053906075,8.28655416054258,3.744858995429312,-0.8953271175353272,-1.9348681856137473,2.4750227066303365,-6.580988256148901,5.546896177825977,4.147003114064662,15.862765195009354,-4.2228976966617315,10.036250503479206,9.00852003786683,-4.1580787846506535,-0.5086322504258778,-6.249544626593795,9.116814652185457,-0.5632582322357083,-3.3813829945981366,-4.8001482671279465,-1.0713822193380795,6.751110207348021,0.698041673579497,3.412315334061522,-2.245838471932915,-3.647766851982648,0.23305350206739295,-2.7770138506925224,3.0974162482561685,-7.469741280936837,0.7857778257001957,0.7836634259197339,-2.509852314796379,-0.27425600402878336,1.2529002320185612,-7.522106000970508,9.007032758809164,-2.5412170564403036,4.642149094825521,-9.697128622000783,-0.835583819728769,-3.351464527039394,-1.371014778175872,-1.5644079902310981,0.6912586212277194,0.8670520231213841,0.3034330181214795,4.046809423153497,2.811800730184899,15.35840087058622,3.290551611141468,-4.464339361893899,-2.191194968553467,14.361223282491832,1.213944335113859,-4.35089356643279,-2.8505549521713025,-3.9588925622799254,9.103188979563882,-3.871718652829037,-4.794492091284097,0.6464805151894737,-6.357003047496335,-4.2214299415931915,-9.598823196292795,4.599694423223832,-8.936540048641184,9.066848458114452,-0.4559158761673676,-2.8883799955677025,2.981895633652809,-3.7006943418525617,1.19659430850656,0.8413552641552302,1.7363199037883303,-1.2264499445881039,5.78203306156031,-5.381134210154137,12.10671848142888,-2.0731951203252996,-4.690265486725675,-5.656738804371109,0.35581800287682874,-0.105612552806289,-7.627246639480434,2.0683453237410054,-4.229074889867846,-4.407460065233748,9.203849518810149,3.861560647332163,-0.2776920703486452,1.1525371287128827,8.182304809971708,-4.905633703258639,-2.423251319408304,1.0665041517482932,9.037461370317335,0.08295313148072303,3.5847492747617116,2.607188104287528,-1.2607226410189742,9.240489666973794,6.169418002168947],\n",
"\"y\":[-0.034389441192060735,-0.04132162035264601,-0.05066520477165977,-0.0590746523185164,-0.036554366431908306,-0.040612771629237786,-0.026134912299673345,-0.0412396501675025,-0.03771815582579159,-0.042531878535797506,-0.042632790264840084,-0.03242848647867351,-0.05044906053597939,-0.051498163933613755,-0.03460371059422498,-0.03720997433257878,-0.04978796949701142,-0.04456541739765584,-0.06293000826754303,-0.04348987075119945,-0.03964402631796135,-0.04682157427970273,-0.03349360244834663,-0.03450585360842334,-0.035120854241894275,-0.04111501453986513,-0.060330697226250514,-0.0346388385574709,-0.006486244484525172,-0.008116006212821207,-0.04554339157988707,-0.04114565218046754,-0.03208388511680406,-0.04666761054462028,-0.038928476189474,-0.045370140039997335,-0.03734448150202449,-0.028248807828752574,-0.05149671788087773,-0.0503233006682247,-0.04726124013594049,-0.035168748237532264,-0.04603552228954626,-0.05580788088578154,-0.04172697552913913,-0.04768582023769822,-0.03183450643716671,-0.04084441890868472,-0.03923083704563578,-0.048847593963396205,-0.04153634496236497,-0.0351195847125327,-0.04580626680370773,-0.04173802297622297,-0.02878084354780753,-0.028254002041713994,-0.03755423563389363,-0.03963229381384945,-0.04094324173658671,-0.038398669678127675,-0.03737938409686297,-0.025572013007087117,-0.030012640564964048,-0.039198913460770396,-0.04704012076326535,-0.04506232423298795,-0.06416128543728944,-0.03233183949739399,-0.04514238844466788,-0.05620023390877128,-0.05534569560307412,-0.04517694353246943,-0.05425007691664265,-0.04640225718521518,-0.05562878052452345,-0.030496083957087812,-0.04117030041525333,-0.05505192579288373,-0.04809327354558334,-0.03915228900243157,-0.03984759402342003,-0.04061812078487261,-0.049892594723082634,-0.03274401660386554,-0.04509827675803354,-0.051765247335811,-0.05613613589218819,-0.036739657490646595,-0.039376117463881075,-0.042055842658273154,-0.03629726807533527,-0.02460388405109097,-0.037152630112097136,-0.04502728260551495,-0.05571003153502098,-0.05784363660947027,-0.03289223005992226,-0.04689277725379855,-0.027203056270104532,-0.04014001239985111,-0.039204940426326884,-0.03469033727577606,-0.04284262717155014,-0.04332157344494415,-0.03818349592479616,-0.037706926713733574,-0.03700509537562148,-0.034543954746667736,-0.036725881338706134,-0.04190110120871228,-0.025182108178998068,-0.026001229728225467,-0.06819580488242971,-0.04571777774695227,-0.039569036229720925,-0.05095048667281811,-0.0594739009848089,-0.03865343992715101,-0.046961452294986626,-0.024694923766987783,-0.05216848238362549,-0.03672909178471037,-0.02939485068325863,-0.04750369220059759,-0.06515047638667737,-0.03813726076660241,-0.04883944334313365,-0.04388341890976371,-0.04187021277387574,-0.036404488062141055,-0.0405461072061022,-0.05409182508862578,-0.05147209655563342,-0.036166443810038695,-0.050272012480031936,-0.03754037864952165,-0.03055548966567373,-0.04998955191686323,-0.03327607802859994,-0.030304133915426475,-0.038872039994738705,-0.03769219926937158,-0.044254647267355014,-0.04590485317797644,-0.05172055828079415,-0.046102336012350933,-0.03028804111065203,-0.052182793827777935,-0.02881799486692948,-0.05336587911957484,-0.02451228758724325,-0.045961509483583164,-0.04743230576071508,-0.0262009619610563,-0.0314142191127978,-0.048093815274800486,-0.035591503768774006,-0.05148524306492333,-0.039246350386764425,-0.041381503925547035,-0.04437240739491586,-0.038240249996072805,-0.038131210538465514,-0.03894359405840625,-0.04342747477060582,-0.049313139358708125,-0.042296319891610694,-0.0400328778697432,-0.042198257046970465,-0.02666046170521466,-0.0546104797347482,-0.036475043318556846,-0.04104229759403467,-0.03601275808032532,-0.038221224678866635,-0.04467111021181528,-0.040417301527766535,-0.03803082155539423,-0.050313516182182196,-0.05241762774141748,-0.050562520484398965,-0.03890661272980615,-0.04193711214709554,-0.02905746934160329,-0.05147784745798061,-0.041350104467984004,-0.048520317501200824,-0.04204076030662899,-0.05833055719183216,-0.04109296508575317,-0.040280739824798885,-0.04284024832574287,-0.0528594523016582,-0.04286217365042998,-0.04145737446877151,-0.060590363796485414,-0.03989392974809541,-0.03768912539081714,-0.039449377728313396,-0.04372273971234536,-0.036428951387229,-0.03938193563424421,-0.038776811769775085,-0.043264622156168164,-0.04352377885594483,-0.0344230692210969,-0.04430429349328493,-0.04223559753312502,-0.03986173164321036,-0.030306514089090703,-0.03379677296332526,-0.03540417784567475,-0.038235480073766946,-0.04941701757961904,-0.03595811722080274,-0.041048554157796166,-0.04376968576522476,-0.042946634646314215,-0.03550091471550676,-0.03808229768780662,-0.030587264240931868,-0.03218108670572142,-0.0443585127002823,-0.03810002078203782,-0.04957425131259156,-0.03620638657940939,-0.040718779529644124,-0.04512754069142722,-0.05907525262026994,-0.03664517200431556,-0.034584759626144435,-0.03813356347144797,-0.03990841742751481,-0.04166972920311718,-0.04210704854564443,-0.042498660200087066,-0.0345676704825286,-0.04346061082416954,-0.03811651853994887,-0.04321146612578605,-0.03825062877286757,-0.04089427055758338,-0.04030306832097056,-0.038109248975845694,-0.037244340331733614,-0.03930048822111187,-0.043462980856511645,-0.03569722170668389,-0.04008988584241197,-0.04803858137015994,-0.04064655235722577,-0.04159155418735264,-0.03172455376381803,-0.045861650991085065,-0.042554712245632675,-0.04990223969324694,-0.04088438339920844,-0.04097798441710845,-0.038089770719703236,-0.03545169407097932,-0.038183265388558325,-0.04497010496893719,-0.0459226554094695,-0.037836237629971695,-0.04770778160885212,-0.04376199906967307,-0.05517193004349172,-0.06203446280731652,-0.04427088500835414,-0.03331539783983012,-0.03825786135172816,-0.046525760584684564,-0.04223889997870665,-0.04227301868906391,-0.05157597742900408,-0.04109142676396893,-0.04307266298437862,-0.04605498522516774,-0.041309687694477265,-0.04789379327526269,-0.0461049032949943,-0.03955597384919307,-0.03270392235098981,-0.0500448647313211,-0.035377988951642465,-0.03999179599993138,-0.04867259118514535,-0.03586174089777742,-0.04602373177867532,-0.04505676789889535,-0.03295451809796348,-0.044526379502355655,-0.04138105915379048,-0.038061085945685774,-0.05086675437751277,-0.052274776266773376,-0.04522754961946196,-0.03846982374405868,-0.04162345761525916,-0.04928838885603685,-0.028769815476318274,-0.04173387182799502,-0.0492922386389785,-0.03993359795535432,-0.037526939000935226,-0.04141138126317685,-0.04079700845644383,-0.04161042803417873,-0.04345437645430883,-0.051725432777093745,-0.036813497831317994,-0.05954025549728627,-0.040265029208147354,-0.031862871726892214,-0.05519435074638841,-0.0277257028649043,-0.04755421377802137,-0.03464538499386512,-0.03217984328725062,-0.0351590012601136,-0.03759544268685144,-0.032225042855203875,-0.025121692283859774,-0.03980145006021105,-0.04684094859526847,-0.03680322010453456,-0.03904191583287901,-0.03720186571626729,-0.03383541972272783,-0.041271244789612534,-0.04349944702755088,-0.05443301151342951,-0.0475256570994285,-0.042834585768664384,-0.03506213725621481,-0.04173303863714715,-0.03984655282812033,-0.03778545034765121,-0.04350411275806619,-0.044345948199607785,-0.06733202403638397,-0.05767591816985548,-0.059458512031767205,-0.03360633286720845,-0.061485426504110936,-0.029665344326559484,-0.03666348246946628,-0.04227314162870727,-0.03331343912135331,-0.05103670123318569,-0.034923562693136526,-0.06758942553405473,-0.056841458408371404,-0.05851741793984697,-0.05140939886294314,-0.05025037876708891,-0.08055634701719942,-0.005375093942364101,-0.07213831493807535,-0.04821857526224754,-0.05718121280609526,-0.04787540755475678,-0.05330981035617708,-0.05917133520077166,-0.032488645455294986,-0.05153143314406409,-0.014649804859917532,-0.03145269314618524,-0.05624631577066342,-0.04669876539500012,-0.03296848250896009,-0.07766258237884113,-0.042870776071405145,-0.04474303884636713,-0.022209449163196306,-0.03429664136893,-0.035035992693879775,-0.04387244651232736,-0.04194574048310624,-0.022647373727236634,-0.04960105314230553,-0.03299102797507632,-0.055526583795772536,-0.0394525486005522,-0.033162591327924554,-0.02467573921162728,-0.030691732274069322,-0.032144245689177696,-0.04381342698835684,-0.03624382549562213,-0.06239656556137056,-0.04282723109278166,-0.03182606296345389,-0.03762409033666552,-0.046650743151793655,-0.04235878042746147,-0.0113908959718,-0.035181283783146236,-0.057479612814272524,-0.054878079925110373,-0.0472570132411496,-0.03947067653045795,-0.037726303226543384,-0.04512619937477931,-0.029930009201522917,-0.05028087218252337,-0.047931820121238,-0.067591132520306,-0.03388693822192798,-0.05781410976010036,-0.05608955491288515,-0.033995705814833105,-0.040119559218847925,-0.030486179070037298,-0.05627127571254949,-0.04002789559218108,-0.035299018827694505,-0.03291829877543451,-0.03917525210805359,-0.05230157042119957,-0.04214438521581953,-0.046698997494500696,-0.037204488088668615,-0.034852020720852736,-0.04136412460089154,-0.0363131638506395,-0.046170589742682545,-0.02843866162727158,-0.042291608453310696,-0.04228806044290101,-0.03676146691952306,-0.04051284783421983,-0.04307545036226799,-0.028350792448747882,-0.05608705922515973,-0.036708836177277375,-0.048762686218694264,-0.02470105554845518,-0.03957092712851678,-0.0353492226894813,-0.0386724619320133,-0.03834794377046436,-0.042133003101341486,-0.04242798838540965,-0.04148222301250515,-0.04776369285333777,-0.045691320476458935,-0.06674479783475393,-0.046494675227522236,-0.033481793674765274,-0.037296181116923545,-0.06507151140351257,-0.043010081490679086,-0.03367215827229821,-0.03618976022754149,-0.03432994477804536,-0.056248411527286574,-0.03447622455968504,-0.03292778996577535,-0.042057864431815556,-0.03030586142174111,-0.03388940114796031,-0.024866014264854863,-0.04869144632443464,-0.02597734028926242,-0.05618743131456261,-0.040208018481073804,-0.0361262889535859,-0.04597674355194148,-0.03476320720188042,-0.042980967755622976,-0.0423848686456378,-0.04388663944937264,-0.03891504497576115,-0.05067543716446297,-0.0319433912897323,-0.06128840161662269,-0.037494187517474575,-0.033102684553524005,-0.0314809205790013,-0.04157012619568782,-0.04079583534017409,-0.028174364091461075,-0.04444378557526555,-0.03387657275272936,-0.03357723841445488,-0.05641732217719808,-0.047452841239054834,-0.040507082037616986,-0.04290703881655766,-0.054703147169041,-0.032741291839981444,-0.03690678533847367,-0.04276267354530317,-0.05613811911997289,-0.04111225280149928,-0.04698834552709186,-0.04534797588602443,-0.038857534619948376,-0.056478805170290684,-0.051325477811712567]\n",
"}\n",
"}],\n",
"\"metainfo_list\":[]\n",
"};\n",
" var plotContainer = document.getElementById(\"0BttO4\");\n",
" window.letsPlotCall(function() {{\n",
" LetsPlot.buildPlotFromProcessedSpecs(plotSpec, -1, -1, plotContainer);\n",
" }});\n",
" })();\n",
" </script>"
]
},
"metadata": {},
"output_type": "display_data"
}
],
"source": [
"ticker = 'MSTR'\n",
"df = create_uw_iv_rv_df(ticker)\n",
"linreg_str = create_linear_regression_str(df)\n",
"print(linreg_str)\n",
"p = create_pct_price_vs_iv_plot(ticker, df, dark_color=False)\n",
"p.show()"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"**MSTR Spot-to-Implied Volatility Correlation Chart (above)**\n",
"- Hmm... R<sup>2</sup> at zero and slope of the regression roughly the same\n",
"- Does this mean that implied volatility does not move with spot price?\n",
"- ... of course not lol. But this **DOES** tell us that moves in implied volatility are just as likely to come with price increases as they are with price decreases, which is very interesting for equity where the risk is much more likely to be down than up.\n",
"- ... very commodity-like."
]
},
{
"cell_type": "code",
"execution_count": 6,
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"Linear regression (y=mx+b): y=1.288279x + -0.330326 || R^2 = 0.477297\n"
]
},
{
"data": {
"text/html": [
" <div id=\"f8vvCV\"></div>\n",
" <script type=\"text/javascript\" data-lets-plot-script=\"plot\">\n",
" (function() {\n",
" var plotSpec={\n",
"\"data\":{\n",
"\"price_pct_change_from_yesterday\":[null,-6.774075430245318,-1.2961508248232612,0.9948269001193832,8.747044917257686,-4.384057971014499,-1.5157256536566965,-2.462485571373596,-1.3806706114398493,1.079999999999992,0.35615354174911573,0.7886435331230235,-3.638497652582162,5.399918798213577,2.7349768875192693,-7.986501687289094,-0.5297473512632433,3.646046702171235,-2.3320158102766775,8.741400242816667,-5.321920357275767,1.9261006289308158,8.638642499035875,0.4969826056087978,0.28258565877783415,-6.234589644240929,-1.2396694214876103,0.8368200836820217,-2.8291210863825023,-2.406832298136652,-8.074781225139226,7.659022068368659,4.9035369774919735,-0.19157088122605526,5.911708253358916,-1.6310257339615775,2.284450994841558,-0.5763688760806907,-8.840579710144937,4.531001589825112,1.520912547528508,-1.9850187265917474,-3.3626289644631324,1.225780941083432,2.3828124999999867,1.4879816863792472,3.4586466165413388,-7.1220930232558155,-8.489827856025034,-4.831124412141941,11.365678346810416,-8.713190802743043,0.17675651789661462,-7.366563740626386,0.23809523809523725,-2.232779097387183,1.0689990281827155,-4.230769230769226,1.7068273092369468,1.4807502467916844,-3.6478599221789865,1.3629480060575405,-9.362549800796804,-1.538461538461522,2.287946428571419,0.7092198581560405,-6.825568797399795,0.6976744186046657,-6.351039260969982,1.4796547472256671,-0.486026731470246,8.4859584859585,7.146876758581877,8.350840336134446,-0.6786233640329598,6.393362615910214,-4.633027522935784,-8.417508417508412,2.993697478991608,10.4538500764916,-1.2003693444136765,-5.467289719626156,-1.0874938210578278,14.04297851074463,-6.879929886064861,2.917647058823536,-0.18289894833105613,3.9853412734768723,-1.9823788546255439,7.235955056179777,-11.064543168482821,-0.5655042412818001,-6.777251184834121,-2.0335536349771366,2.179553710430726,0.9141696292534363,9.713135379969806,-0.917431192660545,1.8055555555555491,-6.048203728967705,-0.6776379477250738,-1.851851851851849,-2.9791459781529417,-2.2517911975434846,0.6806282722513046,-5.616224648985968,0.22038567493114503,2.8037383177569986,-0.2673796791443861,-3.1635388739946424,0.6090808416389981,-3.577325261419939,-1.5410958904109595,-2.898550724637683,0.9552238805970115,-5.677114133648731,5.078369905956137,-0.9546539379474916,1.6265060240963747,4.623592175459379,35.24079320113316,-5.404273146208638,6.2001771479185175,-4.086738949124269,0.6521739130434634,-2.9805615550755893,0.17809439002671734,2.3111111111111082,0.6516072980017551,-3.5390591281829975,-1.2527964205816589,1.4952424105119988,-0.1339285714285654,1.4304872597228346,-1.8951079770824109,1.302785265049411,-0.3991130820399147,-0.8014247551202169,-3.007181328545794,-1.3882461823230052,-5.1149694978883105,1.335311572700304,-2.7330405075646547,-4.666332162568986,-1.8421052631579005,1.5549597855228026,1.8479408658922836,-3.8361845515811233,0.16172506738543202,1.7222820236813874,2.3809523809523947,5.529715762273901,0.4407443682663992,-1.3164310092637854,2.5691699604743157,0.5780346820809079,-0.9099616858237458,4.494925084581913,1.7113783533764915,4.001819008640295,0.7870572802798348,-4.29501084598699,9.74614687216684,-4.337050805452291,0.47495682210707546,0.3437902879243726,-0.4282655246252709,5.67741935483872,-2.1164021164021163,0.20790020790020236,2.24066390041493,-1.3392857142857206,1.5631427396133324,5.751316322397715,-17.885867483722706,5.7835820895522305,7.14285714285714,10.905349794238672,-4.638218923933213,-3.3463035019455245,-1.1272141706924366,0.08143322475568926,-0.6102522375915354,-0.4502660663119107,-2.5493421052631637,-2.8691983122362874,2.4326672458731435,5.937234944868552,-0.32025620496397567,-2.6104417670682722,2.7216494845360817,-4.054596547571265,-4.476987447698743,-0.525624178712214,3.6547776309995506,1.571792693288021,-1.965704726056039,0.08532423208191808,-2.0886615515771645,-0.6530256856769667,1.1393514460999121,0.3899480069324168,-1.1221406991799854,-3.1863814927979073,3.877366997294862,-0.8246527777777679,-0.6564551422319598,-2.114537444933917,-1.3051305130513002,1.2311901504787892,-3.1531531531531543,-3.116279069767447,0.48007681228996457,0.23889154323937234,0.42897998093422984,-1.5662078785002476,-3.9054966248794565,1.30456598093327,0.0,-1.1391778107974315,-3.1563126252505125,-3.8282462493533287,-1.1296395911780555,-0.10881392818280489,0.6535947712418277,-6.601731601731597,-2.1436848203939762,-3.1379514505624706,4.706601466992666,2.568593111500306,3.8133181559476315,0.7127192982456343,0.9798584648883946,-0.7008086253369239,4.3973941368078195,-2.49609984399376,0.7466666666666733,-6.246691371095814,-3.8961038961039085,1.2338425381903662,3.366221706326167,2.9197080291970767,-0.6001091107474044,-3.6772777167947246,-0.17094017094018144,0.0,-2.853881278538817,0.9400705052879044,2.8521536670547354,-5.036785512167519,2.205005959475548,-1.8075801749271037,-2.25653206650831,-6.500607533414337,-5.133203378817419,1.8493150684931514,-1.0759919300605159,2.515295717199173,2.1220159151193574,3.8961038961038863,-1.1249999999999982,-4.614412136536028,-1.1265738899933764,-3.2841823056300234,-2.1483021483021503,-1.912181303116145,-4.981949458483747,2.127659574468077,0.0,4.464285714285721,-2.350427350427342,-1.5317286652078876,-2.8148148148148255,-2.4390243902438935,7.578124999999991,-5.519244734931005,4.842428900845519,1.6862170087976525,-2.451333813987022,0.8130081300813163,-2.639296187683293,-4.367469879518071,-1.2598425196850394,-3.1897926634768647,6.260296540362442,2.8682170542635665,-5.576488319517714,3.9904229848363837,-1.7651573292402079,-1.953125,-2.07171314741037,-0.7323026851098424,-2.3770491803278615,13.266162888329136,20.459599703484056,-10.461538461538456,5.154639175257736,10.98039215686275,-12.190812720848054,-0.46948356807512415,10.242587601078167,-4.9511002444987735,-3.086816720257235,0.995355009953558,9.65834428383705,4.493708807669261,-1.0321100917431214,3.476245654692911,-0.7838745800671898,-4.458239277652365,0.2953337271116352,-0.05889281507657218,2.29817324690631,5.817972350230427,-1.6330974414806798,-2.9883785279468666,-4.905875641756985,0.11997600479902726,-1.9772318753744855,-2.4449877750611138,-1.06516290726818,-3.9898670044331785,3.759894459102897,-3.0514939605848723,-3.2786885245901676,-5.220338983050842,0.7153075822603716,1.4914772727272707,1.5395381385584272,2.6878015161957203,-4.832214765100673,-1.6220028208744797,4.086021505376336,-0.20661157024792765,2.00138026224983,-1.556156968876854,-2.1993127147766356,1.3352073085031613,2.1497919556171974,-8.621860149355054,4.7548291233283635,-0.21276595744680327,1.990049751243772,2.160278745644595,0.4774897680764001,-3.801765105227428,1.6937191249117856,0.6939625260235838,-2.6878015161957314,-4.461756373937675,-0.5930318754633013,-0.37285607755407346,1.1227544910179743,1.2583271650629113,3.8742690058479523,0.2111189303307448,0.2106741573033588,4.7652417659425295,1.8060200668896353,-1.4454664914586135,1.7333333333333423,0.0,-3.997378768020965,-1.5017064846416406,2.009702009702008,1.0190217391304213,-1.6139878950907738,-2.665755297334249,-2.31741573033708,-3.5945363048166756,0.5219985085756829,1.335311572700304,-4.099560761346998,15.419847328244263,2.5132275132275117,-15.032258064516125,-4.935459377372819,-4.2332268370607,-5.921601334445381,0.8865248226950451,1.3181019332161537,-2.4284475281873275,-3.733333333333333,1.6620498614958512,-1.4532243415077195,4.055299539170498,-4.605845881310888,-6.592386258124416,3.0815109343936165,-0.675024108003841,0.0970873786407811,1.066925315227918,-3.9347408829174646,1.4985014985015033,7.5787401574803015,2.5617566331198605,6.155218554861719,-5.126050420168083,-1.7714791851195733,-1.6230838593327301,16.95692025664528,29.075235109717855,-0.9714632665452361,0.0,-2.391171060698949,13.128140703517598,-3.0538589672404304,74.39862542955325,60.09852216748768,-18.87179487179488,-30.037926675094806,-19.732562341886517,4.187303016659172,-4.407951598962834,-4.520795660036169,-13.257575757575758,3.7117903930131035,25.157894736842113,-10.681244743481933,6.450094161958564,2.34409553295003,21.002592912705275,-5.35714285714286,19.13207547169811,47.450110864745,-39.377013963480124,-12.012756909992916,22.795006041079336,-16.497212200721545,14.375490966221527,-1.4423076923076983,-12.125435540069684,-2.0618556701030966,3.603238866396774,-6.486908948808123,-1.1700793982448832,5.412262156448211,-2.9281989570798306,3.677685950413223,-1.5942606616181743,-5.508302956662625,2.786112301757404,1.626355296080062,-0.779647107098902,1.1166253101736912,0.6134969325153561,1.504065040650393,2.402883460152183,1.8771998435666903,3.6468330134356908,5.7037037037037,-1.962158374211631,-7.505360972122954,-3.5162287480680066,1.0012014417300819,1.1102299762093537,-5.843137254901953,-0.2498958767180426,0.7515657620041694,-2.1964359718192994,-5.084745762711873,1.2053571428571663,-4.234671371857079,-2.947950253339482,-1.9933554817275878,3.050847457627137,-2.1146616541353525,4.416706673067705,0.8275862068965578,-0.22799817601459882,1.782449725776969,-1.2572968118545136,2.4556616643929274,-0.5770084332001879,1.1607142857142927,-1.6769638128861342,1.2118491921005337,-1.906873614190685,0.4068716094032476,-3.8271049076992414,-2.9026217228464435,-4.050144648023146,8.090452261306558,8.879590887959088,-1.1955593509820672,-4.407951598962834,1.220614828209765,6.833407771326483,1.3795986622073597,-3.298969072164948,-11.982942430703625,-1.1627906976744318,1.225490196078427,-2.7118644067796516,0.34843205574912606,-2.529761904761918,-0.7124681933842081,11.993849308047144,2.105263157894721,1.4343343792021512,-1.9885108263367202,0.4959422903516586,0.8524001794526725],\n",
"\"iv_change_from_yesterday\":[null,-2.075113891165543,-3.209128162671405,3.925982084061957,-4.528589071223649,-1.0740275423521553,1.2344857183748559,0.9736177254520015,11.603631920522432,0.33183458904370866,-0.653642976918448,-0.044103534345893536,-0.9021936201793608,-2.5722243217091005,-1.7653332508443924,0.6611306991762973,9.872915407293291,0.8150418842065079,-6.184517218105597,-5.5279600753822535,-18.51801196521825,-0.7714412138555957,7.961195901505846,22.823678477113745,-11.516193845031694,-1.6271895015136977,-4.0673488341585085,-2.0955054419109445,8.830863869504185,-3.224189624985385,14.582069886656413,-2.256092156307915,-9.707569395928289,14.455747940335229,-0.25977527323328786,-0.9136490321029953,13.088090354846543,-4.89685694921215,-4.606190394699695,0.8409517042684485,-9.851993355049686,-1.9854984733308072,-6.3700491857281065,0.5329878225249018,-4.479475198486,4.242925597047602,-7.5059847359890455,1.0655656099454944,7.655275063726151,6.0482388460483065,-17.939606682387108,2.7600960474546383,7.782911380219858,1.4607112979625043,0.21864711370216128,1.6992912003612304,-0.3431571516994012,1.1274962242070927,-0.6959348231639808,-6.38508487207946,7.286464465300668,-10.739423038596811,12.444034964236494,-2.0689596352345916,-6.328103210233451,-3.6707504886013,15.145055978142196,-5.361260197684189,0.1864321286827817,-2.6560820969375953,3.997376609777504,3.6484809578091415,15.54515342270821,8.28327843133549,-17.116804747091834,2.8510644411525448,-11.702536694301585,-7.717052092615361,7.5599797945779414,-0.6152142436140906,-3.0675073738480023,-10.232204197982057,-1.3247299239361041,2.7155401978938585,0.471116345295556,-2.0691335256989163,-9.766959429853642,9.042100310285747,-3.383641477410393,17.949973387146343,-14.11585045275639,-8.195031070670908,-2.217911895800995,-2.3639226606650965,9.778103064115484,-5.141545836414139,2.2858622422506016,-1.4450392736690958,-5.873505214591802,10.485648490390744,-1.1497410244308526,-2.2601483663561908,-0.08761966744830829,0.3146608604777015,-1.572288711559196,-1.6105813171610635,2.0714380384140156,-3.918822201751013,1.7996205090488502,-3.0015898985637506,2.0833296139135626,0.7542004448578012,5.268369581244997,1.0166308923389948,0.7242975117663946,4.551793910069662,1.653779064821748,10.293254320201797,-3.1861509953262868,-18.727040946706552,14.14171942171609,-6.113100177703444,-2.163273241745756,-13.596991246712804,3.6632245967680035,-9.63574277992845,-5.014681674238801,-3.800397089520949,0.8540553793412542,0.051363871033800024,-3.2989609551375025,-4.654530333039453,3.919195359685048,-0.7764143243393917,-2.237526454168851,-0.9714390788792073,-0.252722031029343,0.4418761248676475,0.42328040864409644,-0.6178243729835557,-0.5666842168717423,-1.9855797933353045,1.3041527844822625,3.2826373642900393,-0.7924139062696511,0.8372098345925565,-0.609809094033757,3.6658058635931567,-1.1899349624086568,0.038432618827101805,4.975760316438198,-3.680880878015998,13.246432552379247,-2.3458618984255963,-0.7268845317633037,-0.2228035227190901,-0.9311641447848018,3.8426045066541406,-1.3995504057472914,3.883703456107696,-2.0371496852013564,-1.4080038633294407,6.485353506906705,-1.9432492878416525,-0.6053596503040524,-1.5836220279077082,3.1443277637402076,3.789210141866093,1.716973092487848,-2.3544058944497834,-0.48602423340125256,4.212781676875849,4.268295768297193,41.9018495423513,-63.58693174042705,-3.5340523903928442,-1.8882964531227557,11.020693168511706,-0.9040316582672574,-2.9936934187794435,-6.7015365225459504,-3.762036844677212,-4.161505473979943,-0.9905309553353945,-4.428502730106956,2.438639556683256,-1.0123779026126485,4.79632312277235,0.6699058468519894,-0.6615627230030938,3.368420043589005,-3.2922422507247546,-4.257024753657198,2.059015340278002,2.2407175774022505,-1.4991984987073579,0.805946539676107,1.984538225521348,-5.667660512122303,2.814123817540434,-0.9583592414855957,4.644164443016052,-1.4336496591567993,-3.5955309867858887,8.901980519294739,-3.361418843269348,-1.2154459953308105,4.697749018669128,-6.677776575088501,4.735031723976135,0.0012308359146118164,-0.7383286952972412,1.577553153038025,-2.7940839529037476,8.688482642173767,3.199407458305359,1.4305561780929565,-2.3665249347686768,-4.120102524757385,11.07783317565918,1.7582356929779053,7.694011926651001,-3.3925533294677734,1.3806819915771484,-2.960008382797241,3.445160388946533,-2.1134287118911743,1.5192776918411255,1.320725679397583,-2.0987778902053833,3.969520330429077,-0.12080669403076172,17.25684106349945,-10.809564590454102,0.1724034547805786,2.014017105102539,-31.234952807426453,-4.034227132797241,-0.5680203437805176,4.558086841949461,2.7462460000000135,-1.2979850000000113,-3.909921000000004,-3.2824139999999957,-1.468433999999995,-3.953213000000005,0.06145699999999721,-1.7657859999999985,3.3241509999999934,2.7438550000000106,-0.9712500000000048,5.040430000000001,-9.213929999999998,8.992959999999997,1.4272400000000047,3.2971139999999863,-0.2985299999999853,-3.797370000000008,2.778346000000006,-4.432430000000004,-1.9258899999999954,2.0372599999999963,-2.851059999999997,4.05274,-1.1713799999999992,2.492713000000002,4.218870999999993,0.659466000000009,-0.6175817640015708,-0.0361596031654301,-2.1668477136573614,-0.12925608601413785,0.11976123442273945,5.681371578703249,-2.6080520474963436,-3.0300933146126994,-2.0751932703164044,1.5606595440931983,11.202953000159113,-8.603827858849712,1.4562423577225019,6.826225637180698,5.191694994484351,3.314873094539351,-1.1605952714402434,3.7178794012169476,-1.0845517326409038,0.22924966412850267,-0.3322000622386412,-2.3060112163471587,1.2131338902330953,7.130904506770904,-5.120202436629057,12.372699890207869,45.77354035727703,-19.023742000093847,2.0623060425248667,-1.7250187836994115,-4.554224429904309,7.743345260460359,-19.15412775994686,-16.596615300317637,-7.169782230947291,-6.367481167310004,2.3237747006598397,6.950476817404692,-9.520298239537283,-0.12372914113790046,-0.1616199926392028,-3.2852293027034563,1.9741586885606637,-9.415737632597256,1.5974760304391395,-0.4196019004729976,-4.149733004391834,-5.750088476873408,3.61634160999985,-2.3280746589179557,1.5791063079589023,1.1013425209687568,-2.6829167749149008,-1.8745120911480058,-0.6809655339495038,0.06654879100425148,-4.382579876689647,3.8784726634010056,9.184896111876846,-0.29131278299014696,-3.0273212913901517,0.7298850030113471,-1.4739662471448582,-1.3743653498799304,-0.12067321069255854,-2.3657492069137476,3.0081199021926537,-2.532998816312265,-0.8605821974646943,-1.3948346845626531,-1.7812393674631934,12.4029912023299,-7.19240495131816,4.735546086003801,0.7430454160386972,5.368204089835459,3.159647942589743,2.181952862683005,-0.011801676170449582,0.35492360394130174,-2.8194079370137928,16.877252346420747,-0.10338094302956335,-2.4097994241405445,-5.866819986115601,13.493902344079999,4.704353456894097,5.332382737707775,-10.522839557793674,24.6560896637736,10.99148214956567,-1.563156039129609,10.94295023915339,0.6384132639651625,-11.687307744430427,-0.7603832857473094,0.42005858948755304,3.1686454212715773,-2.065757563089335,1.0894536149888836,-7.045483722681638,4.710400091059029,3.645052688324,0.0517323644941996,5.769592361112785,1.2524267850297406,2.369971588462448,-66.76255497912506,-10.033320696771113,8.106825000814965,-4.451567322812167,6.98162426657305,-11.598678985222534,2.7457435936613024,5.119368110694296,-3.600328688078406,6.163521553756908,1.504541877428892,-9.83062414360009,11.57444700323424,-3.9305412968213034,-0.3782804205779371,-2.5576184253996104,2.746620010471702,-8.641784660413151,5.031363316557957,8.008315168306396,11.271391097061397,20.24657157076605,-10.281042534945584,7.843328485778287,-11.391559595134495,60.86953902426828,52.568274463502405,-13.947606784882453,-16.763103952065194,-7.844544427387177,6.20240098848393,-15.62097832537873,113.99737489345787,73.91129444695645,-27.73642990906444,-72.61903417268351,-18.817396326209064,-1.6574519793829552,-31.70232513251193,53.587487799382416,-48.96179857485325,0.10264994371169678,17.823942970631805,-30.747477357086666,-10.400766208867196,6.592613561685539,60.2631498425381,-16.625302595969856,10.813889155791315,93.42816855866099,-58.659203539437954,-19.21862853570454,34.87823521938603,-52.734619947657535,6.014300715084545,-43.139848578082024,-49.28463324906366,-17.999279730733008,11.005994271336391,-19.025841414104832,-8.76309978043247,23.9402689033827,-12.523732847151805,3.380491355827857,-16.024568517289154,13.097616781882849,-10.887626559451718,4.278080398105757,-9.298850876667288,-4.09351348336331,-10.718911417037901,7.151231368610297,-0.10106335994470328,2.209769221328955,17.9437636124961,12.884755099516354,3.990419267856794,-22.951811028929995,-12.388205468018498,-5.964935508311413,-1.9449336016324992,-14.751068590964792,-1.2006928985179002,-11.35756163538521,-3.0104633315445994,4.184719494054306,-2.189101664208792,4.997381889127695,2.461647696101494,24.774423832075698,-13.736580631575592,0.9189167917510019,-0.09455979997079567,3.7686663995726946,-4.5377565704600045,-2.823806962574494,-4.452344470028905,1.3623647734652025,-0.187083950715504,-5.874187366072192,-3.2838283796590986,0.968935890719905,-0.01878498498871295,-1.9944778933333964,-2.0805090932095993,-1.7971071430862082,5.847329272342407,15.3527621877558,12.5982617454235,-7.395225743704998,-4.289911303949211,10.855940860692016,17.992364577302794,-11.304674194167504,-5.3097178297986005,-16.848007469252593,-4.085078949183014,-7.03356627669379,-1.9300114352058984,-2.369431798951311,-1.4778782925898923,-6.369955974744798,15.757773918202702,-2.889144135895691,1.5610198308303893,-4.854288951428799,2.060364684489201,1.6163029973797052]\n",
"},\n",
"\"mapping\":{\n",
"\"x\":\"price_pct_change_from_yesterday\",\n",
"\"y\":\"iv_change_from_yesterday\"\n",
"},\n",
"\"data_meta\":{\n",
"},\n",
"\"ggtitle\":{\n",
"\"text\":\"Spot-to-Implied Volatility Correlation: GME\"\n",
"},\n",
"\"ggsize\":{\n",
"\"width\":600.0,\n",
"\"height\":600.0\n",
"},\n",
"\"theme\":{\n",
"\"name\":\"none\",\n",
"\"line\":{\n",
"\"color\":\"#0d1117\",\n",
"\"size\":1.0,\n",
"\"blank\":false\n",
"},\n",
"\"rect\":{\n",
"\"fill\":\"#ffffff\",\n",
"\"color\":\"#0d1117\",\n",
"\"size\":2.0,\n",
"\"blank\":false\n",
"},\n",
"\"text\":{\n",
"\"color\":\"#0d1117\",\n",
"\"blank\":false\n",
"},\n",
"\"axis_ontop\":true,\n",
"\"axis_ticks\":{\n",
"\"color\":\"#161b22\",\n",
"\"blank\":false\n",
"},\n",
"\"legend_background\":{\n",
"\"size\":2.0,\n",
"\"blank\":false\n",
"},\n",
"\"legend_position\":\"bottom\",\n",
"\"panel_grid_major\":{\n",
"\"color\":\"#161b22\",\n",
"\"size\":1.0,\n",
"\"linetype\":\"dashed\",\n",
"\"blank\":false\n",
"},\n",
"\"panel_grid_minor\":{\n",
"\"blank\":true\n",
"},\n",
"\"plot_title\":{\n",
"\"color\":\"#0d1117\",\n",
"\"hjust\":0.5,\n",
"\"blank\":false\n",
"},\n",
"\"axis_tooltip\":{\n",
"\"color\":\"#161b22\",\n",
"\"blank\":false\n",
"},\n",
"\"tooltip\":{\n",
"\"color\":\"#21262d\",\n",
"\"blank\":false\n",
"}\n",
"},\n",
"\"kind\":\"plot\",\n",
"\"scales\":[{\n",
"\"name\":\"Price % Change from Yesterday\",\n",
"\"aesthetic\":\"x\"\n",
"},{\n",
"\"name\":\"Implied Volatility % Change from Yesterday\",\n",
"\"aesthetic\":\"y\"\n",
"}],\n",
"\"layers\":[{\n",
"\"geom\":\"point\",\n",
"\"mapping\":{\n",
"},\n",
"\"data_meta\":{\n",
"},\n",
"\"color\":\"#77bdfb\",\n",
"\"data\":{\n",
"}\n",
"},{\n",
"\"geom\":\"line\",\n",
"\"mapping\":{\n",
"\"x\":\"x\",\n",
"\"y\":\"y\"\n",
"},\n",
"\"data_meta\":{\n",
"},\n",
"\"color\":\"#fa7970\",\n",
"\"size\":1.0,\n",
"\"data\":{\n",
"\"x\":[-6.774075430245318,-1.2961508248232612,0.9948269001193832,8.747044917257686,-4.384057971014499,-1.5157256536566965,-2.462485571373596,-1.3806706114398493,1.079999999999992,0.35615354174911573,0.7886435331230235,-3.638497652582162,5.399918798213577,2.7349768875192693,-7.986501687289094,-0.5297473512632433,3.646046702171235,-2.3320158102766775,8.741400242816667,-5.321920357275767,1.9261006289308158,8.638642499035875,0.4969826056087978,0.28258565877783415,-6.234589644240929,-1.2396694214876103,0.8368200836820217,-2.8291210863825023,-2.406832298136652,-8.074781225139226,7.659022068368659,4.9035369774919735,-0.19157088122605526,5.911708253358916,-1.6310257339615775,2.284450994841558,-0.5763688760806907,-8.840579710144937,4.531001589825112,1.520912547528508,-1.9850187265917474,-3.3626289644631324,1.225780941083432,2.3828124999999867,1.4879816863792472,3.4586466165413388,-7.1220930232558155,-8.489827856025034,-4.831124412141941,11.365678346810416,-8.713190802743043,0.17675651789661462,-7.366563740626386,0.23809523809523725,-2.232779097387183,1.0689990281827155,-4.230769230769226,1.7068273092369468,1.4807502467916844,-3.6478599221789865,1.3629480060575405,-9.362549800796804,-1.538461538461522,2.287946428571419,0.7092198581560405,-6.825568797399795,0.6976744186046657,-6.351039260969982,1.4796547472256671,-0.486026731470246,8.4859584859585,7.146876758581877,8.350840336134446,-0.6786233640329598,6.393362615910214,-4.633027522935784,-8.417508417508412,2.993697478991608,10.4538500764916,-1.2003693444136765,-5.467289719626156,-1.0874938210578278,14.04297851074463,-6.879929886064861,2.917647058823536,-0.18289894833105613,3.9853412734768723,-1.9823788546255439,7.235955056179777,-11.064543168482821,-0.5655042412818001,-6.777251184834121,-2.0335536349771366,2.179553710430726,0.9141696292534363,9.713135379969806,-0.917431192660545,1.8055555555555491,-6.048203728967705,-0.6776379477250738,-1.851851851851849,-2.9791459781529417,-2.2517911975434846,0.6806282722513046,-5.616224648985968,0.22038567493114503,2.8037383177569986,-0.2673796791443861,-3.1635388739946424,0.6090808416389981,-3.577325261419939,-1.5410958904109595,-2.898550724637683,0.9552238805970115,-5.677114133648731,5.078369905956137,-0.9546539379474916,1.6265060240963747,4.623592175459379,35.24079320113316,-5.404273146208638,6.2001771479185175,-4.086738949124269,0.6521739130434634,-2.9805615550755893,0.17809439002671734,2.3111111111111082,0.6516072980017551,-3.5390591281829975,-1.2527964205816589,1.4952424105119988,-0.1339285714285654,1.4304872597228346,-1.8951079770824109,1.302785265049411,-0.3991130820399147,-0.8014247551202169,-3.007181328545794,-1.3882461823230052,-5.1149694978883105,1.335311572700304,-2.7330405075646547,-4.666332162568986,-1.8421052631579005,1.5549597855228026,1.8479408658922836,-3.8361845515811233,0.16172506738543202,1.7222820236813874,2.3809523809523947,5.529715762273901,0.4407443682663992,-1.3164310092637854,2.5691699604743157,0.5780346820809079,-0.9099616858237458,4.494925084581913,1.7113783533764915,4.001819008640295,0.7870572802798348,-4.29501084598699,9.74614687216684,-4.337050805452291,0.47495682210707546,0.3437902879243726,-0.4282655246252709,5.67741935483872,-2.1164021164021163,0.20790020790020236,2.24066390041493,-1.3392857142857206,1.5631427396133324,5.751316322397715,-17.885867483722706,5.7835820895522305,7.14285714285714,10.905349794238672,-4.638218923933213,-3.3463035019455245,-1.1272141706924366,0.08143322475568926,-0.6102522375915354,-0.4502660663119107,-2.5493421052631637,-2.8691983122362874,2.4326672458731435,5.937234944868552,-0.32025620496397567,-2.6104417670682722,2.7216494845360817,-4.054596547571265,-4.476987447698743,-0.525624178712214,3.6547776309995506,1.571792693288021,-1.965704726056039,0.08532423208191808,-2.0886615515771645,-0.6530256856769667,1.1393514460999121,0.3899480069324168,-1.1221406991799854,-3.1863814927979073,3.877366997294862,-0.8246527777777679,-0.6564551422319598,-2.114537444933917,-1.3051305130513002,1.2311901504787892,-3.1531531531531543,-3.116279069767447,0.48007681228996457,0.23889154323937234,0.42897998093422984,-1.5662078785002476,-3.9054966248794565,1.30456598093327,0.0,-1.1391778107974315,-3.1563126252505125,-3.8282462493533287,-1.1296395911780555,-0.10881392818280489,0.6535947712418277,-6.601731601731597,-2.1436848203939762,-3.1379514505624706,4.706601466992666,2.568593111500306,3.8133181559476315,0.7127192982456343,0.9798584648883946,-0.7008086253369239,4.3973941368078195,-2.49609984399376,0.7466666666666733,-6.246691371095814,-3.8961038961039085,1.2338425381903662,3.366221706326167,2.9197080291970767,-0.6001091107474044,-3.6772777167947246,-0.17094017094018144,0.0,-2.853881278538817,0.9400705052879044,2.8521536670547354,-5.036785512167519,2.205005959475548,-1.8075801749271037,-2.25653206650831,-6.500607533414337,-5.133203378817419,1.8493150684931514,-1.0759919300605159,2.515295717199173,2.1220159151193574,3.8961038961038863,-1.1249999999999982,-4.614412136536028,-1.1265738899933764,-3.2841823056300234,-2.1483021483021503,-1.912181303116145,-4.981949458483747,2.127659574468077,0.0,4.464285714285721,-2.350427350427342,-1.5317286652078876,-2.8148148148148255,-2.4390243902438935,7.578124999999991,-5.519244734931005,4.842428900845519,1.6862170087976525,-2.451333813987022,0.8130081300813163,-2.639296187683293,-4.367469879518071,-1.2598425196850394,-3.1897926634768647,6.260296540362442,2.8682170542635665,-5.576488319517714,3.9904229848363837,-1.7651573292402079,-1.953125,-2.07171314741037,-0.7323026851098424,-2.3770491803278615,13.266162888329136,20.459599703484056,-10.461538461538456,5.154639175257736,10.98039215686275,-12.190812720848054,-0.46948356807512415,10.242587601078167,-4.9511002444987735,-3.086816720257235,0.995355009953558,9.65834428383705,4.493708807669261,-1.0321100917431214,3.476245654692911,-0.7838745800671898,-4.458239277652365,0.2953337271116352,-0.05889281507657218,2.29817324690631,5.817972350230427,-1.6330974414806798,-2.9883785279468666,-4.905875641756985,0.11997600479902726,-1.9772318753744855,-2.4449877750611138,-1.06516290726818,-3.9898670044331785,3.759894459102897,-3.0514939605848723,-3.2786885245901676,-5.220338983050842,0.7153075822603716,1.4914772727272707,1.5395381385584272,2.6878015161957203,-4.832214765100673,-1.6220028208744797,4.086021505376336,-0.20661157024792765,2.00138026224983,-1.556156968876854,-2.1993127147766356,1.3352073085031613,2.1497919556171974,-8.621860149355054,4.7548291233283635,-0.21276595744680327,1.990049751243772,2.160278745644595,0.4774897680764001,-3.801765105227428,1.6937191249117856,0.6939625260235838,-2.6878015161957314,-4.461756373937675,-0.5930318754633013,-0.37285607755407346,1.1227544910179743,1.2583271650629113,3.8742690058479523,0.2111189303307448,0.2106741573033588,4.7652417659425295,1.8060200668896353,-1.4454664914586135,1.7333333333333423,0.0,-3.997378768020965,-1.5017064846416406,2.009702009702008,1.0190217391304213,-1.6139878950907738,-2.665755297334249,-2.31741573033708,-3.5945363048166756,0.5219985085756829,1.335311572700304,-4.099560761346998,15.419847328244263,2.5132275132275117,-15.032258064516125,-4.935459377372819,-4.2332268370607,-5.921601334445381,0.8865248226950451,1.3181019332161537,-2.4284475281873275,-3.733333333333333,1.6620498614958512,-1.4532243415077195,4.055299539170498,-4.605845881310888,-6.592386258124416,3.0815109343936165,-0.675024108003841,0.0970873786407811,1.066925315227918,-3.9347408829174646,1.4985014985015033,7.5787401574803015,2.5617566331198605,6.155218554861719,-5.126050420168083,-1.7714791851195733,-1.6230838593327301,16.95692025664528,29.075235109717855,-0.9714632665452361,0.0,-2.391171060698949,13.128140703517598,-3.0538589672404304,74.39862542955325,60.09852216748768,-18.87179487179488,-30.037926675094806,-19.732562341886517,4.187303016659172,-4.407951598962834,-4.520795660036169,-13.257575757575758,3.7117903930131035,25.157894736842113,-10.681244743481933,6.450094161958564,2.34409553295003,21.002592912705275,-5.35714285714286,19.13207547169811,47.450110864745,-39.377013963480124,-12.012756909992916,22.795006041079336,-16.497212200721545,14.375490966221527,-1.4423076923076983,-12.125435540069684,-2.0618556701030966,3.603238866396774,-6.486908948808123,-1.1700793982448832,5.412262156448211,-2.9281989570798306,3.677685950413223,-1.5942606616181743,-5.508302956662625,2.786112301757404,1.626355296080062,-0.779647107098902,1.1166253101736912,0.6134969325153561,1.504065040650393,2.402883460152183,1.8771998435666903,3.6468330134356908,5.7037037037037,-1.962158374211631,-7.505360972122954,-3.5162287480680066,1.0012014417300819,1.1102299762093537,-5.843137254901953,-0.2498958767180426,0.7515657620041694,-2.1964359718192994,-5.084745762711873,1.2053571428571663,-4.234671371857079,-2.947950253339482,-1.9933554817275878,3.050847457627137,-2.1146616541353525,4.416706673067705,0.8275862068965578,-0.22799817601459882,1.782449725776969,-1.2572968118545136,2.4556616643929274,-0.5770084332001879,1.1607142857142927,-1.6769638128861342,1.2118491921005337,-1.906873614190685,0.4068716094032476,-3.8271049076992414,-2.9026217228464435,-4.050144648023146,8.090452261306558,8.879590887959088,-1.1955593509820672,-4.407951598962834,1.220614828209765,6.833407771326483,1.3795986622073597,-3.298969072164948,-11.982942430703625,-1.1627906976744318,1.225490196078427,-2.7118644067796516,0.34843205574912606,-2.529761904761918,-0.7124681933842081,11.993849308047144,2.105263157894721,1.4343343792021512,-1.9885108263367202,0.4959422903516586,0.8524001794526725],\n",
"\"y\":[-9.057227687959628,-2.000130571616576,0.9512887086517468,10.938311049167199,-5.9782175637872745,-2.283004288032497,-3.5026955336140597,-2.1090156668614926,1.0610154538797658,0.12849901359483867,0.6856669359045104,-5.017727605955284,6.626277608735651,3.1930879926230835,-10.619171390852742,-1.0127888075728946,4.366800415646148,-3.3346140353956133,10.931039131682066,-7.186446303383274,2.1510294169514084,10.79865845294845,0.30992618757926066,0.033723029592026055,-8.362219293548492,-1.927366746387492,0.7477317908477021,-3.97502449432252,-3.430998571285161,-10.732900095949855,9.53663368730462,5.986799162436436,-0.5771230466472499,7.285605392200587,-2.4315429998337352,2.612684791215971,-1.0728503549740886,-11.719462465735756,5.506869517651376,1.6290339813058516,-2.8875848601074847,-4.662331673436029,1.2488220290048455,2.7394018865417524,1.5866098331120055,4.125376756293084,-9.505571564332094,-11.267596097255346,-6.554164025221119,14.31184240557992,-11.55534996769404,-0.10261446658283685,-9.820518139697244,-0.02359306037264286,-3.2067694280283208,1.0468431291252722,-5.780738846084217,1.868544128531973,1.5772937188650358,-5.029788824488445,1.4255315254677747,-12.391905751631038,-2.312294458790749,2.617187886287954,0.5833470560317426,-9.12356552921012,0.5684733047420163,-8.512238929379995,1.5758824094029371,-0.9564644361931756,10.601958792764462,8.8768474636557,10.427888871366655,-1.204582699619145,7.906110758351557,-6.298959894775518,-11.174428458455418,3.526392386446032,13.137152879788024,-1.876737268881357,-7.3737226501281965,-1.7313220637155498,17.76095290406755,-9.193597796846625,3.42841820105225,-0.5659511746273531,4.803906603340271,-2.884183967583011,8.991605194436563,-14.584548650593785,-1.0588536703841838,-9.061318946997526,-2.950111380036124,2.4775477864833433,0.8473796126636832,12.182905436571504,-1.5122338923901766,1.9957336889189463,-8.122102168917076,-1.203313208144601,-2.7160287260947666,-4.168298463453987,-3.2312623239429263,0.5465131065027056,-7.565592443200477,-0.04640792478558253,3.2816719228520603,-0.6747859550876749,-4.405848022319876,0.45434002953919744,-4.938920478006967,-2.3156882399916454,-4.0644692631377755,0.9002689566469135,-7.644035108549298,6.212032812801947,-1.560187186264809,1.765067876013739,5.626152056559148,45.06965970449447,-7.292539700274084,7.6572339104055,-5.595187609351854,0.509855943292703,-4.170122121963067,-0.10089091355291044,2.6470304683107213,0.5091259848385545,-4.889623008988732,-1.9442779881671166,1.595963674033636,-0.5028636496032344,1.5125409508639438,-2.771754698724368,1.3480251089574926,-0.8444953769332983,-1.3627851951531318,-4.204415826262747,-2.118775118348148,-6.919835786042025,1.3899280792359086,-3.851245869286157,-6.341865574069402,-2.7034723972073325,1.6728963347291095,2.0503378087085116,-5.2724035544857735,-0.12197917378452477,1.8884541179158747,2.7370055335956343,6.793492356429249,0.2374756280764106,-2.026257114320809,2.9794823534435184,0.414343903474581,-1.502611081023568,5.4603929011482,1.8744071446899064,4.825134529184769,0.683623399132504,-5.863499991984941,12.22543346007867,-5.917659203380458,0.2815508256618388,0.11257168906962467,-0.8820518665388399,6.983775843743215,-3.056843367325419,-0.062492694059889276,2.556274781938855,-2.0557003587103955,1.683438265455627,7.078975780622759,-23.37231986363172,7.120543101961455,8.871669075747299,13.718810639916521,-6.305647869446157,-4.641299917295767,-1.7824929696803897,-0.2254174961242261,-1.1165015897087747,-0.9103947099472895,-3.6145910121025584,-4.026655156548837,2.8036287258431236,7.31849090158933,-0.7429056910757014,-3.693304444322414,3.1759185746526533,-5.553779217369327,-6.097936689034548,-1.0074770095442667,4.378048290908308,1.694581822100004,-2.862703032170188,-0.22040479175906927,-3.0211057706746507,-1.1716057393425556,1.1374766959180296,0.1720357250270061,-1.775956921129278,-4.435275696283605,4.664805573667632,-1.3927093769413774,-1.1760238373829905,-3.0544411495898682,-2.0116989184749885,1.2557906017354536,-4.392468312688775,-4.344964192739498,0.2881468032551792,-0.022567196904050624,0.22231981088330438,-2.348039495530129,-5.361696866795562,1.350319168447937,-0.330326237480226,-1.7979054801049323,-4.396538595329279,-5.262176803700453,-1.7856175887921677,-0.4705089734815126,0.5116864055601984,-8.835200693645055,-3.0919911113225567,-4.372884273249818,5.733091212189258,2.9787392108257795,4.58229277436235,0.5878553124142134,0.9320051827338796,-1.2331635134949979,5.334745795744541,-3.5460001066892217,0.6315890059291667,-8.377809698280577,-5.349596408331621,1.2592076180361647,4.006307653605516,3.4310733066127734,-1.1034344089134116,-5.067687161633577,-0.5505449287369667,-0.330326237480226,-4.006922538427302,0.8807471762465562,3.3440444172777073,-6.819112972217921,2.5103373931823603,-2.6589944391949345,-3.2373698875022194,-8.704924645265665,-6.94332611820125,2.052108165533477,-1.7165044151284772,2.9100772786665026,2.4034230332929307,4.68894393337114,-1.7796404993135593,-6.274978076998892,-1.7816681092815234,-4.5612704632671415,-3.097939519490448,-2.793749911984476,-6.748468816958766,2.4106936430556227,-0.330326237480226,5.420920833286987,-3.3583332422602137,-2.3036206372533194,-3.956594020174347,-3.472470978582297,9.432415665147094,-7.44065522315494,5.908074889550293,1.8419923042054491,-3.488328954925289,0.7170553428871549,-3.7304769983795585,-5.956847468158501,-1.9533553320967347,-4.439670237007658,7.734684481855932,3.3647385472111386,-7.514400950746033,4.810453267116146,-2.604341963389092,-2.846496830940878,-2.9992714916753167,-1.2737366601544846,-3.3926295958165906,16.760197383728247,26.027353443995796,-13.80771014239192,6.310288937013871,13.81548616559896,-16.035498450515192,-0.9351522205092742,12.86498779658189,-6.708726411807859,-4.307008456444148,0.951969061642399,12.112319199196673,5.458825996725226,-1.6599723492539311,4.148049233615415,-1.3401756671513327,-6.073783808828778,0.05014610270047387,-0.40619663464466094,2.6303628851021195,7.164847364422856,-2.4342119378370977,-4.180192566644584,-6.650464490261707,-0.17576362873976828,-2.877553220530639,-3.480153484061762,-1.70255360875101,-5.470389484007563,4.513468129245075,-4.2615028747904,-4.55419293863385,-7.055581117249219,0.5911897452464214,1.5911131247988146,1.653028945496729,3.1323129362084146,-6.555568704415361,-2.4199189672822565,4.9336108664305645,-0.5964996556314275,2.2480106135690363,-2.335091116275389,-3.1636553785977095,1.3897937578244264,2.439206332520291,-11.437690573473802,5.795221905648924,-0.6044282255338052,2.2334137502846456,2.4527162474958986,0.2848139676332126,-5.228061692721491,1.851657125430465,0.5636913502032115,-3.792965411168881,-6.07831481132348,-1.094316952885322,-0.8106690204227637,1.116095181515132,1.2907506570779848,4.660814495279148,-0.058346080439028836,-0.05891907234291266,5.808636298043665,1.9963321092756345,-2.19249086065637,1.9026912918629986,-0.330326237480226,-5.480066733873606,-2.2649436821724325,2.2587313489164287,0.982458419977488,-2.409593503952603,-3.764563722799596,-3.3158050539908444,-4.96109310970112,0.342153658639301,1.3899280792359086,-5.611705685189143,19.534744560846054,2.907412854210939,-19.696073793446796,-6.68857660576956,-5.7839049295048435,-7.959002919171783,0.8117653794097277,1.3677572561733404,-3.4588450256720527,-5.139902454527147,1.8108582675367138,-2.202485138627333,4.894032391965069,-6.26394234733818,-8.823161280514727,3.639520647152695,-1.1999458524235973,-0.20525057302858404,1.0441716075605283,-5.399371640352201,1.6001622897703103,9.433208159822193,2.969931916943562,7.5993146836417855,-6.934111109325883,-2.6124862797332864,-2.42131164679793,21.514923864498964,37.12669857200547,-1.5818422970813013,-0.330326237480226,-3.4108225225950095,16.58238625404224,-4.2645496640128275,95.51588611438449,77.0933584669169,-24.64246975222291,-39.02756670514146,-25.75137870380159,5.06408974533034,-6.008999231122796,-6.154373904079931,-17.409787235516166,4.451496654546309,32.080069886792735,-14.090753207134194,7.979196837270426,2.6895236176347006,26.726880379287323,-7.231822722400875,24.317131397723163,60.79867145305118,-51.05891994919769,-15.806112827337722,29.036009188220508,-21.583343946810576,18.189321832031897,-2.188421444958869,-15.951274378959146,-2.986572307277868,4.311651965062907,-8.687277041677474,-1.837715356905716,6.642179302183095,-4.102664468574712,4.407560605611303,-2.38417931655851,-7.426559156226779,3.2589646905253806,1.7648736962237837,-1.3347295010495954,1.1081990844387095,0.46002918819578204,1.6073296861993742,2.7652588899171007,2.0880315452686724,4.367813404205984,7.017637427452565,-2.8581343403430064,-9.999327746018096,-4.860211101874303,0.959500898935334,1.0999601077954195,-7.857919266261637,-0.6522619335698296,0.6379004092560239,-3.159949330068202,-6.880899172320172,1.2225104716269495,-5.785765893844493,-4.12810965556032,-2.898324929543739,3.600017523423759,-3.0546011657383936,5.359625737285541,0.735835978121316,-0.6240515780757329,1.9659669256926442,-1.9500757492831866,2.833251960246046,-1.0736742832003503,1.1649980009192562,-2.490724078008478,1.2308740445664486,-2.786912125978215,0.1938380525137376,-5.260706436823214,-4.0697138460389795,-5.548043927140582,10.092436293180533,11.109067285332609,-1.8705406536993519,-6.008999231122796,1.2421666325016933,8.473011842436415,1.4469822218471666,-4.580319949156444,-15.76770344952163,-1.8283254745172823,1.2484474682205695,-3.8239651360615126,0.11855158267721067,-3.5893662442483256,-1.2481842941685493,15.121102079348761,2.381840802207867,1.5174971154224774,-2.8920836600756035,0.3085859709223943,0.7678033064042653]\n",
"}\n",
"}],\n",
"\"metainfo_list\":[]\n",
"};\n",
" var plotContainer = document.getElementById(\"f8vvCV\");\n",
" window.letsPlotCall(function() {{\n",
" LetsPlot.buildPlotFromProcessedSpecs(plotSpec, -1, -1, plotContainer);\n",
" }});\n",
" })();\n",
" </script>"
]
},
"metadata": {},
"output_type": "display_data"
}
],
"source": [
"ticker = 'GME'\n",
"df = create_uw_iv_rv_df(ticker)\n",
"linreg_str = create_linear_regression_str(df)\n",
"print(linreg_str)\n",
"p = create_pct_price_vs_iv_plot(ticker, df, dark_color=False)\n",
"p.show()"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"**GME Spot-to-Implied Volatility Correlation Chart (above)**\n",
"- C'mon, you knew I was going to pick a fun one for the very end, and what's more fun than GME!?\n",
"- Remarkably high R<sup>2</sup> at 0.4773\n",
"- And you're reading that right, **30-calendar day implied volatility is expected to INCREASE by 1.2883 pts for every +1% move in GME**\n",
"- Fundamentally this makes sense considering GME's history... the risk is to the upside here"
]
}
],
"metadata": {
"kernelspec": {
"display_name": "dans-magic-house-uvW-KuUb-py3.10",
"language": "python",
"name": "python3"
},
"language_info": {
"codemirror_mode": {
"name": "ipython",
"version": 3
},
"file_extension": ".py",
"mimetype": "text/x-python",
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.10.12"
}
},
"nbformat": 4,
"nbformat_minor": 2
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment