53
Dual Beta Model Ho Ken Jom, Li Wenru, Zhang Jian Department of Mathematics, NUS, 14 March 2011

Dual Beta Model Ho Ken Jom, Li Wenru, Zhang Jian Department of Mathematics, NUS, 14 March 2011

  • View
    217

  • Download
    0

Embed Size (px)

Citation preview

Page 1: Dual Beta Model Ho Ken Jom, Li Wenru, Zhang Jian Department of Mathematics, NUS, 14 March 2011

Dual Beta Model

Ho Ken Jom, Li Wenru, Zhang JianDepartment of Mathematics, NUS, 14 March 2011

Page 2: Dual Beta Model Ho Ken Jom, Li Wenru, Zhang Jian Department of Mathematics, NUS, 14 March 2011

The Reference Paper

Does beta react to market conditions? Estimates ‘bull’ & ‘bear’ betas using a nonlinear market model with an endogenous threshold parameter

-by George Woodward; Heather M.Anderson, Quantitative Finance, 25 March 2009

Page 3: Dual Beta Model Ho Ken Jom, Li Wenru, Zhang Jian Department of Mathematics, NUS, 14 March 2011

Outline of The Presentation

• The Model

• Strategy

• Back Testing

Page 4: Dual Beta Model Ho Ken Jom, Li Wenru, Zhang Jian Department of Mathematics, NUS, 14 March 2011

Trend-based scheme

Definition of “Bull” and “Bear” market

How to differentiate market states

Compare market index to a critical threshold value

Page 5: Dual Beta Model Ho Ken Jom, Li Wenru, Zhang Jian Department of Mathematics, NUS, 14 March 2011

Market indicator- transition variable R*

Jump in and out of market phases rapidly Much smoother path

Figure 1: Return on the market index Figure 2, The transition variable (R*)

R*= 12 month moving average of logarithmic returns• smoother• noise not “useful”

Page 6: Dual Beta Model Ho Ken Jom, Li Wenru, Zhang Jian Department of Mathematics, NUS, 14 March 2011

Models

Dual-beta market model:

Bear state: Bull state :

: Market state indicator. critical threshold value for each industry

Page 7: Dual Beta Model Ho Ken Jom, Li Wenru, Zhang Jian Department of Mathematics, NUS, 14 March 2011

Logistic Smooth Transition Market Model

Models

When is large and negative When is large and positive

F is the logistic smooth transition function, : smoothness parameter

Page 8: Dual Beta Model Ho Ken Jom, Li Wenru, Zhang Jian Department of Mathematics, NUS, 14 March 2011

Data

• 24 industry groupings within the Australian Stock Exchange• Observations are monthly• Return series are calculated as the difference of the logarithms of prices.

industry Duration Sample size

19 industries Dec. 1979 to Dec. 2001 265

solid fuels, oil and gas,and entrepreneurial

investors

Dec. 1979 to Oct. 1996 203

miscellaneousservices

Dec. 1979 to Aug. 1997 213

tourism and leisure Dec. 1990 to Dec. 2001 144

Page 9: Dual Beta Model Ho Ken Jom, Li Wenru, Zhang Jian Department of Mathematics, NUS, 14 March 2011

Data

Page 10: Dual Beta Model Ho Ken Jom, Li Wenru, Zhang Jian Department of Mathematics, NUS, 14 March 2011

Estimation—LSTM model

LSTM models :

• “Smooth” transition• estimate LSTM

•15 industries: significant at 5%• 6 industries: significant at 10%•11: negative•10: positive

Page 11: Dual Beta Model Ho Ken Jom, Li Wenru, Zhang Jian Department of Mathematics, NUS, 14 March 2011

Estimation—DBM model

• Parameter estimates are almost identical

Page 12: Dual Beta Model Ho Ken Jom, Li Wenru, Zhang Jian Department of Mathematics, NUS, 14 March 2011

Estimation—DBM model

• DBM fits the data well(R2)

• Stocks spend more time in ‘bull’-market

•ESS is not affected

LSTM model

Page 13: Dual Beta Model Ho Ken Jom, Li Wenru, Zhang Jian Department of Mathematics, NUS, 14 March 2011

Summary

