AbsoluteCorrelationFunction
✖
AbsoluteCorrelationFunction
estimates the absolute correlation function at lags hspec from data.
represents the absolute correlation function at lags hspec for the random process proc.
represents the absolute correlation function at times s and t for the random process proc.
Details

- AbsoluteCorrelationFunction is also known as the autocorrelation function.
- The following specifications can be given for hspec:
-
τ at time or lag τ {τmax} unit spaced from 0 to τmax {τmin,τmax} unit spaced from τmin to τmax {τmin,τmax,dτ} from τmin to τmax in steps of dτ {{τ1,τ2,…}} use explicit {τ1,τ2,…} - AbsoluteCorrelationFunction[{x1,…,xn},h] is equivalent to
.
- When data is TemporalData containing an ensemble of paths, the output represents the average across all paths.
- AbsoluteCorrelationFunction for a process proc with value x[t] at time t is given by:
-
Expectation[x[s] x[t]] for a scalar-valued process Expectation[x[s]⊗x[t]] for a vector-valued process - The symbol ⊗ represents KroneckerProduct.
- AbsoluteCorrelationFunction[proc,h] is defined only if proc is a weakly stationary process and is equivalent to AbsoluteCorrelationFunction[proc,h,0].
- The process proc can be any random process such as ARMAProcess and WienerProcess.
Examples
open allclose allBasic Examples (4)Summary of the most common use cases
Estimate the absolute correlation function at lag 2:

https://wolfram.com/xid/0tqflznxbkgi9u-7xwnvr

Sample the absolute correlation function for a random sample from an autoregressive time series:

https://wolfram.com/xid/0tqflznxbkgi9u-mzk4

https://wolfram.com/xid/0tqflznxbkgi9u-4ic4n4

The absolute correlation function for a discrete-time process:

https://wolfram.com/xid/0tqflznxbkgi9u-64o9n


https://wolfram.com/xid/0tqflznxbkgi9u-du47fs

The absolute correlation function for a continuous-time process:

https://wolfram.com/xid/0tqflznxbkgi9u-jlgu4j


https://wolfram.com/xid/0tqflznxbkgi9u-cb5pyd

Scope (13)Survey of the scope of standard use cases
Empirical Estimates (7)
Estimate the absolute correlation function for some data at lag 5:

https://wolfram.com/xid/0tqflznxbkgi9u-e2gx6r

Obtain empirical estimates of the correlation function up to lag 9:

https://wolfram.com/xid/0tqflznxbkgi9u-lpyp8t

Compute the absolute correlation function for lags 1 to 9 in steps of 2:

https://wolfram.com/xid/0tqflznxbkgi9u-bdsgu1

Compute the absolute correlation function for a time series:

https://wolfram.com/xid/0tqflznxbkgi9u-fk4573
The absolute correlation function of a time series for multiple lags is given as a time series:

https://wolfram.com/xid/0tqflznxbkgi9u-83mv4


https://wolfram.com/xid/0tqflznxbkgi9u-5ep7bs

Estimate the absolute correlation function for an ensemble of paths:

https://wolfram.com/xid/0tqflznxbkgi9u-f8uvhg


https://wolfram.com/xid/0tqflznxbkgi9u-myqy3

https://wolfram.com/xid/0tqflznxbkgi9u-c1pvcs

Compare empirical and theoretical absolute correlation functions:

https://wolfram.com/xid/0tqflznxbkgi9u-jmctrn

https://wolfram.com/xid/0tqflznxbkgi9u-ffbta1

https://wolfram.com/xid/0tqflznxbkgi9u-nfsjnw

Plot the absolute cross-correlation for vector data:

https://wolfram.com/xid/0tqflznxbkgi9u-5ejkpt

https://wolfram.com/xid/0tqflznxbkgi9u-emzkrl

Random Processeses (6)
The absolute correlation function for a weakly stationary discrete-time process:

https://wolfram.com/xid/0tqflznxbkgi9u-jlvt9


https://wolfram.com/xid/0tqflznxbkgi9u-c08pf3

The absolute correlation function only depends on the antidiagonal :

https://wolfram.com/xid/0tqflznxbkgi9u-drb7n6


https://wolfram.com/xid/0tqflznxbkgi9u-9gw5a

The absolute correlation function for a weakly stationary continuous-time process:

https://wolfram.com/xid/0tqflznxbkgi9u-bsxrpt


https://wolfram.com/xid/0tqflznxbkgi9u-6xr1r

The absolute correlation function only depends on the antidiagonal :

https://wolfram.com/xid/0tqflznxbkgi9u-ct9g81


https://wolfram.com/xid/0tqflznxbkgi9u-drlf7

The absolute correlation function for a non-weakly stationary discrete-time process:

https://wolfram.com/xid/0tqflznxbkgi9u-rlsomi


