Quantitative methods in financial economics
Prof. Roberto Iannacone
Academic Year: 2020-2021
Lorenzo Guglielmetti
Course started: 28/09/2020
Data types
- Cross-section: Observations are relative to different individuals.
- Time series: Observations referring at a regular time interval; the order of observations is relevant.
- Panel data: Group of cross-sectional units who are observed over time (N units T periods).
Simple linear regression
The probability density function describes the probability of observing different values of Y at a certain level of X.
SLR functions
E(Y|X) = µ = ß1 + ß2X | X → ß1 intercepts, it represents the value of Y when X is equal to 0. ß2 → slope, it represents how much Y varies for a given change in X.
Hypothesis of the econometric model
- E(Y|X) = µ = ß1 + ß2X
- var(Y|X) = Homoskedasticity
- cov (Yi, Yj) = 0, the values of y are all statistically independent
- The variable X isn’t random and must take at least 2 distinct values
- Y ~ N(ß1 + ß2X; σ2)
Hypothesis simple regression
- Y = ß1 + ß2Xi + ei
- E(e|X) = 0 E(Y|X) = ß1 + ß2X
- var(e) = var(Y)
- cov(ei, ej) = cov(yi, yj) = 0
- The variable X isn’t random and must take at least 2 distinct values
- e ~ N(0; σ2)
Ordinary least squares method
Method that minimizes the sum of the squares of the distances of the points from the line (ei); the distances are squared to prevent large positive distances from being canceled by large negative distances. b1 and b2 are the least squares estimates of ß1 and ß2, and e^ are the residuals of the least squares.
b2 = ∑[(Xi – X̄)(Yi – Ȳ)] / ∑(Xi – X̄)2
b1 = Ȳ – b2X̄
Unbiasedness property
If we took the averages of the estimates from many samples, these averages would approach the values of the real parameters b1 and b2.
Gauss-Markov Theorem
Under the SR1-SR5 hypothesis, the estimators b1 and b2 have the smallest variance of all linear and correct estimators of ß1 and ß2 and they are the best unbiased linear estimators (BLUE) of ß1 and ß2.
Prediction
Under the SR1-SR6 hypothesis, we want to predict the value of Y0 for a given value of X0. The least squares predictor of Y0 is:
Ŷ0 = b1 + b2X0
The least squares estimator b1 and b2 follow that the least squares predictor must also be random with forecast error (f):
f = Y0 - Ŷ0 = (ß1 + ß2X0 + e0) - (b1 + b2X0)
E(f) = ß1 + ß2X0 + E(e0) - [E(b1) + E(b2)X0] = ß1 + ß2X0 + 0 - ß1 - ß2X0 = 0
Ŷ0 is the best linear unbiased predictor (BLUP) of Y0 if assuming SR1-SR5 hold. This result is reasonable given that the least squares estimators b1 and b2 are BLUE.
R2
∑(Yi – Ȳ)2 = ∑(Ŷi – Ȳ)2 + ∑ei2
SST = SSR + SSE
Ȳ = Y barretta
- SST: Measures the total change in Y around the sample mean.
- SSR: Measures the part of the total variation in Y around the sample mean explained by the model.
- SSE: Part of the variation in Y not explained by the model.
R2 = SSR/SST = 1 - SSE/SST
- If R2 = 1, all sample points are exactly on the least squares line, so SSE = 0, and the model first data "perfectly".
- If R2 = 0, the sample data for Y and X are not related and show no linear association, then the estimate of the regression line is horizontal and identical to Ȳ, so SSR = 0.
Example: R2 = 0.385 means that 38.5% of the change in Y is explained by our regression model, which uses only one X as an explanatory variable.
Non-linearity
Log-log model: ln(Yi) = ln(ß1) + ß2 ln(Xi) + ei
Y is a non-linear function of the Xi, but the function is linear in logarithms, so that ordinary least squares may be applied.
Log-linear model: ln(Yi) = ß1 + ß2 Xi + ei
- If ß2 > 0, the function increases at an increasing rate; its slope is larger for larger values of Y.
- If ß2 < 0, the function decreases but at a decreasing rate.
Prediction
If we consider w = eσY2/2, then Y = ln(w) ~ N(µ, σ2) and w is said to have a log-normal distribution.
E(w) = eµ+σ2/2
Ŷc = [E(Y)]̂c = Ŷneσ2/2 where Ŷc is corrected predictor and Ŷn is natural predictor from the model: Ŷn = exp(b1 + b2X)
Name function slope and elasticity
| Function | Slope = dy/dx | Elasticity |
|---|---|---|
| Linear | Y = ß1 + ß2X | ß2(X/Y) |
| Log-log | ln(Y) = ß1 + ß2ln(X) | ß2(Y/X) |
| Log-linear | ln(Y) = ß1 + ß2X | ß2Y ß2X |
| Linear-log | Y = ß1 + ß2ln(X) | ß2(1/X) |
Multivariate regression
Y = ß0 + ß1Xi1 + ß2Xi2 + ... + ßkXik + ei
This model can eliminate the distortion from omitted variables through inclusion as additional regressors and then estimate the effect of a regressor while maintaining the other variables constant.
ßk measures the effect of a change in the variable Xk on the expected value of Y, keeping all the other variables constant. ß0 represents the intercept term.
Hypothesis multivariate regression
- Y = ß0 + ß1Xi1 + ß2Xi2 + ... + ßkXik + ei
- E(ei) = 0 E(Yi) = ß0 + ß1Xi1 + ß2Xi2 + ... + ßkXik
- var(Yi) = var(ei) = σ2
- cov(ei, ej) = cov(Yi, Yj) = 0
- The X values are not stochastic and they are not exact linear functions of the other explanatory variables.
- Y ~ N(ß0 + ß1Xi1 + ß2Xi2 + ... + ßkXik, σ2) e ~ N(0; σ2)
Gauss-Markov Theorem
If the MR1-MR5 hypothesis is valid, then the least square estimators are the BLUE of the parameters.
Variable interaction
Y = ß0 + ß1Xi1 + ß2Xi2 + ß3Xi1Xi2
P-values
Let p be the p-value and t the calculated value of the t-statistic.
- H0: ßj = c → |t|
- H1: ßj ≠ c → p = 2(1 - pt(abs(t), df)) = sum probabilities to the right of |t| and to the left of |t|
- H1: ßj > c → p = 1 - pt(t, df) = probability to the right of t
- H1: ßj < c → p = pt(t, df) = probability to the left of t
Joint hypothesis
Imposes 2 or more constraints on regression coefficients considering a multiple conjecture such as:
- H0: ß0 = ß2 = ß4 = ß5 = 0 aren’t true
- H1: One or more of the q constraints under H0
The test to verify a joint null hypothesis uses the test statistic F calculated using a simple formula based on the sum of the squares of the residuals of 2 regressions:
- In the first regression, called restricted model (R), the H0 assumes that the coefficients are zero, thus excluding the relevant regressors from the regression.
- In the second regression, called unrestricted model (U), the H1 is valid.
F = [(SSER - SSEU)/q] / [SSEU/(n - k - 1)] ~ Fq,n-k-1
Rejection region: F > Fc
Multicollinearity
No variable is redundant and in its absence the least squares procedure ceases to be valid.
Perfect multicollinearity occurs if one of the regressors is an exact linear combination of the other regressors.
Nonexact multicollinearity arises when one of the regressors is highly correlated, though not perfectly, with the other regressors. It implies that one or more regression coefficients could be inaccurately estimated.
The effects of these inaccurate results are:
- When the standard errors of the estimator are large, it’s likely that the usual t-test will lead to the conclusion that the parameter estimates are not significantly different from 0 even if the values of R2 are high.
- Estimators may be very sensitive to the addition or omission of some observations or to the omission of an apparently insignificant variable.
VIF = 1 / (1 - Rk2) where Rk2 is the R2 from regressing the variable Xk on all the remaining regressors.
If VIF > 10, a regressor produces collinearity.
Indicator variables
Classic approach to time series analysis: A time series Y can be modeled as the sum or product...
Scarica il documento per vederlo tutto.
Scarica il documento per vederlo tutto.
Scarica il documento per vederlo tutto.
Scarica il documento per vederlo tutto.
-
Quantitative methods for the social science - Appunti esame
-
Appunti di Topics in Economics and Project Valutation - A.A. 23-24
-
Quantitative methods for finance - Appunti completi (ENG)
-
Formulario Quantitative Methods for finance