{"id":93143,"date":"2021-06-28T10:54:39","date_gmt":"2021-06-28T14:54:39","guid":{"rendered":"https:\/\/ibkrcampus.com\/?p=93143"},"modified":"2022-11-21T09:47:40","modified_gmt":"2022-11-21T14:47:40","slug":"grokking-linear-regression-analysis-in-finance","status":"publish","type":"post","link":"https:\/\/www.interactivebrokers.com\/campus\/ibkr-quant-news\/grokking-linear-regression-analysis-in-finance\/","title":{"rendered":"Grokking Linear Regression Analysis in Finance"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\"><em>Linear regression, simple linear regression, ordinary least squares, multiple linear, OLS, multivariate, &#8230;<\/em><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">You&#8217;ve probably come across these names when you encountered regression. If that isn&#8217;t enough, you even have stranger ones like lasso, ridge, quantile, mixed linear, etc.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">My series of articles is meant for those who have some exposure to regression in that you&#8217;ve used it or seen it used. So you probably have a fuzzy idea of what it is but not spent time looking at it intimately. There are many write-ups and material online on regression (including the QI blog) which place prominence on different aspects of the subject.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">We have a&nbsp;<a href=\"https:\/\/blog.quantinsti.com\/regression-trading-system\/\">post<\/a>&nbsp;that shows you how to use regression analysis to create a trend following trading strategy. We also have&nbsp;<a href=\"https:\/\/blog.quantinsti.com\/linear-regression-models-scikit-learn\/\">one<\/a>&nbsp;that touches upon using the&nbsp;<code>scikit-learn<\/code>&nbsp;library to build and regularize linear regression models. There are posts that show how to use it on&nbsp;<a href=\"https:\/\/blog.quantinsti.com\/building-random-forest-regression-model-forex-project-christos\/\">forex data<\/a>,&nbsp;<a href=\"https:\/\/blog.quantinsti.com\/gold-price-prediction-using-machine-learning-python\/\">gold prices<\/a>&nbsp;and&nbsp;<a href=\"https:\/\/blog.quantinsti.com\/machine-learning-trading-predict-stock-prices-regression\/\">stock prices<\/a>&nbsp;framing it as a machine learning problem.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">My emphasis here is on building some level of intuition with a brief exposure to background theory. I will then go on to present examples to demonstrate the techniques we can use and what inferences we can draw from them.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">I have intentionally steered clear of any derivations, because it&#8217;s already been tackled well elsewhere (check the\u00a0<a href=\"https:\/\/blog.quantinsti.com\/linear-regression\/#references\">references<\/a>\u00a0section). There&#8217;s enough going on here for you to feel the heat a little bit.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">This is the first article on the subject where we will explore the following topics.<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>Some high school math<\/li><li>What are models?<\/li><li>Why linear?<\/li><li>Where does regression fit in?<\/li><li>Nomenclature<\/li><li>Types of linear regression<br><br><ul><li>Simple linear regression<\/li><li>Multiple linear regression<\/li><li>Linear regression of a non-linear relationship<\/li><\/ul><\/li><li>Model parameters and model estimates<\/li><li>So what\u2019s OLS?<\/li><li>What&#8217;s next?<\/li><li>References<\/li><\/ul>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"somehighschoolmath\">Some high school math<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Most of us have seen the equation of a straight line in high school.<\/p>\n\n\n\n<p class=\"has-text-align-center has-light-green-cyan-background-color has-background wp-block-paragraph\">y = mx + c<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">where<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>xx&nbsp;and&nbsp;yy&nbsp;are the&nbsp;XX- and&nbsp;YY- coordinates of any point on the line respectively,<\/li><li>mm&nbsp;is the slope of the line,<\/li><li>cc&nbsp;is the&nbsp;yy- intercept (i.e. the point where the line cuts the&nbsp;YY-axis)<\/li><\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">The relationships among&nbsp;x,y,mx,y,m&nbsp;and&nbsp;cc&nbsp;are deterministic, i.e. if we know the value of any three, we can precisely calculate the value of the unknown fourth variable.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">All linear models in econometrics (a fancy name for statistics applied to economics and finance) start from here with two crucial differences from what we studied in high school.<\/p>\n\n\n\n<ol class=\"wp-block-list\"><li>The unknowns now are always&nbsp;mm&nbsp;and&nbsp;cc<\/li><li>When we calculate our unknowns, it&#8217;s only our &#8216;best&#8217; guess at what their values are. In fact, we don&#8217;t&nbsp;<em>calculate<\/em>; we&nbsp;<em>estimate<\/em>&nbsp;the unknowns.<\/li><\/ol>\n\n\n\n<p class=\"wp-block-paragraph\">Before moving on to the meat of the subject, I&#8217;d like to unpack the term&nbsp;<em>linear models<\/em>.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">We start with the second word.<\/p>\n\n\n\n<hr class=\"wp-block-separator\"\/>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"whataremodels\">What are models?<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Generally speaking, models are educated guesses about the working of a phenomenon. They reduce or simplify reality. They do so to help us understand the world better. If we didn\u2019t work with a reduced form of the subject under investigation, we could as well have worked with reality itself. But that&#8217;s not feasible or even helpful.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">In the material world, a model is a simplified version of the object that we study. This version is created such that we capture its main features. The model of a human eye reconstructs it to include its main parts and their relationships with each other.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Similarly, the model of the moon (based on who is studying it) would focus on features relevant to that field of study (such as the topography of its surface, or its chemical composition or the gravitational forces it is subject to etc.).<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">However, in economics and finance (and other social sciences), our models are slightly peculiar. Here too, a model performs a similar function. But instead of dissecting an actual object, we are investigating social or economic phenomena.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Like what happens to the price of a stock when inflation is high or when there&#8217;s a drop in GDP growth (or a combination of both). We only have raw observed data to go by. But that in itself doesn&#8217;t tell us much. So we try to find a suitable and faithful approximation of our data to help make sense of it.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">We embody this approximation in a mathematical expression with variables (or more precisely, parameters) that have to be estimated from our data set. These type of models are data-driven (or statistical) in nature.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">In both cases, we wilfully delude ourselves with stories to help us interpret what we see.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">In finance, we have no idea how the phenomenon is wired. But our models are useful mathematical abstractions, and for the most part, they work satisfactorily. As the statistician George Box said, \u201cAll models are wrong, but some are useful\u201d. Otherwise, we wouldn\u2019t be using them. \ud83d\ude42<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">These finance models stripped to their bones can be seen asdata=model+errordata=model+error<br>ordata=signal+noisedata=signal+noise<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">It is useful to think of the modeling exercise as a means to unearth the structure of the hidden data-generating process (which is the process that causes the data to appear the way it does). Here, the model (if specified and estimated suitably) would be our best proxy to reveal this process.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">I also find it helpful to think of working with data as a quest to extract the signal from the noise.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"whylinear\">Why linear?<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Because the most used statistical or mathematical models we encounter are either linear or transformed to a quasi-linear form. I speak of general ones like simple or multiple linear regression, logistic regression, etc. or even finance-specific ones like the CAPM, the Fama-French or the Carhart factor models.<\/p>\n\n\n\n<hr class=\"wp-block-separator\"\/>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"wheredoesregressionfitin\">Where does regression fit in?<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Regression analysis is the fundamental method used in fitting models to our data set, and linear regression is its most commonly used form.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Here, the basic idea is to measure the linear relationship between variables whose behavior (with each other) we are interested in.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Both correlation and regression can help here. However, with correlation, we summarize the relationship into a single number which is not very useful. Regression, on the other hand, gives us a mathematical expression that is richer and more interpretative. So we prefer to work with it.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Linear regression assumes that the variable of our interest (the dependent variable) can be modeled as a linear function of the independent variable(s) (or explanatory variable(s)).<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Francis Galton coined the name in the nineteenth century when he compared the heights of parents and their children. He observed that tall parents tended to have shorter children and short parents tended to have taller children. Over generations, the heights of human beings converged to the mean. He referred to the phenomenon as \u2018regressing to the mean\u2019.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">The objective of regression analysis is to:<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>either measure the strength of relationships (between the response variable and one or more explanatory variables), or<\/li><li>forecast into the future<\/li><\/ul>\n\n\n\n<p class=\"wp-block-paragraph\"><em>Stay tuned for the next installment in which Vivek will discuss the Nomenclature.<\/em><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><em>Visit QuantInsti for additional insight on this topic: <a href=\"https:\/\/blog.quantinsti.com\/linear-regression\/\">https:\/\/blog.quantinsti.com\/linear-regression\/<\/a>.<\/em><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><em>Disclaimer: All investments and trading in the stock market involve risk. Any decisions to place trades in the financial markets, including trading in stock or options or other financial instruments is a personal decision that should only be made after thorough research, including a personal risk and financial assessment and the engagement of professional assistance to the extent you believe necessary. The trading strategies or related information mentioned in this article is for informational purposes only.<\/em><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Vivek Krishnamoorthy reviews the linear models and explores how the concept of &#8220;regression&#8221; fits in.<\/p>\n","protected":false},"author":646,"featured_media":45695,"comment_status":"closed","ping_status":"open","sticky":true,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":"","jetpack_post_was_ever_published":false},"categories":[339,338,350,341,344],"tags":[4923,4922,4941,9935,9938,9937,9936],"contributors-categories":[13654],"class_list":["post-93143","post","type-post","status-publish","format-standard","has-post-thumbnail","category-data-science","category-ibkr-quant-news","category-quant-asia-pacific","category-quant-development","category-quant-regions","tag-computational-finance","tag-econometrics","tag-financial-mathematics","tag-grokking-linear-regression","tag-linear-regression-of-a-non-linear-relationship","tag-multiple-linear-regression","tag-simple-linear-regression","contributors-categories-quantinsti"],"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 v28.3) - https:\/\/yoast.com\/product\/yoast-seo-premium-wordpress\/ -->\n<title>Grokking Linear Regression Analysis in Finance | IBKR Quant<\/title>\n<meta name=\"description\" content=\"Vivek Krishnamoorthy reviews the linear models and explores how the concept of &quot;regression&quot; fits in.\" \/>\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\/93143\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Grokking Linear Regression Analysis in Finance | IBKR Quant Blog\" \/>\n<meta property=\"og:description\" content=\"Vivek Krishnamoorthy reviews the linear models and explores how the concept of &quot;regression&quot; fits in.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.interactivebrokers.com\/campus\/ibkr-quant-news\/grokking-linear-regression-analysis-in-finance\/\" \/>\n<meta property=\"og:site_name\" content=\"IBKR Campus US\" \/>\n<meta property=\"article:published_time\" content=\"2021-06-28T14:54:39+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2022-11-21T14:47:40+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.interactivebrokers.com\/campus\/wp-content\/uploads\/sites\/2\/2020\/05\/circuts-energy.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"900\" \/>\n\t<meta property=\"og:image:height\" content=\"550\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"Vivek Krishnamoorthy\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Vivek Krishnamoorthy\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"6 minutes\" \/>\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\\\/grokking-linear-regression-analysis-in-finance\\\/#article\",\n\t            \"isPartOf\": {\n\t                \"@id\": \"https:\\\/\\\/www.interactivebrokers.com\\\/campus\\\/ibkr-quant-news\\\/grokking-linear-regression-analysis-in-finance\\\/\"\n\t            },\n\t            \"author\": {\n\t                \"name\": \"Vivek Krishnamoorthy\",\n\t                \"@id\": \"https:\\\/\\\/ibkrcampus.com\\\/campus\\\/#\\\/schema\\\/person\\\/3219a2e26a01b50f115c36fec5150e5c\"\n\t            },\n\t            \"headline\": \"Grokking Linear Regression Analysis in Finance\",\n\t            \"datePublished\": \"2021-06-28T14:54:39+00:00\",\n\t            \"dateModified\": \"2022-11-21T14:47:40+00:00\",\n\t            \"mainEntityOfPage\": {\n\t                \"@id\": \"https:\\\/\\\/www.interactivebrokers.com\\\/campus\\\/ibkr-quant-news\\\/grokking-linear-regression-analysis-in-finance\\\/\"\n\t            },\n\t            \"wordCount\": 1313,\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\\\/grokking-linear-regression-analysis-in-finance\\\/#primaryimage\"\n\t            },\n\t            \"thumbnailUrl\": \"https:\\\/\\\/www.interactivebrokers.com\\\/campus\\\/wp-content\\\/uploads\\\/sites\\\/2\\\/2020\\\/05\\\/circuts-energy.jpg\",\n\t            \"keywords\": [\n\t                \"Computational Finance\",\n\t                \"Econometrics\",\n\t                \"Financial Mathematics\",\n\t                \"Grokking Linear Regression\",\n\t                \"Linear regression of a non-linear relationship\",\n\t                \"Multiple linear regression\",\n\t                \"Simple linear regression\"\n\t            ],\n\t            \"articleSection\": [\n\t                \"Data Science\",\n\t                \"Quant\",\n\t                \"Quant Asia Pacific\",\n\t                \"Quant Development\",\n\t                \"Quant Regions\"\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\\\/grokking-linear-regression-analysis-in-finance\\\/\",\n\t            \"url\": \"https:\\\/\\\/www.interactivebrokers.com\\\/campus\\\/ibkr-quant-news\\\/grokking-linear-regression-analysis-in-finance\\\/\",\n\t            \"name\": \"Grokking Linear Regression Analysis in Finance | 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\\\/grokking-linear-regression-analysis-in-finance\\\/#primaryimage\"\n\t            },\n\t            \"image\": {\n\t                \"@id\": \"https:\\\/\\\/www.interactivebrokers.com\\\/campus\\\/ibkr-quant-news\\\/grokking-linear-regression-analysis-in-finance\\\/#primaryimage\"\n\t            },\n\t            \"thumbnailUrl\": \"https:\\\/\\\/www.interactivebrokers.com\\\/campus\\\/wp-content\\\/uploads\\\/sites\\\/2\\\/2020\\\/05\\\/circuts-energy.jpg\",\n\t            \"datePublished\": \"2021-06-28T14:54:39+00:00\",\n\t            \"dateModified\": \"2022-11-21T14:47:40+00:00\",\n\t            \"description\": \"Vivek Krishnamoorthy reviews the linear models and explores how the concept of \\\"regression\\\" fits in.\",\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\\\/grokking-linear-regression-analysis-in-finance\\\/\"\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\\\/grokking-linear-regression-analysis-in-finance\\\/#primaryimage\",\n\t            \"url\": \"https:\\\/\\\/www.interactivebrokers.com\\\/campus\\\/wp-content\\\/uploads\\\/sites\\\/2\\\/2020\\\/05\\\/circuts-energy.jpg\",\n\t            \"contentUrl\": \"https:\\\/\\\/www.interactivebrokers.com\\\/campus\\\/wp-content\\\/uploads\\\/sites\\\/2\\\/2020\\\/05\\\/circuts-energy.jpg\",\n\t            \"width\": 900,\n\t            \"height\": 550,\n\t            \"caption\": \"Quant\"\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\\\/3219a2e26a01b50f115c36fec5150e5c\",\n\t            \"name\": \"Vivek Krishnamoorthy\",\n\t            \"url\": \"https:\\\/\\\/www.interactivebrokers.com\\\/campus\\\/author\\\/vivekkrishnamoorthy\\\/\"\n\t        }\n\t    ]\n\t}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"Grokking Linear Regression Analysis in Finance | IBKR Quant","description":"Vivek Krishnamoorthy reviews the linear models and explores how the concept of \"regression\" fits in.","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\/93143\/","og_locale":"en_US","og_type":"article","og_title":"Grokking Linear Regression Analysis in Finance | IBKR Quant Blog","og_description":"Vivek Krishnamoorthy reviews the linear models and explores how the concept of \"regression\" fits in.","og_url":"https:\/\/www.interactivebrokers.com\/campus\/ibkr-quant-news\/grokking-linear-regression-analysis-in-finance\/","og_site_name":"IBKR Campus US","article_published_time":"2021-06-28T14:54:39+00:00","article_modified_time":"2022-11-21T14:47:40+00:00","og_image":[{"width":900,"height":550,"url":"https:\/\/www.interactivebrokers.com\/campus\/wp-content\/uploads\/sites\/2\/2020\/05\/circuts-energy.jpg","type":"image\/jpeg"}],"author":"Vivek Krishnamoorthy","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Vivek Krishnamoorthy","Est. reading time":"6 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"NewsArticle","@id":"https:\/\/www.interactivebrokers.com\/campus\/ibkr-quant-news\/grokking-linear-regression-analysis-in-finance\/#article","isPartOf":{"@id":"https:\/\/www.interactivebrokers.com\/campus\/ibkr-quant-news\/grokking-linear-regression-analysis-in-finance\/"},"author":{"name":"Vivek Krishnamoorthy","@id":"https:\/\/ibkrcampus.com\/campus\/#\/schema\/person\/3219a2e26a01b50f115c36fec5150e5c"},"headline":"Grokking Linear Regression Analysis in Finance","datePublished":"2021-06-28T14:54:39+00:00","dateModified":"2022-11-21T14:47:40+00:00","mainEntityOfPage":{"@id":"https:\/\/www.interactivebrokers.com\/campus\/ibkr-quant-news\/grokking-linear-regression-analysis-in-finance\/"},"wordCount":1313,"publisher":{"@id":"https:\/\/ibkrcampus.com\/campus\/#organization"},"image":{"@id":"https:\/\/www.interactivebrokers.com\/campus\/ibkr-quant-news\/grokking-linear-regression-analysis-in-finance\/#primaryimage"},"thumbnailUrl":"https:\/\/www.interactivebrokers.com\/campus\/wp-content\/uploads\/sites\/2\/2020\/05\/circuts-energy.jpg","keywords":["Computational Finance","Econometrics","Financial Mathematics","Grokking Linear Regression","Linear regression of a non-linear relationship","Multiple linear regression","Simple linear regression"],"articleSection":["Data Science","Quant","Quant Asia Pacific","Quant Development","Quant Regions"],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/www.interactivebrokers.com\/campus\/ibkr-quant-news\/grokking-linear-regression-analysis-in-finance\/","url":"https:\/\/www.interactivebrokers.com\/campus\/ibkr-quant-news\/grokking-linear-regression-analysis-in-finance\/","name":"Grokking Linear Regression Analysis in Finance | IBKR Quant Blog","isPartOf":{"@id":"https:\/\/ibkrcampus.com\/campus\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.interactivebrokers.com\/campus\/ibkr-quant-news\/grokking-linear-regression-analysis-in-finance\/#primaryimage"},"image":{"@id":"https:\/\/www.interactivebrokers.com\/campus\/ibkr-quant-news\/grokking-linear-regression-analysis-in-finance\/#primaryimage"},"thumbnailUrl":"https:\/\/www.interactivebrokers.com\/campus\/wp-content\/uploads\/sites\/2\/2020\/05\/circuts-energy.jpg","datePublished":"2021-06-28T14:54:39+00:00","dateModified":"2022-11-21T14:47:40+00:00","description":"Vivek Krishnamoorthy reviews the linear models and explores how the concept of \"regression\" fits in.","inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.interactivebrokers.com\/campus\/ibkr-quant-news\/grokking-linear-regression-analysis-in-finance\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.interactivebrokers.com\/campus\/ibkr-quant-news\/grokking-linear-regression-analysis-in-finance\/#primaryimage","url":"https:\/\/www.interactivebrokers.com\/campus\/wp-content\/uploads\/sites\/2\/2020\/05\/circuts-energy.jpg","contentUrl":"https:\/\/www.interactivebrokers.com\/campus\/wp-content\/uploads\/sites\/2\/2020\/05\/circuts-energy.jpg","width":900,"height":550,"caption":"Quant"},{"@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\/3219a2e26a01b50f115c36fec5150e5c","name":"Vivek Krishnamoorthy","url":"https:\/\/www.interactivebrokers.com\/campus\/author\/vivekkrishnamoorthy\/"}]}},"jetpack_featured_media_url":"https:\/\/www.interactivebrokers.com\/campus\/wp-content\/uploads\/sites\/2\/2020\/05\/circuts-energy.jpg","_links":{"self":[{"href":"https:\/\/ibkrcampus.com\/campus\/wp-json\/wp\/v2\/posts\/93143","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\/646"}],"replies":[{"embeddable":true,"href":"https:\/\/ibkrcampus.com\/campus\/wp-json\/wp\/v2\/comments?post=93143"}],"version-history":[{"count":0,"href":"https:\/\/ibkrcampus.com\/campus\/wp-json\/wp\/v2\/posts\/93143\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/ibkrcampus.com\/campus\/wp-json\/wp\/v2\/media\/45695"}],"wp:attachment":[{"href":"https:\/\/ibkrcampus.com\/campus\/wp-json\/wp\/v2\/media?parent=93143"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ibkrcampus.com\/campus\/wp-json\/wp\/v2\/categories?post=93143"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ibkrcampus.com\/campus\/wp-json\/wp\/v2\/tags?post=93143"},{"taxonomy":"contributors-categories","embeddable":true,"href":"https:\/\/ibkrcampus.com\/campus\/wp-json\/wp\/v2\/contributors-categories?post=93143"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}