Presentation is loading. Please wait.

Presentation is loading. Please wait.

3.Analysis of asset price dynamics 3.1Introduction Price – continuous function yet sampled discretely (usually - equal spacing). Stochastic process – has.

Similar presentations


Presentation on theme: "3.Analysis of asset price dynamics 3.1Introduction Price – continuous function yet sampled discretely (usually - equal spacing). Stochastic process – has."— Presentation transcript:

1 3.Analysis of asset price dynamics 3.1Introduction Price – continuous function yet sampled discretely (usually - equal spacing). Stochastic process – has a random component, hence cannot be exactly predicted. Sequence of random variables => time series Basic notions from Statistics & Probability Theory: - distribution function - mean (expectation) - variance / standard deviation - (auto) correlation - stationary process (mean & variance do not change) 1

2 Statistical concepts 1 Consider a random variable (or variate) X. Probability density function f(x) defines the probability to find X between a and b: Pr(a ≤ X ≤ b) = The probability density must satisfy the normalization condition = 1 Cumulative distribution function: Pr(X≤b) = Obviously, Pr(X > b) = 1 – Pr(X ≤ b)

3 Statistical concepts 2 Two characteristics are used to describe the most probable values of random variables: (1) mean (or expectation), and (2) median. Mean of X is the average of all possible values of X that are weighed with the probability density f(x): m = E[X] = ∫ x f(x) dx Median of X is the value M for which Pr(X > M) = Pr(X < M) = 0.5 Variance, Var, and the standard deviation, σ, are the conventional estimates of the deviations from the mean values of X Var[X] ≡ σ 2 = ∫(x – m) 2 f(x) dx

4 Statistical concepts 3 Higher-order moments of the probability distributions are defined as m n = E[X n ] = ∫ x n f(x) dx According to this definition, mean is the first moment (m ≡ m 1 ), and variance can be expressed via the first two moments, σ 2 = m 2 – m 2. Two other important parameters, skewness S and kurtosis K, are related to the third and fourth moments, respectively: S = E[(x – m) 3 ] / σ 3, K = E[(x – m) 4 ] / σ 4 Both S and K are dimensionless. Zero skewness implies that f(x) is symmetrical around its mean value. The positive and negative values of skewness indicate long positive tails and long negative tails, respectively. Kurtosis characterizes the distribution peakedness. Kurtosis of the normal distribution equals three. The excess kurtosis, K e = K – 3, is often used as a measure of deviation from the normal distribution.

5 Statistical concepts 4 Joint distribution of two random variables X and Y Pr(X ≤ b, Y ≤ c) = h(x, y) is the joint density that satisfies the normalization condition =1 Two random variables are independent if their joint density function is the product of the univariate density functions: h(x, y) = f(x) g(y). Covariance between two variates provides a measure of their simultaneous change. Consider two variates X and Y that have the means m X and m Y, respectively. Their covariance equals Cov(x, y) = σ XY = E[(x – m X )(y – m Y )] = E[xy] – m X m Y

6 Statistical concepts 5 Positive (negative) covariance between two variates implies that these variates tend to change simultaneously in the same (opposite) direction. Another popular measure of simultaneous change is correlation coefficient: Corr(x, y) = Cov(x, y)/(σ X σ Y ); -1 ≤ Corr(x, y) ≤ 1 Autocovariance: γ(k, t) = E[y(t) – m)(y(t – k) – m)] Autocorrelation function (ACF): ρ(k) = γ(k)/γ(0); ρ(0) = 1; |ρ(k)| < 1 Ljung-Box test H 0 hypothesis: ρ(1) = ρ(2) = … ρ(k) = 0; p-value. In the general case with N variates X 1,..., X N (where N > 2), correlations among variates are described with the covariance matrix, which has the following elements Cov(x i, x j ) = σ ij = E[(x i – m i )(x j – m j )]

