Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > sci.math > #330213 > unrolled thread
| Started by | gyansorova@gmail.com |
|---|---|
| First post | 2016-03-20 01:08 -0700 |
| Last post | 2016-03-22 12:51 -0700 |
| Articles | 9 — 5 participants |
Back to article view | Back to sci.math
Differentiation of Matrix term gyansorova@gmail.com - 2016-03-20 01:08 -0700
Re: Differentiation of Matrix term Bill <BILL_NOSPAM@whoknows.net> - 2016-03-20 06:25 -0400
Re: Differentiation of Matrix term Bill <BILL_NOSPAM@whoknows.net> - 2016-03-20 06:29 -0400
Re: Differentiation of Matrix term quasi <quasi@null.set> - 2016-03-20 08:38 -0500
Re: Differentiation of Matrix term gyansorova@gmail.com - 2016-03-20 10:01 -0700
Re: Differentiation of Matrix term Pirx42 <user@example.net> - 2016-03-20 19:45 +0100
Re: Differentiation of Matrix term gyansorova@gmail.com - 2016-03-20 15:35 -0700
Matrix Differation Herman Rubin <hrubin@skew.stat.purdue.edu> - 2016-03-21 18:06 +0000
Re: Matrix Differation gyansorova@gmail.com - 2016-03-22 12:51 -0700
| From | gyansorova@gmail.com |
|---|---|
| Date | 2016-03-20 01:08 -0700 |
| Subject | Differentiation of Matrix term |
| Message-ID | <504ddee2-f94b-440f-812a-5dc4f76422f2@googlegroups.com> |
Suppose X=F.A where F and A are both square matrices What is the derivative of X wrt F? ie a matrix wrt another matrix I think the answer is A' where ' is transpose but it may be A' o I where o is the Kronecker product
[toc] | [next] | [standalone]
| From | Bill <BILL_NOSPAM@whoknows.net> |
|---|---|
| Date | 2016-03-20 06:25 -0400 |
| Message-ID | <ncltq002mj1@news4.newsguy.com> |
| In reply to | #330213 |
gyansorova@gmail.com wrote: > Suppose > > X=F.A > > where F and A are both square matrices > > What is the derivative of X wrt F? ie a matrix wrt another matrix I could be mistaken, but doesn't it seem more natural to ask for the derivative of X with respect to A (which appears to play the role of the "dependent variable" here)? I suggest you try to answer your question with concrete 1-by1 and 2-by-2 matrices first, to gain your footing. Bill > > I think the answer is A' where ' is transpose but it may be > > A' o I where o is the Kronecker product > > >
[toc] | [prev] | [next] | [standalone]
| From | Bill <BILL_NOSPAM@whoknows.net> |
|---|---|
| Date | 2016-03-20 06:29 -0400 |
| Message-ID | <nclu1o02j09@news3.newsguy.com> |
| In reply to | #330215 |
Bill wrote: > gyansorova@gmail.com wrote: >> Suppose >> >> X=F.A >> >> where F and A are both square matrices >> >> What is the derivative of X wrt F? ie a matrix wrt another matrix > I could be mistaken, but doesn't it seem more natural to ask for the > derivative of X with respect to A (which appears to play the role of > the "dependent variable" here)? Sorry, that should be INDEPENDENT variable, not dependent. > I suggest you try to answer your question with concrete 1-by1 and > 2-by-2 matrices first, to gain your footing. > > Bill > > > >> >> I think the answer is A' where ' is transpose but it may be >> >> A' o I where o is the Kronecker product >> >> >> >
[toc] | [prev] | [next] | [standalone]
| From | quasi <quasi@null.set> |
|---|---|
| Date | 2016-03-20 08:38 -0500 |
| Message-ID | <hh8tebtltcfnd7b41cpnntpba2pmu1eu4m@4ax.com> |
| In reply to | #330213 |
gyansorova wrote: > >Suppose > >X=F.A > >where F and A are both square matrices Square matrices with what kind of coefficients?. >What is the derivative of X wrt F? ie a matrix wrt another >matrix What do you mean by the derivative of X with respect to F? If you are using a definition from a text or web page, you should give a reference. >I think the answer is A' where ' is transpose but it may be > >A' o I where o is the Kronecker product As it stands, what you're asking is far too vague. You need to state (or provide a reference to) precise definitions. Also, how about posting a small 2x2 example? quasi
[toc] | [prev] | [next] | [standalone]
| From | gyansorova@gmail.com |
|---|---|
| Date | 2016-03-20 10:01 -0700 |
| Message-ID | <6437df10-26ff-48fb-9f5a-ec7983f4676d@googlegroups.com> |
| In reply to | #330222 |
On Monday, March 21, 2016 at 1:40:03 AM UTC+13, quasi wrote: > gyansorova wrote: > > > >Suppose > > > >X=F.A > > > >where F and A are both square matrices > > Square matrices with what kind of coefficients?. > > >What is the derivative of X wrt F? ie a matrix wrt another > >matrix > > What do you mean by the derivative of X with respect to F? > > If you are using a definition from a text or web page, you > should give a reference. > > >I think the answer is A' where ' is transpose but it may be > > > >A' o I where o is the Kronecker product > > As it stands, what you're asking is far too vague. > > You need to state (or provide a reference to) precise > definitions. > > Also, how about posting a small 2x2 example? > > quasi Ok suppose I have J =trace(FAF' + DDF') and I want the second derivative of the scalar J wrt the matrix F I can do the first derivative easily from tables as the derivative of a trace term is well documented. I understand though that one I do the first differentiation the trace disappears and the result is a matrix form. So teh second differential will be a matrix wrt a matrix?
[toc] | [prev] | [next] | [standalone]
| From | Pirx42 <user@example.net> |
|---|---|
| Date | 2016-03-20 19:45 +0100 |
| Message-ID | <ncmquu$9sl$2@dont-email.me> |
| In reply to | #330230 |
Am 20.03.2016 um 18:01 schrieb gyansorova@gmail.com: > On Monday, March 21, 2016 at 1:40:03 AM UTC+13, quasi wrote: >> gyansorova wrote: >>> >>> Suppose >>> >>> X=F.A >>> >>> where F and A are both square matrices >> >> Square matrices with what kind of coefficients?. >> >>> What is the derivative of X wrt F? ie a matrix wrt another >>> matrix >> >> What do you mean by the derivative of X with respect to F? >> >> If you are using a definition from a text or web page, you >> should give a reference. >> >>> I think the answer is A' where ' is transpose but it may be >>> >>> A' o I where o is the Kronecker product >> >> As it stands, what you're asking is far too vague. >> >> You need to state (or provide a reference to) precise >> definitions. >> >> Also, how about posting a small 2x2 example? >> >> quasi > > Ok suppose I have > > J =trace(FAF' + DDF') > > and I want the second derivative of the scalar J wrt the matrix F > > I can do the first derivative easily from tables as the derivative of a trace term is well documented. I understand though that one I do the first differentiation the trace disappears and the result is a matrix form. So teh second differential will be a matrix wrt a matrix? > Maybe this helps: http://www2.imm.dtu.dk/pubdb/views/publication_details.php?id=3274
[toc] | [prev] | [next] | [standalone]
| From | gyansorova@gmail.com |
|---|---|
| Date | 2016-03-20 15:35 -0700 |
| Message-ID | <79ed7f61-d76a-41a6-bb8e-9eafe15199e9@googlegroups.com> |
| In reply to | #330238 |
On Monday, March 21, 2016 at 7:45:55 AM UTC+13, Pirx42 wrote: > Am 20.03.2016 um 18:01 schrieb gyansorova@gmail.com: > > On Monday, March 21, 2016 at 1:40:03 AM UTC+13, quasi wrote: > >> gyansorova wrote: > >>> > >>> Suppose > >>> > >>> X=F.A > >>> > >>> where F and A are both square matrices > >> > >> Square matrices with what kind of coefficients?. > >> > >>> What is the derivative of X wrt F? ie a matrix wrt another > >>> matrix > >> > >> What do you mean by the derivative of X with respect to F? > >> > >> If you are using a definition from a text or web page, you > >> should give a reference. > >> > >>> I think the answer is A' where ' is transpose but it may be > >>> > >>> A' o I where o is the Kronecker product > >> > >> As it stands, what you're asking is far too vague. > >> > >> You need to state (or provide a reference to) precise > >> definitions. > >> > >> Also, how about posting a small 2x2 example? > >> > >> quasi > > > > Ok suppose I have > > > > J =trace(FAF' + DDF') > > > > and I want the second derivative of the scalar J wrt the matrix F > > > > I can do the first derivative easily from tables as the derivative of a trace term is well documented. I understand though that one I do the first differentiation the trace disappears and the result is a matrix form. So teh second differential will be a matrix wrt a matrix? > > > > Maybe this helps: > > > http://www2.imm.dtu.dk/pubdb/views/publication_details.php?id=3274 actually it doesn't, already been there! I figured it out though for future reference. You differentiate a Matrix expression wrt a matrix by using the Vec() notation. eg f(A)=AB df/dA = d Vec(f(A))/dVec(A) = B' o I as I first thought. In other words you convert the problem into a vector problem and reconstruct the matrix. I could do an example but it is a bit messy. A=[a11 a12] [a21 a22] B=[b11 b12 [b21 b22] Vec(AB)= (a11b11+a12b21 a21b11+a22b21 a11b12+a12b22 a21b12+a22b22) Then differentiate each term wrt to the vector Vec(A) = (a11 a21 a12 a22) and get a vector with 16 terms (b11 0 b12 0 0 b11 0 b12 b21 0 b22 0 0 b21 0 b22) and then reconstruct the matrix from Vec() and you will see it is B' o I
[toc] | [prev] | [next] | [standalone]
| From | Herman Rubin <hrubin@skew.stat.purdue.edu> |
|---|---|
| Date | 2016-03-21 18:06 +0000 |
| Subject | Matrix Differation |
| Message-ID | <slrnnf0e6p.d29.hrubin@skew.stat.purdue.edu> |
| In reply to | #330247 |
There have been many postings on trying to get the derivative of a matrixc. However, this does not exist. But there is a differential calculus, which uses differentials. And the lack of commutativity makes things somewhat different from the case of functions of real numbers. In general, when one has a smooth function from one linear space over the reals to another, one can form the Frechet derivative df(x)(u) = lim_(e->0) (f(x+eu)-f(x)/e) There is much which can be done, but one has to be careful. -- This address is for information only. I do not claim that these views are those of the Statistics Department or of Purdue University. Herman Rubin, Department of Statistics, Purdue University hrubin@stat.purdue.edu Phone: (765)494-6054 FAX: (765)494-0558
[toc] | [prev] | [next] | [standalone]
| From | gyansorova@gmail.com |
|---|---|
| Date | 2016-03-22 12:51 -0700 |
| Subject | Re: Matrix Differation |
| Message-ID | <9b6aade2-d399-42b6-9bda-ff9e0b62134b@googlegroups.com> |
| In reply to | #330301 |
On Tuesday, March 22, 2016 at 7:09:40 AM UTC+13, Herman Rubin wrote: > There have been many postings on trying to get the derivative of > a matrixc. However, this does not exist. But there is a differential > calculus, which uses differentials. And the lack of commutativity > makes things somewhat different from the case of functions of real numbers. > > In general, when one has a smooth function from one linear space > over the reals to another, one can form the Frechet derivative > > df(x)(u) = lim_(e->0) (f(x+eu)-f(x)/e) > > There is much which can be done, but one has to be careful. > > -- > This address is for information only. I do not claim that these views > are those of the Statistics Department or of Purdue University. > Herman Rubin, Department of Statistics, Purdue University > hrubin@stat.purdue.edu Phone: (765)494-6054 FAX: (765)494-0558 I don't agree. See my previous posting. There are books on the subject. Change the problem into vectors using Vec() notation.
[toc] | [prev] | [standalone]
Back to top | Article view | sci.math
csiph-web