{"id":103,"date":"2021-01-12T22:19:50","date_gmt":"2021-01-12T22:19:50","guid":{"rendered":"https:\/\/textbooks.jaykesler.net\/introstats\/part\/linear-regression-and-correlation\/"},"modified":"2023-04-19T20:20:57","modified_gmt":"2023-04-19T20:20:57","slug":"linear-regression-and-correlation","status":"publish","type":"part","link":"https:\/\/textbooks.jaykesler.net\/introstats\/part\/linear-regression-and-correlation\/","title":{"rendered":"Linear Regression and Correlation"},"content":{"raw":"<span style=\"display: none;\">\r\n[latexpage]\r\n<\/span>\r\n<div id=\"74654e37-0383-428c-9be4-f3bdef422275\" class=\"introduction\" data-type=\"page\" data-cnxml-to-html-ver=\"2.1.0\">\r\n<div id=\"fs-idm37352640\" class=\"os-figure has-splash\">\r\n\r\n<figure class=\"splash\" data-id=\"fs-idm37352640\"><span id=\"fs-idm47477408\" data-type=\"media\" data-alt=\"This is a photo of a car mechanic\u2019s shop. There are three United States Postal Services trucks being serviced, and one not being serviced.\">\r\n<img id=\"1\" class=\"full-width\" src=\"https:\/\/textbooks.jaykesler.net\/introstats\/wp-content\/uploads\/sites\/2\/2021\/01\/1ae239f43ad4bdda71f48a984e9f05d23882c5be-300x199.jpg\" alt=\"This is a photo of a car mechanic\u2019s shop. There are three United States Postal Services trucks being serviced, and one not being serviced.\" width=\"380\" data-media-type=\"image\/jpeg\" \/>\r\n<\/span><\/figure>\r\n<div class=\"os-caption-container\"><span class=\"os-title-label\">Figure <\/span><span class=\"os-number\">12.1<\/span> <span class=\"os-caption\">Linear regression and correlation can help you determine if an auto mechanic\u2019s salary is related to his work experience. (credit: Joshua Rothhaas)<\/span><\/div>\r\n<\/div>\r\n<div id=\"fs-idm16563264\" class=\"chapter-objectives ui-has-child-title\" data-type=\"note\" data-has-label=\"true\" data-label=\"\"><header>\r\n<h3 class=\"os-title\" data-type=\"title\"><span class=\"os-title-label\">Chapter Objectives<\/span><\/h3>\r\n<\/header><section>\r\n<div class=\"os-note-body\">\r\n<p id=\"element-382\">By the end of this chapter, the student should be able to:<\/p>\r\n\r\n<ul id=\"element-22\">\r\n \t<li>Discuss basic ideas of linear regression and correlation.<\/li>\r\n \t<li>Create and interpret a line of best fit.<\/li>\r\n \t<li>Calculate and interpret the correlation coefficient.<\/li>\r\n \t<li>Calculate and interpret outliers.<\/li>\r\n<\/ul>\r\n<\/div>\r\n<\/section><\/div>\r\n<p id=\"delete_me\">Professionals often want to know how two or more numeric variables are related. For example, is there a relationship between the grade on the second math exam a student takes and the grade on the final exam? If there is a relationship, what is the relationship and how strong is it?<\/p>\r\n<p id=\"element-814\">In another example, your income may be determined by your education, your profession, your years of experience, and your ability. The amount you pay a repair person for labor is often determined by an initial amount plus an hourly fee.<\/p>\r\n<p id=\"element-363\">The type of data described in the examples is <span id=\"term214\" data-type=\"term\">bivariate<\/span> data \u2014 \"bi\" for two variables. In reality, statisticians use <span id=\"term215\" data-type=\"term\">multivariate<\/span> data, meaning many variables.<\/p>\r\n<p id=\"element-601\">In this chapter, you will be studying the simplest form of regression, \"linear regression\" with one independent variable (<em data-effect=\"italics\">x<\/em>). This involves data that fits a line in two dimensions. You will also study correlation which measures how strong the relationship is.<\/p>\r\n\r\n<\/div>","rendered":"<p><span style=\"display: none;\"><br \/>\n[latexpage]<br \/>\n<\/span><\/p>\n<div id=\"74654e37-0383-428c-9be4-f3bdef422275\" class=\"introduction\" data-type=\"page\" data-cnxml-to-html-ver=\"2.1.0\">\n<div id=\"fs-idm37352640\" class=\"os-figure has-splash\">\n<figure class=\"splash\" data-id=\"fs-idm37352640\"><span id=\"fs-idm47477408\" data-type=\"media\" data-alt=\"This is a photo of a car mechanic\u2019s shop. There are three United States Postal Services trucks being serviced, and one not being serviced.\"><br \/>\n<img decoding=\"async\" id=\"1\" class=\"full-width\" src=\"https:\/\/textbooks.jaykesler.net\/introstats\/wp-content\/uploads\/sites\/2\/2021\/01\/1ae239f43ad4bdda71f48a984e9f05d23882c5be-300x199.jpg\" alt=\"This is a photo of a car mechanic\u2019s shop. There are three United States Postal Services trucks being serviced, and one not being serviced.\" width=\"380\" data-media-type=\"image\/jpeg\" \/><br \/>\n<\/span><\/figure>\n<div class=\"os-caption-container\"><span class=\"os-title-label\">Figure <\/span><span class=\"os-number\">12.1<\/span> <span class=\"os-caption\">Linear regression and correlation can help you determine if an auto mechanic\u2019s salary is related to his work experience. (credit: Joshua Rothhaas)<\/span><\/div>\n<\/div>\n<div id=\"fs-idm16563264\" class=\"chapter-objectives ui-has-child-title\" data-type=\"note\" data-has-label=\"true\" data-label=\"\">\n<header>\n<h3 class=\"os-title\" data-type=\"title\"><span class=\"os-title-label\">Chapter Objectives<\/span><\/h3>\n<\/header>\n<section>\n<div class=\"os-note-body\">\n<p id=\"element-382\">By the end of this chapter, the student should be able to:<\/p>\n<ul id=\"element-22\">\n<li>Discuss basic ideas of linear regression and correlation.<\/li>\n<li>Create and interpret a line of best fit.<\/li>\n<li>Calculate and interpret the correlation coefficient.<\/li>\n<li>Calculate and interpret outliers.<\/li>\n<\/ul>\n<\/div>\n<\/section>\n<\/div>\n<p id=\"delete_me\">Professionals often want to know how two or more numeric variables are related. For example, is there a relationship between the grade on the second math exam a student takes and the grade on the final exam? If there is a relationship, what is the relationship and how strong is it?<\/p>\n<p id=\"element-814\">In another example, your income may be determined by your education, your profession, your years of experience, and your ability. The amount you pay a repair person for labor is often determined by an initial amount plus an hourly fee.<\/p>\n<p id=\"element-363\">The type of data described in the examples is <span id=\"term214\" data-type=\"term\">bivariate<\/span> data \u2014 &#8220;bi&#8221; for two variables. In reality, statisticians use <span id=\"term215\" data-type=\"term\">multivariate<\/span> data, meaning many variables.<\/p>\n<p id=\"element-601\">In this chapter, you will be studying the simplest form of regression, &#8220;linear regression&#8221; with one independent variable (<em data-effect=\"italics\">x<\/em>). This involves data that fits a line in two dimensions. You will also study correlation which measures how strong the relationship is.<\/p>\n<\/div>\n","protected":false},"parent":0,"menu_order":12,"template":"","meta":{"pb_part_invisible":false},"contributor":[],"license":[],"class_list":["post-103","part","type-part","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/textbooks.jaykesler.net\/introstats\/wp-json\/pressbooks\/v2\/parts\/103","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/textbooks.jaykesler.net\/introstats\/wp-json\/pressbooks\/v2\/parts"}],"about":[{"href":"https:\/\/textbooks.jaykesler.net\/introstats\/wp-json\/wp\/v2\/types\/part"}],"version-history":[{"count":3,"href":"https:\/\/textbooks.jaykesler.net\/introstats\/wp-json\/pressbooks\/v2\/parts\/103\/revisions"}],"predecessor-version":[{"id":577,"href":"https:\/\/textbooks.jaykesler.net\/introstats\/wp-json\/pressbooks\/v2\/parts\/103\/revisions\/577"}],"wp:attachment":[{"href":"https:\/\/textbooks.jaykesler.net\/introstats\/wp-json\/wp\/v2\/media?parent=103"}],"wp:term":[{"taxonomy":"contributor","embeddable":true,"href":"https:\/\/textbooks.jaykesler.net\/introstats\/wp-json\/wp\/v2\/contributor?post=103"},{"taxonomy":"license","embeddable":true,"href":"https:\/\/textbooks.jaykesler.net\/introstats\/wp-json\/wp\/v2\/license?post=103"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}