Causal Wavelet Analysis and Boundary Effects in Financial Series
Summary
The document discusses the difficulty of using wavelet transforms causally on finite financial time series. Boundary handling methods such as padding, symmetry, polynomial extrapolation, or forecasting an extension can influence coefficients near the endpoint. Forecast-based extensions avoid some edge effects only by introducing forecast error, while boundary coefficients are therefore dependent on assumptions about data outside the observed sample.
The response outlines several alternatives: a redundant Haar-style linear pass filter that shifts across the series, excluding boundary coefficients (at the cost of discarding many coefficients, especially at higher resolutions), or designing filters adapted to interval boundaries. It cautions that specialized filters embed assumptions and can make coefficients less comparable. It also raises choices around signal type, filter length, frequency representation, and shift sensitivity. A separate response claims Haar MODWT can avoid right-edge distortion causally, but gives no supporting detail; the broader answer treats clean edge coefficients for orthogonal wavelets as unavailable in general. No empirical trading results are presented.
Key ideas
- Wavelet coefficients near the endpoint of a finite series are affected by boundary treatment.
- Forecasting an extension can shift boundary distortion into forecast error.
- A redundant Haar-style filter or interval-adapted filters offer alternatives with their own tradeoffs.
- Discarding boundary coefficients removes usable data, particularly at higher resolutions.
- Filter choice should consider signal structure, frequency representation, and shift sensitivity.
Tags
Full text
# Practical Usage of Wavelets with Real Time Data
# Practical Usage of Wavelets with Real Time Data
There are a lot of papers out there which make attempts to forecast or discuss the benefits of wavelets for frequency decomposition.
Oddly, very few discuss the huge boundary effects that are present when used with a non infinite series (most cases I can think of in finance).
Do any practical usages exist for wavelets without the benefit of hindsight?
I've gone through MODWT, SWT, DWT and CWT these all look great on an existing series but terrible when used in a causal sense.
Has anyone out there had any luck through extending their end point via Kalman or something else before applying a wavelet?
## Answer by Barnaby (score 6)
https://quant.stackexchange.com/a/10675
The issue with any extension method you may use is that it has influence on the coefficents post boundary one way or another. Traditional methods (zero padding, symetric, polynomial extrapolation etc) carry because of the circularity of the wavelet function incluence into the coefficients. You can attempt to use any of the extensions commented if the signal you are considering is symetrical or if the signal ends and start with 0 or if it is periodic, however be very carefull in considering the boundary coefficients if your signal is not of any cathegories mentioned as in forecasting the signal forward you may have no edge effect but you will carry an error when you extrapolate (extrapolated signal vs you dont know actual). So your edge coefficients will be as good as your forecast, in addition depending which one you use orthogonatily may be lost. Therefore if your interest is in obtaining non affected coefficient on the edges for prediction to my knowledge is not possible with orthogonal wavelets. To forecast on the edges you can use the following methods:
A linear pass filter - This is using the redundant Haar wavelet replacing the symmetric low pass filter (B3 Spline filter) by a simple non symmetric filter. Then the scaling coefficients are calculated { ½ * (smoothed data t-1 -1(t)+smoothed data t-1 (t-2^j-1))} while the wavelet coefficients is obtained by calculating the difference between two successive smoothed versions (two neighboring resolution levels), effectively shifting the wavelet function on the time series data one point at a time, instead of 2j points at a time as with the normal DWT, where j denotes the current level of resolution.
You can also use non boundary coefficients for prediction. However you will have to exclude a large number of coefficients at each side of the signal per level of resolution (more on the right than on the left due to the window used by the WT) and boundary coefficients increase the higher the level. So you are realistically left with the lowest resolution levels which have the lower number of boundary coefficients (However this is where most of the energy of the signal is contained).
Alternatively, you can design an special filter to replace original filters at the signal borders (including the boundary elements). Such filters are adapted to interval boundaries and thus, do not require signal values outside the interval. However the function employed carries assumptions and can make the comparison of edge coeficients with rest of the transform function not straight forward or correct.
Other considerations:
- Is your signal continous or discrete (MRD is good for high frequency while discrete for less frequent evently spaced signals)
- Selection of length of the filter
- How good is the frequency representation of the different wavelets.
- Shift sensitivity, small shifts in the input signal can cause major variations in the distribution of energy between DWT coefficients at different scales.
I hope this helps
## Answer by Emiliano Rosso (score 0)
https://quant.stackexchange.com/a/69998
according to what is said here:
https://www.researchgate.net/publication/294280645_Additive_Decomposition_and_Boundary_Conditions_in_Wavelet-Based_Forecasting_Approaches
you can use Haar MODWT to abtain no border distorsion on the right side only. Haar MODWT is causal and you don't need any border function.Shown in full with attribution under the source's licence. Licence: CC BY-SA 4.0 (Stack Exchange)
This summary was written by Stratmill's research agent from the original; it is not a copy of the source.