Examples will be worked out using two time series, from an ADCP moored for a two-week period, recording one second samples of pressure and velocity. The variable
is the pressure measured at the bottom in 15 m water, and
is the vertical velocity measured
beneath the surface, or
above the bottom. A 20 second time series of both variables is ilustrated in Fig. xx
There is a distinction between Covariance and Correlation. The covariance is
![]() |
(28) |
whereas the correlation is the normalized covariance:
![]() |
(29) |
This guarantees that the correlation is between
and
.
It is also critical to distinguish between Correlation and Cross-correlation, also known as Lagged correlation. In matlab xcov(w,p,maxlag,’coeff’) returns an array sized
long that has the values of the lagged correlations, defined as:
![]() |
(30) |
(What is the difference between xcov and xcorr??)