Covariance Matrix in Excel Tutorial

แชร์
ฝัง
  • เผยแพร่เมื่อ 25 ส.ค. 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.

    • @financemark
      @financemark  3 ปีที่แล้ว

      Thanks! Glad it was helpful

  • @mouradmadouni8277
    @mouradmadouni8277 3 ปีที่แล้ว

    Thank you very much! it's very helpful.

  • @kevinzhu3187
    @kevinzhu3187 2 ปีที่แล้ว

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

  • @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?

  • @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?

  • @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

  • @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

    • @cindyyeo6419
      @cindyyeo6419 3 ปีที่แล้ว

      how did you get that?

    • @yusataslim3666
      @yusataslim3666 3 ปีที่แล้ว

      @@cindyyeo6419 252 is amount of stock data in this video

    • @anilkumarkarimbanakkal5043
      @anilkumarkarimbanakkal5043 3 ปีที่แล้ว

      @@yusataslim3666 How? 52 X 5 = 260 then how 252?

  • @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