October 26, 2026
Revenue Forecasting in Affiliate Marketing: Application of the SARIMAX Model
Raquel de Souza Veiga; Lauro Marques Vicari
DOI: 10.22167/2675-6528-202603410
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
Affiliate marketing has consolidated itself as one of the main customer acquisition channels in Brazilian digital commerce, characterized by a performance-based remuneration model that directly links investment in commissions to revenue generation. Given the limited academic literature that has applied quantitative predictive models to this context, the objective was to develop and validate a revenue forecasting model for the affiliate channel using SARIMAX, evaluating its predictive capacity in four industries with distinct characteristics. The research adopted a quantitative approach, based on monthly data of revenue, commission, sales, clicks, and churn rate from a global affiliate platform, covering the period from January 2023 to December 2025. The data were subjected to exploratory analysis, seasonal decomposition, and SARIMAX modeling with automatic parameter selection. The distribution of variables revealed strong asymmetry among the industries, with one of them concentrating more than 80% of the total revenue in the sample. The model achieved the target performance of MAPE below 20% in three of the four analyzed industries, with errors of 13.58%, 15.86%, and 18.76%, while the industry with the highest volatility registered a MAPE of 36.24%. The results demonstrated that SARIMAX constitutes an effective predictive tool for revenue planning in digital performance channels, with greater adherence in time series that exhibit consistent seasonality and stable structural patterns.
Keywords: Digital commerce; Predictive model; Performance-based remuneration; Seasonality; Time series.
1. Introduction
Marketing, in its essence, constitutes a social and managerial process that aims to identify and satisfy human needs through the creation, communication, and exchange of value offerings to consumers and organizations (Kotler and Keller, 2012). In recent decades, technological evolution has transformed this paradigm, giving rise to Marketing 4.0, an approach that integrates physical and digital environments, combining connectivity, data, and artificial intelligence to provide personalized experiences (Kotler et al., 2017). This transition reflects the advancement of digital marketing and e-commerce, which have expanded forms of relationship and consumption, enabling more direct, measurable, and data-driven communication (Ryan, 2014; Chaffey and Ellis-Chadwick, 2022).
The growing relevance of digital marketing is evidenced by robust economic indicators. In 2024, the global digital advertising market reached 740.3 billion dollars, with projections of 800 billion for 2025 (Statista, 2025). In Brazil, investment in digital advertising reached R$ 37.9 billion in 2024, representing an 8% growth compared to the previous year and an accumulated increase of 60% since 2020 (IAB Brasil, 2025). Brazilian e-commerce, in turn, generated R$ 204.3 billion in 2024, with a 10.5% growth compared to 2023, consolidating the digital environment as a fundamental channel for business (E-commerce Brasil, 2025).
Within this digital scenario, affiliate marketing has established itself as a performance-based model. Emerging in the 1990s, with Amazon as a pioneer, this model integrates digital marketing as a performance strategy (Evans, 2009). It operates as a commercial partnership in which intermediaries, known as affiliates, promote third-party products or services (advertisers) in exchange for a commission on the results obtained. This arrangement allows advertisers to expand their distribution channels with low risk, while affiliates monetize digital platforms and consumers access more complete information for their purchasing decisions (Chaffey and Ellis-Chadwick, 2022). Globally, the affiliate marketing industry was valued at over 18.5 billion dollars by October 2025, with revenue growth projected at 20% for the same year (Affiliate Marketing Statistics, 2025). In Brazil, this market shows consistent growth, driven by the Covid-19 pandemic and changes in business strategies (Acceleration Partners, 2022).
The affiliate marketing ecosystem spans multiple industries, such as retail, electronics, beauty, and travel. The intermediation between advertisers and affiliates is often carried out by specialized platforms, which provide technological infrastructure for tracking, commission management, and data analysis (Chaffey and Ellis-Chadwick, 2022). This structure generates a large volume of information and introduces multiple variables that directly impact revenue, including campaign type, affiliate profile, promotion channel, and macroeconomic factors. In this context, revenue forecasting becomes a valuable tool for strategic planning, resource optimization, investment adjustments, and maximizing return on investment.
To address the challenges of prediction in sequential data, time series models are used. These are econometric tools that analyze observations collected over time, identifying patterns, trends, and seasonality to project future values. Hamilton (1994) highlights that these models are particularly suitable for economic and financial data with temporal dependence. Among the most employed models, the AutoRegressive Integrated Moving Average (ARIMA), also known as Box-Jenkins, describes time series based on their own past values and forecast errors, after making the series stationary. The AutoRegressive Integrated Moving Average with eXogenous variables (ARIMAX) model extends ARIMA by incorporating exogenous variables that influence the dependent variable. The Seasonal AutoRegressive Integrated Moving Average with eXogenous variables (SARIMAX) adds seasonal components to ARIMAX, allowing it to capture periodic patterns beyond autoregressive and external relationships (Box et al., 2016). These models are effective in applied econometrics, processing both intrinsic temporal patterns and impacts of external factors, such as economic policies, advertising investments, and seasonal events (Gujarati and Porter, 2011).
Recent academic literature demonstrates the effectiveness of these models in similar contexts. Veverka (2024) applied time series analysis to evaluate the impact of affiliate campaigns in e-commerce. Sorenson (2023) used ARIMAX models for conversion forecasting in social advertising, demonstrating superior performance during seasonal events. Debnath et al. (2024) applied ARIMA models for real-time marketing campaign Return on Investment (ROI) analysis, while Alharbi et al. (2022) developed a SARIMAX model with high accuracy by incorporating exogenous factors. Comparative studies indicate that ARIMA family models frequently achieve accuracies above 90%, with SARIMAX demonstrating particular effectiveness in data with seasonal components (Ensafi et al., 2022; Kaviya et al., 2025).
Given the complexity inherent in revenue prediction in affiliate marketing and the limited academic production applying quantitative predictive models to this context, this work proposes to develop and validate a revenue forecasting model for the affiliate marketing segment using the SARIMAX methodology, based on transactional data from a company in the sector (a global affiliate network), aiming to provide a quantitative tool for optimizing strategic planning and resource allocation. The objective of this study is to develop and validate a revenue forecasting model for the affiliate channel using SARIMAX, evaluating its predictive capacity in four industries with distinct characteristics.
2. Material and Methods
The research adopted a quantitative approach, characterized as descriptive and explanatory. The study was descriptive by seeking to identify and measure patterns of revenue behavior in affiliate marketing over time, and explanatory by investigating relationships between exogenous variables and the generated revenue, aiming to establish a model that explained and predicted the phenomenon studied. The central methodology was based on the AutoRegressive Integrated Moving Average (ARIMA) family of models, according to the approach of Box et al. (2016).
The unit of analysis consisted of monthly transactional data of revenue, commission, sales, clicks, and cancellation rate, extracted from a global affiliate marketing platform. The collection period covered 36 months, from January 2023 to December 2025. The data were aggregated into monthly totals and segmented by four distinct market industries, such as retail, services, and travel, to allow for individualized analyses.
For the modeling, specific variables were selected. Gross monthly revenue was defined as the dependent variable (yt). The exogenous variables (Xt) included the monthly sum of campaign commissions paid to affiliates, representing direct investment; the monthly sum of total clicks generated by ads, as an indicator of traffic volume; the monthly sum of gross transactions, resulting from clicks converted into sales; the cancellation rate, the percentage of transactions annulled by advertisers; and binary variables for seasonal events, such as Black Friday, to capture effects of specific promotional periods.
After data cleaning and processing, the model application followed a structured process, adapted from the Box-Jenkins methodology. Initially, an exploratory analysis of the revenue time series was performed to identify trends and seasonality. Next, Pearson Correlation was applied to identify the most suitable exogenous variables to accompany revenue in the predictive model development, measuring the strength and direction of a linear relationship between two quantitative variables (Gujarati and Porter, 2011).
Subsequently, the statistical test “Augmented Dickey-Fuller” (ADF) was applied to verify the stationarity of the time series, i.e., if the mean and variance of the data remained stable over time (Dickey and Fuller, 1979). In cases of non-stationarity, the revenue data was differenced, subtracting the current value of the series from a previous value, until the series became stationary. First-order combined differencing removed linear trends and seasonalities, and in some cases, second-order differencing was necessary to remove other levels of seasonality.
Seasonality, common in affiliate marketing data, was tested and proven through time series decomposition, which isolated the trend, seasonality, and residual components. This separation allowed for a clear understanding of the factors influencing the series’ behavior over time, especially when the seasonal pattern was not immediately visible in the original revenue values, attesting to the suitability of the SARIMAX model.
The SARIMAX model, which incorporates autoregressive, moving-average, and seasonal components, in addition to exogenous variables, was used to capture the temporal dynamics of the series and external influences (Chatfield, 1995; Box et al., 2016). Autocorrelation Function (ACF) and Partial Autocorrelation Function (PACF) were employed to identify the order of the non-seasonal and seasonal autoregressive and moving-average components, based on the behavior of the coefficients at short lags and at multiples of the seasonal period (Box et al., 2016).
The automatic selection of the model parameters (p, d, q)(P, D, Q)m was performed using the “auto_arima” function from the “pmdarima” library in Python (Smith, 2017). This procedure evaluated combinations of autoregressive and moving average parameters, seasonal and non-seasonal, selecting the configuration with the lowest Akaike Information Criterion (AIC), which balances the goodness of fit with model parsimony, penalizing overly complex structures (Box et al., 2016). The differencing orders (d and D) were established by the ADF test, and the SARIMAX included the periodicity (s) and exogenous variables (X).
The SARIMAX model was trained with a 28-month dataset to estimate its parameters and the impact coefficients of the exogenous variables. Model evaluation was performed by analyzing its residuals and the statistical significance of the exogenous variable coefficients (Gujarati and Porter, 2011). The final model was then used to make predictions on the remaining 8 months of the test dataset. The analyses were developed using the Python library “statsmodel”.
The model’s performance was evaluated by the Mean Absolute Percentage Error (MAPE) and Root Mean Squared Error (RMSE) metrics. MAPE measures the accuracy of a forecast as a percentage of the actual value, facilitating comparison between different time series. RMSE, in turn, measures the deviation between predicted and observed values, being more sensitive to the presence of large errors. The SARIMAX model validation was based on the analysis of MAPE, establishing a threshold of 15% as an acceptance criterion, complemented by RMSE for monitoring the magnitude of absolute errors.
For the projection of the next 12 periods, the SARIMAX model was re-estimated using the complete set of 36 available observations for each industry. Seasonal dummy variables were projected based on the calendar of recurring events, while continuous exogenous variables (Cliques, Sales, Commission, and Cancellation Rate) were estimated using the homologous seasonal average, calculated from the historical values observed for each month over the available years. Financial data was anonymized for confidentiality reasons.
3. Results and Discussion
The analysis of revenue distribution among the four industries revealed a striking asymmetry, with Industry 2 concentrating the largest share of volume across virtually all analyzed dimensions. This industry was responsible for 80.6% of total revenue, 83.4% of clicks, and 85.4% of sales in the sample, demonstrating a substantially superior operational scale compared to the others. In contrast, Industries 1 and 3 contributed reduced portions of total revenue, 1.6% and 4.2% respectively, while Industry 4 occupied an intermediate position with 13.7% of the revenue. This disparity justified a segmented analysis of individual results and predictive models, in order to prevent the characteristics of a single dominant industry from unduly influencing the modeling.
An inverse behavior was observed in the cancellation rate. Industry 1, despite its lower revenue, presented the highest average cancellation rate, reaching 30%. This data suggests a possible inefficiency in customer conversion or retention compared to the other industries. The significantly larger scale of Industry 2’s revenue reinforced the need to segment the analysis, ensuring that the unique dynamics of each market were appropriately captured, without the distortion caused by a dominant player.
To deepen the understanding of revenue behavior in each industry, a complementary analysis was performed using boxplots of normalized revenue, where values were scaled between 0 and 1. This normalization, although it alters the original data scale, proved useful for comparing distributions and identifying behavioral patterns in each market segment. Industry 1 demonstrated greater volatility and dispersion in revenue values, indicating less consistent performance over time.
Industry 2, in turn, showed more homogeneous revenue behavior, with the normalized boxplot’s lower quartile being lower, suggesting less variation over time. However, more extreme “outliers” were observed at the top of the scale, indicating a market where revenue is generally stable and low for most of the year, but critically depends on seasonal events, such as Black Friday. This characteristic highlights the potential benefit of a predictive strategy to anticipate and capitalize on these distinct peaks.
Industry 3 exhibited a taller, more centralized box with a long spread between its lower and upper limits, reaching the extremes of the scale. This suggests less defined seasonality, where peak months are consistent and not confined to a single annual event, although the long box points to revenue that varies significantly between periods. In contrast, Industry 4 presented a relatively compact box positioned at the top of the scale, with outliers at the bottom, indicating it is more affected by atypical low months than by high sales periods, as its performance is consistently elevated.
Considering the structural relationships between performance variables in affiliate marketing, such as the direct dependence between sales, commission, and revenue, a risk of multicollinearity among the exogenous regressors in the SARIMAX model was identified. Hamilton (1994) highlights that multicollinearity can inflate the variance of estimated coefficients, making them unstable and hindering the economic interpretation of the model. To mitigate this effect, a subset of exogenous variables was selected by industry, prioritizing those with greater individual explanatory power and lower redundancy.
The selection of exogenous variables was guided by statistical and business criteria. The Commission variable was included because it directly represents transaction remuneration, while the seasonal “dummy” variable was used to capture specific effects of relevant promotional periods, such as Black Friday. A third variable was selected based on Pearson correlation with the dependent variable, aiming to incorporate additional information with explanatory potential, ensuring the model was parsimonious and effective, especially due to the limitation of 36 monthly observations per industry.
In Industry 1, Pearson Correlation analysis revealed a low relationship between Commission and Revenue, suggesting that commission investment is not the primary revenue driver in this sector. In contrast, a notable correlation was observed between Revenue and Cancellation Rate, which represents the percentage of sales annulled by advertisers. This finding motivated the inclusion of Cancellation Rate as an exogenous variable, in addition to Commission, to capture the dynamics of sales quality and its influence on revenue.
For Industry 2, a high correlation was observed between Commission, Revenue, and Sales, which justified the inclusion of Sales as an exogenous variable in the model, along with Commission. The Clicks variable also showed a good correlation with the others, indicating a cohesive relationship between the performance metrics of this industry. Only the Churn Rate did not follow the same behavioral pattern, suggesting its distinct influence on the overall revenue dynamics.
The Pearson Correlation for Industry 3 indicated that revenue is primarily driven by Sales volume, leading to the choice of this variable to complement Commission as exogenous. The weak correlation of Commission with revenue suggests that total sales (vendas)/ invoicing (emissão de doc) is more sensitive to Click traffic and its conversion into Sales than to direct financial incentive through Commission. This pattern highlights the importance of conversion factors and traffic volume for revenue performance in this segment.
In Industry 4, a moderate correlation was observed between Revenue and Commission, but the highest correlation was with the Cancellation Rate. This suggests that sales quality, not just volume, plays a significant role in revenue generation. As in Industry 1, the Cancellation Rate proved to be more suitable as an exogenous variable, in addition to Commission, as it is the closest to Revenue in this context. Complementarily, Industry 4 presented the lowest average Cancellation Rate of the group, with only 11%, and a minimum of 6% of canceled sales, reinforcing the high quality of sales.
Industry 1, with an average revenue of only 1.6% of the total analyzed, ranked among the smallest. In the affiliate marketing environment, and specifically within the company studied, lower revenue may be associated with a reduced number of active advertisers with commercial performance. This industry, characterized by a low total number of advertisers, is highly sensitive to the entry or exit of clients from its portfolio, which contributes to the observed volatility in its results.
The dispersion of Revenue in Industry 1, as illustrated in the scatter plot, confirmed this behavior. The upward regression line indicated, in general, that the higher the Commission, the higher the Revenue, despite the weak correlation between the variables. This industry also presented the highest coefficient of variation in revenue among all those analyzed, reaching 35%, which points to significant monthly fluctuations in relation to its average, reflecting a high variance of data between periods.
Industry 2, in turn, demonstrated the most expected behavior in affiliate marketing: the higher the affiliate Commission, the higher the Revenue generated for the advertiser. This is the ideal scenario for affiliates, valuing the results of their campaigns, and for advertisers, who gain predictability. The upward dispersion in the graph, close to the regression line, suggested a strong relationship between the variables, which is of great value for the predictive model.
The correlation of 0.92 between Commission and Revenue in Industry 2 indicated that the performance-based remuneration structure is the dominant revenue-generating mechanism in this sector, with an R² of 85% demonstrating high predictability and allocative efficiency of the affiliate model. This industry presented a revenue coefficient of variation of 25%, the second highest in the group, driven by intense sales peaks in November (Black Friday). Despite the large revenue volume, relative volatility was controlled, indicating a mature and stable market.
Industry 3 showed an upward, but almost horizontal, regression line, indicating a very low correlation between Revenue and Commission. The scatter plot confirmed that higher revenues were not intrinsically linked to higher commissions, similar to what was observed in Industry 1. This industry presented a revenue coefficient of variation of 23%, the second lowest in the group, and its Commission level varied little, concentrated in the same range of values, with occasional outliers in only 4 of the 36 months analyzed.
The low R² of Industries 1 and 3, below 1%, suggests that revenue in these sectors is determined by more complex dynamics than the simple variation in commission investment. This result reinforces the choice of SARIMAX, as the seasonal component and additional exogenous variables are essential to capture the real behavior of total sales. It is important to note that this does not indicate low commission remuneration for affiliates; Industry 3, despite having the second lowest average revenue (4.2% of the total), accounted for 21.6% of the total commission, pointing to an average commission higher than other industries.
The behavior of Revenue and Commission in Industry 4 approached that observed in Industry 2, with an upward regression line between the variables, indicating that higher commission generally leads to higher revenue, albeit with greater dispersion. This contrasts with the other industries, where the regression line is almost horizontal. The moderate R² of 29% for Industry 4 suggests that Commission, while relevant, shares its influence with other factors, such as Cancellation Rate, justifying the inclusion of these exogenous variables in the SARIMAX model. The observed revenue in this industry also suggests cyclical behavior with strong seasonality, similar to Industry 2, corroborated by its coefficient of variation of 19%, the lowest among the four industries, indicating low variance and a more consistent revenue stream.
The complementary analysis of the temporal evolution of exogenous variables together with Revenue, with normalized parameters, elucidated the monthly fluctuations. For Industry 1, considerable fluctuations were observed, reinforcing the idea that its results are affected by multiple factors. This industry also registered the highest average cancellation rate in the group, with 30% of sales canceled, reaching a maximum value of 40%, which underlines the relevance of this variable as an exogenous predictor.
In Industry 3, the inclusion of Sales as an exogenous variable was corroborated by the analysis of its behavior alongside Revenue, given that its fluctuations were much closer to Revenue than to Commission. This industry, despite having the second lowest average revenue, exhibited the second highest average sales volume, strengthening the choice of Sales as an exogenous variable. For Industry 4, the lowest correlation between variables, noted in the Pearson Correlation, was evidenced in the normalized temporal evolution. Although Commission and Cancellation Rate were the variables closest to Revenue, their behavior did not always follow it over the period.
Stationarity analysis
The application of the Augmented Dickey-Fuller (ADF) statistical test to verify the stationarity of revenue in each industry produced distinct results. Stationarity, where statistical characteristics such as mean and variance remain stable over time, is fundamental for the reliability of forecasts (Dickey and Fuller, 1979). A non-stationary series requires differencing to remove trends and/or seasonalities before modeling.
Industry 1 demanded the greatest need for differentiation to achieve revenue stationarity, specifically second-order differencing (d=2, D=2). The initial ADF test on the original series resulted in a p-value of 0.2094, higher than the significance level of 0.05, which prevented the rejection of the null hypothesis of non-stationarity. First-order differencing (p-value = 0.9921) was also insufficient. Only after second-order differencing was evidence of stationarity obtained (p-value = 0.0043). The high variance of revenue, previously observed, was the main cause of non-stationarity in this industry, being the most volatile in the group.
In contrast, Industry 2, benefiting from its large-scale and high predictability revenue, did not require differentiation for the revenue series to show as stationary. The p-value of 0.001 was reached already in the first application of the ADF test, indicating a stable underlying structure and making it more suitable for direct modeling without complex transformations. This result reinforces the robustness and inherent predictability of this market segment.
For Industry 3, revenue behavior did not show strong seasonality patterns, which was reflected in the calculation of its ADF, whose initial result indicated series non-stationarity. Although the initial p-value of 0.0533 indicated non-stationarity, the first-order differentiation of trend and seasonality (d=1, D=1) made the series stationary, with an updated p-value of 0.0006. Finally, applying the ADF to Industry 4 resulted in a p-value of 0.0041, without the need for series differentiation, confirming its stationarity.
The seasonal decomposition of industries, which separates the series into trend, seasonality, and residual, reinforced the adequacy of SARIMAX as a revenue predictive model. Trends differed structurally across sectors: Industries 2 and 3 exhibited growth, while Industries 1 and 4 showed decline, indicating distinct market dynamics that the model needed to capture. The seasonal component confirmed regular cyclical patterns across all industries, with varied amplitudes and timings. Industry 2’s pronounced peak in the fourth quarter, consistent with Black Friday, and Industry 4’s early-year peak pattern stood out. The residuals oscillated around zero without apparent structure, attesting that the decomposition extracted the systematic patterns from the series. The absence of autocorrelation in the residuals, a necessary condition for SARIMAX, was verified in all cases.
Implementation and analysis of SARIMAX
The SARIMAX model incorporates autoregressive, moving-average, and seasonal components, in addition to exogenous variables, allowing it to capture both the temporal dynamics of the series and relevant external influences. Given the limitation in the number of available observations in the database, simplified specifications of the parameters (p, d, q) and (P, D, Q) were chosen, avoiding overly complex models and the risk of overfitting (Box et al., 2016).
The automatic selection of model parameters was performed using the “auto_arima” function in Python, from the statistical library “pmdarima” (Smith, 2017). This function evaluated combinations of autoregressive and moving average parameters, seasonal and non-seasonal, selecting the configuration with the lowest Akaike Information Criterion (AIC), which balances the quality of fit with model parsimony, penalizing overly complex structures (Box et al., 2016). The differencing orders (d and D) had already been established by the ADF Test, and SARIMAX included periodicity (s) and exogenous variables (X).
The adoption of this automated procedure was justified by the limitation of the number of observations in the time series, which makes the manual selection of parameters more susceptible to biases and overfitting. “auto_arima” contributed to a more systematic and simplified model selection. The specific parameters (p, d, q) and (P, D, Q) for each industry are listed in Table 3. The selected models were evaluated for the adequacy of the residuals and the coherence of the results, ensuring that the final specification was statistically consistent and aligned with the context of the analyzed problem, with a focus on the model’s predictive capability.
The seasonal dummy variable for Industries 1, 2, and 3 was set as month 11 (November) of each year, referencing Black Friday and its impact on sales. For Industry 4, however, the seasonal revenue peak occurs in January of each year; therefore, month 1 was designated for the seasonal dummy of its model. This distinction in seasonal patterns highlights the need for tailored models for each industry, reflecting their unique market dynamics and promotional calendars.
The main objective of the model was to achieve a Mean Absolute Percentage Error (MAPE) below 20% for each of the analyzed industries. Overall, the model demonstrated effectiveness for three out of the four industries, with MAPEs below 20%. This confirmed the suitability of the SARIMAX methodology for the affiliate market, given its ability to handle different revenue scales and distinct seasonal behaviors, offering a robust predictive tool for revenue planning in digital performance channels.
The model achieved MAPEs of 13.58% for Industry 2, 18.76% for Industry 3, and 15.86% for Industry 4, meeting the established objective. However, Industry 1 presented a MAPE of 36.24%, indicating lower predictive capacity. Industries with more well-defined seasonal patterns showed better performance, as the seasonal component of SARIMAX could capture these regularities more effectively. In contrast, industries that required differencing to achieve stationarity presented higher predictive error, which may be associated with the greater structural complexity of the series and the difficulty in identifying consistent patterns over time.
The model’s lower predictive capacity for Industry 1 (MAPE of 36.24%) was likely associated with the series’ higher volatility, the lesser presence of well-defined seasonal patterns, or the greater influence of external factors not captured by the included exogenous variables. Business factors, such as irregular commercial campaigns, dependence on a few affiliates for revenue generation, and non-recurring promotions, may have directly impacted the variability of this industry’s results, making precise forecasting difficult.
The model’s adherence to Industry 2, with a MAPE of only 13.58%, validated the hypothesis that investment in commissions, when mediated by large-scale seasonal events, becomes a highly reliable predictor of revenue. The model managed to predict billions in revenue with high accuracy. Although Industry 2 showed the highest nominal MAE and RMSE values, its low MAPE indicates that the model is effective for predicting large-scale revenue. The RMSE/MAE ratio of 1.34 suggests that the model struggled slightly more during peak months, such as Black Friday, where the largest individual errors occurred, but maintained a good overall average.
For Industry 3, the model correctly projected the cyclicality of the results, with an error of 18.76%, still tolerable in time series forecasts. In Industry 4, the model demonstrated the ability to correctly identify the downward trend in revenue, maintaining a low percentage error of 15.86% even in the face of market contraction. It was observed that the year 2025 presented a revenue increase in October that did not occur in previous years, which could not be trained or predicted by the SARIMAX model, contributing to the increase in MAPE for this industry.
The performance of the models was also evaluated by the MAE and RMSE metrics, which measure the deviation between predicted and observed values. MAE represents the mean absolute error, while RMSE assigns greater weight to higher errors, being more sensitive to the presence of outliers. Due to data anonymization, the absolute values of these metrics cannot be directly interpreted in real monetary terms. However, they allowed for a comparative analysis between the estimated models and the different industries evaluated.
Industry 1 demonstrated a more volatile nature, which made linear forecasting difficult even with seasonal components. The low RMSE/MAE ratio of 1.17 indicated that the error is constant, suggesting a general difficulty of the model in keeping up with monthly fluctuations, rather than just extreme variations in peak months. Industry 3 presented an RMSE/MAE ratio similar to Industry 1, despite a significantly lower MAPE, suggesting a better predictive capacity compared to Industry 1.
It is important to note that, due to the limited number of observations in the series, low error values were interpreted with caution, as they could reflect model “overfitting” to historical data. The inclusion of a longer data history, additional variables, and alternative modeling approaches could enhance predictive capability in more complex series. Although financial data were anonymized for confidentiality, the MAE provided the average magnitude of errors, and the RMSE, more sensitive to large errors, revealed that industries with aggressive seasonal peaks, such as Industry 2, showed greater point variability, validating the need for the SARIMAX component to handle seasonal outliers.
As an extension of the analysis, revenue projections were made for the 12 months following the end of the series, exemplifying the use of the model as a management tool for decision-making. After validation, the final version of SARIMAX was re-estimated using the complete set of 36 available observations for each industry, maximizing the use of historical information in generating projections. For the projection of the next 12 periods, it was necessary to previously estimate the values of the exogenous variables, since the SARIMAX model depends on this information to generate forecasts.
The seasonal dummy variables were designed based on the calendar, representing recurring events such as specific promotional periods. The continuous exogenous variables (Cliques, Sales, Commission, and Cancellation Rate) were estimated using the homologous seasonal average, calculated from the historical values observed for each month over the available years. This approach assumes that the average seasonal behavior of these variables tends to repeat in the future, although it may not capture future changes and may smooth out data variability, limiting the model’s ability to predict extreme events. The uncertainty associated with the estimation of exogenous variables is not fully reflected in the confidence intervals of the forecasts.
For Industry 1, the model projected a return to historical revenue levels after sharp volatility at the end of the actual period, demonstrating the SARIMAX’s ability to ignore short-term noise in favor of the historical trend. Industry 3 presented the highest residual variability. Although the model projects stability, the wide confidence interval reinforces that external factors not captured by the current exogenous variables have a strong influence on this sector, demanding greater flexibility in channel management and contingency reserves in planning.
The projection for Industry 4 confirmed the hypothesis of atypical seasonality in January. However, the model warned of a downward trend, suggesting the need to revise exogenous variables to reverse the scenario in the long term. Despite the limitations, the results provide a consistent basis for prospective analysis, allowing for the construction of scenarios and supporting decision-making in a managerial context, especially where there are identifiable seasonal patterns and relative stability of the explanatory variables.
From a strategic point of view, the main contribution of a revenue predictive model for affiliate marketing lies in the possibility of anticipating channel behavior and acting proactively, rather than just reacting to observed results. Revenue forecasting with a 12-month horizon allows managers to structure budget planning with greater precision, defining commission targets in advance based on periods when investment tends to generate higher returns.
The seasonality identified in the projections offers an objective basis for resource allocation. In industries with revenue peaks concentrated in specific events, such as the fourth quarter in industries oriented towards promotional dates, the model allows for advance sizing of the volume of active affiliates, the commission levels to be practiced, and the activation campaigns necessary to capture the period’s maximum potential. Similarly, months with projected lower performance can be used for base development actions, recruitment of new affiliates, or renegotiation of commercial conditions.
The confidence interval of the projections also has direct managerial value, delimiting the expected revenue variation range and being able to be used for the construction of optimistic, base, and pessimistic scenarios, fundamental instruments in financial planning and communication with internal stakeholders. Industries with narrower intervals, as observed in Industries 2 and 4 at the beginning of the projected period, offer greater predictability and allow for firmer budgetary commitments. Periodic updating of the model with new real data, as the months progress, would allow for continuous incorporation of market behavior changes, refining estimates and progressively increasing the accuracy of projections, transforming the model into a dynamic management tool, integrated into the planning and goal review cycle of the affiliate channel.
4. Conclusion
This study aimed to develop and validate a revenue forecasting model for the affiliate marketing channel using the SARIMAX methodology, evaluating its predictive capability across four distinct industries. It was found that the model achieved the target performance of Mean Absolute Percentage Error (MAPE) below 20% in three of the four analyzed industries, with errors of 13.58%, 15.86%, and 18.76%. The results demonstrated that SARIMAX is an effective predictive tool for revenue planning in digital performance channels, showing greater adherence in time series with consistent seasonality and stable structural patterns. However, the industry with higher volatility registered a MAPE of 36.24%, indicating a lower predictive capacity in series with pronounced structural instability. Seasonal decomposition analysis and the careful selection of exogenous variables, such as commission, sales, and cancellation rate, were crucial for capturing the specific dynamics of each sector.
The main contribution of this work lies in offering a robust quantitative tool that allows affiliate marketing managers to anticipate revenue behavior with a horizon of up to 12 months. This supports strategic decisions on resource allocation, budget planning, and identification of seasonal high-return windows, such as the fourth quarter in industries driven by promotional dates. However, the limitation of the number of observations in the time series and the estimation of future exogenous variables by homologous seasonal averages represent restrictions on the model’s ability to predict extreme events and fully reflect uncertainty in projections. To enhance predictive capability, especially in more complex and volatile series, it is suggested to include a longer data history, incorporate additional variables, and explore alternative or hybrid modeling approaches. Periodic updating of the model with new real data is fundamental to continuously refine estimates, transforming it into a dynamic management instrument integrated into the planning cycle.
Bibliographic References
Acceleration Partners. 2022. LATAM Spotlight: Affiliate Marketing in Brazil. Disponível em: https://www.accelerationpartners.com/resources/latam-spotlight-brazil/. Acesso em: 13 out. 2025.
Affiliate Marketing Statistics. 2025. New Affiliate Marketing Statistics – October 2025. Disponível em: https://affiliatestatistics.marketing/. Acesso em: 14 out. 2025
Alharbi, F.R.; Csala, D. 2022. A Seasonal Autoregressive Integrated Moving Average with Exogenous Factors (SARIMAX) Forecasting Model-Based Time Series Approach. Inventions 7(4): 94.
Box, G.E.P.; Jenkins, G.M.; Reinsel, G.C.; Ljung, G.M. 2016. Time Series Analysis: Forecasting and Control. 5ed. Wiley, Hoboken, NJ, Estados Unidos.
Chaffey, D.; Ellis-Chadwick, F. 2022. Digital Marketing. 8ed. Pearson Education Limited, Londres, Reino Unido.
Chatfield, C. 1995. The Analysis of Time Series: An Introduction. 5ed. Chapman & Hall/CRC, Londres, Reino Unido.
Debnath, A.; Hossan, M.Z.; Sharmin, S.; Rahman, M. 2024. Analyzing and forecasting of real-time marketing campaign performance and ROI in the US market. In: International Conference on Electrical, Computer and Energy Technologies (ICECET), 2024, Bali, Indonésia. Anais… p. 332-337.
Dickey, D. A., e Fuller, W. A. (1979). Distribution of the Estimators for Autoregressive Time Series with a Unit Root. Journal of the American Statistical Association, 74(366a): 427–431.
E-commerce Brasil. 2025. E-commerce fatura R$ 204,3 bilhões no Brasil em 2024. Disponível em: https://www.ecommercebrasil.com.br/noticias/e-commerce-resultados-2024-brasil-abcomm. Acesso em: 10 out. 2025.
Ensafi, Y.; Amin, S.H.; Zhang, G.; Shah, B. 2022. Time-series forecasting of seasonal items sales using machine learning – A comparative analysis. International Journal of Information Management Data Insights 2(1): 100058.
Evans, D.S. 2009. The Online Advertising Industry: Economics, Evolution, and Privacy. Journal of Economic Perspectives 23(3): 37-60.
Gujarati, D.N.; Porter, D.C. 2011. Econometria Básica. 5ed. AMGH Editora, Porto Alegre, RS, Brasil.
Hamilton, J.D. 1994. Time Series Analysis. Princeton University Press, Princeton, NJ, Estados Unidos.
IAB Brasil. 2025. Digital AdSpend 2025. Disponível em: https://iabbrasil.com.br/pesquisa-digital-adspend-2025/. Acesso em: 14 out. 2025.
Kaviya, S.; AK, S.S.; Yuvasri, S.; Priya, K.S. 2025. Enhancing Supermarket Inventory Management Through ARIMA and SARIMAX-Based Demand Forecasting. In: 3rd International Conference on Advances in Machine Learning and Artificial Intelligence (AIMLA), 2025, Namakkal, Índia. Anais… p. 1-5.
Kotler, P.; Kartajaya, H.; Setiawan, I. 2017. Marketing 4.0: Do Tradicional ao Digital. Sextante, Rio de Janeiro, RJ, Brasil.
Kotler, P.; Keller, K.L. 2012. Administração de Marketing. 14ed. Pearson Education do Brasil, São Paulo, SP, Brasil.
Ryan, D. 2014. Understanding Digital Marketing: Marketing Strategies for Engaging the Digital Generation. 3ed. Kogan Page, Londres, Reino Unido.
Smith, Taylor G. et al. 2017. pmdarima: ARIMA estimators for Python. Disponível em: http://alkaline-ml.com/pmdarima. Acesso em: 11 abr. 2025.
Sorenson, D. 2023. Time Series Forecasting for Conversion Prediction in Social Advertising. Dissertação de Mestrado em Ciência da Computação. Aalto University, Espoo, Finlândia.
Statista. 2025. Digital Ad Spend (2017-2028). Disponível em: https://www.oberlo.com/statistics/digital-ad-spend. Acesso em: 14 out. 2025.
Veverka, L. 2024. Assessing the Impact of Affiliate Marketing on E-commerce Performance: A Time Series Analysis. Revista Investigación Operacional 45(5): 711-727.
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