ECON10005 Lecture Notes - Lecture 5: Total Variation, Variance

25 views3 pages

Document Summary

If two variables are perfectly linearly related we can represent their relationship using a linear function y is the dependent variable x is the explanatory variable b0 represents the intercept b1 is a slope coefficient. In order to fit a line we first need to choose b0 and b1. To find the line we need to find the values of b0 and b1 such that the area between the "errors"/deviations and the line is minimised: Line of best fit - ordinary least squares (ols) Take the derivative of the above function with respect to b1 and set it equal to 0. Take the derivative of the sse function with respect to b0 and set it equal to 0. Dividing out the -2, we have two equations and two unknowns. Solve for b1 by rewriting the previous equation. Can rewrite b1 in terms of the quantities we already know a. Finally multiplying and dividing by 1/(n-1) we get.

Get access

Grade+20% off
$8 USD/m$10 USD/m
Billed $96 USD annually
Grade+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
40 Verified Answers
Class+
$8 USD/m
Billed $96 USD annually
Class+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
30 Verified Answers

Related Documents