View License

Download apps, toolboxes, and other File Exchange content using Add-On Explorer in MATLAB.

» Watch video

Highlights from
Comparing Time Series using Semblance Analysis

4.6 | 5 ratings Rate this file 29 Downloads (last 30 days) File Size: 2 KB File ID: #18409 Version: 1.0
image thumbnail

Comparing Time Series using Semblance Analysis



22 Jan 2008 (Updated )

This program shows the correlation between two datasets as a function of both time and wavelength.

| Watch this File

File Information

Only in very simple situations can we describe the correlation between two time series as a single number. Often it varies both as a function of time, and of wavelength. Datasets may be uncorrelated on short timescales due to noise, but strongly correlated on larger wavelengths (eg annual).

This program will compute (using wavelets) the correlation as a function of both time and wavelength. Anticorrelation (s=-1) is displayed in blue, zero correlation (s=0) in green, and positive correlation (s=+1) in red.

The image shows the correlation between the oil price and the gold price, which is mostly red (implying strong positive correlation) except for a period between 1985 and 1995.

Note that it is valid to compare datasets that have been measured in different units using this method.

Required Products Wavelet Toolbox
MATLAB release MATLAB 7.4 (R2007a)
Tags for This File   Please login to tag files.
Please login to add a comment or rating.
Comments and Ratings (5)
26 Mar 2014 Fiona MacGill

Like the quick visual results

23 Mar 2011 James

James (view profile)

12 Dec 2009 Bryan

Bryan (view profile)

A very nice method for comparison. In your Computers & Geosciences paper from 2008 you included dot product plots for some of the time series but the code for these plots is not included above. Could you give any pointers on implementing this code?


28 Aug 2009 Robert

Robert (view profile)

06 Feb 2008 Olivier B.

Clever method. Hope to see future enhancements.

Contact us