How to differentiate with respect to a vector - part 2

Поделиться
HTML-код
  • Опубликовано: 6 фев 2025
  • This video provides a description of how to differentiate a scalar with respect to a vector, which provides the framework for the proof of the form of least squares estimators in matrix form. Check out ben-lambert.co... 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.co... Accompanying this series, there will be a book: www.amazon.co....

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

  • @leonardoochoaruiz2748
    @leonardoochoaruiz2748 8 лет назад +14

    Man you are the best complement to my 50k a year education! God bless you! May the force be with you!, etc.

  • @SpartacanUsuals
    @SpartacanUsuals  11 лет назад +6

    Hi, thanks for your message. You are right, this particular method is relevant to symmetric matrices. However, when we differentiate the matrix expressions we are only dealing with either: pure scalars such as y'Xb or quadratic form terms like b'X'Xb. The former can be dealt with using the methods from part 1. In the quadratic form term b'X'Xb, the matrix X'X is symmetric, so there's no problem there. If you have any more questions please let me know. Best, Ben

  • @SpartacanUsuals
    @SpartacanUsuals  11 лет назад +1

    No problem. Ok y'xb is a scalar. This means that its transpose is just the same as itself. The transpose of y'xb is (y'xb)' which is b'x'y. Hence -y'xb-b'x'y =-2y'xb. To continue from there we just differentiate wrt b yielding -2x'y. Hope that helps! Thanks, Ben

  • @澳洲小卓老师
    @澳洲小卓老师 5 лет назад

    Fantastic
    I am a student studying advanced finance and economics in UQ. It really helps!

  • @BonnieX21
    @BonnieX21 5 лет назад +2

    I would like to point out that at the end Ben confused row and column vector, corrected himself but then confused them in the reverse order. I had to relisten to make sure I got it right so in case anyone else is wondering if they heard right.

  • @ddxccc
    @ddxccc 9 лет назад +1

    You explained it very clear. Thanks!

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

    I was just cross referencing this with a Matrix derivatives cheat sheet - The Learning Method says "Every subject has it's own language and fundamental and advanced concepts, and, if I'm not performing in a subject then I must be missing one or more fundamentals" - so that A is symmetric is a fundamental here (it was missing from the cheatsheet and thus a little confusing). Another fundamental is that the function that we are talking the derivative of is a scalar. Are there any others I am missing?

  • @susanwang7532
    @susanwang7532 6 лет назад +1

    super helpful. Thank you so much !!!

  • @johnchen5430
    @johnchen5430 6 лет назад

    insightful! especially if you view matrix A as a transformation (essentially a function)

  • @Abeliotis
    @Abeliotis 11 лет назад

    Thanks you for your apply! I have another question...I can't understand why at the OLS estimator we take the derivative of -y'xb equals to -b'x'y. Also i see in many books that they take the sum of them( -2y'xb).why?they are different and then how we can continue from that point? without using your video?? :) Thanks you again very much!!!

  • @Abeliotis
    @Abeliotis 11 лет назад

    Very usefull.But i want to ask you something.It works only when A is symmetric i think...how you use it later at the OLS problem?there it's not A symmetric maxtrix...

  • @fireranger17
    @fireranger17 11 лет назад +1

    can someone explain how it went from 6:00 to 6:10. How did you know that matrix equals to 2AX?

    • @SpartacanUsuals
      @SpartacanUsuals  11 лет назад +2

      Hi, this just comes from the normal matrix product of a (2 x 2) matrix with a (2 x 1) vector. Hope that helps! Ben

    • @OttoFazzl
      @OttoFazzl 7 лет назад

      In order to understand, you could go backwards: just calculate the term 2AX, and you will see that you end up with a 2 by 1 vector from 6:00.

  • @leah38521
    @leah38521 5 лет назад

    Very helpful

  • @TigerDeng
    @TigerDeng 9 лет назад +1

    The final result is wrong on the first sight. Theoretically, it should be (A+A^T)x, NOT 2Ax. However, since A is symmetric, it is CORRECT

    • @SpartacanUsuals
      @SpartacanUsuals  9 лет назад

      +Tiger Deng Hi, thanks for your comment. The matrix is symmetric, hence (A+A^T) = 2A. Sorry that this wasn't clear. Best, Ben

    • @TigerDeng
      @TigerDeng 9 лет назад

      +Ben Lambert Yeah, Sorry, my bad, I should read it more carefully

  • @fireranger17
    @fireranger17 11 лет назад

    hello Ben...thanks for getting back. I know how to expand the matrices....but how do you contract it?

    • @SpartacanUsuals
      @SpartacanUsuals  11 лет назад

      Hi, there is no simple way to contract matrices. Here I have just seen it because I can imagine that this product is what would be formed if one did the matrix multiplication. Hope that helps! Ben

  • @meadowbot
    @meadowbot 8 лет назад +11

    notation error: the lower left hand element should be labeled a_2,1

    • @yashakhandelwal5235
      @yashakhandelwal5235 8 лет назад +1

      @Meadowlark thanks for bringing in the notation error I too had this confusion @Tom and why would we want to do that ? I mean have an element 1,2 =2,1 ? for simplification reason ?

    • @nikhilbalwani5556
      @nikhilbalwani5556 7 лет назад +2

      It's not an error. He wanted both the elements to be the same and hence the labelings are kept same. On expansion, you get the middle term with 2a_12 as the coefficient.

    • @shakibishfaq8627
      @shakibishfaq8627 6 лет назад

      Not an error, it's to make the next step easier to see.

    • @Faust1386
      @Faust1386 6 лет назад

      @@yashakhandelwal5235 I think otherwise he couldn't get the desired result

    • @sushantvaidik
      @sushantvaidik 6 лет назад +6

      He said, take a SYMMETRIC matrix A, i.e a_{2,1} = a_{1_2}

  • @yashmistry7468
    @yashmistry7468 6 лет назад

    I love you..