{"id":11701,"date":"2021-03-01T08:07:28","date_gmt":"2021-03-01T08:07:28","guid":{"rendered":"https:\/\/analystprep.com\/study-notes\/?p=11701"},"modified":"2022-12-03T10:57:27","modified_gmt":"2022-12-03T10:57:27","slug":"prediction-using-simple-linear-regression","status":"publish","type":"post","link":"https:\/\/analystprep.com\/study-notes\/cfa-level-2\/quantitative-method\/prediction-using-simple-linear-regression\/","title":{"rendered":"Prediction Using Simple Linear Regression"},"content":{"rendered":"<p><iframe loading=\"lazy\" src=\"\/\/www.youtube.com\/embed\/r3Hs3NHW-GE\" width=\"611\" height=\"343\" allowfullscreen=\"allowfullscreen\"><\/iframe><\/p>\n<p>We calculate the predicted value of the dependent variable (Y) by inserting the estimated value of the independent variable (X) in the regression equation. The predicted value of the dependent variable (Y) is determined using the formula:<\/p>\n<p>$$\\widehat{Y}=\\widehat{b_{0}}+\\widehat{b_{1}}X$$<\/p>\n<p>Where:<\/p>\n<ul>\n<li data-tadv-p=\"keep\">\\(\\widehat{Y}\\) =\u00a0Predicted value of the dependent<\/li>\n<li data-tadv-p=\"keep\">\\(X\\) =\u00a0Estimated value of the independent variable<\/li>\n<\/ul>\n<h4>Example: Calculating the Predicted Value of a Dependent Variable<\/h4>\n<p>The estimated linear regression equation for inflation and unemployment rates for a certain country is:<\/p>\n<p>$$\\widehat{Y}=0.070953-0.90405X_{i}$$<\/p>\n<p>Calculate the predicted value of the inflation rate if the forecasted value of the unemployment rate is 7.5%.<\/p>\n<h3>Solution<\/h3>\n<p>The predicted value for the inflation rate is determined as follows:<\/p>\n<p>$$\\widehat{Y}=\\widehat{b_{0}}+\\widehat{b_{1}}X$$<\/p>\n<p>$$\\begin{align*}\\widehat{Y}&amp;= 0.070953-0.90405\\times 7.5\\%\\\\&amp;= 0.3\\%\\end{align*}$$<\/p>\n<p>Because the estimated regression doesn\u2019t perfectly describe the relationship between the independent and the dependent variables, we need an interval estimate of the forecast to reflect the uncertainty. The estimated variance of the prediction error of <em>Y <\/em>given <em>X <\/em>is:<\/p>\n<p>$$s_f^2=s_e^2 1+ \\frac1n+\\frac{(X_f-X \u0305 )^2}{((n-1) s_X^2 )}=s_e^2 1+\\frac1n+\\frac{(X_f-X \u0305 )^2}{\u2211_{i=1}^n(X_i-X \u0305 )^2 )}$$<\/p>\n<p>And the standard error of the forecast is:<\/p>\n<p>$$s_f^2=\\sqrt[s_e^2]1+\\frac1n+\\frac{(X_f-X \u0305 )^2}{\u2211_{i=1}^n(X_i-X \u0305 )^2 )}$$<\/p>\n<p>Where:<br \/>\n\\(S_e\\) = The standard error of the estimate.<br \/>\n\\(n\\) = The number of observations.<br \/>\n\\(X_f\\) = The forecasted value of the independent variable.<br \/>\n\\(\\bar{X}\\) = The estimated mean.<\/p>\n<p>From the standard error of the forecast, we can see that:<\/p>\n<ul>\n<li>A better fit of the regression model will result in a smaller standard error of estimates, translating to a smaller standard error of the forecast.<\/li>\n<li>Large sample size in the regression estimation will result in a smaller standard error of the forecast.<\/li>\n<li>The closer the mean of the independent variable (\\(\\bar{X}\\)) is to the forecasted independent variable (\\(X_f\\)) the smaller the standard error of the forecast.<\/li>\n<\/ul>\n<p>After we have calculated our standard error of the forecast determining the prediction interval follows. The formula for prediction interval is:<\/p>\n<p>$$(\\hat{Y_f} ) \u00b1 t_\\text{critical for \u03b1\/\\(2S_f\\)}$$<\/p>\n<p>Where:<br \/>\n\\(t_c\\)=Two-tailed critical t-value at the given significance level with n-2 df.<br \/>\n\\(s_f\\)= The estimated variance of the prediction error.<\/p>\n<p>To develop the prediction interval, we use the following steps:<\/p>\n<ol>\n<li>Predict the value of Y given the forecasted value of X.<\/li>\n<li>Choose a significance level for the prediction interval.<\/li>\n<li>Determine the critical value for the prediction interval based on the level of significance and degrees of freedom.<\/li>\n<li>Compute the standard error of the forecast.<\/li>\n<li>Compute the percent prediction interval for the prediction.<\/li>\n<\/ol>\n<blockquote>\n<h2>Question<\/h2>\n<p>Given \\(Y=-159+0.26X\\)<\/p>\n<p>Where:<\/p>\n<ul>\n<li>Y = Quantity supplied<\/li>\n<li>X = Price<\/li>\n<\/ul>\n<p>The predicted value of the quantity supplied when the price equals 1,200 is <em>closest to:<\/em><\/p>\n<ol style=\"list-style-type: upper-alpha;\">\n<li>153<\/li>\n<li>155<\/li>\n<li>471<\/li>\n<\/ol>\n<h3>Solution (A)<\/h3>\n<p><strong>The correct answer is A.<\/strong><\/p>\n<p>$$Y=-159+0.26\\times 1,200=153$$<\/p>\n<p>Notice that \\(|t|&gt;t_{c}\\) (i.e \\(21.67&gt;3.18\\)).<\/p>\n<p>Thus, the null hypothesis can be rejected. The conclusion is that the estimated slope coefficient is statistically different from zero.<\/p>\n<p>The estimated value of the intercept \\(\\widehat{b_{}}=0.0710\\).<\/p>\n<p>The estimated value of the standard error for\u00a0 \\(\\widehat{b_{0}}, (\\widehat{S_{b_{0}}})= 0.0094\\).<\/p>\n<p>The 95% confidence interval is then calculated as:<\/p>\n<p>\\(\\text{CI}=\\widehat{b_{0}}-t_{c}\\widehat{S_{b_{0}}}\\) to \\(\\widehat{b_{0}}-t_{c}\\widehat{S_{b_{0}}}\\)<\/p>\n<p>\\(\\text{CI}=0.0710\u00b12.306\\times0.0094=0.0493\\) to \\(0.0927\\)<\/p>\n<p>Since 0 lies outside this confidence interval, we can reject the null hypothesis and conclude that the intercept is significantly different from zero.<\/p>\n<h4>Solution (B)<\/h4>\n<p>We are testing<\/p>\n<p>$$H_0: b_1=1$$<\/p>\n<p>v.s<\/p>\n<p>$$H_a:b_1\u22601$$<\/p>\n<p>The critical value for testing this hypothesis is the same as the critical value for testing the first hypothesis. Thus, \\(t_{c}=2.306\\).<\/p>\n<p>The estimated value of the parameter \\(\\widehat{b_{1}}=-0.9041\\).<\/p>\n<p>The estimated value of the standard error for \\(\\widehat{b_{1}},(\\widehat{S_{b_{1}}})\\) is 0.1755.<\/p>\n<p>The 95% CI for any particular hypothesized value of \\(b_{1}\\) is determined as follows:<\/p>\n<p>$$\\text{CI}=\\widehat{b_{1}}\u00b1t_{c}\\widehat{S_{b_{1}}}$$<\/p>\n<p>$$\\begin{align*}\\text{CI}&amp;= -0.9041\u00b12.306\\times0.1755\\\\&amp;=-1.3088\u00a0 \u00a0\\text{to} -0.4994\\end{align*}$$<\/p>\n<p>Notice that the hypothesized value of \\(b_1=1\\) falls outside the above range. Thus, we eject the null hypothesis at the 5% significance level.<\/p>\n<\/blockquote>\n<p><em>Reading 0: Introduction to Linear Regression <\/em><\/p>\n<p><em>LOS 0 (g) Calculate and interpret the predicted value for the dependent variable, and a prediction interval for it, given an estimated linear regression model and a value for the independent variable<\/em><\/p>\n","protected":false},"excerpt":{"rendered":"<p>We calculate the predicted value of the dependent variable (Y) by inserting the estimated value of the independent variable (X) in the regression equation. The predicted value of the dependent variable (Y) is determined using the formula: $$\\widehat{Y}=\\widehat{b_{0}}+\\widehat{b_{1}}X$$ Where: \\(\\widehat{Y}\\)&#8230;<\/p>\n","protected":false},"author":5,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[102,229],"tags":[237,216,230],"class_list":["post-11701","post","type-post","status-publish","format-standard","hentry","category-cfa-level-2","category-quantitative-method","tag-analysis-of-variance-anova","tag-cfa-level-2","tag-quantitative-method","blog-post","no-post-thumbnail","animate"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v26.9 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Prediction Using Simple Linear Regression - CFA, FRM, and Actuarial Exams Study Notes<\/title>\n<meta name=\"description\" content=\"We calculate the predicted value of the dependent variable (Y) by inserting the estimated value of the independent variable (X) in the regression equation.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/analystprep.com\/study-notes\/cfa-level-2\/quantitative-method\/prediction-using-simple-linear-regression\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Prediction Using Simple Linear Regression - CFA, FRM, and Actuarial Exams Study Notes\" \/>\n<meta property=\"og:description\" content=\"We calculate the predicted value of the dependent variable (Y) by inserting the estimated value of the independent variable (X) in the regression equation.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/analystprep.com\/study-notes\/cfa-level-2\/quantitative-method\/prediction-using-simple-linear-regression\/\" \/>\n<meta property=\"og:site_name\" content=\"CFA, FRM, and Actuarial Exams Study Notes\" \/>\n<meta property=\"article:published_time\" content=\"2021-03-01T08:07:28+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2022-12-03T10:57:27+00:00\" \/>\n<meta name=\"author\" content=\"Irene R\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Irene R\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"3 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/analystprep.com\/study-notes\/cfa-level-2\/quantitative-method\/prediction-using-simple-linear-regression\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/analystprep.com\/study-notes\/cfa-level-2\/quantitative-method\/prediction-using-simple-linear-regression\/\"},\"author\":{\"name\":\"Irene R\",\"@id\":\"https:\/\/analystprep.com\/study-notes\/#\/schema\/person\/7002f30d8f174958802c1c30b167eaf5\"},\"headline\":\"Prediction Using Simple Linear Regression\",\"datePublished\":\"2021-03-01T08:07:28+00:00\",\"dateModified\":\"2022-12-03T10:57:27+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/analystprep.com\/study-notes\/cfa-level-2\/quantitative-method\/prediction-using-simple-linear-regression\/\"},\"wordCount\":733,\"keywords\":[\"Analysis of Variance (ANOVA)\",\"CFA-level-2\",\"Quantitative Method\"],\"articleSection\":[\"CFA Level II Study Notes\",\"Quantitative Method\"],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/analystprep.com\/study-notes\/cfa-level-2\/quantitative-method\/prediction-using-simple-linear-regression\/\",\"url\":\"https:\/\/analystprep.com\/study-notes\/cfa-level-2\/quantitative-method\/prediction-using-simple-linear-regression\/\",\"name\":\"Prediction Using Simple Linear Regression - CFA, FRM, and Actuarial Exams Study Notes\",\"isPartOf\":{\"@id\":\"https:\/\/analystprep.com\/study-notes\/#website\"},\"datePublished\":\"2021-03-01T08:07:28+00:00\",\"dateModified\":\"2022-12-03T10:57:27+00:00\",\"author\":{\"@id\":\"https:\/\/analystprep.com\/study-notes\/#\/schema\/person\/7002f30d8f174958802c1c30b167eaf5\"},\"description\":\"We calculate the predicted value of the dependent variable (Y) by inserting the estimated value of the independent variable (X) in the regression equation.\",\"breadcrumb\":{\"@id\":\"https:\/\/analystprep.com\/study-notes\/cfa-level-2\/quantitative-method\/prediction-using-simple-linear-regression\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/analystprep.com\/study-notes\/cfa-level-2\/quantitative-method\/prediction-using-simple-linear-regression\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/analystprep.com\/study-notes\/cfa-level-2\/quantitative-method\/prediction-using-simple-linear-regression\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/analystprep.com\/study-notes\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Prediction Using Simple Linear Regression\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/analystprep.com\/study-notes\/#website\",\"url\":\"https:\/\/analystprep.com\/study-notes\/\",\"name\":\"CFA, FRM, and Actuarial Exams Study Notes\",\"description\":\"Question Bank and Study Notes for the CFA, FRM, and Actuarial exams\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/analystprep.com\/study-notes\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/analystprep.com\/study-notes\/#\/schema\/person\/7002f30d8f174958802c1c30b167eaf5\",\"name\":\"Irene R\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/analystprep.com\/study-notes\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/33caf1e1bcb63ee970b36351f165c7bc714b19614993ab9c2c8bf36273b7df48?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/33caf1e1bcb63ee970b36351f165c7bc714b19614993ab9c2c8bf36273b7df48?s=96&d=mm&r=g\",\"caption\":\"Irene R\"},\"url\":\"https:\/\/analystprep.com\/study-notes\/author\/irene\/\"}]}<\/script>\n<meta property=\"og:video\" content=\"https:\/\/www.youtube.com\/embed\/r3Hs3NHW-GE\" \/>\n<meta property=\"og:video:type\" content=\"text\/html\" \/>\n<meta property=\"og:video:duration\" content=\"3436\" \/>\n<meta property=\"og:video:width\" content=\"480\" \/>\n<meta property=\"og:video:height\" content=\"270\" \/>\n<meta property=\"ya:ovs:adult\" content=\"false\" \/>\n<meta property=\"ya:ovs:upload_date\" content=\"2021-03-01T08:07:28+00:00\" \/>\n<meta property=\"ya:ovs:allow_embed\" content=\"true\" \/>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Prediction Using Simple Linear Regression - CFA, FRM, and Actuarial Exams Study Notes","description":"We calculate the predicted value of the dependent variable (Y) by inserting the estimated value of the independent variable (X) in the regression equation.","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:\/\/analystprep.com\/study-notes\/cfa-level-2\/quantitative-method\/prediction-using-simple-linear-regression\/","og_locale":"en_US","og_type":"article","og_title":"Prediction Using Simple Linear Regression - CFA, FRM, and Actuarial Exams Study Notes","og_description":"We calculate the predicted value of the dependent variable (Y) by inserting the estimated value of the independent variable (X) in the regression equation.","og_url":"https:\/\/analystprep.com\/study-notes\/cfa-level-2\/quantitative-method\/prediction-using-simple-linear-regression\/","og_site_name":"CFA, FRM, and Actuarial Exams Study Notes","article_published_time":"2021-03-01T08:07:28+00:00","article_modified_time":"2022-12-03T10:57:27+00:00","author":"Irene R","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Irene R","Est. reading time":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/analystprep.com\/study-notes\/cfa-level-2\/quantitative-method\/prediction-using-simple-linear-regression\/#article","isPartOf":{"@id":"https:\/\/analystprep.com\/study-notes\/cfa-level-2\/quantitative-method\/prediction-using-simple-linear-regression\/"},"author":{"name":"Irene R","@id":"https:\/\/analystprep.com\/study-notes\/#\/schema\/person\/7002f30d8f174958802c1c30b167eaf5"},"headline":"Prediction Using Simple Linear Regression","datePublished":"2021-03-01T08:07:28+00:00","dateModified":"2022-12-03T10:57:27+00:00","mainEntityOfPage":{"@id":"https:\/\/analystprep.com\/study-notes\/cfa-level-2\/quantitative-method\/prediction-using-simple-linear-regression\/"},"wordCount":733,"keywords":["Analysis of Variance (ANOVA)","CFA-level-2","Quantitative Method"],"articleSection":["CFA Level II Study Notes","Quantitative Method"],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/analystprep.com\/study-notes\/cfa-level-2\/quantitative-method\/prediction-using-simple-linear-regression\/","url":"https:\/\/analystprep.com\/study-notes\/cfa-level-2\/quantitative-method\/prediction-using-simple-linear-regression\/","name":"Prediction Using Simple Linear Regression - CFA, FRM, and Actuarial Exams Study Notes","isPartOf":{"@id":"https:\/\/analystprep.com\/study-notes\/#website"},"datePublished":"2021-03-01T08:07:28+00:00","dateModified":"2022-12-03T10:57:27+00:00","author":{"@id":"https:\/\/analystprep.com\/study-notes\/#\/schema\/person\/7002f30d8f174958802c1c30b167eaf5"},"description":"We calculate the predicted value of the dependent variable (Y) by inserting the estimated value of the independent variable (X) in the regression equation.","breadcrumb":{"@id":"https:\/\/analystprep.com\/study-notes\/cfa-level-2\/quantitative-method\/prediction-using-simple-linear-regression\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/analystprep.com\/study-notes\/cfa-level-2\/quantitative-method\/prediction-using-simple-linear-regression\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/analystprep.com\/study-notes\/cfa-level-2\/quantitative-method\/prediction-using-simple-linear-regression\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/analystprep.com\/study-notes\/"},{"@type":"ListItem","position":2,"name":"Prediction Using Simple Linear Regression"}]},{"@type":"WebSite","@id":"https:\/\/analystprep.com\/study-notes\/#website","url":"https:\/\/analystprep.com\/study-notes\/","name":"CFA, FRM, and Actuarial Exams Study Notes","description":"Question Bank and Study Notes for the CFA, FRM, and Actuarial exams","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/analystprep.com\/study-notes\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/analystprep.com\/study-notes\/#\/schema\/person\/7002f30d8f174958802c1c30b167eaf5","name":"Irene R","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/analystprep.com\/study-notes\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/33caf1e1bcb63ee970b36351f165c7bc714b19614993ab9c2c8bf36273b7df48?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/33caf1e1bcb63ee970b36351f165c7bc714b19614993ab9c2c8bf36273b7df48?s=96&d=mm&r=g","caption":"Irene R"},"url":"https:\/\/analystprep.com\/study-notes\/author\/irene\/"}]},"og_video":"https:\/\/www.youtube.com\/embed\/r3Hs3NHW-GE","og_video_type":"text\/html","og_video_duration":"3436","og_video_width":"480","og_video_height":"270","ya_ovs_adult":"false","ya_ovs_upload_date":"2021-03-01T08:07:28+00:00","ya_ovs_allow_embed":"true"},"_links":{"self":[{"href":"https:\/\/analystprep.com\/study-notes\/wp-json\/wp\/v2\/posts\/11701","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/analystprep.com\/study-notes\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/analystprep.com\/study-notes\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/analystprep.com\/study-notes\/wp-json\/wp\/v2\/users\/5"}],"replies":[{"embeddable":true,"href":"https:\/\/analystprep.com\/study-notes\/wp-json\/wp\/v2\/comments?post=11701"}],"version-history":[{"count":45,"href":"https:\/\/analystprep.com\/study-notes\/wp-json\/wp\/v2\/posts\/11701\/revisions"}],"predecessor-version":[{"id":29140,"href":"https:\/\/analystprep.com\/study-notes\/wp-json\/wp\/v2\/posts\/11701\/revisions\/29140"}],"wp:attachment":[{"href":"https:\/\/analystprep.com\/study-notes\/wp-json\/wp\/v2\/media?parent=11701"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/analystprep.com\/study-notes\/wp-json\/wp\/v2\/categories?post=11701"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/analystprep.com\/study-notes\/wp-json\/wp\/v2\/tags?post=11701"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}