https://wolfram.com/xid/0tqflznxbkgi9u-spx2b3

The absolute correlation function depends on both time arguments:

https://wolfram.com/xid/0tqflznxbkgi9u-8vday0


https://wolfram.com/xid/0tqflznxbkgi9u-iykr60

The absolute correlation function for a non-weakly stationary continuous-time process:

https://wolfram.com/xid/0tqflznxbkgi9u-5eak2t


https://wolfram.com/xid/0tqflznxbkgi9u-sl444x

The absolute correlation function depends on both time arguments:

https://wolfram.com/xid/0tqflznxbkgi9u-sv9v1p


https://wolfram.com/xid/0tqflznxbkgi9u-cf7247

The correlation function for some time series processes:

https://wolfram.com/xid/0tqflznxbkgi9u-89jvi

https://wolfram.com/xid/0tqflznxbkgi9u-3bfn4x

Absolute cross-correlation plots for a vector ARProcess:

https://wolfram.com/xid/0tqflznxbkgi9u-soinyv

https://wolfram.com/xid/0tqflznxbkgi9u-izvng2

Applications (2)Sample problems that can be solved with this function
Determine whether the following data is best modeled with an MAProcess or an ARProcess:

https://wolfram.com/xid/0tqflznxbkgi9u-c3c54

It is difficult to determine the underlying process from sample paths:

https://wolfram.com/xid/0tqflznxbkgi9u-xt365

https://wolfram.com/xid/0tqflznxbkgi9u-gd19j1

The absolute correlation function of the data decays slowly:

https://wolfram.com/xid/0tqflznxbkgi9u-ka6ks

ARProcess is clearly a better candidate model than MAProcess:

https://wolfram.com/xid/0tqflznxbkgi9u-9y8np

Use the absolute correlation function to determine if a process is mean ergodic:

https://wolfram.com/xid/0tqflznxbkgi9u-rmoejj
The process is weakly stationary:

https://wolfram.com/xid/0tqflznxbkgi9u-uv261e

Calculate the absolute correlation function:

https://wolfram.com/xid/0tqflznxbkgi9u-1drnsx

Find the value of the strip integral:

https://wolfram.com/xid/0tqflznxbkgi9u-p270ef

Check if the limit of the integral is 0 to conclude mean ergodicity:

https://wolfram.com/xid/0tqflznxbkgi9u-77w6az

Properties & Relations (13)Properties of the function, and connections to other functions
Sample absolute correlation function is a biased estimator for the process absolute correlation function:

https://wolfram.com/xid/0tqflznxbkgi9u-2r99uh
Calculate the sample absolute correlation function:

https://wolfram.com/xid/0tqflznxbkgi9u-bmgyvh


https://wolfram.com/xid/0tqflznxbkgi9u-ehmlan

Absolute correlation function for the process:

https://wolfram.com/xid/0tqflznxbkgi9u-oz6gf8


https://wolfram.com/xid/0tqflznxbkgi9u-bfv26f

Absolute correlation function for a list can be calculated using AbsoluteCorrelation:

https://wolfram.com/xid/0tqflznxbkgi9u-jo60yq
Calculate absolute correlation function for the data:

https://wolfram.com/xid/0tqflznxbkgi9u-fcpmch


https://wolfram.com/xid/0tqflznxbkgi9u-do8q1x


https://wolfram.com/xid/0tqflznxbkgi9u-jixg72

AbsoluteCorrelationFunction is the off-diagonal entry in the absolute correlation matrix:

https://wolfram.com/xid/0tqflznxbkgi9u-c8x3e0

https://wolfram.com/xid/0tqflznxbkgi9u-cs2zy3


https://wolfram.com/xid/0tqflznxbkgi9u-hpmt


https://wolfram.com/xid/0tqflznxbkgi9u-dmok3u

Sample absolute correlation function at lag 0 estimates the second Moment:

https://wolfram.com/xid/0tqflznxbkgi9u-0zuug9


https://wolfram.com/xid/0tqflznxbkgi9u-qrqcji


https://wolfram.com/xid/0tqflznxbkgi9u-sxji9t

Sample absolute correlation function is related to CovarianceFunction:

https://wolfram.com/xid/0tqflznxbkgi9u-zusqzf

https://wolfram.com/xid/0tqflznxbkgi9u-00kicv


https://wolfram.com/xid/0tqflznxbkgi9u-q4nm4x


https://wolfram.com/xid/0tqflznxbkgi9u-b4n3g4

Sample absolute correlation function is related to CorrelationFunction:

https://wolfram.com/xid/0tqflznxbkgi9u-qr7h7n

https://wolfram.com/xid/0tqflznxbkgi9u-klbxo4


https://wolfram.com/xid/0tqflznxbkgi9u-or7b5

Compare to the sample correlation function:

https://wolfram.com/xid/0tqflznxbkgi9u-mebes9


