while checking for cointegration , how critical value is calculated ? This is not clear form video .
You can get the critical value using this table.
For pairs trading, we use intercept with no trend.
Refer this paper for more details:
https://www.sciencedirect.com/topics/social-sciences/dickey-fuller-test