What's the difference between convolution and crosscorrelation?

In summary, convolution and cross-correlation are two different mathematical operations used in signal processing. The convolution is used to create a filtered version of an input signal, while the cross-correlation is used to measure time delay or test the quality of a least-square fit. Both operations have useful properties and are commonly used in electrical engineering and statistical analysis.
  • #1
JonMuchnick
8
0
What's the difference between convolution and crosscorrelation?

I read the answer below, but I don't know enough math to understand it.
Could someone clarify it for me, please?



"The meaning is quite different. To see why in a simple setting, consider [itex]X[/itex] and [itex]Y[/itex] independent integer valued random variables with respective distributions [itex]p=(p_n)_n[/itex] and [itex]q=(q_n)_n[/itex].

The convolution [itex]p\ast q[/itex] is the distribution [itex]s=(s_n)_n[/itex] defined by [itex]s_n=\sum\limits_kp_kq_{n-k}=P[X+Y=n][/itex] for every [itex]n[/itex]. Thus, [itex]p\ast q[/itex] is the distribution of [itex]X+Y[/itex].
The cross-correlation [itex]p\circ q[/itex] is the distribution [itex]c=(c_n)_n[/itex] defined by [itex]c_n=\sum\limits_kp_kq_{n+k}=P[Y-X=n][/itex] for every [itex]n[/itex]. Thus, [itex]p\circ q[/itex] is the distribution of $Y-X$.

To sum up, [itex]\ast[/itex]acts as an addition while [itex]\circ[/itex] acts as a difference."
http://math.stackexchange.com/quest...onvolution-and-crosscorrelation/353309#353309
 
Physics news on Phys.org
  • #2
I generally only have encountered these in time series, so my input will come from there. The convolution is a simple (sometimes) way of modify two signals and producing a third modified signal that is often a filter. Typically you'll have two functions, one that goes on forever, the other that hangs around zero is called the filter. Therefore you can think of this third modified function is a filtered version of the input signal. The advantage of a convolution is that the operation is linear and thus the mathematics is simple.

You can think of a cross-correlation as a modified cross-covariance, except it's being divided by the product of the individual series. There's is a relationship between these two ideas. If you take the difference between the means and divide by the variance and take the convolution, you end up with the cross-correlation coefficient, which is used to test quality of a least-square fit.

I'm sure if this answered your question, but hopefully it points you in the right direction.
 
  • #3
" If you take the difference between the means and divide by the variance and take the convolution" How would you do that? Please give an example.
 
  • #4
Um, well you first get the means, then you divide it by the variances, and then apply the definition of the convolution. So, I'm going to ask you some basic questions: You do know how to find the mean, variance and follow the definition of a convolution, right? If not, then perhaps you need to step a few steps back.
 
Last edited:
  • #5
I might indeed need to go a few steps back. But does understanding this thing help you to understand why people use a minussign in convolution and why people use convolution in signalprocessing, what the benefit of a flipped signal as a result of the minussign is?
 
  • #6
I think that question is better suited in the electrical engineering forum. Typically, people use a convolution because a convolution has useful mathematical properties that makes handling the two signals much easier. One such property would be the convolution theorem, which I imagine would be extremely useful for an electrical engineer. In time series, you can use a cross-correlation to measure time delay. This also would seem useful for an electrical engineering doing signal process. There are other useful things you can use the cross-correlation in statistical analysis, which is what my first post was mainly getting it. So, if you want a more detail response on how to handle these with regards to signal processing, I would post in the electrical engineering sub-forum.
 

Related to What's the difference between convolution and crosscorrelation?

What is the definition of convolution?

Convolution is a mathematical operation that combines two functions to produce a third function that expresses how the shape of one function is modified by the other function. It is commonly used in signal processing to analyze the relationship between two signals.

What is the definition of crosscorrelation?

Crosscorrelation is also a mathematical operation that measures the similarity between two signals as they are shifted relative to each other. It is commonly used in signal processing to identify patterns and relationships between two signals.

What is the main difference between convolution and crosscorrelation?

The main difference between convolution and crosscorrelation is the direction in which the signals are shifted. In convolution, one signal is flipped and shifted over the other, while in crosscorrelation, both signals are shifted in the same direction. This results in different output functions and different applications for the two operations.

Can convolution and crosscorrelation be used interchangeably?

No, convolution and crosscorrelation cannot be used interchangeably. Although they have some similarities, they serve different purposes and produce different results. For example, convolution is commonly used for smoothing and filtering signals, while crosscorrelation is used for identifying patterns and relationships between signals.

Which operation is more commonly used in image processing?

In image processing, convolution is more commonly used than crosscorrelation. This is because convolution allows for the application of filters and kernels, which are essential for enhancing and manipulating images. Crosscorrelation is still used in certain applications, such as pattern recognition and image alignment.

Similar threads

Replies
1
Views
1K
  • Advanced Physics Homework Help
Replies
7
Views
1K
  • Set Theory, Logic, Probability, Statistics
Replies
2
Views
873
  • Math Proof Training and Practice
2
Replies
61
Views
6K
  • Set Theory, Logic, Probability, Statistics
Replies
4
Views
2K
  • Introductory Physics Homework Help
Replies
1
Views
978
  • Topology and Analysis
Replies
3
Views
2K
  • Engineering and Comp Sci Homework Help
Replies
1
Views
1K
  • Set Theory, Logic, Probability, Statistics
Replies
7
Views
1K
  • Math Proof Training and Practice
3
Replies
100
Views
7K
Back
Top