Click4Ai

504.

Hard

SARIMA Model

**Problem:** Implement a SARIMA (Seasonal ARIMA) model to forecast a time series. Given a time series data, use the SARIMA model to predict the next 12 values.

**Constraints:** The time series data is a univariate series with a known seasonality of 12 months.

**Example:** Suppose we have a time series of monthly sales data with a known seasonality of 12 months. We can use the SARIMA model to predict the next 12 months of sales.

Test Cases

Test Case 1
Input: [[1,2,3,4,5,6,7,8,9,10,11,12],[13,14,15,16,17,18,19,20,21,22,23,24]]
Expected: [[25,26,27,28,29,30,31,32,33,34,35,36]]
Test Case 2
Input: [[1,2,3,4,5,6,7,8,9,10,11,12],[13,14,15,16,17,18,19,20,21,22,23,24],[25,26,27,28,29,30,31,32,33,34,35,36]]
Expected: [[37,38,39,40,41,42,43,44,45,46,47,48]]
+ 3 hidden test cases