1 00:00:00,700 --> 00:00:05,040 [MUSIC] 2 00:00:05,040 --> 00:00:06,004 Okay, so now, 3 00:00:06,004 --> 00:00:11,220 let's talk about how we're gonna interpret the coefficients of our fitted line. 4 00:00:11,220 --> 00:00:17,010 And let's start by talking about W-hat 0, our estimated intercept. 5 00:00:17,010 --> 00:00:22,110 So, that's this point right here, this green star, and what does that represent? 6 00:00:22,110 --> 00:00:26,670 Well, it's the predicted value of a house with 0 square feet. 7 00:00:26,670 --> 00:00:31,982 So, we can think of that just as land, 8 00:00:31,982 --> 00:00:39,640 because we have that Y-hat is = W-hat 0 when X=0. 9 00:00:39,640 --> 00:00:44,480 So, when there's no square feet, we have that our predicted 10 00:00:44,480 --> 00:00:48,710 house value is exactly equal to W-hat 0. 11 00:00:48,710 --> 00:00:57,970 But I'll say that in general, this is not normally that meaningful. 12 00:00:59,530 --> 00:01:03,460 In many scenarios, you don't really think of having no input and 13 00:01:03,460 --> 00:01:08,380 having the output have some meaningful value. 14 00:01:08,380 --> 00:01:12,170 And actually in our case, if you go back and look at the number, 15 00:01:12,170 --> 00:01:17,420 we had that our intercept was -44,850. 16 00:01:17,420 --> 00:01:22,020 So, it's saying that land you should actually as the seller be giving 17 00:01:22,020 --> 00:01:26,930 the buyer money, to take that land off your hands. 18 00:01:26,930 --> 00:01:29,940 But remember that our dataset's really noisy, 19 00:01:29,940 --> 00:01:33,100 it's not a perfect model of what's going on. 20 00:01:33,100 --> 00:01:36,180 So, of course, we have to think about interpreting our parameters 21 00:01:36,180 --> 00:01:38,640 in the context of what we've included in our model. 22 00:01:41,080 --> 00:01:46,470 Okay, we'll talk more about that in the next module. 23 00:01:48,240 --> 00:01:53,210 But, I also want to talk about W-hat 1 which is our estimated slope. 24 00:01:53,210 --> 00:01:59,110 And that tends to have a bit more meaning associated with it. 25 00:01:59,110 --> 00:02:05,520 So, the estimated slope, I'm highlighting with this green triangle here, 26 00:02:05,520 --> 00:02:10,510 saying that per unit change, in our inputs, so for 27 00:02:10,510 --> 00:02:14,330 1 unit, so 1 square foot, 28 00:02:15,460 --> 00:02:20,960 what's our predicted change in the value of the house. 29 00:02:20,960 --> 00:02:25,010 So, for example, let's say I'm looking at estimating 30 00:02:26,030 --> 00:02:31,420 the value of a house with 1001 square feet. 31 00:02:34,220 --> 00:02:39,070 And I want to look at the difference relative to the estimated value of a house 32 00:02:39,070 --> 00:02:40,850 with just 1000 square feet. 33 00:02:42,840 --> 00:02:47,980 Well, what is this, this is equal to, if I look at the first term 34 00:02:47,980 --> 00:02:52,800 estimating a house with 1,001 square feet, how would I estimate that? 35 00:02:52,800 --> 00:02:56,394 I would take W-hat 0, 36 00:02:56,394 --> 00:03:02,520 + W-hat 1 * 1,001 square feet. 37 00:03:02,520 --> 00:03:06,044 And then, I'm gonna subtract for 38 00:03:06,044 --> 00:03:11,391 the second term I have it's estimated value is again 39 00:03:11,391 --> 00:03:16,509 W-hat 0 + W-hat 1 * 1,000 square feet. 40 00:03:20,210 --> 00:03:24,540 And these W-hat 0's are gonna cancel. 41 00:03:24,540 --> 00:03:27,900 And the difference between these numbers is just 1. 42 00:03:27,900 --> 00:03:31,010 So, this will just be W-hat 1. 43 00:03:31,010 --> 00:03:33,604 So again, 44 00:03:33,604 --> 00:03:38,794 W-hat 1 represents 45 00:03:38,794 --> 00:03:43,985 the predicted change 46 00:03:43,985 --> 00:03:49,174 in the output per unit 47 00:03:49,174 --> 00:03:54,375 change in the input. 48 00:04:02,475 --> 00:04:07,890 Okay, so that's how we're going to interpret W-hat 1. 49 00:04:07,890 --> 00:04:11,101 But one thing I want to make very, 50 00:04:11,101 --> 00:04:15,690 very clear is that the magnitude of this slope, 51 00:04:15,690 --> 00:04:23,450 depends both on the units of our input, and on the units of our output. 52 00:04:23,450 --> 00:04:27,400 So, in this case, the slope, the units of slope, 53 00:04:30,170 --> 00:04:33,420 are dollars per square feet. 54 00:04:34,420 --> 00:04:41,300 And so, if I gave you a house that was measured in some other unit, 55 00:04:41,300 --> 00:04:45,130 then this coefficient would no longer be appropriate for that. 56 00:04:45,130 --> 00:04:47,710 So, let's make this a little bit more explicit. 57 00:04:49,540 --> 00:04:53,610 So now that we know that there are units attached to these numbers, 58 00:04:53,610 --> 00:04:58,610 I'm gonna put these in, so our intercept has units just dollars. 59 00:04:58,610 --> 00:05:01,630 So, let me be clear what I'm actually highlighting here. 60 00:05:01,630 --> 00:05:08,810 The intercept has units dollars, and the slope has units dollars per square feet. 61 00:05:08,810 --> 00:05:10,210 And when I went through and 62 00:05:10,210 --> 00:05:14,160 did my calculation of predicting the value of a house with a given square feet, 63 00:05:14,160 --> 00:05:18,820 if I actually put in these units, I see that everything works out. 64 00:05:18,820 --> 00:05:21,750 Here I have dollars, here I have dollars per square feet, and 65 00:05:21,750 --> 00:05:23,950 then I'm multiplying by square feet. 66 00:05:23,950 --> 00:05:27,010 So when I multiply these two things the resulting units of 67 00:05:27,010 --> 00:05:31,290 this is just gonna be dollars, so the end result is something in terms of dollars. 68 00:05:31,290 --> 00:05:32,480 That's great. 69 00:05:32,480 --> 00:05:36,850 And likewise, when I use the equation in reverse, I have dollars, 70 00:05:36,850 --> 00:05:42,210 dollars divided by dollars per square feet, 71 00:05:42,210 --> 00:05:44,770 and I end up with something that's in square feet. 72 00:05:46,520 --> 00:05:52,280 So, I'll just say units work out, 73 00:05:52,280 --> 00:05:54,970 which is great. 74 00:05:54,970 --> 00:05:59,787 But what if the house was measured in square meters instead of square feet, 75 00:05:59,787 --> 00:06:03,534 well, clearly I can't just plug into that equation, and 76 00:06:03,534 --> 00:06:09,230 likewise what if the price was measured in Chinese Yuan instead of in US Dollars. 77 00:06:09,230 --> 00:06:15,244 Again, can't just plug into that equation, so when I think about magnitude, 78 00:06:15,244 --> 00:06:20,830 it only has meaning in terms of the units that I use for my input and output. 79 00:06:20,830 --> 00:06:24,939 [MUSIC]