Thread Subject: Regression with linear constraint

Subject: Regression with linear constraint

From: Hans Schmidt

Date: 3 Jan, 2012 14:14:09

Message: 1 of 6

Hey folks,

I am having trouble in estimating a linear regression of this form by simply using Ordinary Least Squares:

Ri = a1 + d1*R1 + d2*R2 + ui

where R1 and R2 stand for two arbitrary indpendent variables, d1 and d2 are the respective regression coefficients and a1 is defined as:

a1 = r0(1 - d1) + (r - 1*r0)'d2

Hence, the estimation of a1 involves the estimates for d1 and d2. How can such a problem be solved with Matlab? Do I have to define a1 as a linear constraint?

Thanks for your assistance.

Subject: Regression with linear constraint

From: Torsten

Date: 3 Jan, 2012 14:51:26

Message: 2 of 6

On 3 Jan., 15:14, "Hans Schmidt" <whitech...@gmx.de> wrote:
> Hey folks,
>
> I am having trouble in estimating a linear regression of this form by simply using Ordinary Least Squares:
>
> Ri = a1 + d1*R1 + d2*R2 + ui
>
> where R1 and R2 stand for two arbitrary indpendent variables, d1 and d2 are the respective regression coefficients and a1 is defined as:
>
> a1 = r0(1 - d1) + (r - 1*r0)'d2
>
> Hence, the estimation of a1 involves the estimates for d1 and d2. How can such a problem be solved with Matlab? Do I have to define a1 as a linear constraint?
>
> Thanks for your assistance.

What do r and r0 stand for ?

Maybe I don't understand your problem correcty, but
why not writing the equation as
Ri - r0 = d1*(R1-r0) + d2*(R2+r-r0)
and estimating d1 and d2 as usual ?

Best wishes
Torsten.

Subject: Regression with linear constraint

From: Hans Schmidt

Date: 3 Jan, 2012 15:11:08

Message: 3 of 6

Torsten <Torsten.Hennig@umsicht.fraunhofer.de> wrote in message <41c9838a-8591-4bb2-87ee-b0eb1c7e2038@z17g2000vbe.googlegroups.com>...
> On 3 Jan., 15:14, "Hans Schmidt" <whitech...@gmx.de> wrote:
> > Hey folks,
> >
> > I am having trouble in estimating a linear regression of this form by simply using Ordinary Least Squares:
> >
> > Ri = a1 + d1*R1 + d2*R2 + ui
> >
> > where R1 and R2 stand for two arbitrary indpendent variables, d1 and d2 are the respective regression coefficients and a1 is defined as:
> >
> > a1 = r0(1 - d1) + (r - 1*r0)'d2
> >
> > Hence, the estimation of a1 involves the estimates for d1 and d2. How can such a problem be solved with Matlab? Do I have to define a1 as a linear constraint?
> >
> > Thanks for your assistance.
>
> What do r and r0 stand for ?
>
> Maybe I don't understand your problem correcty, but
> why not writing the equation as
> Ri - r0 = d1*(R1-r0) + d2*(R2+r-r0)
> and estimating d1 and d2 as usual ?
>
> Best wishes
> Torsten.


Hi Torsten,

thank for your response.

r and r0 stand for the risk-free interest rate of the foreign country and the home country, respectively. This framework is typical in the context of the International Capital Asset Pricing Model (ICAPM).

Your suggestion seems intuitive, however, i am afraid that I also need a standard error estimate with respective t-statistics for the coefficient a1.

Best,
Hans

Subject: Regression with linear constraint

From: John D'Errico

Date: 3 Jan, 2012 18:44:08

Message: 4 of 6

