MTA 2007 Mid Winter Retreat Baskets A Practical Use of Common Trends Yngvi Hardarson MA, CMT.
-
Upload
journey-belden -
Category
Documents
-
view
215 -
download
0
Transcript of MTA 2007 Mid Winter Retreat Baskets A Practical Use of Common Trends Yngvi Hardarson MA, CMT.
![Page 1: MTA 2007 Mid Winter Retreat Baskets A Practical Use of Common Trends Yngvi Hardarson MA, CMT.](https://reader038.fdocuments.net/reader038/viewer/2022103121/56649c755503460f94929bad/html5/thumbnails/1.jpg)
MTA 2007 Mid Winter Retreat
BasketsA Practical Use of Common Trends
Yngvi Hardarson MA, CMT
![Page 2: MTA 2007 Mid Winter Retreat Baskets A Practical Use of Common Trends Yngvi Hardarson MA, CMT.](https://reader038.fdocuments.net/reader038/viewer/2022103121/56649c755503460f94929bad/html5/thumbnails/2.jpg)
Briefly on myself
A founding Partner at Economic Consulting & Forecasting Ltd. in Reykjavik, Iceland since 1993Specializing in Risk Management (FX)
Economist by educationUniversity of Iceland cand. oecon. degreeQueen’s University in Canada, MA degree emphasis on Econometrics, Monetary EconomicsYrjö Jahnsson Foundation, Finland, Certificate Int.
Trade
MTA, CMT designation
![Page 3: MTA 2007 Mid Winter Retreat Baskets A Practical Use of Common Trends Yngvi Hardarson MA, CMT.](https://reader038.fdocuments.net/reader038/viewer/2022103121/56649c755503460f94929bad/html5/thumbnails/3.jpg)
Askar Capital - Investment Bank
Created on Jan. 1 2007 out of a mergerbetween ECF and two other companies: - Aquila Venture Partners a private equity real estate investment co. - Sjova Finance a financing co. owned by Iceland’s largest insurance co.
![Page 4: MTA 2007 Mid Winter Retreat Baskets A Practical Use of Common Trends Yngvi Hardarson MA, CMT.](https://reader038.fdocuments.net/reader038/viewer/2022103121/56649c755503460f94929bad/html5/thumbnails/4.jpg)
Potential Uses of Quantitative Analysis to the TA:
1. Analyze trading system performance - Potential performance.2. Investigate impact of changing system parameters / Establish robustness of chosen parameters.3. Make indicators and filters.4. Datamine: To optimize system parameters and/or rule search.5. Identify and manage risk in trading, e.g. money management and construct portfolio of trading strategies.6. To manipulate (transform) the financial instrument to be traded.7. To integrate technical analysis with fundamentals.
There are more ways, e.g. bootstrap (or Monte Carlo) simulationand formal hypothesis testing.
I will focus on 6 but involve 2, 3 and 5.
![Page 5: MTA 2007 Mid Winter Retreat Baskets A Practical Use of Common Trends Yngvi Hardarson MA, CMT.](https://reader038.fdocuments.net/reader038/viewer/2022103121/56649c755503460f94929bad/html5/thumbnails/5.jpg)
Baskets
What are they?A weighted combination of financial instruments.E.g.: Indices like S&P 500, Reuters-CRB, Dollar index, Custom Made (own) baskets.
Why trade them?Cleaner market signals, i.e. zero-lag “noise” filter.Manage risk.“Redefine” the market being traded.
![Page 6: MTA 2007 Mid Winter Retreat Baskets A Practical Use of Common Trends Yngvi Hardarson MA, CMT.](https://reader038.fdocuments.net/reader038/viewer/2022103121/56649c755503460f94929bad/html5/thumbnails/6.jpg)
2000 2001 2002 2003 2004 2005 2006 2007
5
10
15
20
25
30
3540
50
SNDK(right axis)NSM
(left axis)
5
10
15
20
25
30
3540
5
10
15
20
25
30
3540Minimum Volatility Basket
Cleaner Signals on BasketTwo stocks:NSM, SNDK
AnnualizedVolatility of:NSM 60%SNDK 72%Basket 57%
NSM weighs72% in basket
![Page 7: MTA 2007 Mid Winter Retreat Baskets A Practical Use of Common Trends Yngvi Hardarson MA, CMT.](https://reader038.fdocuments.net/reader038/viewer/2022103121/56649c755503460f94929bad/html5/thumbnails/7.jpg)
Common Trends – Cointegration
What is this?
The Concept of Trend Accepted Among TA’s: “The Trend is Your Friend”.
Statistics - 2 types of trend: - Deterministic - Stochastic
We consider the stochastic version
Source: Hamilton, JD, “Time Series Analysis”, PrincetonUniversity Press, NJ, 1994
![Page 8: MTA 2007 Mid Winter Retreat Baskets A Practical Use of Common Trends Yngvi Hardarson MA, CMT.](https://reader038.fdocuments.net/reader038/viewer/2022103121/56649c755503460f94929bad/html5/thumbnails/8.jpg)
Stochastic Trend
pt = pt-1 + + t
A Random Walk (along Wall Street) with rift.Said to be Integrated of Order 1 (I1).
Why? Rewrite as:pt - pt-1 = + t The 1st difference of price.
If p is a log (natural) of price then pt - pt-1 is percentage change.
Price hardly I2Would imply ever increasing price changesNot typical.
![Page 9: MTA 2007 Mid Winter Retreat Baskets A Practical Use of Common Trends Yngvi Hardarson MA, CMT.](https://reader038.fdocuments.net/reader038/viewer/2022103121/56649c755503460f94929bad/html5/thumbnails/9.jpg)
Implications
Cointegrated = Common Trends
The prices must be cointegrated with common hidden factor
Two cointegrated series: One Granger Causes OtherGranger Causality implies a time lead.
Employing “differences” only is WRONG.Differencing filters out important long termprice information, i.e. the trend
TA can benefit from this. (Bear with me).
![Page 10: MTA 2007 Mid Winter Retreat Baskets A Practical Use of Common Trends Yngvi Hardarson MA, CMT.](https://reader038.fdocuments.net/reader038/viewer/2022103121/56649c755503460f94929bad/html5/thumbnails/10.jpg)
Cointegrated Markets - Example
Causality based on so called Error Correction Mechanism (Sargan).
89 90 91 92 93 94 95 96 97 98 99 00 01 02 03 04 05 06 07
2000
3000
4000
5000
6000
7000
8000
9000European Stock Indices
AEX
CAC
AEX
DAX
Alexander 2001: "There is clear indication of a cointegrationvector... The results indicate a strong positive causality fromthe DAX to the other two markets."
![Page 11: MTA 2007 Mid Winter Retreat Baskets A Practical Use of Common Trends Yngvi Hardarson MA, CMT.](https://reader038.fdocuments.net/reader038/viewer/2022103121/56649c755503460f94929bad/html5/thumbnails/11.jpg)
Two methods for testing for cointegration
Engle-Granger vs. Johansen
Engle-Granger method simplerMore than two variables then can’tidentify which variable is dependent
Engle-Granger method can be applied toBaskets (indices): “Natural” dependent variable
Engle-Granger criterion is Minimum VarianceHas an important Risk Management angle
Normally have lots of data
![Page 12: MTA 2007 Mid Winter Retreat Baskets A Practical Use of Common Trends Yngvi Hardarson MA, CMT.](https://reader038.fdocuments.net/reader038/viewer/2022103121/56649c755503460f94929bad/html5/thumbnails/12.jpg)
So... Let’s use this!
First need a bit more bones to support the muscle
Will work with PHLX Semiconductor Index (SOX). Why?
It’s small & volatile
![Page 13: MTA 2007 Mid Winter Retreat Baskets A Practical Use of Common Trends Yngvi Hardarson MA, CMT.](https://reader038.fdocuments.net/reader038/viewer/2022103121/56649c755503460f94929bad/html5/thumbnails/13.jpg)
The Truth - Almost the Whole Truth
The “Index” is the Truth (the true model by construction)
Let’s make OUR VERSION and then SKEW it
Problem with the truth… “It’s complicated”
- Index revisions- Calculation method- Many index components
Solution: Our version- Calculate index history given current weights- Calculate based on geometric weighting- Could drop components but not needed
![Page 14: MTA 2007 Mid Winter Retreat Baskets A Practical Use of Common Trends Yngvi Hardarson MA, CMT.](https://reader038.fdocuments.net/reader038/viewer/2022103121/56649c755503460f94929bad/html5/thumbnails/14.jpg)
2000 2001 2002 2003 2004 2005 2006 2007
200
300
400
500
600
700
800
900100011001200
1400
SOX
ESOX
Our Version
lnexp19
1,
itiit PESOX
Why?Know current weights
Don’t know future weightsWe are simulating current state
![Page 15: MTA 2007 Mid Winter Retreat Baskets A Practical Use of Common Trends Yngvi Hardarson MA, CMT.](https://reader038.fdocuments.net/reader038/viewer/2022103121/56649c755503460f94929bad/html5/thumbnails/15.jpg)
The Skewed Version – Misspecification
Set chosen ’s (weights) to ZEROMultiple Regression determines other ’s
Model estimated in natural logs
![Page 16: MTA 2007 Mid Winter Retreat Baskets A Practical Use of Common Trends Yngvi Hardarson MA, CMT.](https://reader038.fdocuments.net/reader038/viewer/2022103121/56649c755503460f94929bad/html5/thumbnails/16.jpg)
Consequences of Intentional Misspecification
Estimated weights not consistentEstimated weights unstablePotential shifts of projected var.
Regression residual:- Residualt = ESOXt-ModelEstt
- Autocorrelated- Heteroscedastic
Stability of weights:Also depends on how much infocontributed via remaining variables.
Must monitor model closely
True ModelStock weight approximationALTR 4.23%AMAT 3.97% 26.36%AMD 4.40%BRCM 6.93% 12.83%IFX 2.97%INTC 4.37%KLAC 10.69% 18.74%LLTC 6.50% 22.67%MRVL 4.10%MU 3.00%MXIM 6.58%NSM 4.82% 12.25%NVLS 7.41%SNDK 9.10% 7.15%STM 3.98%TER 3.25%TSM 2.35%TXN 6.21%XLNX 5.14%Total 100.00% 100.00%
![Page 17: MTA 2007 Mid Winter Retreat Baskets A Practical Use of Common Trends Yngvi Hardarson MA, CMT.](https://reader038.fdocuments.net/reader038/viewer/2022103121/56649c755503460f94929bad/html5/thumbnails/17.jpg)
Why this model?
Estimate for different time periods. A moving 1001 day window.Figure on X-axis shows serial no. of day for ending period of regression.We want relatively stable weights indicating a ROBUST model
![Page 18: MTA 2007 Mid Winter Retreat Baskets A Practical Use of Common Trends Yngvi Hardarson MA, CMT.](https://reader038.fdocuments.net/reader038/viewer/2022103121/56649c755503460f94929bad/html5/thumbnails/18.jpg)
ESOX Volatility and Residual SE
Residualt = ESOXt-ModelFCt
Model tracks closer when volatility lowVolatility measured over 1001 days
Residual Standard Error and Daily ESOX Volatility
0.0%
0.5%
1.0%
1.5%
2.0%
2.5%
3.0%
3.5%
4.0%
4.5%
28
/6/0
4
28
/8/0
4
28
/10
/04
28
/12
/04
28
/2/0
5
28
/4/0
5
28
/6/0
5
28
/8/0
5
28
/10
/05
28
/12
/05
28
/2/0
6
28
/4/0
6
28
/6/0
6
28
/8/0
6
28
/10
/06
28
/12
/06
0.0%
0.5%
1.0%
1.5%
2.0%
2.5%
3.0%
3.5%
4.0%
4.5%
Residual SE
ESOX Vol.
Date showing ending period of 1001 day moving regression window
![Page 19: MTA 2007 Mid Winter Retreat Baskets A Practical Use of Common Trends Yngvi Hardarson MA, CMT.](https://reader038.fdocuments.net/reader038/viewer/2022103121/56649c755503460f94929bad/html5/thumbnails/19.jpg)
Investigate Residuals - Potential Shifts, etc.Estimate for period ending Jan. 3, 2006. (Obs. 1383)No visible shift or trend but drift of Weights and Residual SE indicates need for Model re-estimation and calibration.
Note: Autocorrelation obvious. Complicates I1 test.
![Page 20: MTA 2007 Mid Winter Retreat Baskets A Practical Use of Common Trends Yngvi Hardarson MA, CMT.](https://reader038.fdocuments.net/reader038/viewer/2022103121/56649c755503460f94929bad/html5/thumbnails/20.jpg)
Unwanted shift – What’s that?
Estimation period
Projection period
![Page 21: MTA 2007 Mid Winter Retreat Baskets A Practical Use of Common Trends Yngvi Hardarson MA, CMT.](https://reader038.fdocuments.net/reader038/viewer/2022103121/56649c755503460f94929bad/html5/thumbnails/21.jpg)
2003 A M J J A S O N D 2004 A M J J A S O N D 2005 A M J J A S O N D 2006 A M J J A S O N D 2007
-4-3-2-1012345Residual (%) Residual from projection (%)
Upper trigger calibrated at 1.5
Lower trigger calibrated at -2.5
Buy Basket on first touch of upper triggerSell Basket on first touch of lower trigger
250
300
350
400
450
500
550
600Projected ESOXBasket
ESOX
ESOX Basket
Residual Employed as Indicator
In this example buying Basket instead of SOXresults in 4% outperformance on each tradeless trading costs.
![Page 22: MTA 2007 Mid Winter Retreat Baskets A Practical Use of Common Trends Yngvi Hardarson MA, CMT.](https://reader038.fdocuments.net/reader038/viewer/2022103121/56649c755503460f94929bad/html5/thumbnails/22.jpg)
Trade the Residual?
Recall: Residualt = ESOXt-ModelFCt
Thus: Buy long Model and Short SOX on Upper Trigger A market neutral strategy Then Reverse on Lower Trigger
Residual Trends Sideways (by construction). Mean (zero) reversingRisk having to wait for it to come back to lower trigger
2003 A M J J A S O N D 2004 A M J J A S O N D 2005 A M J J A S O N D 2006 A M J J A S O N D 2007
-4-3-2-1
01234
5Residual (%) Residual from projection (%)
Upper trigger calibrated at 1.5
Lower trigger calibrated at -2.5
Buy Basket on first touch of upper triggerSell Basket on first touch of lower trigger
![Page 23: MTA 2007 Mid Winter Retreat Baskets A Practical Use of Common Trends Yngvi Hardarson MA, CMT.](https://reader038.fdocuments.net/reader038/viewer/2022103121/56649c755503460f94929bad/html5/thumbnails/23.jpg)
Alternative Baskets?
Recall: Model leaves out stocksLeave out other stocks.
True Model 1 Model 2Stock weight approximation approximationALTR 4.23%AMAT 3.97% 26.36%AMD 4.40% 6.23%BRCM 6.93% 12.83%IFX 2.97% 10.12%INTC 4.37%KLAC 10.69% 18.74%LLTC 6.50% 22.67% 13.61%MRVL 4.10% 12.88%MU 3.00%MXIM 6.58%NSM 4.82% 12.25% 18.04%NVLS 7.41% 23.30%SNDK 9.10% 7.15%STM 3.98%TER 3.25% 15.81%TSM 2.35%TXN 6.21%XLNX 5.14%Total 100.00% 100.00% 100.00%
ESOX Vol.Residual SE
2003 2004 2005 2006 2007
-5
0
5
Residuals (%) Residuals fromprojection (%)
![Page 24: MTA 2007 Mid Winter Retreat Baskets A Practical Use of Common Trends Yngvi Hardarson MA, CMT.](https://reader038.fdocuments.net/reader038/viewer/2022103121/56649c755503460f94929bad/html5/thumbnails/24.jpg)
References on Cointegration
Hamilton, JD, Time Series Analysis, PrincetonUniversity Press, NJ, 1994 (Ch. 19)
Alexander, C, Market Models, John Wiley & Sons,West Sussex, England, 2001 (Ch. 12)
Davidson, R & MacKinnon, JG, Estimation andInference in Econometrics, Oxford UniversityPress, NY, 1993 (Ch. 20)