Jointly Estimating a Cointegrating Hedge Ratio and OU Parameters
Summary
The document considers whether a cointegrating hedge ratio can be estimated jointly with the parameters of an Ornstein–Uhlenbeck model for the resulting spread. It distinguishes estimating a parameter by maximum likelihood from testing whether the spread is stationary: the Dickey–Fuller step addresses the latter, and including the hedge ratio in a likelihood does not replace that test. For a linear spread, the conditional density can be parameterized using the hedge ratio along with the OU mean, reversion rate, and volatility.
The answer cautions that joint estimation need not reproduce the hedge ratio from a preceding regression. In particular, an intercept omitted from the initial regression can be absorbed into the conditional mean, changing coefficient estimates. The discussion is conceptual and its displayed density is difficult to parse, so implementation should verify the conditional transition specification and stationarity assumptions rather than rely on the formula as written.
Key ideas
- Maximum likelihood estimation of a hedge ratio does not itself establish stationarity or cointegration.
- A linear spread can be modeled with the hedge ratio included among the OU likelihood parameters.
- Joint and sequential procedures need not produce the same hedge ratio.
- Omitting an intercept in the first-stage regression can shift the fitted conditional mean.
Tags
Full text
# Calibrating the Ornstein-Uhlenbeck process with an additional parameter
# Calibrating the Ornstein-Uhlenbeck process with an additional parameter
Firstly I find the spread between two cointegrated time-series $Y_t$ and $Z_t$ by finding the best slope parameter $\beta$ in the equation $spread_t = Y_t - \beta Z_t$ (via Cointegrated Dickey-Fuller Test). Then I say $spread_t = X_t$ and fit my Ornstein-Uhlenbeck model as described below.
I then have a mean-reverting Ornstein-Uhlenbeck process $X_t$ described by an SDE $$dX_t = \lambda (\mu - X_t) dt + \sigma dW_t \tag{1}$$
where the parameters are:
- $\lambda > 0$ : mean reversion coefficient
- $\mu \in \mathbb{R}$ : long-term mean
- $\sigma > 0$ : volatility coefficient
I use an exact discretization for this process:
$X_{t+1} = X_ie^{-\lambda\delta}+\mu(1-e^{-\lambda\delta}) +\sigma \sqrt{\frac{1-e^{-2\lambda\delta}}{2\lambda}}N_{0,1}$ where $N$ is a standard normal distribution.
To calibrate the process in order to find the parameters, I set a log-likelihood function of a set of observations that is derived from the conditional density function:
$$ \mathcal{L}(\mu, \lambda, \hat{\sigma})=\sum_{i=1}^{n} \ln f\left(X_{i} X_{i-1} ; \mu, \lambda, \sigma\right) \\ =-\frac{n}{2} \ln (2 \pi)-n \ln (\hat{\sigma}) -\frac{1}{2 \hat{\sigma}^{2}} \sum_{i=1}^{n}\left[X_{i}-X_{i-1} e^{-\lambda \delta}-\mu\left(1-e^{-\lambda \delta}\right)\right]^{2}. $$
We then find the three parameters by equating each partial derivative of the log-likelihood function to zero (w.r.t to each parameter).
My question is the following:
Would it be valid to skip the first step, i.e. the cointegration step and find the $\beta$ at the same time as the Ornstein-Uhlenbeck parameters. So I would then have
$$d(Y_t - \beta Z_t) = \lambda (\mu - (Y_t - \beta Z_t)) dt + \sigma dW_t$$ (since I set $X_t = (Y_t - \beta Z_t)$ in $(1)$ above) as my Ornstein-Uhlenbeck process.
I would then find a new log-likelihood function that also includes the parameter $\beta$: $$\mathcal{L}(\mu, \lambda, \hat{\sigma}, \beta) = \dots $$
I am not sure this makes sense, since before we fully knew what the $X_t$ process was (a given time-series we want to model) but now our $X_t$ process is $X_t=Y_t - \beta Z_t$ where $\beta$ is unknown.
## Answer by Mild_Thornberry (score 2, accepted)
https://quant.stackexchange.com/a/60662
It's difficult to follow parts of your question because of the notation. Throughout your formulas, I'm not sure where $X_t$ is an input to your regression and $X_t$ is what you've defined as spread. At least, that’s my excuse if I don’t answer your question properly.
Using MLE to estimate $\beta$ won't answer whether or not your two time series are covariance-stationary. That's what your Dickey-Fuller test is doing. If you're just doing the first step in testing for cointegration, that is, performing a linear regression without an intercept and then modeling the residuals as an OUP, then sure, you can manipulate the pdf you're maximizing:
$f(X_t;Y_t|X_{t-1};Y_{t-1})=\frac{1}{2\pi\sigma^2}e^{-\frac{1}{2}*\frac{(Y_t - \beta X_t - Y_{t-1} + \beta X_{t-1} -\lambda(\mu-Y_{t-1}+\beta X_{t-1})^2}{\sigma^2}}$
While you can test if the two methods yield equivalent coefficients, you shouldn't necessarily expect the same $\beta$. The intercept you excluded in your initial regression will be baked into your conditional mean. It’s the same premise as saying that l can expect the coefficient of a regression sans intercept to be different than one including an intercept.Shown in full with attribution under the source's licence. Licence: CC BY-SA 4.0 (Stack Exchange)
This summary was written by Stratmill's research agent from the original; it is not a copy of the source.