"Hans Schmidt" wrote in message <jdv5qc$s12$1@newscl01ah.mathworks.com>...
> Torsten <Torsten.Hennig@umsicht.fraunhofer.de> wrote in message <41c9838a-8591-4bb2-87ee-b0eb1c7e2038@z17g2000vbe.googlegroups.com>...
> > On 3 Jan., 15:14, "Hans Schmidt" <whitech...@gmx.de> wrote:
> > > Hey folks,
> > >
> > > I am having trouble in estimating a linear regression of this form by simply using Ordinary Least Squares:
> > >
> > > Ri = a1 + d1*R1 + d2*R2 + ui
> > >
> > > where R1 and R2 stand for two arbitrary indpendent variables, d1 and d2 are the respective regression coefficients and a1 is defined as:
> > >
> > > a1 = r0(1 - d1) + (r - 1*r0)'d2
> > >
> > > Hence, the estimation of a1 involves the estimates for d1 and d2. How can such a problem be solved with Matlab? Do I have to define a1 as a linear constraint?
> > >
> > > Thanks for your assistance.
> >
> > What do r and r0 stand for ?
> >
> > Maybe I don't understand your problem correcty, but
> > why not writing the equation as
> > Ri - r0 = d1*(R1-r0) + d2*(R2+r-r0)
> > and estimating d1 and d2 as usual ?
> >
> > Best wishes
> > Torsten.
>
>
> Hi Torsten,
>
> thank for your response.
>
> r and r0 stand for the risk-free interest rate of the foreign country and the home country, respectively. This framework is typical in the context of the International Capital Asset Pricing Model (ICAPM).
>
> Your suggestion seems intuitive, however, i am afraid that I also need a standard error estimate with respective t-statistics for the coefficient a1.
>
> Best,
> Hans

Simple.

Eliminate a1 from the first equation. (As suggested by Torsten.)

This yields estimates for the parameters d1, d2, and ui,
which are apparently unknowns. It also yields a covariance
matrix for those parameters.

Now compute the estimate of a1 from those computed
parameters. The variance of a1 is also easy since it is simply
a linear transformation of the parameters, so it has a variance
that is easily computed from the covariance matrix.

John

Subject: Regression with linear constraint

From: Hans Schmidt

Date: 4 Jan, 2012 12:37:07

Message: 5 of 6

"John D'Errico" <woodchips@rochester.rr.com> wrote in message <jdvi9o$eqk$1@newscl01ah.mathworks.com>...
> "Hans Schmidt" wrote in message <jdv5qc$s12$1@newscl01ah.mathworks.com>...
> > Torsten <Torsten.Hennig@umsicht.fraunhofer.de> wrote in message <41c9838a-8591-4bb2-87ee-b0eb1c7e2038@z17g2000vbe.googlegroups.com>...
> > > On 3 Jan., 15:14, "Hans Schmidt" <whitech...@gmx.de> wrote:
> > > > Hey folks,
> > > >
> > > > I am having trouble in estimating a linear regression of this form by simply using Ordinary Least Squares:
> > > >
> > > > Ri = a1 + d1*R1 + d2*R2 + ui
> > > >
> > > > where R1 and R2 stand for two arbitrary indpendent variables, d1 and d2 are the respective regression coefficients and a1 is defined as:
> > > >
> > > > a1 = r0(1 - d1) + (r - 1*r0)'d2
> > > >
> > > > Hence, the estimation of a1 involves the estimates for d1 and d2. How can such a problem be solved with Matlab? Do I have to define a1 as a linear constraint?
> > > >
> > > > Thanks for your assistance.
> > >
> > > What do r and r0 stand for ?
> > >
> > > Maybe I don't understand your problem correcty, but
> > > why not writing the equation as
> > > Ri - r0 = d1*(R1-r0) + d2*(R2+r-r0)
> > > and estimating d1 and d2 as usual ?
> > >
> > > Best wishes
> > > Torsten.
> >
> >
> > Hi Torsten,
> >
> > thank for your response.
> >
> > r and r0 stand for the risk-free interest rate of the foreign country and the home country, respectively. This framework is typical in the context of the International Capital Asset Pricing Model (ICAPM).
> >
> > Your suggestion seems intuitive, however, i am afraid that I also need a standard error estimate with respective t-statistics for the coefficient a1.
> >
> > Best,
> > Hans
>
> Simple.
>
> Eliminate a1 from the first equation. (As suggested by Torsten.)
>
> This yields estimates for the parameters d1, d2, and ui,
> which are apparently unknowns. It also yields a covariance
> matrix for those parameters.
>
> Now compute the estimate of a1 from those computed
> parameters. The variance of a1 is also easy since it is simply
> a linear transformation of the parameters, so it has a variance
> that is easily computed from the covariance matrix.
>
> John

