Python Time Series Plot Statistics Math Ai