Assignments
Assignments
Project Assignment
Part 1
Data Description
The provided data set is taken from The World Bank Enterprise Surveys. The sample in-
cludes 377 observations of active Albanian enterprises with at least five employees in the
year 2019.
The variables are:
2. size: 1 for small (5–19 employees), 2 for medium (20–99), 3 for large (100 and more)
4. n_employees: 1 for small (5–19 employees), 2 for medium (20–99), 3 for large (100
and more),
9. w: observation weights.
There are two special values: NA means that the observation is missing, −9 means "don’t
know". Sample weights w are usually used to make inference of the population while having
stratified sample, which often violates the assumption of random sampling.
Main task
Analyse the effect of various firm characteristics on sales.
1
(a) Estimate a linear model:
salesi = β0 + β1 n_employeesi + εi
ln salesi = β0 + β1 ln n_employeesi + εi
ln salesi = β0 + β1 n_employeesi + εi
Bonus task
Estimate your final model using weighted least squares and the weighting variable w.
2
Part 2
Data Description
The provided data set includes daily closing price of a high-tech portfolio constructed as
25% of Apple shares, 15% Tesla, 20% Yandex, 20% Google, 20% Boeing. The prices are in
the column portfolio. The column sp500 is a daily value of S&P index, and r_free is a
return of three-month US Treasury bills (expressed as a share of 1).
Main Task
1. Prepare necessary variables:
Dependent variable: excess returns of an asset rt − rf
Independent variable: excess market returns rmt − rf
rt − rf = β(rmt − rf ) + εt
(a) Plot the graph for residuals. Can you notice signs of autocorrelation?
(b) Plot the graph for residuals and their lagged values. Can you notice signs of
autocorrelation?
(c) Conduct Durbin-Watson test. Try two-sided and one sided hypothesis. Explain
the result.
(d) Conduct the h-Durbin test. Make the conclusion.
(e) Conduct the Breusch-Godfrey test. Interpret the results.