There are several approaches to analyze variable contributions in your ensemble forecasting model, each with different strengths depending on what insights you're seeking.
For the overall ensemble:
You can treat the ensemble as a meta-model and use model-agnostic interpretation methods. SHAP (SHapley Additive exPlanations) works well here - it can provide both global feature importance across your entire dataset and local explanations for individual predictions. LIME is another option for local interpretability. These methods will show you how much each variable contributes to the final ensemble prediction.
For individual model components:
Each of your models offers different interpretation capabilities. XGBoost has built-in feature importance metrics (gain, cover, frequency) and works excellently with SHAP for more detailed analysis. Prophet automatically decomposes predictions into trend, seasonal, and regressor components, making it straightforward to see contributions from weather, price, and other external variables. For ARIMAX, you can analyze the coefficients of your exogenous variables, though the autoregressive components make direct interpretation more complex.
Temporal vs non-temporal separation:
Consider running your analysis in two phases. First, decompose the temporal components (trend, seasonality) using Prophet's built-in decomposition or classical decomposition methods. Then analyze how non-temporal variables (weather, price) influence the residuals or the overall prediction through the other models.
Practical implementation:
Start with SHAP analysis on your ensemble predictions to get an overall picture. Then dive deeper into Prophet's component analysis for temporal patterns and use XGBoost's feature importance combined with SHAP for understanding complex interactions between temporal and non-temporal variables.
The key is combining these approaches rather than relying on just one method, since each model in your ensemble captures different aspects of the demand patterns.