Adaptive Learning on Time Series: Method and Financial Applications