Linear Systems of Equations, Least Squares Regression, Pseudoinverse

Поділитися
Вставка
  • Опубліковано 29 вер 2024

КОМЕНТАРІ • 91

  • @idkravitz
    @idkravitz 4 роки тому +52

    Am I right, that you write on real glass in front of camera and the image is just mirrored by editing? If so its brilliant.

    • @bastianian2939
      @bastianian2939 3 роки тому +9

      Damn i just concluded he was an expert at writing mirrored

    • @sihebi973
      @sihebi973 3 роки тому +7

      The real video will look like this: www.mirrorthevideo.com/watch?v=PjeOmOz9jSY
      He is also using his left hand.

  • @maettu102
    @maettu102 3 роки тому +5

    Thanks for the video was really nice! There are 2 points which seem to be important to me. The invers of Σ is actually not always computable (if there exist a single value =0) so the more nice Expression would also be Σ+ . Where Σ+ is the matrix where every non zero single value is inverted but the zeroes are left as they are.
    And why not follow the convention of naming matrizes? Normally a matrix is called a mxn matrix. It seems you use a nxm matrix here which i think is a bit confusing at first glance.

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

      Thank you for the Single-Value-Matrix-Plus thing. Now I undertand the video.

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

      The inverse is not defined by inverting every element, but that its multiplication with the matrix yields the identity matrix. In other words if S_inverse is the inverse of S, then S*S_inverse = 1, where 1 is the identity matrix. Therefore the inverse is computable even with zeros in the diagonal.

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

    Great!!

  • @macmos1
    @macmos1 4 роки тому +25

    please keep going with the numerical linear algebra/numerical analysis/scientific computation/applied math stuff thanks :)

  • @mauzaomin3872
    @mauzaomin3872 4 роки тому +8

    Thank you Steve for video. We make the assumption that it is an economy SVD at time 6:28. Then, how can we guarantee that V multiplies with V* will become identity matrix, especially for the under-determined system?

  • @dragoncurveenthusiast
    @dragoncurveenthusiast 4 роки тому +15

    This is so cool!
    When I started this lecture series in order to understand PCA better, I had no idea it would also relate to least squares regression! This blew my mind!
    Thank you so much for making these. They must be a lot of work, but they are so appreciated!

  • @1985lama
    @1985lama 3 роки тому +3

    In the case of over-determined matrix X, why VVT is equal to identity since we are using economy matrices?

  • @Tyokok
    @Tyokok 3 роки тому +9

    Thanks for the great video! One question: 7:50, if you have zero singular value, how do you compute sigma inverse? Thank you!

    • @diogenescruz-figueroa2719
      @diogenescruz-figueroa2719 Рік тому

      This might be a year too late, but the Moore-Penrose Invert satisfies (AB)+ = B+A+. So I think there was a mistake, and it should have been Sigma+, not Sigma^{-1}, so you separate it from U and V. Since U and V are unitary, they are invertible, and thus their Moore-Penrose inverse is the regular inverse. As for Sigma, since it has only elements on the diagonal, its Moore-Penrose inverse is just the transpose, and then have the reciprocals for each of its elements (an "d" in the diagonal becomes a "1/d").

  • @giorgoschristopoulos9087
    @giorgoschristopoulos9087 4 роки тому +3

    In an underdetermined case, if you use the economy SVD, is V*V' equal to an identity?

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

    I get a bit lost when he constructs the left pseudo-inverse. I cannot grasp why the single value matrix is guaranteed to have an inverse.

  • @PunmasterSTP
    @PunmasterSTP Рік тому +2

    Pseudoinverse? More like "Super videos for us!" Thank you so much for making all of them.

  • @georgeyu7987
    @georgeyu7987 4 роки тому +3

    i know this is just about the notation, but i think the majority of linear algebra text use m by n, rather than n by m. It's sometimes a little confusing here...

  • @neoblackcyptron
    @neoblackcyptron 3 роки тому +5

    Thank you for explaining hard to grasp concepts in a filtered simple manner for us to understand. Your lectures are a great complement to prof strangs both high quality content.

  • @zachfang4424
    @zachfang4424 3 роки тому +3

    Thank you for the awesome materials and everything is well explained!
    One question I have is how we calculate the inverse of the singular matrix which is a non-square matrix? Isn't that back to the problem, i.e. inverse the non-square A matrix, we had at the first place?

  • @chengkeattan6571
    @chengkeattan6571 2 роки тому +2

    Thank you very much for the clear explanation of pseudo-inverse.

  • @uralmutlu4320
    @uralmutlu4320 9 місяців тому

    I have a set of 3D positions and vectors. I try to find their intersection, so I linearized the equations like written in academic papers, but I dont get the results. I dont have a clue what could be wrong.
    I have Ax=b
    I tried:
    1) (AA')^-1*A'*b
    2) pinv(A)*b
    3) A\b
    4) I''ve just tried the SVD method, I get the same results with all.
    I checked my values 100 times. The vectors and directions are correct, I manually calculated them and confirmed with the matbal code.

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

    Hi sir,
    Can you solve one linear regression problem using svd and upload in UA-cam.?
    Please it helps me lot and others as well.!

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

      Check the playlist, I already have an example

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

      @@Eigensteve
      Respected sir, can you send me the link?
      Sorry, for troubling...!

  • @julianschmitz9525
    @julianschmitz9525 4 місяці тому +1

    great video

  • @smithjohn6849
    @smithjohn6849 Місяць тому

    Thanks. Will you please tell me what online classroom or what classroom app you used ? I’m a teacher from China.

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

    what if we had a singular value of 0 ? ...cant that happen ? when A has dependent columns? ....in that case we wouldnt have Sigma inverse correct ? ....do we first idk,... drop some columns of A so they are all independent /.?

  • @Trubripes
    @Trubripes 6 місяців тому

    LOL So moor-penrose pseudoinverse is just inverting one SVD term at a time, and since they U and V are orthogonal they are just transposed.
    Well that saved me a lot of effort looking into where it comes from.

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

    Are you using the economy version of the SVD? otherwise you are not able to take the inverse of Sigma, which is a nxm matrix. EDIT YES >> see next video in this list

  • @reihanehvafadar6139
    @reihanehvafadar6139 4 роки тому +13

    can't thank you enough for sharing your knowledge with entire world

  • @wojtekskaba9757
    @wojtekskaba9757 3 роки тому +1

    Why in definition of A-dagger you put Sigma-inverse rather than Sigma-dagger? Sigma is non-square and has only pseudo-inverse rather than inverse.

  • @3d_chip
    @3d_chip 2 місяці тому

    My god, you just explained what my professor is trying to explain for 5 lectures

  • @amodamatya
    @amodamatya 3 роки тому +3

    Thank you Professor for this valuable lecture

  • @ahsanahmed2505
    @ahsanahmed2505 2 роки тому

    I am confused with the dimension of A matrix. in overperformed, shouldn't overdetermined have m>n

  • @pranjalsahu
    @pranjalsahu 3 роки тому +3

    Excellent Lecture ! So clear to understand! Thank You !

  • @julijangrajfoner1730
    @julijangrajfoner1730 3 місяці тому

    How can sigma be invertible when it's a rectangular matrix?

  • @EngineeringChampion
    @EngineeringChampion 3 роки тому +2

    Since A has fewer rows than columns, then A is an m×n matrix with m

    • @ahsanahmed2505
      @ahsanahmed2505 2 роки тому +2

      so, he made a mistake?

    • @FortranCastle
      @FortranCastle 11 місяців тому

      @@ahsanahmed2505 He is using n by m in the videos and in his book instead of the usual convention of m by n which is quite confusing and contrary to most linear algebra resources.

  • @utatistics9293
    @utatistics9293 4 роки тому +3

    having second thoughts about doing master cuz your videos are just too helpful

    • @patf9770
      @patf9770 3 роки тому +1

      with all the amazing resources on the internet, it seems like higher ed is turning into mostly gatekeeping

  • @FelipeCondo
    @FelipeCondo 3 роки тому +1

    Thanks for the video Professor. Could you help me with something please? I am trying to fit a sinusoidal surface the depends on (x,y,t) but in my case b is not a vector but a matrix, what can I do in this case? Thank you

  • @mrgledjan3091
    @mrgledjan3091 7 місяців тому

    It is not Sigma^-1 but Sigma^-T so the traspose of the inverse ?????

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

    Forget about everything what visual do you use to write and record....

  • @lukf8347
    @lukf8347 3 роки тому +2

    Hello, thank you for this nice video series. This is so helpful and I use it with your book for my masters thesis. But while going through the equations, one question popped to my head: at 7:32 you use the inverse of Sigma, but for the SVD Sigma is not a quadratic matrix, rather than a nxm - Matrix and as such not invertable (in the "classic" sense of invertable matrices). So while I understand that if I use the economic SVD, this Matrix would be a mxm - Matrix, but I don't understand it for the case of nxm. Is there a video or a page in the book, where this case is discussed? Other than that, thank you very much for saving my masters degree :D

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

      Sigma might be a nxm Matrix but not all rows and columns are non zero. If you remove all zero columns and rows you will get a quadratic matrix. So its essentially a quadratic matrix padded with zeros.

    • @Catwomen4512
      @Catwomen4512 2 роки тому

      He replied to another person saying "Usually we will invert the first "m x m" sub-block, which is square, and then only use the first "m" columns of "U". Or, we could be even more aggressive and only invert the first "r x r" sub-block of Sigma, and only use the first "r" columns of "U" and "V", where r is much less than m."
      However, if you just consider when nm then we would use economy SVD (seen in his next video) so sigma would also be a square matrix.

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

      I had the same question

  • @ehkim1977
    @ehkim1977 3 роки тому +2

    This is really nice lecture I've ever seen. I want to recommend this lecture for engineering graduate student basic class!! :-) Thank you so much~ I'll buy the book! ^-^

    • @Eigensteve
      @Eigensteve  3 роки тому +1

      Awesome, thanks so much, and hope you like the book!

  • @arjunkc3227
    @arjunkc3227 8 місяців тому

    This is cool but computational cost to determine svd is nightmare

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

    when you say thank you i emphasize thank you!!!! (not me) :)))

  • @u2coldplay844
    @u2coldplay844 3 роки тому +1

    I loves your lectures! it is so clear and save us from mist of information. I noticed that you wrote Sigma matrix is a invertible, if A is not invertible, shouldn't the Sigma matrix also is not invertible, hence Pseudo inverse of Sigma matrix? Thank you for clarification

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

    knowing that the pseudoinverse exists makes me feel really powerful

  • @deathtrick
    @deathtrick 2 роки тому

    How does this board work?
    Are you writing in opposite direction?

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

    does this guy actually writes backward?

  • @leo1fun
    @leo1fun 3 роки тому +1

    I'm always impressed by how clean the board is, so it looks like there's nothing at all.

  • @Atlas-ck9vm
    @Atlas-ck9vm 4 роки тому +2

    Absolutely Great Content

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

    Hi Sir, I am quite curious about the name of the 'transparent' blackboard, I want to buy one, where I can get it? Thank you.

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

      I think this is not a "transparent blackboard". It is just glass and behind him is a black wall.

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

      @@ahmaddarawshi91 I'm always curious how he writes. He must write all stuff in a reverse direction - I mean, b would look like d from his perspective.

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

      @@hanyingjiang6864 he writes normally as he would write on a whiteboard but then the video is flipped (reflected) digitally.

  • @chengeng6472
    @chengeng6472 4 роки тому +1

    Thanks for your video. However, I'm confused about the proof of the theorem(why the norm is minimized), can you give a simple proof? Thanks.

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

      I believe it has to do with Eckart-Young theorem. you can check it out on UA-cam.

  • @periklisdrakousis6537
    @periklisdrakousis6537 2 роки тому

    why U trans U cancel to identity. Don't they result in a square matrix???

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

    Wonder if Steve Brunton can cover for under/over determined systems the nontrivial solutions of Ax = 0, using SVD.

  • @alexyang6755
    @alexyang6755 3 роки тому +1

    I FOUND GOLD.

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

    am I just missing something, why is n

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

    Wouldn’t the error be ||X-x dagger||_2 not just ||x dagger||_2 in itself?

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

    Great explanation, sir!

  • @kangningwei934
    @kangningwei934 2 роки тому

    Thanks a lot

  • @jay89boy
    @jay89boy 3 роки тому +1

    Great content !

  • @user-or7ji5hv8y
    @user-or7ji5hv8y 3 роки тому

    I don’t know why such was never explained when I took econometrics.

  • @ukaszorpik3913
    @ukaszorpik3913 2 роки тому

    Damn, thank you, I finally got it thanks to you after 3h research xD

  • @philmccavity
    @philmccavity 8 місяців тому

    Exceptionally clear explanation, crisp hand-written notes, wonderful!

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

    Yeah. This is a very good and useful lecture.

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

    If we have x and b vectors how to find A matrix ?

  • @michaelvandeborne9382
    @michaelvandeborne9382 4 роки тому +4

    Sir, by solving for x, I understand that A dagger cannot be a true inverse of A, but since the SVD is an exact egality of A, and since multiplying by U transpose S-1 and V is again an exact operation, I don't understand where the approximation step was introduced in the calculus.

    • @Eigensteve
      @Eigensteve  4 роки тому +1

      Great question. I address this exact question in the first 2 minutes of the next video: ua-cam.com/video/02QCtHM1qb4/v-deo.html

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

      Indeed, thanks :)

    • @nami1540
      @nami1540 2 роки тому

      Thanks, just had this in mind as well

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

    Man. It was really awesome..

  • @eddiechen6389
    @eddiechen6389 2 роки тому

    Wonderful lecture

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

    waw!! Merci beaucoup

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

    Excellent

  • @drditup
    @drditup 3 роки тому +2

    I'm amazed. This is so clearly explained!!

  • @JoaoBarbosa-pq5pv
    @JoaoBarbosa-pq5pv 4 роки тому +1

    Extremely nice lectures Steve Brunton, thank you very much for all the effort of creating and sharing them!
    do any of you - or anyone that reads this :) - know of any reference that explores the math of why you get min |x|2 in the underdetermined case? thank you in advance!

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

      This might be late.
      The reason for this min |x|2 is that any other solution would be this x hat plus something in the null-space of A. That addition would be orthogonal to this x hat and thus only be able to increase the magnitude of x hat. I am essentially reading this right out of pages 404 to 405 of Gilbert Strang's "Introduction to Linear Algebra" fourth edition.

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

    Under is dual to over, left is dual to right, up is dual to down, in is dual to out.
    Thesis is dual to anti-thesis -- The Generalized or time independent Hegelian dialectic.
    Alive is dual to not alive -- Schrodinger's/Hegel's cat.
    Duality creates reality.