•‘Bull’ and ‘bear’ betas are significantly different for most industries •Transition between states is abrupt, supporting a dual-beta market modeling framework•For many industries, stocks spend more time in ‘bull’-market than ‘bear’-market states.•The risk associated with ‘bull’ states is not always smaller than the risk in ‘bear’ market states.

Page 14: Dual Beta Model Ho Ken Jom, Li Wenru, Zhang Jian Department of Mathematics, NUS, 14 March 2011

Strategies for Dual Beta Market Model

• Terms used • Model Calibration• Theory behind the strategy• Calculate the “fair” return of index• Search mispriced spots and trade • The shortage of the strategy

Page 15: Dual Beta Model Ho Ken Jom, Li Wenru, Zhang Jian Department of Mathematics, NUS, 14 March 2011

Terms

• Rm, Ri: Market/Index return• βu,βd: Beta in “up”/”down” state• α: Alpha• c: Threshold (defined on Rm)• Tu,Td: Upper and lower thresholds (for trading)• RMA: Rolling moving average• ε: the deviation from fair rate

Page 16: Dual Beta Model Ho Ken Jom, Li Wenru, Zhang Jian Department of Mathematics, NUS, 14 March 2011

Bull & Bear

• Paper suggests dual beta model– Differing betas for different market states– Relatively sudden transition

• Suggests a market inefficiency

• Use a 12-month MA to determine state– Market state only changes a few times (2-5 years)

Page 17: Dual Beta Model Ho Ken Jom, Li Wenru, Zhang Jian Department of Mathematics, NUS, 14 March 2011

Up and Down

• Attempts with a 12-month MA yielded losses– Not suitable for forecasting, trading on– Long-term/”slow” changes not useful

• Trials with daily market data (Rm) successful– State can (and does) change from day to day

• Investor sentiment• Smaller, but still significant changes

Page 18: Dual Beta Model Ho Ken Jom, Li Wenru, Zhang Jian Department of Mathematics, NUS, 14 March 2011

Model

• For a given c (Threshold value) partition data into “up”/”down” sets– Fit a dual beta (single alpha model)– Choose the c, α, βu,βd that provide the best fit (R2)– Look for significant change in beta

Page 19: Dual Beta Model Ho Ken Jom, Li Wenru, Zhang Jian Department of Mathematics, NUS, 14 March 2011

Model Calibration

• Calibration for single beta model (SBM)• Use the α of SBM to initiate a search for

parameters of dual beta single alpha model(DBSAM)

• The DBSAM should have a higher R-square as expected

• Trade on pairs of high R-square

Page 20: Dual Beta Model Ho Ken Jom, Li Wenru, Zhang Jian Department of Mathematics, NUS, 14 March 2011

Data Process

• For a given set of estimated model parameters– Calculate Rm, compare with c to obtain state– Calculate Ri, compare with (α + βRm)

• Check where difference lies w.r.t thresholds

Page 21: Dual Beta Model Ho Ken Jom, Li Wenru, Zhang Jian Department of Mathematics, NUS, 14 March 2011

Fair Rate (Model Predicted rate)• For a given set of estimated model parameters

– Calculate Rm, compare with c to obtain state – Calculate the fair rate of index return

if(Rm<C) α + βd Rm

if(Rm>C) α + βu Rm

– The deviation is given as

ε = Ri-(α+ βu Rm)

Page 22: Dual Beta Model Ho Ken Jom, Li Wenru, Zhang Jian Department of Mathematics, NUS, 14 March 2011

Thresholds

• Above +Tu: over-performing or “cheap”– Buy

• Below –Tu: under-performing or “expensive”– (Short) Sell

• Between ±Td: No significant difference (noise)– Close out positions

Page 23: Dual Beta Model Ho Ken Jom, Li Wenru, Zhang Jian Department of Mathematics, NUS, 14 March 2011

Thresholds

• Higher thresholds are more conservative– Buy only during bigger differences– Close out positions more quickly

• Thresholds estimated by backtesting– Conservative thresholds give less gains/losses– Important to determine the best threshold

Page 24: Dual Beta Model Ho Ken Jom, Li Wenru, Zhang Jian Department of Mathematics, NUS, 14 March 2011

Strategy

• Impose a position limit +1, -1• For p=0: if(ε >Tu), p = 1; else p =-1• For p=1: if(abs(ε) <Td), p = 0, update P&L; else

if(ε <-Tu), p = -1, update P&L• For p=-1: if(abs(ε) <Td), p = 0, update P&L; else