John,

thank you for your response. I think this is exactly what I need. But how can the variance of a1 be computed from using the covariance matrix of the other parameters?

Best,
Hans

Subject: Regression with linear constraint

From: John D'Errico

Date: 4 Jan, 2012 14:13:08

Message: 6 of 6

"Hans Schmidt" wrote in message <je1h5j$ou7$1@newscl01ah.mathworks.com>...
> "John D'Errico" <woodchips@rochester.rr.com> wrote in message <jdvi9o$eqk$1@newscl01ah.mathworks.com>...
> > "Hans Schmidt" wrote in message <jdv5qc$s12$1@newscl01ah.mathworks.com>...
> > > Torsten <Torsten.Hennig@umsicht.fraunhofer.de> wrote in message <41c9838a-8591-4bb2-87ee-b0eb1c7e2038@z17g2000vbe.googlegroups.com>...
> > > > On 3 Jan., 15:14, "Hans Schmidt" <whitech...@gmx.de> wrote:
> > > > > Hey folks,
> > > > >
> > > > > I am having trouble in estimating a linear regression of this form by simply using Ordinary Least Squares:
> > > > >
> > > > > Ri = a1 + d1*R1 + d2*R2 + ui
> > > > >
> > > > > where R1 and R2 stand for two arbitrary indpendent variables, d1 and d2 are the respective regression coefficients and a1 is defined as:
> > > > >
> > > > > a1 = r0(1 - d1) + (r - 1*r0)'d2
> > > > >
> > > > > Hence, the estimation of a1 involves the estimates for d1 and d2. How can such a problem be solved with Matlab? Do I have to define a1 as a linear constraint?
> > > > >
> > > > > Thanks for your assistance.
> > > >
> > > > What do r and r0 stand for ?
> > > >
> > > > Maybe I don't understand your problem correcty, but
> > > > why not writing the equation as
> > > > Ri - r0 = d1*(R1-r0) + d2*(R2+r-r0)
> > > > and estimating d1 and d2 as usual ?
> > > >
> > > > Best wishes
> > > > Torsten.
> > >
> > >
> > > Hi Torsten,
> > >
> > > thank for your response.
> > >
> > > r and r0 stand for the risk-free interest rate of the foreign country and the home country, respectively. This framework is typical in the context of the International Capital Asset Pricing Model (ICAPM).
> > >
> > > Your suggestion seems intuitive, however, i am afraid that I also need a standard error estimate with respective t-statistics for the coefficient a1.
> > >
> > > Best,
> > > Hans
> >
> > Simple.
> >
> > Eliminate a1 from the first equation. (As suggested by Torsten.)
> >
> > This yields estimates for the parameters d1, d2, and ui,
> > which are apparently unknowns. It also yields a covariance
> > matrix for those parameters.
> >
> > Now compute the estimate of a1 from those computed
> > parameters. The variance of a1 is also easy since it is simply
> > a linear transformation of the parameters, so it has a variance
> > that is easily computed from the covariance matrix.
> >
> > John
>
> John,
>
> thank you for your response. I think this is exactly what I need. But how can the variance of a1 be computed from using the covariance matrix of the other parameters?
>
> Best,
> Hans

By using basic statistics?

http://en.wikipedia.org/wiki/Covariance_matrix

If X is a computed vector of parameters, with
covariance matrix S, then if you want to find
the variance of some linear combination A*X,
that variance is given by:

V = A*S*A'

This presumes a column vector X, so that A is
presumed to be a row vector.

John

Tags for this Thread

Everyone's Tags:

Add a New Tag:

Separated by commas
Ex.: root locus, bode

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

Tag Activity for This Thread
Tag Applied By Date/Time
linear regression Hans Schmidt 3 Jan, 2012 09:19:11
constraint Hans Schmidt 3 Jan, 2012 09:19:11
rssFeed for this Thread

Contact us at files@mathworks.com