Stable Fit to Rescaled Data

This is an in depth look at a non-stationary model of a stable distribution with varying scale factor, which has serial dependence.

This notebook develops an approach to fitting distribution by adjusting the data.  In general modifying data is a bad idea, especially when the assumptions are not known to be true, so these methods are not recommended for fitting financial data.  The goal rather is to look at how well the idea performs, before pursuing other methods such as a mixture distribution.  The hypothesis is to consider the possibility that the underlying market distribution is a stable distribution with a scale factor, γ, which varies every day, and attempt to modify the data to standardize the scale.  The time-series is the same that is demonstrated in detail in MarketReturnDistribution.

Start ... Tuesday 3 January 1950

End ... Friday 25 October 2013

Below is a graph of the daily changes in log returns for the S&P 500 series since 1950.  Epochs of high and low volatility tend to cluster together.  The strategy is to use this dependent structure to determine the scale factor for the data in small blocks; in this case the time-series is divided into 63 market day or about 3 month blocks.

Graphics:SP 500 Log Returns

What is needed next is a reasonably accurate method to estimate the stable scale factor on a small sample.  There is a method based on the stable characteristic function which is independent of other parameters.  It is outlined below.

The stable characteristic function, φ, may be written in polar coordinate form, RescaledStableFit_2.gif.

RescaledStableFit_3.gif

The absolute value of the characteristic function, |φ(t)|, the r factor, is the symmetric strictly stable characteristic function, where β = 0 and δ = 0.

RescaledStableFit_4.gif

The characteristic function can be approximated from a data sample, using the formula for the empirical characteristic function, ecf, where RescaledStableFit_5.gif, {k ∈ {1, ..., n}, are the sample random variables.

RescaledStableFit_6.gif

Equation (2) offers the possibility of quickly approximating γ at the point t = 1, by scaling the set of random variables so that γ = 1 and the characteristic function at this point = RescaledStableFit_7.gif.  Equation (4) may be solved numerically for γ.

RescaledStableFit_8.gif

The method is less accurate than maximum likelihood fitting, but the methods are comparably bad for small sample sizes.  The idea is that the method doesn’t have to be too precise, because the day to day variation in the magnitude of the log returns is large.

Graphics:SP 500 Stable Scale Factor

The variation in the method is also comparable to another method of measuring scale, the second L Moment.  The stable scale factor, γ, can be derived from the second L Moment, RescaledStableFit_10.gif by the following linear relationship.

RescaledStableFit_11.gif

This relationship requires the assumption that the tail exponent, α, of the stable distribution remains stationary, but also can serve to substantiate the accuracy of the method, although neither method could be considered a gold standard for measuring the scale factor of a stable distribution over a small sample size.

Graphics:SP 500 Second L Moment

The graph below shows the linear regression between the two methods for determining a stable scale factor.

Graphics:Linear Regression  λ  as a function of γ                            2

From the slope of the fit with the assumption that α is stationary, we can derive and estimate for α.

RescaledStableFit_14.gif

The ANOVA table and the RSquared calculation from the linear regression are below.

DF SS MS F-Statistic P-Value
x 1 0.00139175 0.00139175 2802.44 1.56467*10^^-138
Error 252 0.000125148 4.96619*10^^-7
Total 253 0.00151689
R Squared 0.917497

The graph below shows the rescaled returns, which were derived by dividing each block of returns by the estimated scale factor for that block.  This division should have the effect of bringing the scale factor, γ, of the adjusted returns to 1.0.

Graphics:SP 500 Rescaled Log Returns Estimated γ = 1.02673

The autocorrelation functions of the absolute value of the raw returns and the absolute value of the rescaled returns shows that most of the serial dependence has been eliminated by the rescaling.

Graphics:Autocorrelation Raw Abs[Returns] - Red Abs[Rescaled Returns] - Blue

The log log plot of the tail fit shows that a stable fit to the rescaled returns still has a heavier tail in the data, but the tails break away further out on each tail.

Graphics:Log Log Distribution Function Stable Fit

Stable Parameters, {α, β, γ, δ}: {1.86279, -0.127942, 1.04123, 0.0885578}

It can be seen that the fit of the rescaled data is much better on the tails and α is considerably higher than the fit to the same data in the MarketReturnDistribution notebook.  Ultimately, however, rescaling the data does not change the extreme tail behavior of a data set.  The extreme tail is still lighter than the stable fit, with the fit tail breaking away from the data tails at the p = {0.004, 0.996} tail level, so a large central part of the distribution is better fit by a stable distribution.  

The charts below estimate the tail exponents for the rescaled log returns using the same method shown in MarketReturnDistribution notebook.  And α is still well above the stable regime.

Graphics:Quantile Plot Log Right Tail Data vs. ExponentialDistribution[1]

Right Tail exponent, α = 3.67125 Fit ANOVA Table
DF SS MS F-Statistic P-Value
t 1 11.1023 11.1023 11964.2 7.86381*10^^-151
Error 158 0.146618 0.00092796
Total 159 11.2489
R Squared 0.986966

Graphics:Quantile Plot Log Left Tail Data vs. ExponentialDistribution[1]

Left Tail exponent, α = 3.54347 Fit ANOVA Table
DF SS MS F-Statistic P-Value
t 1 11.9174 11.9174 6272.49 4.46554*10^^-129
Error 158 0.300193 0.00189995
Total 159 12.2176
R Squared 0.97543

What does all this mean?  Probably not very much, but it seems clear that rescaling the data does not eliminate distal power tail behavior which is lighter than supported by a stable distribution.  The theoretical implications are the most important.  Stable distributions evolve from the summation of identically distributed, independent random variables, which have a tail exponent, α < 2.  If α ≥ 2, the distribution should have finite variance and the generalized central limit theorem should eventually lead to a normal distribution behavior.  The rescaling method did seem to remove the serial dependent structure shown in the autocorrelation of absolute returns.  

Consequently the idea that price formation arises from the sums of many very small differences in price or log returns seems not to be probable as this index is currently derived from hundreds of millions of transactions daily.  Mathematica users may download the notebook and substitute the log return data for a set of stable random variables multiplied by a slowly varying scale function and demonstrate that the initial stable distribution parameters can indeed be recovered by the methods shown here.  

When intraday price data are examined closely a lot more structure is revealed; there is a serial dependent structure which evolves through the day with higher scale factor and volume per minute near the open and close of trading, compared with the transactions in the middle of the day.  Yet when the tail behavior of the intraday data is examined, it also shows a power tail structure with a tail exponent, α, greater than 2.



Financial Data Analysis Home



© Copyright 2013 Robert H. Rimmer, Jr.    Sun 27 Oct 2013

Spikey Created with Wolfram Mathematica 9.0