October 16, 2026
Forecast of commercial flight supply in Brazil with time series models
Forecast of Commercial Flight Supply in Brazil with Time Series Models
Nuno Silas Benrós Santos; William Barbosa
DOI: 10.22167/2675-6528-202603322
Article derived from a Course Conclusion Work (TCC), with content based on the student’s original work and adapted to the editorial format of the E&S Magazine with the support of the ResumeAI tool, an artificial intelligence solution developed by Instituto Pecege for textual synthesis and organization.
Summary
The Brazilian commercial aviation sector faced significant challenges in projecting flight capacity and occupancy, essential for mitigating operational risks and ensuring sector sustainability. The research evaluated the performance of classic and modern predictive methods in projecting domestic air transport passenger demand (RPK). Monthly Paid Passenger-Kilometers (RPK) data from the National Civil Aviation Agency (ANAC) were used, covering the period from January 2000 to December 2025, with training data up to 2024 and testing in 2025. Traditional models, such as ARIMA, SARIMAX, moving average, and exponential smoothing, and machine learning approaches, like Prophet and XGBoost, were applied. The models were validated by performance metrics such as Root Mean Squared Error (RMSE) and Mean Absolute Percentage Error (MAPE). The SARIMAX model stood out as the most suitable approach, as it mapped seasonal cycles and isolated the impact of the pandemic with an exogenous variable, demonstrating superiority and stability compared to modern algorithms. It was concluded that the ability to capture the operational and seasonal dynamics of aviation was crucial for choosing the ideal predictive tool. The finalist model offered precise analytical subsidies for optimizing revenue management and fleet allocation, contributing to the mitigation of operational risks and the enhancement of sector competitiveness.
Keywords: Machine Learning; Seat-kilometers; Aviation market; Predictive modeling; Passenger-kilometers.
1. Introduction
The commercial aviation industry, since the launch of the Douglas DC-3 in 1936, as pointed out by Mowery and Rosenberg (2005), has transformed from a costly and risky activity, with significant limitations in autonomy and comfort (Pilarski, 2007), into a pillar of global mobility. In Brazil, although the sector experienced a period of relative freedom in the early 1960s, the initial competitive environment led to an oversupply and the financial unviability of many companies.
By the end of the 1950s, Brazil already had the second largest number of airlines in the world, but air transport remained a restricted privilege, with high fares (Oliveira, 2009). The entry of companies like Gol in 2001, with its low-cost and high-efficiency strategy, democratized access (Fay, 2013). The deregulation process and economic opening of the 1990s imposed challenges such as fare wars and imbalance between supply and demand (Ferreira, 2017). In the 21st century, commercial aviation has consolidated itself as fundamental for the socioeconomic integration of the country, transporting 28.7 million passengers in 2000 and 93.3 million in 2024, a growth of 225%, and increasing the supply of seats by 82.3% in the same period (ANAC).
However, the growing complexity of the market, marked by an oligopolistic structure, imposes significant challenges. Precision in projecting flight capacity and occupancy is crucial to mitigate operational and financial risks. Inadequate forecasts can result in “overbooking”, compromising the customer experience (Ferraz and Oliveira, 2005; Vasques and Santos, 2016), or in fleet underutilization, impacting the profitability and sustainability of airlines, as evidenced by the Transbrasil case (Oliveira and Ferraz, 2008). The entry and exit of companies in the Brazilian oligopolistic market can significantly influence prices and demand, as demonstrated by the brief operation of Itapemirim (Araujo and Borges, 2024).
In this scenario, the ability to accurately predict demand and adjust supply becomes a competitive advantage. Time series-based predictive models, including traditional methods like ARIMA and SARIMAX, and machine learning approaches such as Prophet and XGBoost, have proven to be valuable tools. They assist in decision-making in areas such as pricing, fleet allocation, and route planning, increasing forecast accuracy and strengthening analytical support for operations.
Given the need to optimize the management and allocation of resources in the Brazilian airline sector, this work seeks to provide analytical subsidies for decision-making by companies and regulatory bodies, optimizing resource allocation, adjusting operational capacity, and contributing to sectoral competitiveness and the satisfaction of Brazilian air transport users.
2. Material and Methods
This research was characterized by a quantitative approach, with a predictive nature, focused on time series modeling. The study used secondary data, extracted directly from the website of the National Civil Aviation Agency (ANAC), which is the regulatory body of the Brazilian aviation sector. The unit of analysis consisted of univariate time series, aggregated at monthly frequency, covering the period from January 2000 to December 2025. For model validation, the period from 2000 to 2024 was allocated for training, while the year 2025 was reserved for testing.
Initially, the analysis of two main metrics was considered to benchmark the sector: demand, measured by Revenue Passenger-Kilometers (RPK), and supply, measured by Available Seat-Kilometers (ASK). RPK was defined as the sum of the product between the number of paying passengers and the distances of the legs, representing a traffic metric. ASK, in turn, corresponded to the volume of seats per kilometer offered, constituting a transport capacity metric. During the exploratory phase, a strong positive linear interdependence was identified between RPK and ASK, which led to the decision to focus the modeling exclusively on demand (RPK), without loss of statistical or predictive value.
In the exploratory data analysis phase, the aim was to understand the trend, seasonality, and period of the time series. For this purpose, classical decomposition and Seasonal-Trend decomposition using Loss (STL) were employed, which allowed for the identification of fluctuations in the seasonal component. The preprocessing of raw data included the application of filters to specifically isolate domestic flights. Treatments were carried out to handle missing data and outliers, as well as mathematical transformations to stabilize the variance and mean of the series.
To support the methodological choices and understand the temporal dependence of the series, the data structure was evaluated through statistical autocorrelation tests. The Autocorrelation Function (ACF) and Partial Autocorrelation Function (PACF) were used to illustrate the correlation of the series with its lagged versions. In order to verify the stationarity of the domestic demand time series, two complementary statistical tests were formally applied: the Augmented Dickey-Fuller (ADF) test and the Kwiatkowski-Phillips-Schmidt-Shin (KPSS) test. The joint use of these tests was adopted to provide greater robustness to the analysis, considering their inverted null hypotheses.
The modeling stage was structured into two distinct approaches: traditional models and modern models. In the traditional approach, Seasonal AutoRegressive Integrated Moving Average with exogenous regressors (SARIMAX), Autoregressive Integrated Moving Average (ARIMA), simple moving average, and exponential smoothing, specifically the Holt-Winters method with multiplicative seasonality, were employed. For the determination of the mathematical orders of the ARIMA model, an iterative grid search algorithm was developed, implemented in the Python environment. The choice of the multiplicative formulation for exponential smoothing was justified by the observation that the amplitude of the annual high and low season cycles grew proportionally to the increase in demand (Hyndman et al., 2024).
In the modern approach, the machine learning models eXtreme Gradient Boosting (XGBoost) and Prophet, developed by Facebook (Taylor and Letham, 2018), were employed. For XGBoost, demand data were transformed into a supervised regression problem, using lags of past observations as explanatory variables (Huang and Petukhina, 2022; Nielsen, 2019). The validation and comparison of all models were performed using performance metrics such as Root Mean Squared Error (RMSE) and Mean Absolute Percentage Error (MAPE). For probabilistic models, such as ARIMA, SARIMAX, and exponential smoothing, the Akaike Information Criterion (AIC) was used to evaluate statistical fit and parsimony.
3. Results and Discussion
The analysis of Paid Passenger-Kilometers (RPK) and Available Seat-Kilometers (ASK) data revealed crucial temporal patterns for understanding the dynamics of Brazilian domestic air transport. A general trend of significant growth was observed for both metrics over the study period, reflecting the expansion and democratization of the sector in Brazil. This growth, however, was not linear, being interspersed with phases of stagnation or slight decline, such as those observed between 2015 and 2016, which coincided with regional and national economic crises. The time series also demonstrated vulnerability to large-scale exogenous events, with the COVID-19 pandemic in 2020 causing an unprecedented contraction, followed by a phase of gradual recovery.
The seasonality in the RPK and ASK series was clearly identified through the observation of peaks and valleys that repeat annually. Detailed analysis of the monthly RPK behavior over the years showed that the months of January, July, and December are consistently the most sought after by travelers, a pattern that directly coincides with school holiday periods in the country. This seasonal characteristic is a fundamental element for the operational and strategic planning of airlines, influencing resource allocation and fare definition.
The interdependence between offered capacity (ASK) and effective demand (RPK) was a central finding of the exploratory analysis. An extremely strong and clear positive linear relationship was found between the two variables, with a Pearson correlation coefficient of 0.9840. This value, close to 1, confirmed a statistically significant positive linear correlation, indicating that the increase in the supply of available seat-kilometers is directly associated with a proportional and consistent growth in the demand for revenue passenger-kilometers. This strong link is intuitive in the context of air transport, where capacity availability is a prerequisite for demand realization, and it underscores the importance of integrated management of both variables for the operational and financial balance of the sector. Given this interdependence, the decision was made to focus predictive modeling exclusively on the RPK series, without loss of analytical value.
The understanding of the temporal dependence of the metrics was deepened by the analysis of the Autocorrelation Function (ACF) and Partial Autocorrelation Function (PACF) graphs. For both series, RPK and ASK, the ACF graph revealed a slow and gradual decay of autocorrelations in the initial lags, a clear indication of the presence of a trend. Furthermore, significant and prominent peaks were observed at lags 12 and 24, which exceeded the upper limit of the confidence interval, confirming the strong annual seasonality in the demand and supply of flights. This suggests that the RPK and ASK of a given month are highly correlated with the values of the same month in previous years.
To complement the trend analysis and smooth out short-term fluctuations, a 12-month moving average was applied to the RPK series. This method functions as a filter, removing noise and seasonality, which allowed for a clearer visualization of the underlying trend and long-term cycles. The choice of a 12-month window was strategic for monthly data, ensuring that the influence of annual seasonality was completely mitigated, thus revealing the true long-term trajectory of demand.
The seasonality analysis was deepened through decomposition techniques, which allowed isolating the trend, seasonality, and residual of the RPK series. Initially, classical time series decomposition was used with a multiplicative model, suitable for series where the magnitude of seasonal fluctuations varies proportionally to the level of the series. The resulting trend line revealed the long-term movement of RPK, smoothed from short-term fluctuations and seasonality, while the seasonal component showed a well-defined annual pattern, with consistent peaks and troughs, indicating the months of greatest and least seasonal impact on demand. It was observed that the seasonal factors were relatively constant in their amplitude over time in this model.
For a more robust analysis of the time series structure, STL decomposition (Seasonal-Trend decomposition using Loess) was employed. This method is preferable to classical decomposition due to its robustness to outliers and its ability to allow the seasonal component to exhibit variations in amplitude and shape over time. The STL trend lines showed a long-term movement of the RPK series in a smoothed and more adaptive way to changes in slope, capturing trend transitions more fluidly, especially during periods of great disruption, such as the pandemic. The seasonal component reinforced the existence of a well-defined annual pattern, and a notable advantage of STL was the revelation that the amplitude of seasonality varied over the period, with seasonal peaks and troughs appearing to increase with the level of the series.
The stationarity of the domestic demand time series (RPK) was verified through two complementary statistical tests: the Augmented Dickey-Fuller (ADF) test and the Kwiatkowski-Phillips-Schmidt-Shin (KPSS) test. The ADF test, whose null hypothesis posits the existence of a unit root (non-stationarity), returned a test statistic of -1.1133 and a p-value of 0.7097. As the p-value was substantially higher than the 5% significance level (0.05), the null hypothesis could not be rejected, indicating the presence of non-stationarity in the series at the level. Complementarily, the KPSS test, whose null hypothesis assumes that the series is stationary, revealed a statistic of 2.2574 and a p-value of 0.0100. Since the p-value was lower than 0.05, the null hypothesis of stationarity was rejected, confirming that the series is not stationary. Both tests, therefore, pointed to the non-stationarity of the RPK series, which required differencing for modeling.
Forecasting Models
The first classical method evaluated was Exponential Smoothing, specifically the Holt-Winters method with multiplicative seasonality. The choice of the multiplicative formulation was justified by the observation that the amplitude of the annual high and low season cycles grew in proportion to the increase in the overall passenger demand level. The model fitted to the domestic demand series resulted in an Akaike Information Criterion (AIC) of 11,937.83. On the training set, the model presented a Mean Absolute Percentage Error (MAPE) of 7.40% and a Root Mean Squared Error (RMSE) of 414,693,843 passenger-kilometers. However, on the test set, there was a degradation in accuracy, with the MAPE rising to 9.68% and the RMSE reaching 987,347,378. This predictive limitation is attributed to the method’s rigidity in scenarios of exogenous shocks, such as the COVID-19 pandemic, generating high residuals during the sector’s recovery phase.
The second method evaluated was the simple moving average, configured with a 12-month time window. This method estimates the trend component of the time series by calculating the arithmetic mean of observations within a specific period, eliminating part of the randomness and short-term fluctuations (Hyndman and Athanasopoulos, 2018). In the training evaluation, the moving average showed the worst historical fit, with a MAPE of 18.28% and an RMSE of 972,540,840. This high error reflects the method’s mechanics, which intentionally “flattens” seasonal peaks and troughs, generating large residuals. On the test set, the model registered a MAPE of 8.46% and an RMSE of 967,680,030. Although it followed the central trend of post-crisis recovery, the moving average proved inadequate for operational strategic planning in aviation, as it ignores seasonality, failing to capture the true dynamics of the data.
The third method evaluated was the ARIMA model, adjusted with the order (2,1,2). This method predicts the future by combining autoregression of past data and residual error fitting (Box and Jenkins, 1970). The first parameter indicates the use of the two immediately preceding observations, the central term of integration equal to 1 specifies a differentiation to remove non-stationarity, and the last parameter establishes the use of two lags of moving averages. On the training set, the model presented an AIC of 13,089.77 and a MAPE of 13.65%. This unsatisfactory fit for the past is due to the limitation of non-seasonal ARIMA in modeling the rigid cycles of high and low season in aviation. On the test set, the percentage error dropped to 5.59% and the RMSE was 643,142,680. Despite the smaller deviation in future projection, the method is considered structurally limited for long-term planning, as it only followed the inertia of the recent trend, ignoring the true seasonal dynamics of demand.
The fourth method evaluated was the SARIMAX model, which stood out for allowing the simultaneous inclusion of seasonal terms and exogenous variables (Huang; Petukhina, 2022). The parameterized order for the non-seasonal adjustment was (2, 1, 2), and the seasonal configuration was set at (1, 1, 1, 12), allowing it to capture the rigid twelve-month cycle of aviation. The main differential of this modeling was the addition of an indicator variable to isolate the pandemic shock, removing its distorting and permanent effect from the projection (Hyndman et al., 2024). In the training set, SARIMAX registered an AIC of 11,631.35, consolidating itself as the best statistical fit among the evaluated methods by dealing with the structural break. The historical MAPE was 9.36% and the RMSE was 466,248,664. In the test set, the model obtained a MAPE of 7.24% and an RMSE of 751,597,097, proving its ability to isolate anomalous events and incorporate high and low seasons.
The Prophet algorithm, developed by Facebook (Taylor; Letham, 2018), was the fifth method evaluated. This algorithm does not require the time series to be stationary and robustly handles missing data and outliers (Spadini and Alencar, 2022), decomposing the series into growth trend, seasonality modeled by Fourier series, and the effect of holidays or intervention events (Vishwas and Patel, 2020). On the training set, Prophet presented a MAPE of 24.97% and an RMSE of 1,116,051,890. On the test set, the model achieved a MAPE of 19.60% and an RMSE of 1,881,291,238. The unsatisfactory performance is justified by technical limitations, such as temporal frequency incompatibility (originally for daily data) and rigidity in trend extrapolation in scenarios of extreme structural breaks, ignoring the real recovery dynamics (Garza et al., 2022; Menculini et al., 2021).
XGBoost, a gradient boosting decision tree-based machine learning algorithm (Chen and Guestrin, 2016), was the last method tested. The method builds trees sequentially, correcting residual errors and using a penalty term to limit complexity (Nielsen, 2019). On the training set, XGBoost recorded an extremely low MAPE of 0.61% and an RMSE of 75,846,223, indicating overfitting. On the test set, its generalization ability resulted in a MAPE of 7.90% and an RMSE of 796,252,929. Despite the drop in accuracy when dealing with new data due to overfitting, XGBoost’s architecture ensured it the third best overall predictive performance in the research, outperforming classic models such as Moving Average and Exponential Smoothing.
Comparison and discussion of results
The final evaluation of the predictive methods applied to the demand time series was consolidated based on the error metrics of the test set, which assess the true generalization capability of the algorithms on new data (Hyndman and Athanasopoulos, 2018). The ARIMA model obtained the lowest mathematical error in the test, with a MAPE of 5.59%. However, its structural inability to project seasonality makes it impractical for operational planning in the airline sector. In contrast, the SARIMAX model, positioned second with a MAPE of 7.24%, demonstrated the most balanced and consistent behavior in the research. By isolating the pandemic shock with an exogenous variable, SARIMAX managed to perfectly map the high and low season cycles, proving to be the most suitable classic tool for the air transport scenario.
Among modern methods, the XGBoost algorithm demonstrated a strong overfitting on the training data, but its decision tree architecture ensured sufficient robustness to outperform classical Moving Average and Exponential Smoothing techniques in the test, registering a MAPE of 7.90%. On the other hand, the Prophet algorithm presented the worst overall performance, with a MAPE of 19.60%, severely failing to capture the post-crisis recovery dynamics due to its inherent limitations with monthly frequency and rigidity in trend extrapolation. The comparative analysis showed that the choice of the best predictive algorithm for air transport demand should not be based exclusively on minimizing mathematical errors, but rather on the ability to represent the true dynamics of the sector.
Given the results, the SARIMAX model was defined as the finalist and the most suitable tool for demand projection. Although the ARIMA model registered the lowest error on the test set, its structural inability to capture annual peaks and troughs makes it limited for practical application in aviation. The SARIMAX model overcame this limitation by accurately mapping the sector’s strong seasonality and managed to isolate the extreme impact of the pandemic through an exogenous variable, preventing the structural shock from distorting future projections, which demonstrated its superiority and stability against the modern machine learning algorithms tested. The practical contribution of this finalist model to Brazilian commercial aviation is highly relevant for the strategic planning of airlines, providing accurate and consistent forecasts to optimize revenue management and fleet allocation, mitigating critical and costly operational risks, such as poorly dimensioned overbooking and idle capacity or underutilization of aircraft (Oliveira; Ferraz, 2008).
4. Conclusion
This research evaluated the performance of classic and modern predictive methods in projecting the demand for passengers (RPK) in Brazilian domestic air transport, seeking to provide analytical subsidies for decision-making in the sector. It was found that the RPK time series exhibited a non-linear growth trend, strong annual seasonality, and non-stationarity, crucial characteristics for modeling. The comparative analysis of models such as Exponential Smoothing, Moving Average, ARIMA, SARIMAX, Prophet, and XGBoost revealed that the SARIMAX model stood out as the most suitable approach. It accurately mapped the seasonal cycles of high and low seasons and isolated the impact of the pandemic through an exogenous variable, demonstrating superiority and stability compared to the modern algorithms tested. Although the ARIMA model presented the lowest mathematical error on the test set, its structural inability to project seasonality limited its practical applicability. The ability to capture the operational and seasonal dynamics of aviation was crucial for choosing the ideal predictive tool.
The practical application of the finalist SARIMAX model offers precise analytical subsidies for optimizing revenue management and fleet allocation, contributing significantly to the mitigation of costly operational risks, such as poorly dimensioned overbooking and aircraft underutilization, and to the enhancement of sectoral competitiveness. It was observed that algorithms like Prophet presented technical limitations, such as temporal frequency incompatibility and rigidity in trend extrapolation in scenarios of structural breaks, while XGBoost demonstrated overfitting in the training data. For future work, it is suggested to explore hybrid approaches that combine the robustness of classical models with the flexibility of machine learning, in addition to including determining macroeconomic factors to enrich demand projections in the Brazilian airline sector.
Bibliographic References
Agência Nacional de Aviação Civil [ANAC]. n.d. Sistema de estatísticas operacionais. Disponível em: https://www.anac.gov.br/assuntos/dados-e-estatisticas/dados-e-estatisticas. Acesso em: 20 fev. 2026.
Araujo, A.P.; Borges, M.R. 2024. Analyzing the impacts on passenger yield of incumbent companies after the entry of a new company into the aviation market: the case of Brazil. Journal of Air Transport Management 121: 102682.
Box e Jenkins, 1970 [Referência completa não encontrada no documento original]
Chen, T.; Guestrin, C. 2016. XGBoost: A scalable tree boosting system. In: ACM SIGKDD International Conference on Knowledge Discovery and Data Mining, 2016, Nova York, NY, EUA. Anais… p. 785-794. Disponível em: https://doi.org/10.1145/2939672.2939785.
Fay, C.M. 2013. Crise nas Alturas: A Questão da Aviação Civil (1927-1975). Edipucrs, Porto Alegre, RS, Brasil.
Ferraz, R.B.; Oliveira, A.V.M. 2005. A estratégia de overbooking e sua aplicação no mercado de transporte aéreo brasileiro. Revista de Administração da USP.
Ferreira, J.C. 2017. Um breve histórico da aviação comercial brasileira. In: Congresso Brasileiro de História Econômica & Conferência Internacional de História de Empresas, 2017. Anais…
Garza et al., 2022 [Referência completa não encontrada no documento original]
Huang, C.; Petukhina, A. 2022. Applied Time Series Analysis and Forecasting with Python. Springer Nature Switzerland AG, Cham, Suíça.
Hyndman, R.J.; Athanasopoulos, G.; Garza, A.; Challu, C.; Mergenthaler, M.; Olivares, K.G. 2024. Forecasting: Principles and Practice, the Pythonic Way. OTexts, Melbourne, VIC, Austrália. Disponível em: https://otexts.com/fpppy. Acesso em: 17 jun. 2025.
Menculini et al., 2021 [Referência completa não encontrada no documento original]
Mowery, D.C.; Rosenberg, N. 2005. Trajetórias da Inovação: A Mudança Tecnológica nos Estados Unidos da América no Século XX. Editora da Unicamp, Campinas, SP, Brasil.
Nielsen, A. 2019. Practical Time Series Analysis: Prediction with Statistics & Machine Learning. O’Reilly Media, Sebastopol, CA, EUA.
Oliveira, A.V.M. 2009. Transporte Aéreo: Economia e Políticas Públicas. Pezco, São Paulo, SP, Brasil.
Oliveira, A.V.M.; Ferraz, R.B. 2008. Overbooking, gerenciamento de receitas e previsão de demanda: estudo empírico das posições em sistemas de reservas de companhias aéreas. Revista de Administração Contemporânea 12(4): 1105-1129.
Pilarski, A.M. 2007. Why Can’t We Make Money in Aviation? Ashgate, Aldershot, Reino Unido.
Spadini, A.S.; Alencar, V. 2022. Séries Temporais com Prophet: Análise e Previsão de Dados com Python. Casa do Código, São Paulo, SP, Brasil.
Taylor, S.J.; Letham, B. 2018. Forecasting at scale. The American Statistician 72(1): 37-45.
Vasques, D.F.; Santos, L.C.F. 2016. Overbooking e suas implicações no direito do consumidor. Revista de Direito, Centro Universitário Salesiano de São Paulo.
Vishwas, B.V.; Patel, A. 2020. Hands-on Time Series Analysis with Python: From Basics to Bleeding Edge Techniques. Apress, Nova York, NY, EUA.
Article originating from the Final Course Project of the Specialization in Data Science and Analytics of the MBA USP/Esalq
To learn more about the course, click here and access the MBX Academy platform