The collection of data at regular intervals is called a time series. Time series forecasting is a technique in machine learning, which analyzes data and the sequence of time to predict future events. This technique provides near accurate assumptions about future trends based on historical time-series data .