1 of 35

Introduction to Vine Copula for Statistical Arbitrage

VINE COPULA FOR STATISTICAL ARBITRAGE

Feb 2021

Possible Vine Copula Structures, picture from [Pham et al. (2018)]

1

2 of 35

VINE COPULA FOR STATISTICAL ARBITRAGE

Feb 2021

04

09

24

32

Key Math Concepts

Understand Vine Copula

Trading Strategy

Interesting Problems

2

CONTENTS

3 of 35

VINE COPULA FOR STATISTICAL ARBITRAGE

Feb 2021

  • Ph.D. Candidate in Applied Mathematics at University of Delaware
  • Researcher at Hudson & Thames

LinkedIn: https://www.linkedin.com/in/hansen-pei-0949691b3/

Twitter: @HansenPei

ABOUT ME

Research Interests:

  • Stochastic Modeling
  • Fokker-Planck and Broadwell Models
  • Agent Based Modeling
  • Numerical Methods for PDE
  • Copula Modeling for Stats Arbitrage
  • Applied Probability
  • Stochastic Control

3

  • 3

4 of 35

VINE COPULA FOR STATISTICAL ARBITRAGE

Feb 2021

Key Math Concepts

01.

4

  • 4

5 of 35

VINE COPULA FOR STATISTICAL ARBITRAGE

Feb 2021

  1. Get data from 2 random variables, say,

  • Map to their quantiles using marginal CDF and formulate

Copula: Joint Cumulative Density on Quantiles

Review of Copula Concepts

5

6 of 35

VINE COPULA FOR STATISTICAL ARBITRAGE

Feb 2021

Decompose Joint Probability Density Via Copula

Generic joint probability density:

Still the same, but different notation:

More random variables:

4 other ways

6

7 of 35

VINE COPULA FOR STATISTICAL ARBITRAGE

Feb 2021

Say we have the joint probability density via structure

Conditional (cumulative) density

  • Key component for statistical arbitrage

  • Relative mispricing in a higher dimension

Decompose Joint Probability Density Via Copula

7

8 of 35

VINE COPULA FOR STATISTICAL ARBITRAGE

Feb 2021

Copula Density:

Joint Density:

Conditional Density:

Decompose Joint Probability Density Via Copula

8

9 of 35

VINE COPULA FOR STATISTICAL ARBITRAGE

9

Feb 2021

Understand Vine Copula

02.

9

  • 9

10 of 35

VINE COPULA FOR STATISTICAL ARBITRAGE

Feb 2021

Let’s get slightly more complicated...

Vine Copula: An Example

10

11 of 35

VINE COPULA FOR STATISTICAL ARBITRAGE

Feb 2021

Let’s get slightly more complicated...

Vine Copula: An Example

11

12 of 35

VINE COPULA FOR STATISTICAL ARBITRAGE

Feb 2021

Let’s get slightly more complicated...

Be careful:

Bivar Copulas

Vine Copula: An Example

12

13 of 35

VINE COPULA FOR STATISTICAL ARBITRAGE

Feb 2021

Let’s get slightly more complicated...

Vine Copula: An Example

13

14 of 35

VINE COPULA FOR STATISTICAL ARBITRAGE

Feb 2021

Let’s get slightly more complicated...

1

2

3

2, 3

1, 3

1,2 | 3

Vine Copula: An Example

14

15 of 35

VINE COPULA FOR STATISTICAL ARBITRAGE

Feb 2021

Let’s get slightly more complicated...

1

2

3

2, 3

1, 3

1,2 | 3

Vine Copula: Decompose higher dim dependency by bivar copulas and graphical structure

Vine Copula: An Example

15

16 of 35

VINE COPULA FOR STATISTICAL ARBITRAGE

Feb 2021

Flexibility

Higher dim copulas are very rigid

Visual dependence structure

Tail risk is limited

Interpretability

Risk Control

Picture from [Killiches et al. (2016)]

Model Advantages

16

17 of 35

VINE COPULA FOR STATISTICAL ARBITRAGE

Feb 2021

1

2

3

4

6

5

7

R-Vine

(Regular)

1

2

3

4

6

5

7

C-Vine

(Canonical)

1

2

3

4

6

5

7

D-Vine

(Drawable)

Structure Types

17

18 of 35

VINE COPULA FOR STATISTICAL ARBITRAGE

Feb 2021

1

2

3

4

(1, 3, 2, 4)

1, 4

2, 4

3, 4

1, 2 | 4

2, 3 | 4

1, 3 | 2, 4

Structure has bijection map with an ordered tuple:

Center for each tree

C-Vine Notation

18

19 of 35

VINE COPULA FOR STATISTICAL ARBITRAGE

Feb 2021

1

2

3

4

1, 3

1, 2

1, 4

2, 3 | 1

2, 4 | 1

