For a certain product I have a data series with its price for each day over a long period of time (20 years). I want to investigate how the fluctuation of the price changes over the whole time. Therefore I need a measure for the fluctuation of the price at a certain time.

First I thought to take the standard derivation of all prices for each year and to look, how it changed. But I guess this method might not be the best one. Take the example of a year in which the price of the product increases by 1$ each day. In the end I would have a nonzero standard derivation of all prices in this year although the price development does not fluctuate. Is there a better measurement for the fluctuation of a given data series?


2 Answers 2


Let's say you have prices series $p_t$. Get the log difference of it $r_t=\Delta\ln y_t\equiv \ln y_t-\ln y_{t-1}$. The $r_t$ would be your price fluctuations. Now, you can look at the square $r_t^2$ which will give you an idea about the variance of fluctuations (if $E[r_t]\sim0$). Here's an example for oil prices.

enter image description here

MATLAB code:

p = d.Data(:,2);
dates = d.Data(:,1);
title('Crude Oil Prices: WTI')

r = price2ret(p,[],'Continuous')
title('Price returns')

title('Sq. Price returns')
  • $\begingroup$ Thanks for your answer. We have $y_t=p_t$, right? $\endgroup$ Commented Jan 2, 2015 at 12:04
  • $\begingroup$ Right, I'll fix the typo $\endgroup$
    – Aksakal
    Commented Jan 2, 2015 at 12:23

The usual approach would be to look at the returns (i.e., log-price differences) rather than the raw prices. If the relative changes in the prices are constant (or vary around a certain constant average growth rate), then the returns will be (or vary around a) constant.

And then you can either use exploratory or ad hoc approaches like the one you describe above (checking the means and standard deviations per year) or try a somewhat more formal analysis (e.g., testing and dating structural breaks).


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.