Doubt regarding matrix multiplication

in this video lecture at time 9:33
sir get theta value but how as
if X dimension is m x n, y is of m x 1 dimension then X.T has n x m dimension, and first part has dimension of n x n and second part has dimension n x 1. and inverse of first part is same dimension so theta should have dimension of n x n but sir get dimension of n x 1 how?

Hey @Jan19LPN0013, dimension of first part will be nn, inverse of first part will also have nn. Now, dimension of second part is x.T * y so (n,m) * (m,1). So second part will have shape of (n,1).

And finally when we mutliply inverse of first part with second part, i.e. (n,n) * (n,1) the final output will be (n,1)

Hope this resolved your doubt.
Plz mark the doubt as resolved in my doubts section. :blush:

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.