## Multi-variate Regression Quiz - Intro to Machine Learning

• 0:00 - 0:04
So this is actually a surprisingly challenging question if you've never done
• 0:04 - 0:04
this before.
• 0:04 - 0:06
So let me dissect it for you first.
• 0:06 - 0:10
I'm going to only look at the very first feed over here and
• 0:10 - 0:13
ask how much does Y grow as you vary X.
• 0:13 - 0:19
And you can see as we add 20 to X, from 20 to 40, or another 20 to X.
• 0:19 - 0:25
Every time, x1 goes by 20, y goes by 100.
• 0:25 - 0:29
So the factor that goes in over here is y divided by x.
• 0:29 - 0:30
It is a five.
• 0:30 - 0:32
I hope you got that right.
• 0:32 - 0:39
As we do the same thing for the x2 variable, we find when x2 goes by 20.
• 0:39 - 0:40
Y only goes up by 50.
• 0:40 - 0:44
So we divide 50 by 20 and divide, at 2.5.
• 0:44 - 0:49
Now if we left it at this and believe this is the formula and
• 0:49 - 0:54
this number of here doesn't exist then what we will predict for
• 0:54 - 1:01
this value over here is 20 times 5 plus 80 times 2.5 and that is 300.
• 1:01 - 1:02
So we get 200 too large.
• 1:02 - 1:05
So we have to subtract minus 200.
• 1:05 - 1:08
And it turns out, the way I made this table,
• 1:08 - 1:10
this is actually the correct equation.
• 1:10 - 1:13
So you can check any value in this table over here and you'll find that
• 1:13 - 1:17
this specific linear equation exactly explains the value over here.
• 1:17 - 1:18
Now that's an artifact.
• 1:18 - 1:22
In reality we don't have such nice situation, where a,
• 1:22 - 1:25
what we call a linear hyperplane explains data so well.
• 1:25 - 1:29
But it gives you a sense that the predictor variable, in this case,
• 1:29 - 1:32
net worth, could be a factor of more than one input variable and
• 1:32 - 1:35
that is called multi-variate regression.
• 1:35 - 1:37
• 1:37 - 1:40
there's a piece of software that just does it for you.
• 1:40 - 1:43
So you can actually plug data like this into a table and
• 1:43 - 1:45
out comes the correct result.
Title:
Multi-variate Regression Quiz - Intro to Machine Learning
Description:

more » « less
Video Language:
English
Team:
Udacity
Project:
ud120 - Intro to Machine Learning
Duration:
01:46
 Udacity Robot edited English subtitles for 06-57 Multi-variate_Regression_Quiz Wumanizer edited English subtitles for 06-57 Multi-variate_Regression_Quiz Udacity Robot edited English subtitles for 06-57 Multi-variate_Regression_Quiz Cogi-Admin edited English subtitles for 06-57 Multi-variate_Regression_Quiz

# English subtitles

## Revisions Compare revisions

• API
Udacity Robot
• Edited
Wumanizer
• API
Udacity Robot
• API