cointigration Flashcards

1
Q

What is a hedge ratio ?

A

The independent variable Uses X times by the dependent variable

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Which library has hedge ratio function in?

A

From statsmodels.api import OLS
Parameters independent dependent
output modelled.params for the hedge ratio

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

OLS stands

A

Ordinary least squares regression

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

How to set model

A

model=sm.OLS(y.iloc[:90],x.iloc[:90])

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

how to find the hedge fund ratio

A

model = model.fit()

print(model.params[0])

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

ADF

A

augmented Dickey–Fuller test (ADF) tests the null hypothesis that a stationarity unit root is present in a time series sample.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

If ADF is lower that crital leve

A

We can reject the null hypothesis that the test data is not stationary, and say it has stationarity

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

CADF test results are lower than the 99% SDT statistically.

A

We reject the null hypothesis,

Therefore the data has stationarity, cointegrated augmented Dickey Fuller,

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

buy hedge ratio and then work out CADF

A
portfolio = y - model.params[0] * x
cadf = ts.adfuller (portfolio.Close)
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

What are the shortcomings of the ADF test, how are they solved by using the Johansen test?

A

The Johansen test is not order related when considering cointegration, it is able to take more time series.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

What indicates stationarity using the Johansen Test

A

If some eigenvalues are negative, then it is possible to create a linear stationarity

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

Makeup df with columns x y

A

df = pd.DataFrame( {‘x’: df_x[“Adj Close”] , ‘y’: df_y[‘Adj CLose’] } )

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

Johanson test and null hypothesis

A

Reject the null hypothesis if the probability value is less than or equal to 0.05. thus stationarity is found

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

test statistic = -1.480

critical value = {‘1%’: -3.434, ‘5%’ : -2.86, ‘10%’ : -2.56}

A

The test statistics is greater than critical values at 99%, 95%, and 90% confidence levels. So, we cannot reject the null hypothesis that the CL and BZ are not cointegrated from Oct 10, 2011 to Set 06, 2017.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

Why is it an issue to have a negative regression coefficient for a stock, while building a custom basket for an Index Arbitrage Strategy?

A

We will be long a stock in both the index and the basket.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

Covariance for one stocking: itself ?

A

Is the variance of that stock

17
Q

What is Systematic risk

A

Systematic risk is Market risk doesn’t make any difference to diversification.

18
Q

Can OTM options be exercised?

A

Yes, OTM options expire without worth.

19
Q

Can the option pricing model be a helpful guide during expiry trading?

A

Yes, the option pricing model is used to assess the option fair value.

20
Q

Sharpe ratio is:

A

The Sharpe ratio is equal to the strategy returns minus the risk-free ratio divided by the standard deviation. The Sharpe ratio allow us to assess the excess of returns compared with its risk.

21
Q

Sortino ratio is

A

The Sortino ratio is in essence the same as the Sharpe ratio although the standard deviation is computed just only with the downside trades.

22
Q

Calmar ratio is:

A

The Calmar ratio measures the risk-adjusted returns, divide by the maximum drawdown.

23
Q

K-S test is:

A

The Kolmogorov-Smirnov test or K-S test measures the distance between the cumulative distribution of the strategy returns and the reference distribution.

24
Q

What you need to know about a strategy

A

i) If you haven’t tested an idea, you are just guessing.
ii) Academic research paper might provide you with a trading idea.
iii) If you don’t know what to expect out of a trade, you can’t know if a trade is working.
iv) Back-testing is an integral part of strategy building

25
Q

What is true regarding strategy ideation and evaluation?

A

Knowing numerical results won’t really lead to obvious Improvements and Knowing non-quantitative results can help. E.g. trading on Fed days.

26
Q

Important aspects of trading

A

i) Pre-trade planning and expectations
ii) Finding a trade with an edge
iii) Execution and hedging
iv) Evaluation

27
Q

Does bagging help fix the overfitting problem in decision trees?

A

Yes, but random forest is better

28
Q

what is type I error ?

A

If we reject the null hypothesis when it is true, then we made a type I error.

29
Q

Type II error.

A

If the null hypothesis is false and we failed to reject it, a Type II error.