7 Statistical concepts 6 Uniform distribution has a constant value within the given interval [a, b] and equals zero outside this interval f U = 0, x b f U = 1/(b – a), a ≤ x ≤ b m U = 0.5(a+b), σ 2 U = (b – a) 2 /12, S U = 0, K eU = –6/5 Normal (Gaussian) distribution has the form f N (x) = exp[–(x – m) 2 /2σ 2 ] It is often denoted N(m, σ). Skewness and excess kurtosis of the normal distribution equal zero. The transform z = (x – m)/σ converts the normal distribution into the standard normal distribution f SN (x) = exp[–z 2 /2]

8 Statistical concepts 7 8

9 9 3.Analysis of asset price dynamics 3.1Introduction (continued) Time series analysis: - ARMA model - linear regression - trends (deterministic vs stochastic) - vector autoregressions /simultaneous equations - cointegration 9

10 10 3.Analysis of asset price dynamics 3.2 Autoregressive model AR(p) Univariate time series y(t) observed at moments t = 0, 1, …, n; y(t k ) ≡ y(k) ≡ y k y(t) = a 1 y(t-1) + a 2 y(t-2) + …+ a p y(t-p) + ε(t), t > p (lag) Random process ε(t) (noise, shock, innovation) White noise: E[ε(t)] = 0; E[ε 2 (t)] =  2 ; E[ε(t) ε(s)] = 0, if t  s. Lag operator: L p = y(t-p); A p (L) = 1 – a 1 L – a 2 L 2 - … - a p L p AR(p): A p (L)y(t) = ε(t), 10

11 11 3.Analysis of asset price dynamics 3.2 Autoregressive model AR(p) (continued 1) AR(1): y(t) = a 1 y(t-1) + ε(t), y(t) = a 1 i ε(t-i) Mean-reverting process: shocks decay and process returns to its mean. “Old” noise converges with time to zero when | a 1 | < 1 If a 1 = 1, AR(1) is the random walk (RW): y(t) = y(t-1) + ε(t) => y(t) = ε(t-i) RW is not mean-reverting. 11

12 3. Analysis of asset price dynamics 3.2 Autoregressive model AR(p) (continued 2) The 1 st difference of RW: x(t) = y(t) – y(t-1) = ε(t) => mean-reverting Processes that must be differenced d times in order to exclude non- transitory noise shocks are named integrated of order d: I(d). Unit roots exist for AR(p) when shocks are not transitory. Then modulus of solutions to the characterisitc equation 1 – a 1 z – a 2 z 2 - … - a p z p = 0 must be lower than 1 (inside unit circle): y(t) = 0.5y(t-1) – 0.2y(t-2) => 1- 0.5z + 0.2z 2 = 0; 12

13 3. Analysis of asset price dynamics 3.2 Autoregressive model AR(p) (continued 3) AR(p) with non-zero mean: If E[y(t)] = m, RW: y(t) = c + a 1 y(t-1) + ε(t), c = m(1- a 1 ) AR(p): A p (L)y(t) = c + ε(t), c = m(1- a 1 -... - a p ) Autocorrelation coefficients: y(t) is covariance-stationary (or weakly stationary) if γ(k, t) = γ(k). AR(1): ρ(1) = a 1, ρ(k) = a 1 ρ(k-1) AR(2): ρ (1) = a 1 /(1 – a 2 ), ρ(k) = a 1 ρ(k-1) + a 2 ρ(k-2), k ≥ 2 13

14 3. Analysis of asset price dynamics 3.3 Moving average model MA(q) y(t) = ε(t) + b 1 ε(t-1) + b 2 ε(t-2) +... + b q ε(t-q) = B q (L) ε(t) B q (L) = 1 + b 1 L + b 2 L 2 + … + b q L q MA(1): y(t) = ε(t) + b 1 ε(t-1), ε(0) = 0; MA(1) incorporates past like AR(  ): y(t)(1-b 1 L + b 1 L 2 -b 1 L 3 +...) = ε(t) MA(1): ρ(1) = b 1 /( b 1 2 + 1), ρ(k>1) = 0 MA(q) is invertible if it can be transformed into AR(  ). In this case, all solutions to 1 + b 1 z + b 2 z 2 + … + b q z q = 0 must be outside unit circle. Hence MA(1) is invertible when |b 1 | < 1. MA(q) with non-zero mean m: y(t) = c + B p (L)ε(t), c = m 14

