4.75

4.8 | 4 ratings Rate this file 31 Downloads (last 30 days) File Size: 2 KB File ID: #18409
image thumbnail

Comparing Time Series using Semblance Analysis

by Gordon Cooper

 

22 Jan 2008 (Updated 22 Jan 2008)

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

| Watch this File

File Information
Description

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  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
Comments and Ratings (4)
06 Feb 2008 Olivier B.

Clever method. Hope to see future enhancements.

28 Aug 2009 Robert  
12 Dec 2009 Bryan

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?

Thanks.

23 Mar 2011 James  
Please login to add a comment or rating.
Tag Activity for this File
Tag Applied By Date/Time
time frequency Gordon Cooper 22 Oct 2008 09:43:47
wavelets Gordon Cooper 22 Oct 2008 09:43:47
crosscorrelation Gordon Cooper 22 Oct 2008 09:43:47
signal processing Gordon Cooper 22 Oct 2008 09:43:47
time series Gordon Cooper 22 Oct 2008 09:43:47
wavelets Robert 28 Aug 2009 17:59:35
wavelets carlo montes 16 Feb 2010 14:53:23
time series Bert Jans 15 Mar 2010 07:37:51
crosscorrelation Martin 12 May 2010 08:16:45
signal processing Jeffery 06 Jan 2011 17:18:57
time series Ariel 21 Sep 2011 09:05:04
crosscorrelation IOANNA gpori 17 Dec 2011 13:56:15
signal processing IOANNA gpori 17 Dec 2011 13:56:19
time frequency IOANNA gpori 17 Dec 2011 13:56:22
time series IOANNA gpori 17 Dec 2011 13:56:22
crosscorrelation Tanuj 09 Jan 2012 13:04:39

Contact us at files@mathworks.com