{"id":212,"date":"2016-06-24T15:21:14","date_gmt":"2016-06-24T20:21:14","guid":{"rendered":"http:\/\/blogs.acu.edu\/ryanjessup\/?page_id=212"},"modified":"2016-08-04T12:06:34","modified_gmt":"2016-08-04T17:06:34","slug":"data-mining-example-content","status":"publish","type":"page","link":"https:\/\/blogs.acu.edu\/rkj95n\/teaching\/courses-taught-and-example_content\/data-mining-example-content\/","title":{"rendered":"Data Mining Example Content"},"content":{"rendered":"<p>As we begin to discuss different algorithms in data mining, many students experience fear.\u00a0 They\u2019ve been warned that the class is hard and, for many, it is beyond their comfort zone. Because of this, the first algorithm we discuss is multiple linear regression as it is a natural extension of the prerequisite\u00a0introductory statistics course.\u00a0 It is nonetheless intimidating.<\/p>\n<p>It turns out that virtually every college-bound American student has already been introduced to the framework necessary to intuitively understand regression.\u00a0 So, when introducing it, I draw <em>x<\/em> and <em>y<\/em> axes on the whiteboard and a line through the axes\u00a0and then ask the most scared looking student \u201cwhat is the formula for a line?\u201d\u00a0 Like clockwork they respond with \u201c<em>y<\/em> = <em>mx<\/em> + <em>b<\/em>\u201d as if it were indelibly written in their mind.\u00a0 I ask what that means and some student will explain how it works (<em>m<\/em> is the slope, <em>b<\/em> is the intercept, plug in <em>x<\/em> and get <em>y<\/em>).\u00a0 I then tell them that I am going to simply re-write the formula to <em>y<\/em> = <em>b0<\/em> + <em>b1x1<\/em>, and explain how all I have done is re-arrange and re-name things.<\/p>\n<p>I then ask them \u201cwhat if we added a third dimension to our <em>x<\/em> and <em>y<\/em> &#8211; what do you think the formula for this plane, instead of a line, would be?\u201d\u00a0 This is a harder question but always a student will get it, saying something along the lines of \u201c<em>y<\/em> = <em>b0<\/em> + <em>b1x1<\/em> + <em>b1z<\/em>.\u201d\u00a0 I usually need to clarify things a bit here and explain that <em>b1<\/em> goes with dimension <em>x1<\/em> so our new component is <em>b2x2<\/em>.\u00a0 \u201cWhat if we add yet another dimension?\u201d\u00a0 By now, the students are beginning to get it: each new dimension merely adds its own new <em>beta<\/em> (<em>bn<\/em>) and its own new <em>variable<\/em> (<em>xn<\/em>).\u00a0 I continue on through more dimensions until whoever I call on can give the correct answer.<\/p>\n<p>At this point, I need to tie it back into how we are actually using it in data mining.\u00a0 The \u2018<em>y<\/em>\u2019 is what we are trying to predict and <em>x<\/em>\u2019s are what we are using to predict.\u00a0 So if I have <em>y<\/em> = <em>b0<\/em> + <em>b1x1<\/em> + <em>b2x2<\/em> + <em>b3x3<\/em> + <em>b4x4<\/em>, and I am trying to predict the price of a used Toyota Corolla with certain variables, I can write out my formula as:<\/p>\n<p><em>corolla_price<\/em> = <em>b0<\/em> + <em>b1<\/em>*<em>mileage<\/em> + <em>b2<\/em>*<em>mpg<\/em> + <em>b3<\/em>*<em>age<\/em> + <em>b4<\/em>*<em>number_of_doors<\/em>.<\/p>\n<p>When we run our regression algorithm, it will give us the beta weights, which just like our old friend, the formula for a line, we only need to plug in the variable values (e.g., <em>mileage<\/em> for this car is 100,000, <em>mpg<\/em> is 27, etc.), multiply them by their weights and finally sum up the products to get a predicted price.\u00a0 So, a complex yet useful algorithm can be rendered a little more tractable by linking it back to students\u2019 eighth\u00a0grade algebra class.\u00a0 Plus, it helps to ease their transition into a world which will eventually give way to logistic regression and neural networks, both of which are linked back to that little old formula they learned so long ago.<\/p>\n<p>&nbsp;<\/p>\n<hr \/>\n<h6>&lt;\u00a0<a href=\"teaching\/courses-taught-and-example_content\/consumer-behavior-example-content\/\">Consumer Behavior Example Content<\/a>\u00a0|\u00a0Data Mining Example Content\u00a0| <a href=\"teaching\/teaching-philosophy\/\">Teaching Philosophy<\/a>\u00a0&gt;<\/h6>\n","protected":false},"excerpt":{"rendered":"<p>As we begin to discuss different algorithms in data mining, many students experience fear.\u00a0 They\u2019ve been warned that the class is hard and, for many, it is beyond their comfort zone. Because of this, the first algorithm we discuss is multiple linear regression as it is a natural extension of the prerequisite\u00a0introductory statistics course.\u00a0 It &hellip; <a href=\"https:\/\/blogs.acu.edu\/rkj95n\/teaching\/courses-taught-and-example_content\/data-mining-example-content\/\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":7493,"featured_media":0,"parent":191,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-212","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/blogs.acu.edu\/rkj95n\/wp-json\/wp\/v2\/pages\/212","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blogs.acu.edu\/rkj95n\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/blogs.acu.edu\/rkj95n\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/blogs.acu.edu\/rkj95n\/wp-json\/wp\/v2\/users\/7493"}],"replies":[{"embeddable":true,"href":"https:\/\/blogs.acu.edu\/rkj95n\/wp-json\/wp\/v2\/comments?post=212"}],"version-history":[{"count":1,"href":"https:\/\/blogs.acu.edu\/rkj95n\/wp-json\/wp\/v2\/pages\/212\/revisions"}],"predecessor-version":[{"id":1143,"href":"https:\/\/blogs.acu.edu\/rkj95n\/wp-json\/wp\/v2\/pages\/212\/revisions\/1143"}],"up":[{"embeddable":true,"href":"https:\/\/blogs.acu.edu\/rkj95n\/wp-json\/wp\/v2\/pages\/191"}],"wp:attachment":[{"href":"https:\/\/blogs.acu.edu\/rkj95n\/wp-json\/wp\/v2\/media?parent=212"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}