Statistics for Online Non-linear Prediction of Financial Time Series Patterns