Memory and Correlation: DR Mohamed Seghier
Memory and Correlation: DR Mohamed Seghier
Correlation
Dr Mohamed Seghier
By Cmglee - Own work, CC BY-SA 3.0,
https://commons.wikimedia.org/w/index.php?curid=20206883
Memory: present behavior (or output) is influenced by past
behaviors (inputs or outputs).
➔ The ability of a system to increase, decrease or redistribute
its energy.
Example:
Which systems have memory?
𝑦 = 𝑎𝑥2 + 𝑏𝑥 + 𝑐
𝑦 𝑛 = 𝑎𝑥 𝑛 + 𝑏𝑥[𝑛 − 1]
𝑡
𝑦(𝑡) = න 𝑥 𝑡 𝑑𝑡
0
𝑦 𝑛 − 𝑎𝑦 𝑛 − 1 = 𝑥[𝑛] |a|<1, y[-1]=y0.
T is time-invariant if shifting the input by t0 only results in shifting the output
by the same t0.
If T[x(t)] = y(t), then T[x(t – t0)] = y(t – t0)
https://en.wikipedia.org/wiki/Time-invariant_system
A transformation T is causal if y(t) at any time depends on x(t) at that time
or at earlier times but not on the input at future times.
T is causal if, for any t0, y(t0) depends on x(t) for t<= t0 only.
➔The output cannot anticipate the input.
𝑅(−𝜏) = 𝑅(𝜏)
|𝑅 𝜏 | ≤ |𝑅(0)|
1
= cos(Ω𝜏)
2
➔ The autocorrelation is periodic with period 2π/Ω and is
independent of the phase φ.
Example:
Autocorrelation is a mathematical
tool for finding repeating patterns,
such as the presence of a periodic
signal obscured by noise
➔ the autocorrelation of
a periodic function is,
itself, periodic with the
same period.
Example: https://doi.org/10.1016/S0922-3487(08)70227-2
Two signals obtained from an experiment involving a Autocorrelation functions of the signals shown in
human pressing a pedal with his right foot. (a) The EMG of the (a) shows the autocorrelation function of the absolute
soleus muscle and (b) the force or torque applied to the pedal are value of the EMG and (b) shows the autocorrelation function of
represented. the force.
Randomness
This randomness is ascertained by computing
autocorrelations for data values at varying time lags.
If random, such autocorrelations should be near
zero for any and all time-lag separations. If non-
random, then one or more of the autocorrelations
will be significantly non-zero.
How to create confidence intervals for the autocorrelation sequence of a white
noise process?
https://www.mathworks.com/help/signal/ug
/confidence-intervals-for-sample-
autocorrelation.html
Two random signals measured from two different systems. The autocorrelation functions of the two signals are quite different
They seem to behave differently, but it is difficult to from each other: in (a) the decay is monotonic to both sides from the
characterize the differences based only on a visual analysis. peak value of 1 at t¼0, and in (b) the decay is oscillatory. These major
differences between the two random signals are not visible directly
https://doi.org/10.1002/9780471740360.ebs0094 from their time courses.
Example:
If x(t) = A, and x(t) is nonzero only on the interval [0 T0], then R(τ) = A2
If x(t) = A + f(t), then Rx (τ) = A2 + Rf(τ)
𝑅𝑥 𝜏 = 𝐶𝑥 𝜏 + 𝑥ҧ 2
thermodilution
Cross-correlation function
https://doi.org/10.1186/1475-925X-11-24
Example:
The values of the normalized Crosscorrelation range between 1 (when the matching entities
are exactly the same) and −1 (when the matching entities are inverses of each other).
A value of zero indicates no relationship existing between the entities.
Normalized Correlation Coefficient
Correlation with no displacement
This coefficient, the Pearson product-moment correlation
coefficient or Pearson’s correlation coefficient, r, was
invented by Karl Pearson with Florence Nightingale David.
Example: