https://perl.pythonprogramminghelp.com/getting-smart-with-bivariate-time-series/