The Least Squares Formula: A Derivation

  Рет қаралды 127,901

MathTheBeautiful

MathTheBeautiful

Күн бұрын

Пікірлер
@MathTheBeautiful
@MathTheBeautiful 4 жыл бұрын
Go to LEM.MA/LA for videos, exercises, and to ask us questions directly.
@cern1999sb
@cern1999sb 3 жыл бұрын
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 жыл бұрын
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.
@evieblue959
@evieblue959 3 жыл бұрын
An energetic math teacher. I've never met one in the wild. Thanks!
@MathTheBeautiful
@MathTheBeautiful 3 жыл бұрын
And damn handsome, too!
@muratcan__22
@muratcan__22 6 жыл бұрын
the most important part is missing
@vangrails
@vangrails 5 жыл бұрын
What is that part?
@dcuzhang
@dcuzhang 4 жыл бұрын
@@vangrails battery😂
@jonathanpepin6326
@jonathanpepin6326 7 жыл бұрын
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.
@damian.gamlath
@damian.gamlath 7 жыл бұрын
Sir, I love the intuition you inject into these topics, something most other teachers (and KZbinrs for that matter) fail to provide.
@javierapuebla2451
@javierapuebla2451 6 ай бұрын
this video is marvelous from start to finish, and the mute subtitles did really help
@MathTheBeautiful
@MathTheBeautiful 6 ай бұрын
Glad to hear that!
@orangeflow9809
@orangeflow9809 4 жыл бұрын
Even with the mic batteries dead, this was a great lecture.
@MathTheBeautiful
@MathTheBeautiful 4 жыл бұрын
..................................................
@yamansanghavi
@yamansanghavi 7 жыл бұрын
I wish there were more professors like you sir. You are truly genius. Thank you so much.
@mpja
@mpja 4 жыл бұрын
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.
@via6400
@via6400 Жыл бұрын
Tank you very much, You solved my least squares problem.
@MathTheBeautiful
@MathTheBeautiful Жыл бұрын
It's the least I can do
@darrenpeck156
@darrenpeck156 2 жыл бұрын
Please record the next video with sound.
@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 жыл бұрын
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.
@Acampandoconfrikis
@Acampandoconfrikis 7 жыл бұрын
What an epic way do deal with a microphone problem XXDDXXDXD (also good explaining, thanks!)
@michaelroditis1952
@michaelroditis1952 5 жыл бұрын
yeah i loved the idea!
@hushengli6697
@hushengli6697 Жыл бұрын
wonderful!
@jozeflodeweyckx4009
@jozeflodeweyckx4009 7 жыл бұрын
Interesting way of explaining the subject.Could I get a pdf file of the story?Jozef
@Positive_Vibes_26
@Positive_Vibes_26 Жыл бұрын
Sir As we express a length as xTx How can express a volume in matrix entry
@MathTheBeautiful
@MathTheBeautiful Жыл бұрын
Determinant
@visbellum
@visbellum 3 жыл бұрын
What about the error?
@pipertripp
@pipertripp 3 жыл бұрын
You should have done the second half of the video in sepia. A moustache would have been a nice touch too.
@BraddockGaskill
@BraddockGaskill 2 жыл бұрын
Yes please re-record the audio, it was a brilliant explanation up until then
@kyang1305
@kyang1305 5 жыл бұрын
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 жыл бұрын
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 жыл бұрын
kzbin.info/www/bejne/pZLMmqx_qMeBmqs
@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.
@gautamrajeev3345
@gautamrajeev3345 3 жыл бұрын
Why are they equal because they are transposes of each other?
@grjesus9979
@grjesus9979 3 жыл бұрын
4 years later he is still busy hahahahaha. Good class except fot the last 2:30 where magic happens
@ahmedhemani1259
@ahmedhemani1259 6 жыл бұрын
Can someone point to me where are the rest of the videos of this course available ?
@abdelrahman458
@abdelrahman458 4 жыл бұрын
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 8 ай бұрын
where is the re-recorded version
@MathTheBeautiful
@MathTheBeautiful 8 ай бұрын
Sorry, never happened!
@oscarhernandezarzeta6222
@oscarhernandezarzeta6222 7 жыл бұрын
Thank you very much, yur videos are great, they give me a pretty good insight of the subject, please upload this video again :D
@97Alfinsyah
@97Alfinsyah 6 жыл бұрын
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
@kallzvx858
@kallzvx858 5 жыл бұрын
Great video, but I cant understand the end without knowing what the lecturer is talking...
@chensun2427
@chensun2427 3 жыл бұрын
Ah Noice! A Math lesson in Bioshock style xD
@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 жыл бұрын
Please see this video: kzbin.info/www/bejne/mKGWaXWBhZKrnpY
@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 жыл бұрын
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 ?
@shimaalcarrim7949
@shimaalcarrim7949 Жыл бұрын
Thanks
@vikraal6974
@vikraal6974 5 ай бұрын
This feels like a Charlie Chaplin movie after mic died.
@johnfykhikc
@johnfykhikc 7 жыл бұрын
didn't get the final step o f the proof. anyone found the video?
@unrmaestro
@unrmaestro 3 жыл бұрын
ty sire
@daniel.fajtai
@daniel.fajtai 4 жыл бұрын
modern problems require modern solutions
@andrerossa8553
@andrerossa8553 5 жыл бұрын
very funny! Tks a lot for such a great lecture
@FsimulatorX
@FsimulatorX 6 жыл бұрын
What is everyone here studying? I just came here because of an equation I saw for Linear Regression XD
@israelmcintosh9745
@israelmcintosh9745 5 жыл бұрын
@Max Kirkman linear algebra
@flightrisk7566
@flightrisk7566 5 жыл бұрын
I’m actually here for NLP
@TheTacticalDood
@TheTacticalDood 4 жыл бұрын
Computer Vision
4 жыл бұрын
@@flightrisk7566 NLP x2
@edilgin
@edilgin 4 жыл бұрын
regression
@MyJuicehole
@MyJuicehole 7 жыл бұрын
I think the word you were looking for was "stamp"
@MathTheBeautiful
@MathTheBeautiful 7 жыл бұрын
That's right!
@edsonsabino
@edsonsabino 7 жыл бұрын
very nice!
@devoglumehmet4941
@devoglumehmet4941 6 жыл бұрын
Great !
@roflchopter11
@roflchopter11 7 жыл бұрын
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
@channelpanel8259
@channelpanel8259 7 жыл бұрын
NOOOO !!! This is horrible!!! This was shaping up to answer all my nagging questions about least squares :( :(
@MathTheBeautiful
@MathTheBeautiful 7 жыл бұрын
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?
@pavan1000
@pavan1000 Күн бұрын
feels like the battery understood what he said just earlier, hearing wont help, read out it yourself to better understand , LOL
@MathTheBeautiful
@MathTheBeautiful Күн бұрын
yes the battery is in charge
@jimmyjonestodd2556
@jimmyjonestodd2556 2 жыл бұрын
Damn the mic dying!!!!
@droully
@droully 7 жыл бұрын
stump it out
@demidrol5660
@demidrol5660 4 жыл бұрын
like it
@darrenpeck156
@darrenpeck156 2 жыл бұрын
Please rerecord or talk over!!!! Please!!!
@FB-tr2kf
@FB-tr2kf 7 жыл бұрын
Gave you a dislike because of the sound towards the end.
@rovshanabdurrahimov5892
@rovshanabdurrahimov5892 6 жыл бұрын
but it is not his mistake. u should be respectful. if u dont like go other channels. this man explains in best way.
@aboodfarhood9316
@aboodfarhood9316 4 жыл бұрын
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 жыл бұрын
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.
@MathTheBeautiful
@MathTheBeautiful 4 жыл бұрын
Agreed. His wife must be sick of him .
A (Silent) Least Squares Example
2:49
MathTheBeautiful
Рет қаралды 8 М.
Quadratic Form Minimization: A Calculus-Based Derivation
17:41
MathTheBeautiful
Рет қаралды 50 М.
Cat mode and a glass of water #family #humor #fun
00:22
Kotiki_Z
Рет қаралды 42 МЛН
Beat Ronaldo, Win $1,000,000
22:45
MrBeast
Рет қаралды 158 МЛН
Mom Hack for Cooking Solo with a Little One! 🍳👶
00:15
5-Minute Crafts HOUSE
Рет қаралды 23 МЛН
Linear Systems of Equations, Least Squares Regression, Pseudoinverse
11:53
Math News: The Fish Bone Conjecture has been deboned!!
23:06
Dr. Trefor Bazett
Рет қаралды 169 М.
Least Squares Formula PROOF
6:21
Virtually Passed
Рет қаралды 10 М.
Imaginary numbers aren't imaginary
13:55
Ali the Dazzling
Рет қаралды 229 М.
Linear Least Squares to Solve Nonlinear Problems
12:27
The Math Coffeeshop
Рет қаралды 33 М.
The Math Behind Speeding: More is Less
8:50
The Scribbled Equation
Рет қаралды 112 М.
Least squares | MIT 18.02SC Multivariable Calculus, Fall 2010
9:04
MIT OpenCourseWare
Рет қаралды 282 М.
Cat mode and a glass of water #family #humor #fun
00:22
Kotiki_Z
Рет қаралды 42 МЛН