time series comparison metric

조회 수: 2 (최근 30일)
Angela
Angela 2018년 12월 10일
댓글: Angela 2018년 12월 11일
I have two sets of time series (attached in text) and i want to compare them in a quantitative way.
My interest is in showing that the second series is more smooth than the first because
that is what it looks like visually. I am looking for a metric that shows that smoothness.
  댓글 수: 4
Rik
Rik 2018년 12월 11일
I was indeed thinking of a Fourier transform, but Chad's solution is probably better, as it is easier to explain.
Angela
Angela 2018년 12월 11일
Thank you for your answer.

댓글을 달려면 로그인하십시오.

채택된 답변

Chad Greene
Chad Greene 2018년 12월 10일
The simplest way is just to compare the standard deviations of each signal:
st1 = std(d1);
st2 = std(d2);
Although that approach might be dominated by low frequency variability. So you could go one step fancier just analyze the residuals after removing the moving mean. Pick some window for the moving mean (I'm using 500 below) and then compare the standard deviations:
d1_res = d1 - movmean(d1,500);
d2_res = d2 - movmean(d2,500);
std(d1_res)
std(d2_res)
  댓글 수: 1
Angela
Angela 2018년 12월 11일
Thank you. It worked. I got a nice reduction in the value std(d2_res).

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Correlation and Convolution에 대해 자세히 알아보기

태그

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by