{"id":37638,"date":"2020-03-10T12:08:00","date_gmt":"2020-03-10T16:08:00","guid":{"rendered":"https:\/\/ibkrcampus.com\/?p=37638"},"modified":"2022-11-21T09:45:10","modified_gmt":"2022-11-21T14:45:10","slug":"the-graphical-lasso-and-its-financial-applications","status":"publish","type":"post","link":"https:\/\/www.interactivebrokers.com\/campus\/ibkr-quant-news\/the-graphical-lasso-and-its-financial-applications\/","title":{"rendered":"The Graphical Lasso and its Financial Applications"},"content":{"rendered":"\n<p><strong><em>Excerpt<\/em><\/strong><\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Applying the Graphical Lasso to stock data using R<\/h2>\n\n\n\n<p><\/p>\n\n\n\n<p>We\u2019re going to take a universe of US equities and apply the Graphical Lasso algorithm to estimate an inverse covariance matrix. Then, we\u2019ll apply the transform given by the equation above to construct a sparse matrix of partial correlations.<\/p>\n\n\n\n<p>We can think of this sparse matrix as representing a <em>network<\/em> with&nbsp;<em>edges<\/em> (connections) between <em>nodes <\/em>(stocks ) that have some sort of relationship, independent of any of the other variables.<\/p>\n\n\n\n<p>Thinking of our matrix in this way leads us to the concept of a network graph which we can use as a visual tool to aid our understanding of and ability to reason about a large universe of stocks.<\/p>\n\n\n\n<p>Our data consists of daily returns for the top roughly 1,100 US stocks by market cap between 2010 and 2019. Each returns series is standardised to have zero mean and unit variance.<\/p>\n\n\n\n<p>Firstly, we group stocks into clusters based on loadings to statistical factors obtained from Principal Components Analysis (PCA) using the DBSCAN clustering algorithm. In our graph, we will colour stocks according to their cluster. All going well, we should see more connections between stocks within the same cluster.<\/p>\n\n\n\n<p>We\u2019ll gloss over the code for performing the clustering operations here \u2013 the subject of another blog post perhaps.<\/p>\n\n\n\n<p>Next, we calculate a covariance matrix of stock returns.<\/p>\n\n\n\n<p>I\u2019ll provide the code for you to reproduce the analysis from this point. We\u2019ll use the <a rel=\"noreferrer noopener\" href=\"https:\/\/cran.r-project.org\/web\/packages\/glasso\/glasso.pdf\" target=\"_blank\"><code>glasso<\/code> package<\/a>, which implements the Graphical Lasso algorithm, the <code>igraph<\/code> package, which contains tools for building network graphs, and the <code>threejs<\/code> and <code>htmlwidgets<\/code> packages for creating interactive plots.<\/p>\n\n\n\n<p>The first thing we need to do is load these and a few other packages and the data:  <\/p>\n\n\n\n<p style=\"background-color:#fcfcdb;font-size:11px\" class=\"has-background\"># install and load required packages<br>\nrequired.packages <- c('glasso', 'colorRamps', 'igraph', 'RColorBrewer', 'threejs', 'htmlwidgets')<br>\nnew.packages <- required.packages[!(required.packages %in% installed.packages()[,\"Package\"])]<br>\nif(length(new.packages)) install.packages(new.packages, repos=&#8217;https:\/\/cran.us.r-project.org&#8217;)<br>\nlibrary(glasso);library(colorRamps);library(igraph);library(RColorBrewer);library(threejs);library(htmlwidgets);<br>\n<br><br> \n# load data<br>\nload(&#8220;.\/clusters_covmat.RData&#8221;)<\/p>\n\n\n\n<p>This will load the covariance matrix into the variable <code>S<\/code> and a dataframe of tickers and their corresponding clusters into the variable <code>cl<\/code>.<\/p>\n\n\n\n<p>Then, to apply the Graphical Lasso, we choose a value for <code>rho<\/code>, which is the regularisation parameter that controls the degree of sparsity in the resulting inverse covariance matrix. Higher values lead to greater sparsity.<\/p>\n\n\n\n<p>In our application, there is no \u201ccorrect\u201d value of <code>rho<\/code>, but it can be tuned for your use case.<\/p>\n\n\n\n<p>For instance, if you wanted to isolate the strongest relationships in your data you would choose a higher value <code>rho<\/code>. If you were interested in preserving more tenuous connections, perhaps identifying stocks with connections to multiple groups, you\u2019d choose a lower value of <code>rho<\/code>. Finding a sensible value requires experimentation.<\/p>\n\n\n\n<p>It\u2019s also not a bad idea to check for symmetry in the resulting inverse covariance matrix. Assymmetry can arise due to numerical computation and rounding errors, which can cause problems later depending on what you want to do with the matrix.<\/p>\n\n\n\n<p style=\"background-color:#fcfcdb;font-size:11px\" class=\"has-background\"># estimate precision matrix using glasso<br>\nrho <- 0.75<br>\ninvcov <- glasso(S, rho=rho)  <br>\nP <- invcov$wi<br>\ncolnames(P) <- colnames(S)<br>\nrownames(P) <- rownames(S)<br>\n <br><br>\n# check symmetry<br>\nif(!isSymmetric(P)) {<br>\n  P[lower.tri(P)] = t(P)[lower.tri(P)]  <br>\n}<\/p>\n\n\n\n<p>Next, we calculate the partial correlation matrix and set the terms on the diagonal to zero \u2013 this prevents stocks having connections with&nbsp;<em>themselves<\/em> in the network graph we\u2019ll be shortly constructing:<\/p>\n\n\n\n<p style=\"background-color:#fcfcdb;font-size:11px\" class=\"has-background\"># calculate partial correlation matrix<br>\nparr.corr <- matrix(nrow=nrow(P), ncol=ncol(P))<br>\nfor(k in 1:nrow(parr.corr)) {<br>\n  for(j in 1:ncol(parr.corr)) {<br>\n    parr.corr[j, k] <- -P[j,k]\/sqrt(P[j,j]*P[k,k])<br>\n  }<br>\n}<br>\ncolnames(parr.corr) <- colnames(P)<br>\nrownames(parr.corr) <- colnames(P)<br>\ndiag(parr.corr) <- 0<\/p>\n\n\n\n<p>Now if you run <code>View(parr.corr)<\/code> in R Studio, you\u2019ll see a very sparse partial correlation matrix. In fact, only about 6,000 of 1.35 million elements will contain non-zeroes! The non-zero elements represent a connection between two stocks, with the strength of the connection determined by the magnitude of the partial correlation. Here\u2019s a snapshot that gives you an idea of the level of sparsity:<\/p>\n\n\n\n<p>The partial correlation matrix can be used to build a network graph, where stocks are represented as nodes and non-zero elements are represented as edges between two stocks.<\/p>\n\n\n\n<p>The <code>igraph<\/code> package has some fantastic tools for building, manipulating and displaying graphs. We\u2019ll only use a fraction of the package\u2019s features here, but if you\u2019re interested in getting to know it, check out <a href=\"https:\/\/kateto.net\/networks-r-igraph\" target=\"_blank\" rel=\"noreferrer noopener\">Katya Ognyanova\u2019s tutorial<\/a> (it\u2019s really excellent and got me up and running with <code>igraph<\/code> in a matter of hours).<\/p>\n\n\n\n<p>This next block of code constructs the network graph, assigns a colour to each node according to its cluster and drops any node with no connections.<\/p>\n\n\n\n<p style=\"background-color:#f3f2c5\" class=\"has-background\">Visit Robot Wealth website to download the code, and interact  the resulting network graph (screenshot below):<br><a href=\"https:\/\/robotwealth.com\/the-graphical-lasso-and-its-financial-applications\/\">https:\/\/robotwealth.com\/the-graphical-lasso-and-its-financial-applications\/<\/a> <\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" width=\"920\" height=\"729\" data-src=\"\/campus\/wp-content\/uploads\/sites\/2\/2020\/03\/robotwealth-1.png\" alt=\"Graphical Lasso\" class=\"wp-image-37777 lazyload\" data-srcset=\"https:\/\/ibkrcampus.com\/campus\/wp-content\/uploads\/sites\/2\/2020\/03\/robotwealth-1.png 920w, https:\/\/ibkrcampus.com\/campus\/wp-content\/uploads\/sites\/2\/2020\/03\/robotwealth-1-700x555.png 700w, https:\/\/ibkrcampus.com\/campus\/wp-content\/uploads\/sites\/2\/2020\/03\/robotwealth-1-300x238.png 300w, https:\/\/ibkrcampus.com\/campus\/wp-content\/uploads\/sites\/2\/2020\/03\/robotwealth-1-768x609.png 768w\" data-sizes=\"(max-width: 920px) 100vw, 920px\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" style=\"--smush-placeholder-width: 920px; aspect-ratio: 920\/729;\" \/><\/figure>\n","protected":false},"excerpt":{"rendered":"<p>Robot Wealth provides ready-to-use code for the Graphical Lasso package as applied in Financial Applications, and tips on creating a network graph<\/p>\n","protected":false},"author":271,"featured_media":37639,"comment_status":"closed","ping_status":"open","sticky":true,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[339,343,338,350,341,344,342],"tags":[806,5479,4922,6769,6772,6770,6773,6591,508,6771],"contributors-categories":[13676],"class_list":{"0":"post-37638","1":"post","2":"type-post","3":"status-publish","4":"format-standard","5":"has-post-thumbnail","7":"category-data-science","8":"category-programing-languages","9":"category-ibkr-quant-news","10":"category-quant-asia-pacific","11":"category-quant-development","12":"category-quant-regions","13":"category-r-development","14":"tag-data-science","15":"tag-data-visualisation","16":"tag-econometrics","17":"tag-glasso","18":"tag-htmlwidgets-r","19":"tag-igraph","20":"tag-rho","21":"tag-rstats","22":"tag-rstudio","23":"tag-threejs","24":"contributors-categories-robot-wealth"},"pp_statuses_selecting_workflow":false,"pp_workflow_action":"current","pp_status_selection":"publish","acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v26.9 (Yoast SEO v27.5) - https:\/\/yoast.com\/product\/yoast-seo-premium-wordpress\/ -->\n<title>The Graphical Lasso and its Financial Applications<\/title>\n<meta name=\"description\" content=\"Robot Wealth provides ready-to-use code for the Graphical Lasso package as applied in Financial Applications\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.interactivebrokers.com\/campus\/wp-json\/wp\/v2\/posts\/37638\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"The Graphical Lasso and its Financial Applications | IBKR Quant Blog\" \/>\n<meta property=\"og:description\" content=\"Robot Wealth provides ready-to-use code for the Graphical Lasso package as applied in Financial Applications\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.interactivebrokers.com\/campus\/ibkr-quant-news\/the-graphical-lasso-and-its-financial-applications\/\" \/>\n<meta property=\"og:site_name\" content=\"IBKR Campus US\" \/>\n<meta property=\"article:published_time\" content=\"2020-03-10T16:08:00+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2022-11-21T14:45:10+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.interactivebrokers.com\/campus\/wp-content\/uploads\/sites\/2\/2020\/03\/mobile-trade-stocks.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"900\" \/>\n\t<meta property=\"og:image:height\" content=\"540\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"Kris Longmore\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Kris Longmore\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\n\t    \"@context\": \"https:\\\/\\\/schema.org\",\n\t    \"@graph\": [\n\t        {\n\t            \"@type\": \"NewsArticle\",\n\t            \"@id\": \"https:\\\/\\\/www.interactivebrokers.com\\\/campus\\\/ibkr-quant-news\\\/the-graphical-lasso-and-its-financial-applications\\\/#article\",\n\t            \"isPartOf\": {\n\t                \"@id\": \"https:\\\/\\\/www.interactivebrokers.com\\\/campus\\\/ibkr-quant-news\\\/the-graphical-lasso-and-its-financial-applications\\\/\"\n\t            },\n\t            \"author\": {\n\t                \"name\": \"Kris Longmore\",\n\t                \"@id\": \"https:\\\/\\\/ibkrcampus.com\\\/campus\\\/#\\\/schema\\\/person\\\/79c2a2775a70a4da1accf0068d731933\"\n\t            },\n\t            \"headline\": \"The Graphical Lasso and its Financial Applications\",\n\t            \"datePublished\": \"2020-03-10T16:08:00+00:00\",\n\t            \"dateModified\": \"2022-11-21T14:45:10+00:00\",\n\t            \"mainEntityOfPage\": {\n\t                \"@id\": \"https:\\\/\\\/www.interactivebrokers.com\\\/campus\\\/ibkr-quant-news\\\/the-graphical-lasso-and-its-financial-applications\\\/\"\n\t            },\n\t            \"wordCount\": 300,\n\t            \"publisher\": {\n\t                \"@id\": \"https:\\\/\\\/ibkrcampus.com\\\/campus\\\/#organization\"\n\t            },\n\t            \"image\": {\n\t                \"@id\": \"https:\\\/\\\/www.interactivebrokers.com\\\/campus\\\/ibkr-quant-news\\\/the-graphical-lasso-and-its-financial-applications\\\/#primaryimage\"\n\t            },\n\t            \"thumbnailUrl\": \"https:\\\/\\\/www.interactivebrokers.com\\\/campus\\\/wp-content\\\/uploads\\\/sites\\\/2\\\/2020\\\/03\\\/mobile-trade-stocks.jpg\",\n\t            \"keywords\": [\n\t                \"Data Science\",\n\t                \"Data Visualisation\",\n\t                \"Econometrics\",\n\t                \"glasso\",\n\t                \"htmlwidgets R\",\n\t                \"igraph\",\n\t                \"rho\",\n\t                \"rstats\",\n\t                \"RStudio\",\n\t                \"threejs\"\n\t            ],\n\t            \"articleSection\": [\n\t                \"Data Science\",\n\t                \"Programming Languages\",\n\t                \"Quant\",\n\t                \"Quant Asia Pacific\",\n\t                \"Quant Development\",\n\t                \"Quant Regions\",\n\t                \"R Development\"\n\t            ],\n\t            \"inLanguage\": \"en-US\"\n\t        },\n\t        {\n\t            \"@type\": \"WebPage\",\n\t            \"@id\": \"https:\\\/\\\/www.interactivebrokers.com\\\/campus\\\/ibkr-quant-news\\\/the-graphical-lasso-and-its-financial-applications\\\/\",\n\t            \"url\": \"https:\\\/\\\/www.interactivebrokers.com\\\/campus\\\/ibkr-quant-news\\\/the-graphical-lasso-and-its-financial-applications\\\/\",\n\t            \"name\": \"The Graphical Lasso and its Financial Applications | IBKR Quant Blog\",\n\t            \"isPartOf\": {\n\t                \"@id\": \"https:\\\/\\\/ibkrcampus.com\\\/campus\\\/#website\"\n\t            },\n\t            \"primaryImageOfPage\": {\n\t                \"@id\": \"https:\\\/\\\/www.interactivebrokers.com\\\/campus\\\/ibkr-quant-news\\\/the-graphical-lasso-and-its-financial-applications\\\/#primaryimage\"\n\t            },\n\t            \"image\": {\n\t                \"@id\": \"https:\\\/\\\/www.interactivebrokers.com\\\/campus\\\/ibkr-quant-news\\\/the-graphical-lasso-and-its-financial-applications\\\/#primaryimage\"\n\t            },\n\t            \"thumbnailUrl\": \"https:\\\/\\\/www.interactivebrokers.com\\\/campus\\\/wp-content\\\/uploads\\\/sites\\\/2\\\/2020\\\/03\\\/mobile-trade-stocks.jpg\",\n\t            \"datePublished\": \"2020-03-10T16:08:00+00:00\",\n\t            \"dateModified\": \"2022-11-21T14:45:10+00:00\",\n\t            \"description\": \"Robot Wealth provides ready-to-use code for the Graphical Lasso package as applied in Financial Applications\",\n\t            \"inLanguage\": \"en-US\",\n\t            \"potentialAction\": [\n\t                {\n\t                    \"@type\": \"ReadAction\",\n\t                    \"target\": [\n\t                        \"https:\\\/\\\/www.interactivebrokers.com\\\/campus\\\/ibkr-quant-news\\\/the-graphical-lasso-and-its-financial-applications\\\/\"\n\t                    ]\n\t                }\n\t            ]\n\t        },\n\t        {\n\t            \"@type\": \"ImageObject\",\n\t            \"inLanguage\": \"en-US\",\n\t            \"@id\": \"https:\\\/\\\/www.interactivebrokers.com\\\/campus\\\/ibkr-quant-news\\\/the-graphical-lasso-and-its-financial-applications\\\/#primaryimage\",\n\t            \"url\": \"https:\\\/\\\/www.interactivebrokers.com\\\/campus\\\/wp-content\\\/uploads\\\/sites\\\/2\\\/2020\\\/03\\\/mobile-trade-stocks.jpg\",\n\t            \"contentUrl\": \"https:\\\/\\\/www.interactivebrokers.com\\\/campus\\\/wp-content\\\/uploads\\\/sites\\\/2\\\/2020\\\/03\\\/mobile-trade-stocks.jpg\",\n\t            \"width\": 900,\n\t            \"height\": 540,\n\t            \"caption\": \"FinTech\"\n\t        },\n\t        {\n\t            \"@type\": \"WebSite\",\n\t            \"@id\": \"https:\\\/\\\/ibkrcampus.com\\\/campus\\\/#website\",\n\t            \"url\": \"https:\\\/\\\/ibkrcampus.com\\\/campus\\\/\",\n\t            \"name\": \"IBKR Campus US\",\n\t            \"description\": \"Financial Education from Interactive Brokers\",\n\t            \"publisher\": {\n\t                \"@id\": \"https:\\\/\\\/ibkrcampus.com\\\/campus\\\/#organization\"\n\t            },\n\t            \"potentialAction\": [\n\t                {\n\t                    \"@type\": \"SearchAction\",\n\t                    \"target\": {\n\t                        \"@type\": \"EntryPoint\",\n\t                        \"urlTemplate\": \"https:\\\/\\\/ibkrcampus.com\\\/campus\\\/?s={search_term_string}\"\n\t                    },\n\t                    \"query-input\": {\n\t                        \"@type\": \"PropertyValueSpecification\",\n\t                        \"valueRequired\": true,\n\t                        \"valueName\": \"search_term_string\"\n\t                    }\n\t                }\n\t            ],\n\t            \"inLanguage\": \"en-US\"\n\t        },\n\t        {\n\t            \"@type\": \"Organization\",\n\t            \"@id\": \"https:\\\/\\\/ibkrcampus.com\\\/campus\\\/#organization\",\n\t            \"name\": \"Interactive Brokers\",\n\t            \"alternateName\": \"IBKR\",\n\t            \"url\": \"https:\\\/\\\/ibkrcampus.com\\\/campus\\\/\",\n\t            \"logo\": {\n\t                \"@type\": \"ImageObject\",\n\t                \"inLanguage\": \"en-US\",\n\t                \"@id\": \"https:\\\/\\\/ibkrcampus.com\\\/campus\\\/#\\\/schema\\\/logo\\\/image\\\/\",\n\t                \"url\": \"https:\\\/\\\/www.interactivebrokers.com\\\/campus\\\/wp-content\\\/uploads\\\/sites\\\/2\\\/2024\\\/05\\\/ibkr-campus-logo.jpg\",\n\t                \"contentUrl\": \"https:\\\/\\\/www.interactivebrokers.com\\\/campus\\\/wp-content\\\/uploads\\\/sites\\\/2\\\/2024\\\/05\\\/ibkr-campus-logo.jpg\",\n\t                \"width\": 669,\n\t                \"height\": 669,\n\t                \"caption\": \"Interactive Brokers\"\n\t            },\n\t            \"image\": {\n\t                \"@id\": \"https:\\\/\\\/ibkrcampus.com\\\/campus\\\/#\\\/schema\\\/logo\\\/image\\\/\"\n\t            },\n\t            \"publishingPrinciples\": \"https:\\\/\\\/www.interactivebrokers.com\\\/campus\\\/about-ibkr-campus\\\/\",\n\t            \"ethicsPolicy\": \"https:\\\/\\\/www.interactivebrokers.com\\\/campus\\\/cyber-security-notice\\\/\"\n\t        },\n\t        {\n\t            \"@type\": \"Person\",\n\t            \"@id\": \"https:\\\/\\\/ibkrcampus.com\\\/campus\\\/#\\\/schema\\\/person\\\/79c2a2775a70a4da1accf0068d731933\",\n\t            \"name\": \"Kris Longmore\",\n\t            \"url\": \"https:\\\/\\\/www.interactivebrokers.com\\\/campus\\\/author\\\/krislongmore\\\/\"\n\t        }\n\t    ]\n\t}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"The Graphical Lasso and its Financial Applications","description":"Robot Wealth provides ready-to-use code for the Graphical Lasso package as applied in Financial Applications","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.interactivebrokers.com\/campus\/wp-json\/wp\/v2\/posts\/37638\/","og_locale":"en_US","og_type":"article","og_title":"The Graphical Lasso and its Financial Applications | IBKR Quant Blog","og_description":"Robot Wealth provides ready-to-use code for the Graphical Lasso package as applied in Financial Applications","og_url":"https:\/\/www.interactivebrokers.com\/campus\/ibkr-quant-news\/the-graphical-lasso-and-its-financial-applications\/","og_site_name":"IBKR Campus US","article_published_time":"2020-03-10T16:08:00+00:00","article_modified_time":"2022-11-21T14:45:10+00:00","og_image":[{"width":900,"height":540,"url":"https:\/\/www.interactivebrokers.com\/campus\/wp-content\/uploads\/sites\/2\/2020\/03\/mobile-trade-stocks.jpg","type":"image\/jpeg"}],"author":"Kris Longmore","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Kris Longmore","Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"NewsArticle","@id":"https:\/\/www.interactivebrokers.com\/campus\/ibkr-quant-news\/the-graphical-lasso-and-its-financial-applications\/#article","isPartOf":{"@id":"https:\/\/www.interactivebrokers.com\/campus\/ibkr-quant-news\/the-graphical-lasso-and-its-financial-applications\/"},"author":{"name":"Kris Longmore","@id":"https:\/\/ibkrcampus.com\/campus\/#\/schema\/person\/79c2a2775a70a4da1accf0068d731933"},"headline":"The Graphical Lasso and its Financial Applications","datePublished":"2020-03-10T16:08:00+00:00","dateModified":"2022-11-21T14:45:10+00:00","mainEntityOfPage":{"@id":"https:\/\/www.interactivebrokers.com\/campus\/ibkr-quant-news\/the-graphical-lasso-and-its-financial-applications\/"},"wordCount":300,"publisher":{"@id":"https:\/\/ibkrcampus.com\/campus\/#organization"},"image":{"@id":"https:\/\/www.interactivebrokers.com\/campus\/ibkr-quant-news\/the-graphical-lasso-and-its-financial-applications\/#primaryimage"},"thumbnailUrl":"https:\/\/www.interactivebrokers.com\/campus\/wp-content\/uploads\/sites\/2\/2020\/03\/mobile-trade-stocks.jpg","keywords":["Data Science","Data Visualisation","Econometrics","glasso","htmlwidgets R","igraph","rho","rstats","RStudio","threejs"],"articleSection":["Data Science","Programming Languages","Quant","Quant Asia Pacific","Quant Development","Quant Regions","R Development"],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/www.interactivebrokers.com\/campus\/ibkr-quant-news\/the-graphical-lasso-and-its-financial-applications\/","url":"https:\/\/www.interactivebrokers.com\/campus\/ibkr-quant-news\/the-graphical-lasso-and-its-financial-applications\/","name":"The Graphical Lasso and its Financial Applications | IBKR Quant Blog","isPartOf":{"@id":"https:\/\/ibkrcampus.com\/campus\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.interactivebrokers.com\/campus\/ibkr-quant-news\/the-graphical-lasso-and-its-financial-applications\/#primaryimage"},"image":{"@id":"https:\/\/www.interactivebrokers.com\/campus\/ibkr-quant-news\/the-graphical-lasso-and-its-financial-applications\/#primaryimage"},"thumbnailUrl":"https:\/\/www.interactivebrokers.com\/campus\/wp-content\/uploads\/sites\/2\/2020\/03\/mobile-trade-stocks.jpg","datePublished":"2020-03-10T16:08:00+00:00","dateModified":"2022-11-21T14:45:10+00:00","description":"Robot Wealth provides ready-to-use code for the Graphical Lasso package as applied in Financial Applications","inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.interactivebrokers.com\/campus\/ibkr-quant-news\/the-graphical-lasso-and-its-financial-applications\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.interactivebrokers.com\/campus\/ibkr-quant-news\/the-graphical-lasso-and-its-financial-applications\/#primaryimage","url":"https:\/\/www.interactivebrokers.com\/campus\/wp-content\/uploads\/sites\/2\/2020\/03\/mobile-trade-stocks.jpg","contentUrl":"https:\/\/www.interactivebrokers.com\/campus\/wp-content\/uploads\/sites\/2\/2020\/03\/mobile-trade-stocks.jpg","width":900,"height":540,"caption":"FinTech"},{"@type":"WebSite","@id":"https:\/\/ibkrcampus.com\/campus\/#website","url":"https:\/\/ibkrcampus.com\/campus\/","name":"IBKR Campus US","description":"Financial Education from Interactive Brokers","publisher":{"@id":"https:\/\/ibkrcampus.com\/campus\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/ibkrcampus.com\/campus\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/ibkrcampus.com\/campus\/#organization","name":"Interactive Brokers","alternateName":"IBKR","url":"https:\/\/ibkrcampus.com\/campus\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/ibkrcampus.com\/campus\/#\/schema\/logo\/image\/","url":"https:\/\/www.interactivebrokers.com\/campus\/wp-content\/uploads\/sites\/2\/2024\/05\/ibkr-campus-logo.jpg","contentUrl":"https:\/\/www.interactivebrokers.com\/campus\/wp-content\/uploads\/sites\/2\/2024\/05\/ibkr-campus-logo.jpg","width":669,"height":669,"caption":"Interactive Brokers"},"image":{"@id":"https:\/\/ibkrcampus.com\/campus\/#\/schema\/logo\/image\/"},"publishingPrinciples":"https:\/\/www.interactivebrokers.com\/campus\/about-ibkr-campus\/","ethicsPolicy":"https:\/\/www.interactivebrokers.com\/campus\/cyber-security-notice\/"},{"@type":"Person","@id":"https:\/\/ibkrcampus.com\/campus\/#\/schema\/person\/79c2a2775a70a4da1accf0068d731933","name":"Kris Longmore","url":"https:\/\/www.interactivebrokers.com\/campus\/author\/krislongmore\/"}]}},"jetpack_featured_media_url":"https:\/\/www.interactivebrokers.com\/campus\/wp-content\/uploads\/sites\/2\/2020\/03\/mobile-trade-stocks.jpg","_links":{"self":[{"href":"https:\/\/ibkrcampus.com\/campus\/wp-json\/wp\/v2\/posts\/37638","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ibkrcampus.com\/campus\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ibkrcampus.com\/campus\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ibkrcampus.com\/campus\/wp-json\/wp\/v2\/users\/271"}],"replies":[{"embeddable":true,"href":"https:\/\/ibkrcampus.com\/campus\/wp-json\/wp\/v2\/comments?post=37638"}],"version-history":[{"count":0,"href":"https:\/\/ibkrcampus.com\/campus\/wp-json\/wp\/v2\/posts\/37638\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/ibkrcampus.com\/campus\/wp-json\/wp\/v2\/media\/37639"}],"wp:attachment":[{"href":"https:\/\/ibkrcampus.com\/campus\/wp-json\/wp\/v2\/media?parent=37638"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ibkrcampus.com\/campus\/wp-json\/wp\/v2\/categories?post=37638"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ibkrcampus.com\/campus\/wp-json\/wp\/v2\/tags?post=37638"},{"taxonomy":"contributors-categories","embeddable":true,"href":"https:\/\/ibkrcampus.com\/campus\/wp-json\/wp\/v2\/contributors-categories?post=37638"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}