Thread Subject: parameter constraint on crossCorr

Subject: parameter constraint on crossCorr

From: M Ladderman

Date: 12 Mar, 2010 16:04:08

Message: 1 of 6

dear all,

I want to constrain the crossCorr function to return parameters/solutions between 0-1, because a priori I do not expect any negative relationships.

Is there an easy way to do this that I am overlooking, thanks.

Subject: parameter constraint on crossCorr

From: M Ladderman

Date: 14 Mar, 2010 09:21:04

Message: 2 of 6

Is this is a stupid question or is the answer not easy. thanks for reading this mssg again, sorry to move it up in this way but I am struggling with it.


"M Ladderman" <mirresimons@gmail.com> wrote in message <hndolo$rqf$1@fred.mathworks.com>...
> dear all,
>
> I want to constrain the crossCorr function to return parameters/solutions between 0-1, because a priori I do not expect any negative relationships.
>
> Is there an easy way to do this that I am overlooking, thanks.

Subject: parameter constraint on crossCorr

From: Wayne King

Date: 14 Mar, 2010 11:43:06

Message: 3 of 6

"M Ladderman" <mirresimons@gmail.com> wrote in message <hni9q0$6ln$1@fred.mathworks.com>...
> Is this is a stupid question or is the answer not easy. thanks for reading this mssg again, sorry to move it up in this way but I am struggling with it.
>
>
> "M Ladderman" <mirresimons@gmail.com> wrote in message <hndolo$rqf$1@fred.mathworks.com>...
> > dear all,
> >
> > I want to constrain the crossCorr function to return parameters/solutions between 0-1, because a priori I do not expect any negative relationships.
> >
> > Is there an easy way to do this that I am overlooking, thanks.

Hi, I guess I would ask why you want to do that? crosscorr() produces an estimate of the theoretical cross correlation, so there will always be some confidence interval around your results. For example, if you crosscorrelate two independent white noise sequences, the cross correlation should be zero for all lags. So a priori you might say I want to constrain the cross correlation sequence to be identically zero. Of course, the estimate returned by crosscorr will not be identically zero for all lags. That's the utility of outputting the confidence bounds. So why not just output the estimate and use the confidence bounds to show your audience what is statistically different and not different from zero?

Other than that, you can always set any negative values in the sample cross correlation function to zero. Simply find those values in XCF that are negative and set them equal to zero. That is easily accomplished with a vector operation in MATLAB. But, as I stated above, I don't see why you want to do that.

Wayne

Wayne

Subject: parameter constraint on crossCorr

From: Rune Allnor

Date: 14 Mar, 2010 13:09:55

Message: 4 of 6

On 14 Mar, 10:21, "M Ladderman" <mirresim...@gmail.com> wrote:
> Is this is a stupid question or is the answer not easy.

It is a stupid question, for two reasons:

1) The fact that you *expect* correlations in the
   range [0,1] have no effects on what *actually*
   happens. If your expectations are wrong, the
   restriction will prevent you from finding out
   the fact.

2) If your expectations are warrented - that there
   exists some constraint on the process that forces
   the correlation to the range [1,1] - you don't need
   to restrict the computational results. The results
   will end up in that range anyway.

Rune

Subject: parameter constraint on crossCorr

From: John D'Errico

Date: 14 Mar, 2010 13:47:03

Message: 5 of 6

"M Ladderman" <mirresimons@gmail.com> wrote in message <hni9q0$6ln$1@fred.mathworks.com>...
> Is this is a stupid question or is the answer not easy. thanks for reading this mssg again, sorry to move it up in this way but I am struggling with it.
>
>
> "M Ladderman" <mirresimons@gmail.com> wrote in message <hndolo$rqf$1@fred.mathworks.com>...
> > dear all,
> >
> > I want to constrain the crossCorr function to return parameters/solutions between 0-1, because a priori I do not expect any negative relationships.
> >
> > Is there an easy way to do this that I am overlooking, thanks.

Rune says it all. Just because you believe something
is true about the correlations does not mean that it
will in fact come out that way.

If wishes were horses, beggars would ride.

If you absolutely want it to happen, and are willing
to "cook the books", then just replace any negative
correlations with zero. Problem solved.

John
John

Subject: parameter constraint on crossCorr

From: M Ladderman

Date: 15 Mar, 2010 15:18:05

Message: 6 of 6

Hi all,

Thanks for the comments. The reason why I want to apply such a constraint is because it is supposed to reduce the error of estimating spectrum from RGB singals using wiener estimation.
See this paper (I hope you guys can access it):
Title: Evaluation and unification of some methods for estimating reflectance spectra from RGB images
By: Ville Heikkinen, Reiner Lenz, Tuija Jetsu, Jussi Parkkinen, Markku Hauta-Kasari, and Timo Jääskeläinen

Maybe I misunderstood the text, but it seems to me contraining the crosscorrelations in the wiener estimation between 0 and 1 is reducing error of the estimation on to whole (this does not hold for the training set as I understand it, because this set is best explained by the unconstrained parameters).

I tried contacting the authors, but I do not get much feedback.

Thanks I hope this explains my problem a bit.



"John D'Errico" <woodchips@rochester.rr.com> wrote in message <hnipcm$oub$1@fred.mathworks.com>...
> "M Ladderman" <mirresimons@gmail.com> wrote in message <hni9q0$6ln$1@fred.mathworks.com>...
> > Is this is a stupid question or is the answer not easy. thanks for reading this mssg again, sorry to move it up in this way but I am struggling with it.
> >
> >
> > "M Ladderman" <mirresimons@gmail.com> wrote in message <hndolo$rqf$1@fred.mathworks.com>...
> > > dear all,
> > >
> > > I want to constrain the crossCorr function to return parameters/solutions between 0-1, because a priori I do not expect any negative relationships.
> > >
> > > Is there an easy way to do this that I am overlooking, thanks.
>
> Rune says it all. Just because you believe something
> is true about the correlations does not mean that it
> will in fact come out that way.
>
> If wishes were horses, beggars would ride.
>
> If you absolutely want it to happen, and are willing
> to "cook the books", then just replace any negative
> correlations with zero. Problem solved.
>
> John
> John

Tags for this Thread

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.

rssFeed for this Thread

Contact us at files@mathworks.com