# Built in cross correlation function?

**URL:** <https://community.wolfram.com/t/built-in-cross-correlation-function/24398>\
**Category:** Questions\
**Tags:** statistics-and-probability\
**Created:** [August 5, 2024, 9:15am UTC](https://community.wolfram.com/t/built-in-cross-correlation-function/24398 "2024-08-05T09:15:33Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![udibehar](https://avatars.discourse-cdn.com/v4/letter/u/eb8c5e/32.png) [@udibehar](https://community.wolfram.com/u/udibehar)\
**Post date:** [August 5, 2024, 9:15am UTC](https://community.wolfram.com/t/built-in-cross-correlation-function/24398/1 "2024-08-05T09:15:33Z")

</div>

Is there a built-in function to perform the cross correlation of two functions?

There is Convolve[f,g,x,y] which is similar but not identical.

![Hz2RUKOy.png](https://global.discourse-cdn.com/wolfram/original/2X/4/47f59e0844e35931eb99d99a30008adf17d75e87.png)

---

<div class="post-metadata">

**Author:** ![mfroeling](https://yyz1.discourse-cdn.com/wolfram/user_avatar/community.wolfram.com/mfroeling/32/23010_2.png) [@mfroeling](https://community.wolfram.com/u/mfroeling)\
**Post date:** [August 5, 2024, 1:21pm UTC](https://community.wolfram.com/t/built-in-cross-correlation-function/24398/2 "2024-08-05T13:21:41Z")

</div>

Think it is `ListCorrelate `.

---

<div class="post-metadata">

**Author:** ![robertnowak](https://yyz1.discourse-cdn.com/wolfram/user_avatar/community.wolfram.com/robertnowak/32/35992_2.png) [@robertnowak](https://community.wolfram.com/u/robertnowak)\
**Post date:** [August 6, 2024, 1:08pm UTC](https://community.wolfram.com/t/built-in-cross-correlation-function/24398/3 "2024-08-06T13:08:01Z")

</div>

Isn’t Correlation just reversing f[t] aka f[-t] and performing Convolution.

```
Convolve[f[-x],g[x],x,y]

```

---

<div class="post-metadata">

**Author:** ![robertnowak](https://yyz1.discourse-cdn.com/wolfram/user_avatar/community.wolfram.com/robertnowak/32/35992_2.png) [@robertnowak](https://community.wolfram.com/u/robertnowak)\
**Post date:** [August 6, 2024, 1:09pm UTC](https://community.wolfram.com/t/built-in-cross-correlation-function/24398/4 "2024-08-06T13:09:44Z")

</div>

This is for sequences only, not for continuous functions.
