Wavelet feature extraction model - some thoughts
Hilbert Transform, Signal Processing, Wavelet Transform March 10th. 2008, 11:37pmIn the previous post I highlighted a wavelet based feature extraction model for financial time series. The intention was to use it as a starting point for developing an improved model. To start with let me explain what the model referred to in the previous post is meant to do.
There are two sections to the model. Common to both sections is a DWT smoother which is basically a lowpass filter. The first section analyses the smoothed volatility of the time series to determine the break points which they refer to as “variance change”. The second section performs FFT decomposition on the smoothed time series to obtain the dominant cycle. The trend and turning points are determined from the smoothed time series also.
Here is what I think about the model
- Firstly I don’t support the researchers’ choice of applying the Fourier Transform to determine the dominant cycle period. I explain in this post why FFTs should be avoided when analysing financial time series data. I am in favour of the Hilbert transform mainly for two reasons:
- The Hilbert transform works under the assumption that each price point has a phase difference to the previous and subsequant price points. This allows evaluation of the cycle length on a bar-by-bar basis, which unlike the FFT does not impose a constraint on the observation window length.
- The Hilbert transform provides a way of visualising interaction of short term cycles with longer term cycles on a phasor plot.
- What I wish to do is to replace the FFT part with the Hilbert Transform and another algorithm to determine the phasor plot of the actual time series - as shown below:


March 11th, 2008 at 2:39 am
I’d love to see the actual code for this implemented and posted here. I grasp the concepts from your excellent posts and the paper you’ve linked, but I personally like to see code level detail to truly understand what’s going on under the hood.
Thanks for sharing your insights so far!
March 11th, 2008 at 8:00 am
Nice idea. Another nice idea using wavelets, is to detect “structural breaks”, there is a lot of data about that topic too.
April 16th, 2008 at 5:01 pm
My PhD thesis is here, which goes into more details:
http://www.saifahmad.com/SaifPhDFinal_2.pdf
I can provide code too, but it is not properly documented, etc.
Saif
April 16th, 2008 at 7:22 pm
Thanks for the link. I would be happy to see any code, even if its not documented.
you could email me - soren _at_ dopeness.org
April 16th, 2008 at 8:48 pm
Saif, your publications are really interesting, thanks for the link. Code would be apreciated.
juanchoc at arnet.com.ar
April 16th, 2008 at 11:02 pm
Thanks for stopping by Saif. You have published some great work on time series analysis with some interesting results.
However I would like to ask, what are your views on performing a fixed length FFT on a DWT transformed signal?
April 17th, 2008 at 12:39 am
Hi aiQUANT,
My initial objective was to see how the DWT characterizes the frequency content of a signal. In wavelet theory, you actually already know what cycle each decomposition represents – for example D6 characterizes a cycle of 2^6 and so on. In my thesis I show how the cycles determined by the FFT (on DWT decompositions) are similar to those the DWT decompositions propose to extract.
Saif