Statistics for Pairs trading with wavelet transform