Warm Up

Andrew Dickinson

Published

April 18, 2024

OLS Estimation

Suppose we have the following data on a dependent variable (\(Y\)) and an independent variable (\(X\)):

\(i\) \(Y\) \(X\)
1 10 2
2 20 4
3 30 6

We wish to estimate the simple linear regression model:

\[ Y_i = \beta_0 + \beta_1X_i + u_i \]

Calculate the OLS estimates \(\hat{\beta}_0\) and \(\hat{\beta}_1\). Show your work.

Hint: Recall the forumlas for the OLS estimates:

\[ \hat{\beta}_0 = \bar{Y} - \hat{\beta}_1\bar{X} \]

\[ \hat{\beta}_1 = \frac{\sum (X_i - \bar{X})(Y_i - \bar{Y})}{\sum (X_i - \bar{X})^2} \]

where \(\bar{X}\) and \(\bar{Y}\) are the sample means of \(X\) and \(Y\), respectively.