Using Excel to Create a Correlation Matrix || Correlation Matrix Excel

แชร์
ฝัง
  • เผยแพร่เมื่อ 5 ต.ค. 2016
  • #excel #correlation
    Please SUBSCRIBE:
    th-cam.com/users/subscription_...
    alphabench.com/data/excel-corr...
    The spreadsheet in the is example can be downloaded by visiting the link above.
    This tutorial demonstrates how to create a correlation matrix in Excel. The example used in the video is for stock price changes over a one year period. Data in its original form was downloaded from a third party such as Google Finance.
  • วิทยาศาสตร์และเทคโนโลยี

ความคิดเห็น • 89

  • @yedidyarabinowitz8488
    @yedidyarabinowitz8488 4 ปีที่แล้ว +1

    Thank you Matt. Great video we'll explained all around!

    • @MattMacarty
      @MattMacarty  4 ปีที่แล้ว

      Thanks. Glad it helped.

  • @tonynguyen1536
    @tonynguyen1536 8 หลายเดือนก่อน

    thanks for making a short and straight to the point video. This helped a ton.

    • @MattMacarty
      @MattMacarty  8 หลายเดือนก่อน

      Glad it helped

  • @johng5295
    @johng5295 5 ปีที่แล้ว +1

    Thanks in a million. Where have you been all these years!

    • @MattMacarty
      @MattMacarty  5 ปีที่แล้ว

      You are welcome. Glad it helped.

  • @connormcmullan2926
    @connormcmullan2926 2 ปีที่แล้ว +2

    Exactly what I was looking for. Thank you

  • @exoticculture9363
    @exoticculture9363 6 ปีที่แล้ว +2

    Awsome man!! You saved my life

    • @MattMacarty
      @MattMacarty  6 ปีที่แล้ว

      Thanks. Glad it helped.

  • @alexandercoates8331
    @alexandercoates8331 6 ปีที่แล้ว +1

    Helped me with university work, great simple video!

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

    This video was very helpful, thanks!

  • @johng5295
    @johng5295 2 ปีที่แล้ว +1

    Thanks in a million. Great content. Awesome. Very well explained. I couldn't find this explanation--simply put anywhere else. Great teachers are hard to find. Grade: A++💥

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

      Thanks very much. Glad it helped

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

    I must thank you🙏🏼 for this great video.. helped me a lot for real 🙌🏼

  • @11am
    @11am 7 ปีที่แล้ว +2

    Thanks, really came through for me.😎

  • @BailarinaCaotica
    @BailarinaCaotica 5 ปีที่แล้ว +1

    Super, thanks! I was doing it on my Mac and it would show all kinds of problems and errors until I put the correlation matrix into the same worksheet as the original data was (just like shown in the video), in case that helps anyone.

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

    huge help, thanks

  • @edison5237
    @edison5237 5 ปีที่แล้ว

    Amazing!

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

    That was really helpful :)

  • @Chamblee057
    @Chamblee057 ปีที่แล้ว +1

    Thank you.

  • @rileypears9419
    @rileypears9419 6 ปีที่แล้ว

    Thanks mate

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

    Many thanks

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

    Thank u, intrusting vedio

  • @alidabbagh1581
    @alidabbagh1581 3 ปีที่แล้ว +1

    Thank you so much..

  • @SanjeeSen
    @SanjeeSen 4 ปีที่แล้ว

    Hi Matt, great video, really useful!
    How do you represent the correlation of your entire portfolio in a single number? Would you just take the average of the correlations between each stock (assuming it's equally weighted)?

    • @MattMacarty
      @MattMacarty  4 ปีที่แล้ว

      Thanks. You need to correlate it with something.... And if mounts around depending on your time frame it can fluctuate a lot day to day. I would just collect closing prices of the portfolio and then calculate correlation with something like S&P 500

    • @hawley2685
      @hawley2685 10 หลายเดือนก่อน

      Do you have a video showing how to do this?@@MattMacarty

  • @Web3Future333
    @Web3Future333 6 ปีที่แล้ว +1

    THanks matt

  • @JusdoinstuF
    @JusdoinstuF 4 ปีที่แล้ว

    great video

  • @Matematica_Aplicada
    @Matematica_Aplicada 4 ปีที่แล้ว +3

    start at 2:39

  • @jeremypickup9400
    @jeremypickup9400 ปีที่แล้ว

    perfect

  • @dr.shekhartrivedi8267
    @dr.shekhartrivedi8267 6 ปีที่แล้ว +1

    Many Thanks Matt. Further, how to know significance of the correlation

    • @MattMacarty
      @MattMacarty  6 ปีที่แล้ว +1

      Thanks for your comment. Do you mean you would like to see a vid that covers hypothesis testing of correlations?

    • @dr.shekhartrivedi8267
      @dr.shekhartrivedi8267 6 ปีที่แล้ว

      yeah for above type of multiple series of data..

  • @friscianviales7519
    @friscianviales7519 4 ปีที่แล้ว

    Hey Matt, thanks for the info!
    Does the number of observations have to match for every asset? For example, having more daily returns on some assets or it has to do the same time length? Hope that makes sense and thanks in advance!

    • @MattMacarty
      @MattMacarty  4 ปีที่แล้ว +1

      Yes, to calculate correlation you need the same number of observations for each variable

    • @friscianviales7519
      @friscianviales7519 4 ปีที่แล้ว

      @@MattMacarty what about the dates? Do they have to match too?

    • @MattMacarty
      @MattMacarty  4 ปีที่แล้ว +1

      @@friscianviales7519 Not necessarily. You could randomly sample from each variable, but if you are trying to calculate something like correlation for stock price movement it would probably be best if you randomly choose dates and then get the correlation for the stocks on those dates.

    • @friscianviales7519
      @friscianviales7519 4 ปีที่แล้ว

      @@MattMacarty thank u sir

  • @dennisarrindell2244
    @dennisarrindell2244 4 ปีที่แล้ว

    Great Video! Very useful! Is there a way that I can add 'the P-value (statistical significance' and the number (amount of cases N) in it too like SPSS produces?

    • @MattMacarty
      @MattMacarty  4 ปีที่แล้ว +1

      Thanks. Glad it helped. Excel doesn't have those outputs directly, so you would have to implement them in the spreadsheet formulaically. Observations is pretty straightforward, you just use COUNT. Then you calculate the t statistic for the correlation. With a t stat in hand you could use the TDIST function to determine p-vlaue: th-cam.com/video/DTiegJgxvlQ/w-d-xo.html I think you would want to sample the data points since with a large sample pretty much anything will appear to be significant.

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

    How would I figure out the chronbach alpha with the information discovered from the correlation matrix

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

      Here's a great reference: www.statisticshowto.com/probability-and-statistics/statistics-definitions/cronbachs-alpha-spss/

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

    Nice

  • @joe009ize
    @joe009ize 5 ปีที่แล้ว +1

    Hey Matt.... how did you selected the daily price data.. I mean is it in Ascending order or Descending order?

    • @MattMacarty
      @MattMacarty  5 ปีที่แล้ว

      Sorry somehow I missed this question. The data is in ascending order (oldest observation first).

    • @mjumper
      @mjumper 5 ปีที่แล้ว

      To compute the correlation matrix, mathematically, the order does not matter ;)

    • @MattMacarty
      @MattMacarty  5 ปีที่แล้ว

      This is true. But depending on what you want to do next order can matter.

  • @ryanheffernan305
    @ryanheffernan305 3 ปีที่แล้ว +1

    what would be the highest correlation pair?

    • @MattMacarty
      @MattMacarty  3 ปีที่แล้ว +2

      Values closer to 1 are higher positive correlations while this close to -1 are stronger negative relationships. In this example it looks like GOOG, AMZN and FB are fairly strongly correlated and I wouldn't call the differences seen in the example very meaningful.

  • @damientchakoute2565
    @damientchakoute2565 5 ปีที่แล้ว

    good

  • @ankitsharma-lc7vq
    @ankitsharma-lc7vq 4 ปีที่แล้ว

    what is that data you have collected.is it periodic returns or excess returns.

    • @MattMacarty
      @MattMacarty  4 ปีที่แล้ว +1

      These are "instantaneous" returns, close to close: LN(t/t-1)

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

    Hi There! It says “Correlation - Having Trouble to offset input/output reference” what will I do?

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

      Are you trying to calculate an autocorrelation?

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

    where can I tern the Data Analyses on in 2020 on windows?

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

      In Windows hold Alt and type T then I, opens add-ins manager. Check Analysis Toolpak. In MAC go to Tools menu and select Excel Add-ins

  • @geou9467
    @geou9467 5 หลายเดือนก่อน

    Sorry, Why using stock return instead of stock price?

    • @MattMacarty
      @MattMacarty  5 หลายเดือนก่อน

      This is trying to assess their tendency to move together directionally. Price won't really tell you much.

  • @mshoy84
    @mshoy84 4 ปีที่แล้ว

    Where is data from?

    • @MattMacarty
      @MattMacarty  4 ปีที่แล้ว

      I think I used closing price data downloaded from Yahoo Finance.

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

      @@MattMacarty so you calculated the daily return based on closing price?

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

      @@googlerreviewer4368 Yes close-to-close LN(T/T-1)

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

      @@MattMacarty I use for my excel =(Today's close - Yesterday's close)/Yesterday's close

  • @karencuellar
    @karencuellar 4 ปีที่แล้ว

    I don't understand. My teacher insists that the table need to be fully filled.

    • @MattMacarty
      @MattMacarty  4 ปีที่แล้ว +1

      He/She is not technically wrong, most software will generate a filled matrix, but having filled matrix doesn't make the matrix more correct or somehow better. Excel is really doing us a favor here by only filling in half of the matrix since the rest of the data is merely duplicated. Correlation doesn't care which variable is on the X vs. Y axes. However, if you produce scatter plots you will get different looking output depending on which variable you put on the X and Y axes. Maybe this is what they are referring to.

    • @karencuellar
      @karencuellar 4 ปีที่แล้ว

      @@MattMacarty yes! He does want scatters at the end of my whole task. Is there any way to contact you for regarding some questions? If I may ask. And thank you in advance

    • @MattMacarty
      @MattMacarty  4 ปีที่แล้ว

      @@karencuellar Sure I will try. Lots of software makes it easy to produce scatter matices too:
      th-cam.com/video/LoiVuDKxXBs/w-d-xo.html

    • @intredastingvideos9365
      @intredastingvideos9365 4 ปีที่แล้ว

      There are lots of useful libraries in python or R, that can produce correlation matrices heatmaps, or scatterplot matrices. i think it's inbuilt in R, but R is a pain to learn. Using python, you can use the pandas library or the seaborn library and get some decent looking scatter graphs. Another alternative is to perform an anova on all of your different variable combinations and manually place each result into a matrix yourself. That way you can learn how to do it without all the automation.