if(ε >Tu), p = 1, update P&L

Page 25: Dual Beta Model Ho Ken Jom, Li Wenru, Zhang Jian Department of Mathematics, NUS, 14 March 2011

The Shortage of The Strategy

• Vulnerable to Systematical Risk (suppose p=1 but the market drops during holding period, or p=-1, but the market rise)

• Does not consider transaction cost • Solution: impose further restrictions -impose positive condition for each cycle of trading

-when return is very high, don’t short, and vice versa; do not hold for a long time for a long position, etc…

Page 26: Dual Beta Model Ho Ken Jom, Li Wenru, Zhang Jian Department of Mathematics, NUS, 14 March 2011

Back Testing

• Setup • Stationary Trading• Dynamical Trading• Stress Testing• Future Works• Conclusion

Page 27: Dual Beta Model Ho Ken Jom, Li Wenru, Zhang Jian Department of Mathematics, NUS, 14 March 2011

Setup

• Data Selection• Using Spot rate of return instead of RMA• Calibrating dual beta single alpha model (DBSAM)• Parameterization of the strategy• Which return to use?• The state transition probability

Page 28: Dual Beta Model Ho Ken Jom, Li Wenru, Zhang Jian Department of Mathematics, NUS, 14 March 2011

Data Selection • Market variable: S&P 500(^GSPC)• Target indices scanned:

NYSE Composite (^NYA) NASDAQ Composite ( ^IXIC) Vanguard Index Trust 500 Index (VFINX) PHLX OIL SERVICE SECTOR INDEX ( ^OSX) Bank of America (BAC) • Period: 01/01/2009~04/03/2011 (546 days), by YahooEOD Add some plots to show the betas here

Page 29: Dual Beta Model Ho Ken Jom, Li Wenru, Zhang Jian Department of Mathematics, NUS, 14 March 2011

NYA and S&P500, 1/1/2009~6/03/2011

NYA and S&P500

0

1000

2000

3000

4000

5000

6000

7000

8000

9000

9/ 9/ 2008

12/ 18/ 2008

3/ 28/2009

7/ 6/ 2009

10/ 14/ 2009

1/ 22/2010

5/ 2/ 2010

8/ 10/2010

11/ 18/ 2010

2/ 26/2011

6/ 6/ 2011

Data

Adj

Quot

e

S&P500NYA

Page 30: Dual Beta Model Ho Ken Jom, Li Wenru, Zhang Jian Department of Mathematics, NUS, 14 March 2011

R-Square for the First 294 Days

*Sector index and single stock has low R-square thus trade

S&P500 & NYA

Target NYA IXIC VFINX OSX BAC

R2-SBM 0.978 0.923 0.999 0.717 0.481

R2-DBSAM 0.979 0.925 0.999 0.728 0.504

Page 31: Dual Beta Model Ho Ken Jom, Li Wenru, Zhang Jian Department of Mathematics, NUS, 14 March 2011

Using Spot Rate of return

RMA data yields a bad fitting, and even fails itself, so chose spot rate return of S&P500 for trading

mLag 1 2 3 5 10

SBM R2 0.978 0.117 0.083 0.064 0.020

DBMSA R2 0.979 0.757 0.589 0.390 0.179

Page 32: Dual Beta Model Ho Ken Jom, Li Wenru, Zhang Jian Department of Mathematics, NUS, 14 March 2011

Calibration of DBSAM

• First conduct an SBM OLS on the whole 294 days data• Then partition the data to lower wing and upper wing with

different candidate threshold values• Then for each partition, generate α-grid (see below), search

for α and the associate βd & βu such that the composite R-square is maximized

• In my program, s = 0.01, i = -25, …,25, but is still expensive in computing

isSBM

isSBM

Page 33: Dual Beta Model Ho Ken Jom, Li Wenru, Zhang Jian Department of Mathematics, NUS, 14 March 2011

OSX ~ S&P500 SBM Fitting

R2 = 0.69, Beta = 1.46, ALPHA = 0.175

Page 34: Dual Beta Model Ho Ken Jom, Li Wenru, Zhang Jian Department of Mathematics, NUS, 14 March 2011

OSX~NYA DBSAM Fitting R2 = 0.76, Beta Lower = 1.56, Beta Upper = 1.44, ALPHA = 0.415

