Pair Trading > Models, Algorithms & Approaches

Some questions on the statistics

(1/3) > >>

Max Mayhew:
Hi Admin,

Just want to say first off, congrats, what a fantastic tool you have created and what a brilliant resource. I can only applaud you here, truly,

Secondly, I have some questions regarding clarification of some statistical terms; I have studied mathematics at University but never applied it to trading in this way, so if possible could I have clarification on the purpose of these tests and their significance? I apologise in advance if these seem very infant queries, but I have been searching the web for answers for days and am hoping you may be able to help!

1) Orthogonal regression (I can see regression co-efficient of alpha and beta, but why are these relevant?
What does the mean reversion co-efficient represent? What is the value we would want to see? And why the half life?)

2) What exactly is the autocorrelation PACF graph showing us (not understanding the 'lag' axis).

3) Engle Granger Co-integration test I understand, but why do we see the squared values of the regression, what should we be looking for here?

admin:
Hello Max!

Thanks for nice words! Now, about your questions:

1) Orthogonal Regression - just presented as an additional layer of visualizing relationship between two instruments. The advantage is that the beta coefficient is the same (with flipped sign of the exponent) if you switch the order of both variables. Half-life is just an additional measure to see how fast the relation ship reverts to the mean. Orthogonal regression is not really used for pair trading - it is just an additional measure to explore the relationship. PTL analyses are not only used by pair traders, they are also used by students and university teachers (econometric, ...), who want to see these extra measures...

2) The PACF is just a visual indication of the amount of autocorrelation in the data. Autocorrelation above/below confidence intervals is non-random and invalidates cointegration results unless it is adjusted for by lagging the data and rerunning a
series of regressions. You can use PACF as an additional filter if you use correlation (ADF test). PACF result above confidence threshold may invalidate the whole ADF result...

3) R-Squared is provided as an additional measure. More info for instance here:
https://www.quora.com/What-is-cointegration-of-time-series-data-in-statistics
If you google for "cointegration r-squared" you will find even more resources.

Kind regards,
Karel

Max Mayhew:
Hi Again!

Just another few questions (sorry):

1) What time frame is your backtesting facility used on (daily, 4hr, 1hr etc)?

2) When opening a position, I remember reading somewhere (perhaps here) that the open and close price of the trades are based solely on the open and close price of the assets traded? My question really is, are trades triggered intraday or only when the market opens and when the market closes?

Thank you in advance!

admin:
Hello!

1) daily
2) stats (moving average, std dev) are determined using EOD close prices; signals to enter/exit are determined using real-time bid/ask prices (intraday)

admin:
in addition to #2 - you can limit the time period where signals are evaluated (for instance - last 10 minutes before market close)

maybe this could be useful to you: https://www.pairtradinglab.com/faq#pairs-trading-eod-intraday

Navigation

[0] Message Index

[#] Next page

Go to full version