https://wolfram.com/xid/0tqflznxbkgi9u-innlhe

Use Expectation to calculate the absolute correlation function:

https://wolfram.com/xid/0tqflznxbkgi9u-d76wac

https://wolfram.com/xid/0tqflznxbkgi9u-kf4qex


https://wolfram.com/xid/0tqflznxbkgi9u-4zi09y


https://wolfram.com/xid/0tqflznxbkgi9u-hhorvz

The absolute correlation function is related to the Moment function:

https://wolfram.com/xid/0tqflznxbkgi9u-o1uye

https://wolfram.com/xid/0tqflznxbkgi9u-4mmjhb

Verify equality , where
is the
moment function:

https://wolfram.com/xid/0tqflznxbkgi9u-9q3x99


https://wolfram.com/xid/0tqflznxbkgi9u-j7bfw8

The absolute correlation function is related to the CovarianceFunction
:

https://wolfram.com/xid/0tqflznxbkgi9u-esdh0p

https://wolfram.com/xid/0tqflznxbkgi9u-boa2zq

Verify equality , where
is the mean function:

https://wolfram.com/xid/0tqflznxbkgi9u-3iqn1


https://wolfram.com/xid/0tqflznxbkgi9u-bh0hcn

The absolute correlation function equals CovarianceFunction when the mean of the process is zero:

https://wolfram.com/xid/0tqflznxbkgi9u-iemvfy


https://wolfram.com/xid/0tqflznxbkgi9u-ni991p


https://wolfram.com/xid/0tqflznxbkgi9u-0t69ag

The absolute correlation function is invariant for ToInvertibleTimeSeries:

https://wolfram.com/xid/0tqflznxbkgi9u-lzmm3o

https://wolfram.com/xid/0tqflznxbkgi9u-sc3ri6


https://wolfram.com/xid/0tqflznxbkgi9u-0gzrsk


https://wolfram.com/xid/0tqflznxbkgi9u-ng1jmj

The absolute correlation function is not invariant to centralizing:

https://wolfram.com/xid/0tqflznxbkgi9u-d9qtiq

https://wolfram.com/xid/0tqflznxbkgi9u-3y2jx0


https://wolfram.com/xid/0tqflznxbkgi9u-qwlcfc
Compare absolute correlation functions:

https://wolfram.com/xid/0tqflznxbkgi9u-n5g69

PowerSpectralDensity is a transform of the absolute correlation function for mean zero processes:

https://wolfram.com/xid/0tqflznxbkgi9u-hmwxsw

Use FourierSequenceTransform with appropriate parameters:

https://wolfram.com/xid/0tqflznxbkgi9u-czau7j

Compare to the power spectrum:

https://wolfram.com/xid/0tqflznxbkgi9u-jr5e2r


https://wolfram.com/xid/0tqflznxbkgi9u-tlkjuj

Possible Issues (1)Common pitfalls and unexpected behavior
AbsoluteCorrelationFunction output may contain DifferenceRoot:

https://wolfram.com/xid/0tqflznxbkgi9u-zoh06c

Use FunctionExpand to recover explicit powers:

https://wolfram.com/xid/0tqflznxbkgi9u-eoxost

Wolfram Research (2012), AbsoluteCorrelationFunction, Wolfram Language function, https://reference.wolfram.com/language/ref/AbsoluteCorrelationFunction.html.
Text
Wolfram Research (2012), AbsoluteCorrelationFunction, Wolfram Language function, https://reference.wolfram.com/language/ref/AbsoluteCorrelationFunction.html.
Wolfram Research (2012), AbsoluteCorrelationFunction, Wolfram Language function, https://reference.wolfram.com/language/ref/AbsoluteCorrelationFunction.html.
CMS
Wolfram Language. 2012. "AbsoluteCorrelationFunction." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/AbsoluteCorrelationFunction.html.
Wolfram Language. 2012. "AbsoluteCorrelationFunction." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/AbsoluteCorrelationFunction.html.
APA
Wolfram Language. (2012). AbsoluteCorrelationFunction. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/AbsoluteCorrelationFunction.html
Wolfram Language. (2012). AbsoluteCorrelationFunction. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/AbsoluteCorrelationFunction.html
BibTeX
@misc{reference.wolfram_2025_absolutecorrelationfunction, author="Wolfram Research", title="{AbsoluteCorrelationFunction}", year="2012", howpublished="\url{https://reference.wolfram.com/language/ref/AbsoluteCorrelationFunction.html}", note=[Accessed: 25-March-2025
]}
BibLaTeX
@online{reference.wolfram_2025_absolutecorrelationfunction, organization={Wolfram Research}, title={AbsoluteCorrelationFunction}, year={2012}, url={https://reference.wolfram.com/language/ref/AbsoluteCorrelationFunction.html}, note=[Accessed: 25-March-2025
]}