Code Monkey home page Code Monkey logo

Comments (5)

Alexander-Dirtyhead avatar Alexander-Dirtyhead commented on September 24, 2024

Hi!
My English name is alexander, too!
Recently, I read your blog :The Method of Least Squares,which I have a little question about.
In the second related question:2. How does this actually change the problem?, you wrote this line:
we can solve for it by multiplying both sides by the inverse of ATA

And my question is that is there any possibility that the inverse of ATA does not exist, even though ATA is a symmetric matrix?

Last, lots of thanks for you blog!

from aleksandrhovhannisyan.com.

AleksandrHovhannisyan avatar AleksandrHovhannisyan commented on September 24, 2024

@Alexander-Dirtyhead

And my question is that is there any possibility that the inverse of ATA does not exist, even though ATA is a symmetric matrix?

I believe it's possible. A matrix is invertible if and only if its determinant is nonzero. And the determinant of a matrix product equals the product of the determinants of the individual matrices. So if $A$ is not invertible (determinant is zero), then neither is the product of its transpose with itself. However, we can still find a least-squares solution to $Ax = b$ using $QR$ decomposition, which doesn't require finding the inverse.

from aleksandrhovhannisyan.com.

Alexander-Dirtyhead avatar Alexander-Dirtyhead commented on September 24, 2024

@Alexander-Dirtyhead

And my question is that is there any possibility that the inverse of ATA does not exist, even though ATA is a symmetric matrix?

I believe it's possible. A matrix is invertible if and only if its determinant is nonzero. And the determinant of a matrix product equals the product of the determinants of the individual matrices. So if A is not invertible (determinant is zero), then neither is the product of its transpose with itself. However, we can still find a least-squares solution to Ax=b using QR decomposition, which doesn't require finding the inverse.

Thanks for your reply!
Your reply helps me a lot.
Best regards!

from aleksandrhovhannisyan.com.

EdinLiv avatar EdinLiv commented on September 24, 2024

Hi there, this is Mark from China. I am a novice technician in spectral flow cytometry, which utilizes least square methods extensively to perform unmixing of composite spectra from dozens of fluorescent probes labelled on each human cell in order to asnwer some real biomedical questions. Given my biological background, the concept of least square methods seemed very daunting to me until I found out your blog post. This is by far the plainest explanation of least square methods to a novice in mathematics! Although I was a bit lost with QR decomposition but to my understanding this is just a technical detail in the execution right? Anyway, highly recommended to my colleagues.

from aleksandrhovhannisyan.com.

AleksandrHovhannisyan avatar AleksandrHovhannisyan commented on September 24, 2024

@EdinLiv Glad you found it useful!

Although I was a bit lost with QR decomposition but to my understanding this is just a technical detail in the execution right?

Yes, QR decomposition is just one way of solving a least squares equation. It's mainly used in computing to minimize errors due to certain operations involved in finding the transpose and pseudo-inverse of a matrix.

from aleksandrhovhannisyan.com.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.