Page 35: Dual Beta Model Ho Ken Jom, Li Wenru, Zhang Jian Department of Mathematics, NUS, 14 March 2011

Parameterization of The Strategy

nTrade number of trading days in US, set as 252 ND number of days in data, in our case this is 546 NRD number of days for regression NRD = 546-NBT NBT number of days for back-testing TH the threshold weight to partition the market E the average modeling error Tu the threshold to trigger a position in scales of E Td threshold to close a position in scales of E Limit position limit, set as +1, -1 S the resolution for search for alpha, fixed as 0.01 FEE fees, set as zero for the time-being

Page 36: Dual Beta Model Ho Ken Jom, Li Wenru, Zhang Jian Department of Mathematics, NUS, 14 March 2011

Which Return to use?

• Program uses daily holding period return• Test shows log return performs better• However, for the purpose of consistency, I keep

using daily holding return

Page 37: Dual Beta Model Ho Ken Jom, Li Wenru, Zhang Jian Department of Mathematics, NUS, 14 March 2011

State Transition Probability(1)

Define modeling error at t, t=0,1,..,N as Et. Assume :

For all positive E’s, sum over both sides

Similarly, we have

Once we know r, we can estimate the volatility using

tE

dBrEE tt 1

0, 0, 0,0,0,

)/()(t t ttt Et Et Et

ttttEtEt

t EErErdBErE

0, 0, 0,0,0,

)/()(t t ttt Et Et Et

ttttEtEt

t EErErdBErE

1 tt ErEdB

Page 38: Dual Beta Model Ho Ken Jom, Li Wenru, Zhang Jian Department of Mathematics, NUS, 14 March 2011

State Transition Probability(2)

Now, suppose the initial error is Et which is less than Td. After 1 time unit, the error distribution is given as

Then the probability that a long position will be triggered is

Eventually this will enable us to estimate the holding period.

),(~ 21 tt rENE

uTL dErEEP ),,( 2

Page 39: Dual Beta Model Ho Ken Jom, Li Wenru, Zhang Jian Department of Mathematics, NUS, 14 March 2011

Stationary Trading

The model is calibrated using the first NRD days data, and back-tested against the left NBT days data, assuming the model is stationary

• Search optimal Tu (trigger threshold)• Search optimal Td (closing threshold)• Search optimal TH (weighting threshold)• Different NBT (number of back-testing days)• High Frequency Trading

Page 40: Dual Beta Model Ho Ken Jom, Li Wenru, Zhang Jian Department of Mathematics, NUS, 14 March 2011

Optimal Tu

*Setting: NBT = 126, Td = 0.1, TH = 0.2

Tu 2 3 4 5 6 7 8

SBM P&L -295.56 -392.94 -223.48 148.58 -47.18 -176.6 -341.26

DBSAM P&L -264.78 -236.48 15.12 214.66 251.08 272.44 -13.26

Page 41: Dual Beta Model Ho Ken Jom, Li Wenru, Zhang Jian Department of Mathematics, NUS, 14 March 2011

Optimal Tu

Return f or Di ff erent Tu

- 12

- 10

- 8

- 6

- 4

- 2

0

2

4

6

8

0 1 2 3 4 5 6 7 8 9

Tu

Retu

rn SBMDBSAM

Page 42: Dual Beta Model Ho Ken Jom, Li Wenru, Zhang Jian Department of Mathematics, NUS, 14 March 2011

Optimal Td

*Setting: NBT = 126, Tu = 5, TH = 0.2

Td 1 0.75 0.5 0.25 0.1

SBM Return 4.02% 4.65% 4.24% 4.74% 3.71%

DBSAM Return 10.33% 14.73% 9.52% 9.06% 5.37%

Page 43: Dual Beta Model Ho Ken Jom, Li Wenru, Zhang Jian Department of Mathematics, NUS, 14 March 2011

Optimal TH

*Setting: NBT = 126, Td = 0.5, Tu = 5

Return VS TH

- 15

- 10

- 5

0

5

10

15

0 0. 05 0. 1 0. 15 0. 2 0. 25 0. 3 0. 35 0. 4 0. 45 0. 5

TH

Retu

rn (

%)

Page 44: Dual Beta Model Ho Ken Jom, Li Wenru, Zhang Jian Department of Mathematics, NUS, 14 March 2011

Different NBT

Di ff erent Back Test i ng Days

0. 00%

10. 00%

20. 00%

30. 00%

40. 00%

50. 00%

60. 00%

0 50 100 150 200 250 300

NBT

Retu

rn DBSAMSBM

Page 45: Dual Beta Model Ho Ken Jom, Li Wenru, Zhang Jian Department of Mathematics, NUS, 14 March 2011

High Frequency Trading with Different NBT

*It can be observed that (i) DBSAM is better (ii) return increases with NBT (Setting: Td = 1, Tu = 2, TH = 0.3)

NBT 60 90 126 180 252

SBM Return 24.85% 1.81% 4.02% 7.93% 19.75%

DBSAM Return 24.00% 5.61% 10.33% 10.76% 24.14%

Page 46: Dual Beta Model Ho Ken Jom, Li Wenru, Zhang Jian Department of Mathematics, NUS, 14 March 2011

Dynamic Trading

• The issue of computing time -It takes 50s for Java to search the grid, for 252 days, weekly update, need

42m on Dell OptiFlex755

• Using C & CUDA -Reduce to 7m (on Nvidia GTX580)

• Some results

Page 47: Dual Beta Model Ho Ken Jom, Li Wenru, Zhang Jian Department of Mathematics, NUS, 14 March 2011

Results: Dynamical SBM vs Stationary SBM

Dynamcal SBM and Stat i onary SBM

0. 00%

5. 00%

10. 00%

15. 00%

20. 00%

25. 00%

30. 00%

35. 00%

0. 00% 5. 00% 10. 00% 15. 00% 20. 00% 25. 00% 30. 00%

Stat i onary

Dyna

mica

l

Dynami cal SBMStat i onary SBM

Page 48: Dual Beta Model Ho Ken Jom, Li Wenru, Zhang Jian Department of Mathematics, NUS, 14 March 2011

Results: Dynamic DBSAM vs Stationary DBSAM

Dynami cal DBSAM vs Stat i onary SBSAM

0. 00%

5. 00%

10. 00%

15. 00%

20. 00%

25. 00%

30. 00%

35. 00%

40. 00%

45. 00%

0. 00% 10. 00% 20. 00% 30. 00% 40. 00% 50. 00%

Stat i onary DBSAM

Dyn

DBSA

M

Dynami cal DBSAMStat i onary DBSAM

Page 49: Dual Beta Model Ho Ken Jom, Li Wenru, Zhang Jian Department of Mathematics, NUS, 14 March 2011

Possible Reason for Under-Performance

My own OLS algorithm for regression passing through the

origin (consistent with matlab) yield slightly different parameters from AlgoQuant.

Page 50: Dual Beta Model Ho Ken Jom, Li Wenru, Zhang Jian Department of Mathematics, NUS, 14 March 2011

Stress Testing (stationary): against 2007~2009 Crisis

• Case I: Regression before crisis and back testing in crisis(1 Jan 2007~6 Mar 2009)

• Case II: Both in crisis (3 Jan 2008~6 March 2010)• Case III: Regression in crisis and back testing out crisis? But no

such case!

Cases I II

SBM -3.75% 7.08%

DBSAM 0.077% 32.74%

Page 51: Dual Beta Model Ho Ken Jom, Li Wenru, Zhang Jian Department of Mathematics, NUS, 14 March 2011

Conclusion

• The simple strategy works well after optimization for composite indices, and in most of the cases the DBSAM outperforms SBM. But the model is subject to Systematic risk .

• The Dynamical SBM outperforms Stationary SBM, this is not true for DBSAM, possibly due to the inconsistency OLS algorithm.

Page 52: Dual Beta Model Ho Ken Jom, Li Wenru, Zhang Jian Department of Mathematics, NUS, 14 March 2011

Future Works

• Refine the model -Resolving the inconsistency of OLS algorithm

-Try daily model updating -Impose conditions to hedge the systematic risk -Apply to sector index (R2: 0.7~0.9) -Reduce the parameters of the model -Compute the Sharp ration/Sharp Omega if we have time

• Try DUAL BETA DUAL ALPHA MODEL• Try Pairs Trading with Dual & Dynamical Beta

Model

Page 53: Dual Beta Model Ho Ken Jom, Li Wenru, Zhang Jian Department of Mathematics, NUS, 14 March 2011

Q& A!