4, 3 | 2, 1

Structure has bijection map with an upper triangular matrix:

R-Vine Notation

20 of 35

  1. Get data
  2. Figure out the vine copula structure
  3. Calculate point density
  4. Calculate conditional probability
  5. Generate signals

VINE COPULA FOR STATISTICAL ARBITRAGE

Feb 2021

Data

Marginal

CDF

Pseudo-

observation/

Quantile

Vine Copula Workflow

19

21 of 35

  • Get data
  • Figure out the vine copula structure
  • Calculate point density
  • Calculate conditional probability
  • Generate signals

VINE COPULA FOR STATISTICAL ARBITRAGE

Feb 2021

Complicated. Assume your computer can handle it for now.

Vine Copula Workflow

20

22 of 35

  • Get data
  • Figure out the vine copula structure
  • Calculate point density
  • Calculate conditional probability
  • Generate signals

VINE COPULA FOR STATISTICAL ARBITRAGE

Feb 2021

Calculate point density via vine structure:

Vine Copula Workflow

21

23 of 35

  • Get data
  • Figure out the vine copula structure
  • Calculate point density
  • Calculate conditional probability
  • Generate signals

VINE COPULA FOR STATISTICAL ARBITRAGE

Feb 2021

Vine Copula Workflow

22

24 of 35

  • Get data
  • Figure out the vine copula structure
  • Calculate point density
  • Calculate conditional probability
  • Generate signals

VINE COPULA FOR STATISTICAL ARBITRAGE

Feb 2021

Stock 1 Overpriced

Stock 1 Underpriced

Vine Copula Workflow

23

25 of 35

VINE COPULA FOR STATISTICAL ARBITRAGE

25

Feb 2021

Trading Strategy

03.

24

  • 25

26 of 35

  1. 4 stocks each cohort from top 20 stocks

  • C-Vine assumption

  • CMPI strategy (returns)

  • Bollinger Band

  • Against SPY index

  • Dollar neutral

VINE COPULA FOR STATISTICAL ARBITRAGE

Feb 2021

  1. Pairwise Spearman’s rho
  2. Generalized Spearman’s rho [Schmid and Schmidt (2007)]
  3. Geometric distance to diagonal on Q-Q plot
  4. Extremal approach [Mangold (2015)]

Note: This approach is based on [Stübinger et al. 2016]

Key Components

25

27 of 35

  • 4 stocks each cohort from top 20 stocks

  • C-Vine assumption

  • CMPI strategy (returns)

  • Bollinger Band

  • Against SPY index

  • Dollar neutral

VINE COPULA FOR STATISTICAL ARBITRAGE

Feb 2021

Note: This approach is based on [Stübinger et al. 2016]

Key Components

26

28 of 35

  • 4 stocks each cohort from top 20 stocks

  • C-Vine assumption

  • CMPI strategy (returns)

  • Bollinger Band

  • Against SPY index

  • Dollar neutral

VINE COPULA FOR STATISTICAL ARBITRAGE

Feb 2021

Note: This approach is based on [Stübinger et al. 2016]

Key Components

27

29 of 35

  • 4 stocks each cohort from top 20 stocks

  • C-Vine assumption

  • CMPI strategy (returns)

  • Bollinger Band

  • Against SPY index

  • Dollar neutral

VINE COPULA FOR STATISTICAL ARBITRAGE

Feb 2021

Note: This approach is based on [Stübinger et al. 2016]

Key Components

28

  • Long/short the target stock
  • Hedge against SPY

30 of 35

VINE COPULA FOR STATISTICAL ARBITRAGE

Feb 2021

Vine Copula

t-distribution

Gaussian

Independent assumption

Picture from [Stübinger et al. 2016]

Performance

29

31 of 35

VINE COPULA FOR STATISTICAL ARBITRAGE

Feb 2021

Note: This approach is based on [Stübinger et al. 2016]

Finished:

  • Automatic C-Vine Fit

  • Generate positions for the target stock via Bollinger band

  • Translate positions as units against an index

Working on now:

  • Automatic R-Vine Fit

  • Stocks selection

  • Speed optimization

Functionalities In Our Module

30

32 of 35

VINE COPULA FOR STATISTICAL ARBITRAGE

Feb 2021

1

Exiting too early.

Performance seem only significant on stock groups.

Computation time.

2

3

Possible Issues

31

33 of 35

Interesting Problems

  • Strategies for smaller cohorts

  • Stocks selection

  • Term structures

  • Fast computation for high dimensions

  • R-Vine fit

  • Optimal exit

  • Higher frequency data

  • Alternative data

VINE COPULA FOR STATISTICAL ARBITRAGE

33

Feb 2021

32

34 of 35

  • 34

Q&A

35 of 35

References

VINE COPULA FOR STATISTICAL ARBITRAGE

Feb 2021