Covariance Matrix in Excel Tutorial

Поделиться
HTML-код
  • Опубликовано: 21 авг 2024

Комментарии • 23

  • @financemark
    @financemark  4 года назад

    If you have any tips for construcing a covariance matrix, drop those in the comments below

  • @kurtislidstrom4442
    @kurtislidstrom4442 3 года назад +1

    Just wanted to come here and say thank you for providing such an easy and straightforward way for transposing the matrix. Efficiency in Excel is not celebrated enough.

  • @kevinzhu3187
    @kevinzhu3187 2 года назад

    YOOO, I WAS LOOKINGGGGG FOR A F*CKING WAY TO FILL THE COVARIANCE MATRIX THANKKKKKKKKK
    YOUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUU UNDERATEDDDD

  • @mouradmadouni8277
    @mouradmadouni8277 3 года назад

    Thank you very much! it's very helpful.

  • @arnaldo8681
    @arnaldo8681 3 года назад +1

    instead of creating a third matrix with the if statement around 7:00 you could have copied special the second into the first using copy special -> skip blanks, couldnt you?

  • @khyentseyozer9824
    @khyentseyozer9824 3 года назад

    Great video, just a question about Step three, shouldn't we divide the XTX (step 2) values by D-1 which would be 251 (252-1)?
    Can you also not just use =Covar(array1,array2) to get the covariance?

  • @naufalammar4840
    @naufalammar4840 2 года назад

    In my understanding, covariance matrix is Xtranspose * X. Why did you divide that by n? Thanks for the answer!

    • @financemark
      @financemark  2 года назад

      it's analogous to dividing by n when caculating variance

  • @PUMA4LIFE101
    @PUMA4LIFE101 2 года назад

    Can you just copy the first covariance matrix then transpose it. The copy the transpose and paste it into the original covariance matrix but select paste special and skip blanks?

  • @winstonwithay1980
    @winstonwithay1980 3 года назад

    Great video
    I have an assignment where I need to find the optimal portfolio of 20 stocks using two years of historic data, then test the portfolio in a performance testing period for the next year. ie. Find optimal portfolio using data from 2016-17 and test the portfolio in 2018. I am getting really high weights in the portfolio where short selling is allowed for some of the scenarios after using solver. Would you be able to help me out?
    Thanks

  • @fariazarin2574
    @fariazarin2574 4 года назад +1

    In which spreadsheet , you’ve done this matrix? I'm not getting data analysis option in office 2013, 2016 & 2019.

    • @financemark
      @financemark  4 года назад +2

      If you cannot see the data analysis tab, you will likely need to go to options, then to add ins, and then select the data analysis add in. This should install it in excel.

  • @yusataslim3666
    @yusataslim3666 3 года назад

    How did you get that 252?
    Update : Oh i got it

  • @spyhunter0066
    @spyhunter0066 2 года назад

    You use X^T.X formula, but the correct one is otherr way around. en.wikipedia.org/wiki/Covariance_matrix. I couldn't get it .

    • @financemark
      @financemark  2 года назад

      It depends on how your data . If you have N assets, you want a N*N covariance matrix. Here, my X matrix is T*N (ie To rows for N assets), hence X'X

    • @spyhunter0066
      @spyhunter0066 2 года назад

      @@financemark The formula shouldn"t change, right! The order of the matrices matter. BTW, did you mean T rows for N columns! Could you please check your email for me? How do you construct the covmatrix from a fit results on a data supposing that you got 9 parameters in total? Cheers.

    • @financemark
      @financemark  2 года назад

      It makes a difference because if you have a T*N matrix, you will need to transpose it to N*T. Otherwise, your resultant matrix (XX') would be. T*T matrix, which would be incorrect

  • @spyhunter0066
    @spyhunter0066 2 года назад

    You got 252 rows, but you said 250 in the begining. :) That's ok.

  • @drek273
    @drek273 Год назад

    you couldve just copied and psted the transposed work in the first method. you did extra work for nothing