The Least Squares Formula: A Derivation

Поділитися
Вставка
  • Опубліковано 23 січ 2025

КОМЕНТАРІ • 87

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

    Go to LEM.MA/LA for videos, exercises, and to ask us questions directly.

  • @cern1999sb
    @cern1999sb 3 роки тому +47

    It would be great to have the second part of this with an audio recording of the explanation. Everything was crystal clear until the mic died

  • @ForcesOfOdin
    @ForcesOfOdin 2 роки тому +5

    There's a timeless beauty to the cadence , passion, and clarity of your lecture series. Glad I could find it again. Different goals now, but same appreciation.

  • @damian.gamlath
    @damian.gamlath 7 років тому +7

    Sir, I love the intuition you inject into these topics, something most other teachers (and UA-camrs for that matter) fail to provide.

  • @evieblue959
    @evieblue959 3 роки тому +6

    An energetic math teacher. I've never met one in the wild. Thanks!

  • @jonathanpepin6326
    @jonathanpepin6326 8 років тому +20

    Thanks à lot for your videos. I am à french Student in mathematics and your way of explaining things is so different from here but it all makes more sense. Look forward to the next videos.

  • @mcab2222
    @mcab2222 6 років тому +45

    the most important part is missing

    • @vangrails
      @vangrails 5 років тому +1

      What is that part?

    • @dcuzhang
      @dcuzhang 4 роки тому +6

      @@vangrails battery😂

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

    Even with the mic batteries dead, this was a great lecture.

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

      ..................................................

  • @yamansanghavi
    @yamansanghavi 7 років тому +4

    I wish there were more professors like you sir. You are truly genius. Thank you so much.

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

    this video is marvelous from start to finish, and the mute subtitles did really help

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

    Tank you very much, You solved my least squares problem.

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

    Please record the next video with sound.

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

    The formula I haven see uses the complex conjugate transpose instead of the plain transpose. For real values the two are equivalent but I would make a note of this.

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

    Why are they equal because they are transposes of each other?

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

    You should have done the second half of the video in sepia. A moustache would have been a nice touch too.

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

    What about the error?

  • @Acampandoconfrikis
    @Acampandoconfrikis 7 років тому +26

    What an epic way do deal with a microphone problem XXDDXXDXD (also good explaining, thanks!)

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

    4 years later he is still busy hahahahaha. Good class except fot the last 2:30 where magic happens

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

    at 8:41 can somone help me undersatnd why xTATb = bTAx ? I can understand why xTATb = (bTAx)T, but where did the big transpose go?

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

      Oh I think I get it now. Since xTATb = is a 1x1 matrix, and since the transpose of a 1x1 must be the same, then you can have the big transpose or ignore it, it doesn't matter in this case!

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

      But why at 9:43 is ATA guaranteed to be invertible ? :O

    • @HelloWorld-dq5pn
      @HelloWorld-dq5pn 2 роки тому

      @@matthewjames7513 AtA is invertible since it is positive definite, therefore, all of its eigenvalues are greater than zero(and real since its symmetric). Note that AtA is symmetric, then consider the magnitude square of Ax, expand it as a dot product and take x to be an eigenvector of A.

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

    Yes please re-record the audio, it was a brilliant explanation up until then

  • @abdelrahman458
    @abdelrahman458 5 років тому +1

    great work very good lecture , but i wished there was an order or number of the lecture so i can visit the previous ones if i dont understand an certain concept

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

    where is the re-recorded version

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

    Sir
    As we express a length as xTx
    How can express a volume in matrix entry

  • @jozeflodeweyckx4009
    @jozeflodeweyckx4009 7 років тому +2

    Interesting way of explaining the subject.Could I get a pdf file of the story?Jozef

  • @97Alfinsyah
    @97Alfinsyah 7 років тому +1

    as geodesy and geomatics engineering student i always using the least square adjustment to solve problems :D thank your sir for the lecture he he he

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

    wonderful!

  • @ahmedhemani1259
    @ahmedhemani1259 6 років тому +1

    Can someone point to me where are the rest of the videos of this course available ?

  • @kallzvx858
    @kallzvx858 5 років тому +2

    Great video, but I cant understand the end without knowing what the lecturer is talking...

  • @kyang1305
    @kyang1305 5 років тому +2

    I was lost from the 'A', 'b' part... like we discovered a similar structure but how did we directly got the value of x...?

    • @MichaelStangeland
      @MichaelStangeland 5 років тому +11

      Yeah, me too at first. On the left of the board there's something previously covered about "Quadratic Form Minimization", and that operation parallels differentiation in calculus. Note that to find the x that minimizes rᵀr, you take the derivative WRT x and solve for the x that makes that derivative equal to zero. It looks like he compares the xᵀAx to ax² and illustrates how they become 2Ax and 2ax respectively.
      So he goes from rᵀr = 2(½xᵀAᵀAx - xᵀAᵀb) + bᵀb
      to 0=2(AᵀAx - Aᵀb)
      to AᵀAx = Aᵀb
      to x = (AᵀA)⁻¹ Aᵀb

    • @MichaelStangeland
      @MichaelStangeland 5 років тому

      ua-cam.com/video/oaiiyIsbNdI/v-deo.html

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

      @@MichaelStangeland Thanks, this is helpful

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

      ​@@MichaelStangeland Thanks, this was the missing step in the video. Would you agree to say that we differentiate w.r.t xᵀ? Maybe it truly doesn't matter, one can always rearrange.
      And we use the fact that AᵀA is symmetric when we work with differentiation this way.

  • @roflchopter11
    @roflchopter11 7 років тому +6

    Slow until the audio cut out, after which the interesting part takes place. This could have been really good, but the audio problem was not handled well. "What a beautiful equation" for 20 seconds the end immediately after the solution was some frustrating editing.
    Keep it up, but that's some constructive criticism

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

    This feels like a Charlie Chaplin movie after mic died.

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

    Thanks

  • @oscarhernandezarzeta6222
    @oscarhernandezarzeta6222 7 років тому +1

    Thank you very much, yur videos are great, they give me a pretty good insight of the subject, please upload this video again :D

  • @johnfykhikc
    @johnfykhikc 7 років тому +1

    didn't get the final step o f the proof. anyone found the video?

  • @daniel.fajtai
    @daniel.fajtai 4 роки тому

    modern problems require modern solutions

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

    Ah Noice! A Math lesson in Bioshock style xD

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

    ty sire

  • @TuNguyen-ox5lt
    @TuNguyen-ox5lt 7 років тому

    what if ATA is not positive definite (that leads to the rTr does not have minimum value because we can choose x to make rTr as small as possible ) and if ATA is not invertible ? . Please help me .

    • @MathTheBeautiful
      @MathTheBeautiful  7 років тому +1

      Please see this video: ua-cam.com/video/bp38BKP-xh4/v-deo.html

    • @TuNguyen-ox5lt
      @TuNguyen-ox5lt 7 років тому

      So ATA is always positive semi-definite . if A is invertibe so that ATA is positive definite and we can find a global minimum of rTr . If A is singular , ATA will not invertible and the equation resulting from derivative ATAx = ATb can have multiple x to satisfy . As a result rTr will have multiple local optima . That 's what my thoughts . Am I correct ? .
      Thank you very much for quick response .

    • @MathTheBeautiful
      @MathTheBeautiful  7 років тому +1

      You are correct. More specifically, it will be one minimum value, but it will attained at a whole subspaces of locations. Sort of like the function f(x,y)=x^2.

    • @TuNguyen-ox5lt
      @TuNguyen-ox5lt 7 років тому

      I understand your example of f(x,y) = x^2 . The minimum subspaces in this example is a line x = 0(y whatever ) . If we randomly choose location of x and apply gradient descent , do we always certainly get to the minimum subspaces ? Does all optimization problem that can be expressed in quadratic form always have just one minimum value ? (I think yes but I still want a verification )
      For other cases that are not a quadratic form , the function will have multiple local optima and the value of function of those local optima are different . If I use gradient descent with randomly choosing the starting point of x , it will lead to different local optima ( in case of luck , we get to the global optima ). So the position of starting x is important . Is there any way that I surely can come to global optima instead of getting stuck of local optima . My idea is choosing multiple starting position x and the get the x that have f(x) minimum . But this way also depends on luck and not solve the situation completely . Can you come up with a good solution for this problem ?

  • @MyJuicehole
    @MyJuicehole 8 років тому +1

    I think the word you were looking for was "stamp"

  • @edsonsabino
    @edsonsabino 7 років тому +1

    very nice!

  • @FsimulatorX
    @FsimulatorX 6 років тому +5

    What is everyone here studying? I just came here because of an equation I saw for Linear Regression XD

  • @devoglumehmet4941
    @devoglumehmet4941 6 років тому +1

    Great !

  • @andrerossa8553
    @andrerossa8553 5 років тому +1

    very funny! Tks a lot for such a great lecture

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

    feels like the battery understood what he said just earlier, hearing wont help, read out it yourself to better understand , LOL

  • @channelpanel8259
    @channelpanel8259 7 років тому +2

    NOOOO !!! This is horrible!!! This was shaping up to answer all my nagging questions about least squares :( :(

    • @MathTheBeautiful
      @MathTheBeautiful  7 років тому +1

      Give us one of those nagging questions.

    • @JohannesSchmitz
      @JohannesSchmitz 6 років тому

      MathTheBeautiful in the last step did you take the first derivative and set it to zero to find the minimum of r^Tr?

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

    Please rerecord or talk over!!!! Please!!!

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

    Damn the mic dying!!!!

  • @FB-tr2kf
    @FB-tr2kf 7 років тому +2

    Gave you a dislike because of the sound towards the end.

    • @rovshanabdurrahimov5892
      @rovshanabdurrahimov5892 6 років тому +2

      but it is not his mistake. u should be respectful. if u dont like go other channels. this man explains in best way.

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

    like it

  • @droully
    @droully 8 років тому

    stump it out

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

    Math is super fun, but when we listen to about one xillion detail at every corner? It becomes so boring.

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

      I think it's the one zillion first detail that one too many!

  • @difjaoisdjfoaisjdfoaiogeis
    @difjaoisdjfoaisjdfoaiogeis 5 років тому

    i was enjoying it until the CHALK SCREECHED AGAINST THE CHALKBOARD UNGHGHHGH IM SO UNCOMFORTABLE NOW

  • @ozzyfromspace
    @ozzyfromspace 5 років тому +2

    Geez my guy, for every 5 seconds of math, there's like 2 minutes of you talking about "stamping it out". It's painful to watch, sorry.

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

    Is this a joke?

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

    The guy talks too much.