Correlogram - Maple Help
For the best experience, we recommend viewing online help using Google Chrome or Mozilla Firefox.

Online Help

All Products    Maple    MapleSim


Statistics

  

Correlogram

  

create a column graph of the autocorrelations of data

 

Calling Sequence

Parameters

Description

Examples

Compatibility

Calling Sequence

Correlogram(X, options)

AutoCorrelationPlot(X, options)

Parameters

X

-

data set (1-dimensional), DataSeries

options

-

(optional) equation(s) of the form option=value where option is one of lags or nocaption or any option recognized by Statistics[ColumnGraph].

Description

• 

The Correlogram command computes autocorrelations of the data X and displays them as a column graph with dashed lines indicating the lower and upper 95% confidence bands for the normal distribution N⁡0,1L, where L is the size of the sample X, and a caption reporting how many of the displayed columns lie outside of the bands of plus or minus 2, 3, and 4 standard deviations respectively.

• 

The AutoCorrelationPlot command is provided as an alias.

Examples

> 

with⁡Statistics:

> 

L≔LinearAlgebra:-RandomVectorrow⁡10000,generator=0..1

L≔1,1,0,1,1,1,1,1,1,1,0,0,1,1,0,0,1,1,1,1,0,0,1,1,1,0,1,0,1,1,0,1,1,1,0,0,1,1,0,0,1,1,0,1,1,1,0,0,1,1,0,1,0,0,0,1,0,0,1,1,1,1,1,1,1,1,0,1,1,0,1,1,1,0,0,1,1,1,1,1,0,0,0,0,1,1,0,1,0,1,0,1,0,1,0,0,0,1,0,0,…,⋯ 9900 row vector entries not shown

(1)
> 

Correlogram⁡L

> 

Correlogram⁡L,lags=100

> 

Correlogram⁡L,nocaption

Autocorrelation can be used to create correlograms which are useful for detecting periodicity in signals.

> 

R≔seq⁡13⁢evalf⁡sin⁡17.2⁢i⁢cos⁡13.8⁢i+1.17+rand⁡0..1⁡⋅23,i=1..500

R≔0.50229243100.34915544230.33752941740.36724580470.30643730980.45629482700.41224221300.78955975220.58517589220.6199950623⋮500 element Vector[column]

(2)
> 

LineChart⁡R,size=0.5,golden

> 

Correlogram⁡R,lags=100

Periodicity in a time series can be observed with Autocorrelation.

> 

with⁡TimeSeriesAnalysis:

> 

Data≔Import⁡datasets/sunspots.csv,base=datadir,output=Matrix

Data≔DateMean Sunspot Number17005.0170111.0170216.0170323.0170436.0170558.0170629.0170720.0170810.0⋮⋮315 × 2 Matrix

(3)
> 

tsData≔TimeSeries⁡Data265..310,2

tsData≔Time seriesdata set46 rows of data:1979 - 2024

(4)
> 

Correlogram⁡GetData⁡tsData

Compatibility

• 

The Statistics[Correlogram] command was introduced in Maple 2019.

• 

For more information on Maple 2019 changes, see Updates in Maple 2019.

See Also

SignalProcessing:-AutoCorrelation

Statistics:-AutoCorrelation

Statistics:-ColumnGraph

TimeSeriesAnalysis