Levels vs differences regression - motivation for cointegrated regression

Поділитися
Вставка
  • Опубліковано 18 вер 2013
  • This video explains the difference between levels and first differences regression, and discusses how the level regression motivates the concept of cointegration. I also provide a simulation in Matlab\Octave to demonstrate the difference.
    clear; clc; close all;
    n=100;
    dx=zeros(n,1);
    dy=zeros(n,1);
    y=zeros(n+1,1);
    x=zeros(n+1,1);
    x(1)=0;
    y(1)=0;
    b=2;
    e=1;
    a=10;
    for i = 1:n
    dx(i)=randn();
    dy(i)=b*dx(i) + e*randn();
    x(i+1)=x(i)+dx(i);
    y(i+1)=y(i)+dy(i);
    end
    i =1:n+1;
    i=i';
    j=i(1:end-1);
    zoom=1.0;
    FigHandle = figure('Position', [750, 300, 1049*zoom, 895*zoom]);
    subplot(2,1,1),plot(j,x(1:end-1),'g',j,y(1:end-1),'b','LineWidth',1.4)
    title('Levels', 'FontSize', 20);
    legend('X','Y')
    subplot(2,1,2),plot(j,dx,'m',j,dy,'r','LineWidth',1.4)
    title('Differences', 'FontSize', 20);
    legend('DX','DY') Check out ben-lambert.com/econometrics-... for course materials, and information regarding updates on each of the courses. Quite excitingly (for me at least), I am about to publish a whole series of new videos on Bayesian statistics on youtube. See here for information: ben-lambert.com/bayesian/ Accompanying this series, there will be a book: www.amazon.co.uk/gp/product/1...
  • Навчання та стиль

КОМЕНТАРІ • 25

  • @111southeastsam111
    @111southeastsam111 8 років тому +15

    I wish this guy was my Econometrics lecturer at university. My actual lecturer is shit and confuses the subject so much more than it needs to be. This guy explains everything so clearly and simply - very important for such a complex subject.

  • @DonPedroTheDude
    @DonPedroTheDude Рік тому +1

    Amazing that this is surely one of the most important lessons in econometrics, but also the most easily forgotten.

  • @spencerantoniomarlen-starr3069
    @spencerantoniomarlen-starr3069 8 років тому

    This video is a really useful supplement to aid in understanding the 2015 study on Minimum Wage Effects on Labor Dynamics (in the USA) by Meer & West

  • @lbarberia
    @lbarberia 8 років тому +6

    Very helpful. It would be good to show how to interpret coefficients in first differences.

  • @Mpuselicious
    @Mpuselicious 9 років тому

    Thank you so much for this :)

  • @31896eneri
    @31896eneri 9 років тому +1

    THANK YOU VERY MUCH!!

  • @ajayalmighty
    @ajayalmighty 10 років тому +1

    Thanks for the video, and series as well. I only wish I had heard about your channel earlier.

    • @SpartacanUsuals
      @SpartacanUsuals  10 років тому

      Hi, thanks for your message, and kind words. Glad to hear that it was useful. Best, Ben

  • @nahshahehsha6794
    @nahshahehsha6794 2 роки тому +1

    Are models such as those used to compute beta coefficients for stock returns considered “first difference” regressions? Or are they a special case because it’s not only the difference but the difference expressed as a % (the return)?

  • @jasonleewkd
    @jasonleewkd 9 років тому +1

    Hi Ben, this video has been great! Do you have any views on whether I should use levels or differences when trying to predict interest rates?

  • @enkii82
    @enkii82 3 роки тому

    Are there instances where the variables are cointegrated in level but not in differences? like one where the gaps in level are small but slopes of lines for both variables are 'kinda randomly up and down'?

  • @giovanniberardi4134
    @giovanniberardi4134 Рік тому

    If I have a long-run relationship in levels, that implies that there will be some sort of stable relationship in first differences. Is this the reason why, when two time series are cointegrated, it implies that there must be Granger causality in at least one direction?

  • @hounamao7140
    @hounamao7140 4 роки тому

    If my coefficients are significant at a level regression and insignificant at the difference regression, what does it mean ?

  • @user-pq8jk4yg1z
    @user-pq8jk4yg1z 6 років тому

    Thank you for awesome lectures sir! just clarifying that you said level regression is typically non stationary of variables or both level and difference regressions? thank you so much!

    • @lastua8562
      @lastua8562 4 роки тому

      Variables in levels are seldomly stationary if you use economic data. In differences, they often are, but not always.

  • @arturogonzalez7416
    @arturogonzalez7416 4 роки тому

    Great videos, thanks. I would like to know what software or app do you use to create this amazing class. Thank again!

  • @lastua8562
    @lastua8562 4 роки тому

    The reasoning in the proof does not sound complete. Could someone summarize why this is a proof?

  • @jeexz
    @jeexz 10 років тому

    Excellent video, Ben. Thank you.
    I have a couple of questions regarding levels vs. differences though..
    1. For financial data, say you would compare the price of spot vs. the price of a futures contract. Should you then regress the levels or the return series (first difference) of the two variables?
    2. Often when you find a unit root (non-stationarity) in levels, you might find the first differences to be stationary. If you find cointegration in the levels (the non-stationary series) it might be recommended to run a VECM, and not a VAR.
    Why should you do the VECM on levels if you can just run all your tests with first difference (returns)?
    The big question boils down to when you should use levels in financial models and when you should use returns. Say you would like to examine the hedge effectiveness of different models. Levels or differences?

  • @enkii82
    @enkii82 4 роки тому +2

    at 02:35, it's supposed to be minus - E_t.

  • @gvj805
    @gvj805 7 років тому +3

    Im sorry, but what on earth is going on here, what! ;D !!11!!
    at 2:35 you write (+epsilon_t-1). should it not be (-epsilon_t-1)?