Prophet is a forecasting model from Facebook. It's a combination of linear regression and seasonalities.
Prophet uses decomposable time series model defined as $ y(t) = g(t) + s(t) + h(t) + \epsilon_t $ where $g(t)$ is the trend, $s(t)$ is the seasonal (weekly and yearly), $h(t)$ is the holiday component, and $\epsilon_t$ is the error term.
Prophet supports both saturating growth and piecewise linear trends. In saturating growth, the growth rate slows down over time. In piecewise linear trends, the growth rate remains constant within each segment. Prophet allows the selection of the number of changepoints, which determines the number of piecewise linear segments. Given that coins are expected to exhibit varying trends, we use piecewise linear trends.
Seasonality in Prophet is modeled using a Fourier series, which is a sum of sine and cosine functions with different frequencies. This can be automatically detected by the model or manually specified by the user. In our case, we rely on automatic seasonality detection to reduce the complexity of hyperparameter tuning.
The holiday component in Prophet is represented as a binary variable, where 1 indicates a holiday and 0 indicates a non-holiday. However, since there are no holidays in the trading dates of coins, this component is not utilized in our model.
To demonstrate model performance, we show the model's prediction results for the air passengers dataset. The cross validation process identified the best transformation to make the time series stationary and the optimal hyperparameters. The Root Mean Squared Error on the next day's closing price was used to determine the best model.
In the chart, we display the model's predictions for last split of cross validation and test data.