15 3. Analysis of asset price dynamics 3.4 The ARMA(p, q) model y(t) = a 1 y(t-1) + a 2 y(t-2) + …+ a p y(t-p) + ε(t) + b 1 ε(t-1) + b 2 ε(t-2) +... + b q ε(t-q) Strict stationarity when higher moments do not depend on time. Any MA(q) is covariance-stationary. AR(p) is covariance-stationary only if the roots of its polynomial are outside the unit circle. 15

16 16 3. Analysis of asset price dynamics 3.5 Linear regression Empirical TS: y i = a + bx i + ε i., i = 1, 2,.., N. a – intercept; b – slope. Estimator: y = A + Bx; Residual: e i = y i - A - Bx i ; RSS = MSE => OLS = min(RSS) => A = y m - Bx m ; B = x m = ; y m = X i = x i – x m Y i = y i – y m 16

17 3. Analysis of asset price dynamics 3.5 Linear regression (continued) Assumptions: 1) E[ε i ] = 0; otherwise intercept is biased. 2) Var(ε i ) = σ 2 = const ; 3) E[ε(t) ε(s)] = 0, if t  s. 4) Independent variable is deterministic. Goodness of fit (coefficient of determination; R 2 ) R 2 = 1 - 17

18 3. Analysis of asset price dynamics 3.5 Linear regression (continued) 18

19 3.Analysis of asset price dynamics 3.6 Multiple regression y i = a + b 1 x 1,i + b 2 x 2,i +... + b K x K,i + ε i Additional assumption: no perfect collinearity, i.e. no X i is a linear combination of other X i. Overspecification => no bias in estimates of b i but overstates σ 2 Underspecification => yields biased b i and understates σ 2 Adjusted R 2 = 1 - 19

20 3. Analysis of asset price dynamics 3.7 Trends Trends => non-stationary time series Deterministic trend vs stochastic trend AR(1): y(t) – m – ct = a 1 [y(t – 1) – m – c(t – 1)] + ε(t) z(t) = y(t) – m – ct = a 1 t z(0) + ε(t) If |a 1 | < 1, shocks are transitory. If a 1 =1, random walk with drift: y(t) = c + y(t – 1) + ε(t) For m=0, deterministic trend: y(t) = at + ε(t) stochastic trend: y(t) = a + y(t – 1) + ε(t) May look similar for some time. 20

21 3. Analysis of asset price dynamics 21

22 3. Analysis of asset price dynamics 3.8 Multivariate time series A multivariate time series y(t) = (y1(t), y2(t),..., yn(t))' is a vector of n processes Multivariate moving average models are rarely used. Therefore we focus on the vector autoregressive model (VAR). Bivariate VAR(1) process: y 1 (t) = a 10 + a 11 y 1 (t - 1) + a 12 y 2 (t - 1) + ε 1 (t) y 2 (t) = a 20 + a 21 y 1 (t - 1) + a 22 y 2 (t - 1) + ε 2 (t) Matrix form: y(t) = a 0 + Ay(t - 1) + ε(t) y(t) = (y1(t), y2(t))', a0 = (a10, a20)', ε(t) = (ε1(t), ε2(t))', A = 22

23 3. Analysis of asset price dynamics 3.9 Multivariate time series (continued) Simultaneous dynamic models y 1 (t) = a 11 y 1 (t - 1) + a 12 y 2 (t) + ε 1 (t) y 2 (t) = a 21 y 1 (t) + a 22 y 2 (t - 1) + ε 2 (t) can be transformed to VAR: = (1 - a 12 a 21 ) -1 + (1 - a 12 a 21 ) -1 Two covariance stationary processes are x(t) and y(t) are jointly covariance-stationary if Cov(x(t), y(t – s)) depends on lag s only. 23


Download ppt "3.Analysis of asset price dynamics 3.1Introduction Price – continuous function yet sampled discretely (usually - equal spacing). Stochastic process – has."

Similar presentations


Ads by Google