October 09, 2026
Evaluating the cancellation in container export and predicting behavior using Logit model
Evaluating Container Export Cancellation and Predicting Behavior Using Logit Model
Lucas Gomes Batistoti de Abreu; Gustavo Dantas Lobo
DOI: 10.22167/2675-6528-202603185
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
In a turbulent macroeconomic scenario with fluctuating fuel prices, shipping companies face intense competitiveness and cost pressure, needing to optimize ship capacity to maintain profitability. The research aimed to identify the variables that most influence the cancellation of container bookings, such as origin/destination, container type, freight value, and container quantity, in order to improve cargo planning and sales strategies. To this end, cancellation events were analyzed in a weekly containerized cargo export service, originating from the east coast of South America and destined for other regions of the American continent. A six-month database of actual shipments was used, subjected to binary logistic regression techniques. The results indicated that the logistic regression model, although it identified patterns in characteristics such as origin/destination and freight value, showed deficient capacity in predicting cancellations with a threshold of 0.5. Variables such as booking advance (‘Days Before Load’) positively influenced the probability of cancellation, while the ‘Online Pricing’ modality inhibited it. The origin Brazil (‘POR Country_BR’) showed a significant increase in the probability of cancellation, and the ‘Over Allocated’ category registered the highest incidence. It was concluded that, despite the model’s limitations, valuable insights were generated for trip planning and commercial strategies, suggesting the need to explore external variables and alternative methodological approaches to improve cancellation prediction.
Keywords: Cancellation; Foreign trade; Maritime; Navigation; Overbooking.
1. Introduction
Maritime transport plays a fundamental role in international trade, serving as one of the main drivers of the global economy. This sector not only generates significant revenue but also acts as an essential cog in maintaining global supply chains. The continuous expansion of maritime transport is influenced by various factors, such as population growth, rising living standards, rapid industrialization, exhaustion of local resources, and reduction of trade barriers, as highlighted by Christiansen et al. (2007).
However, the current macroeconomic scenario is marked by growing uncertainty and geopolitical turbulence, directly impacting the sector’s growth rate. The “United Nations Conference on Trade and Development” (UNCTAD, 2025) projects a cooling in the growth of containerized cargo volumes, with estimates of 2.8% in 2023, 2.2% in 2024, and only 0.5% in 2025. This instability is aggravated by armed conflicts, disruptions in crucial maritime routes such as the Suez Canal and the Red Sea, geopolitical tensions between major powers, and blockades in strategic straits, which affect a considerable portion of global oil exports. Furthermore, the global merchant fleet, although growing, shows a pace below the average of the last two decades, and freight rates exhibit high volatility, influenced by route diversions and tariff policies, as evidenced by the Shanghai Containerized Freight Index (UNCTAD, 2025).
In this complex environment, shipping companies, known as shipowners, operate fixed and weekly services, with standardized itineraries and port calls, focusing on the transport of containerized cargo (Wang et al., 2014). The process of booking space on ships, or “slots”, is the initial step, made available weeks in advance, where the exporter provides basic cargo information and the transport price is defined (Zhao et al., 2020). Once the conditions are agreed upon, a confirmed “booking” is issued, containing all the details of the contracted transport.
However, the export process involves several obligations and deadlines to be met by the exporter with federal, customs, and port authorities. It is not uncommon for “bookings” to be rescheduled or even canceled for various reasons. When withdrawal occurs close to the shipping date, there may not be enough time for the shipping line to fill the released space, resulting in revenue loss. Cancellation, in this context, includes proactive rescheduling or withdrawal of the reservation, “no-show” (missing deadlines), and cargo retention for reasons beyond the exporter’s control, such as customs or sanitary processes.
To mitigate these losses and maintain profitability in a highly competitive market, the segment relies on robust revenue management models, which seek to maximize profits while optimizing costs and investments (Ting and Tzeng, 2004). The practice of “overbooking”, common in air passenger transport to maximize revenues (Oliveira and Ferraz, 2008), highlights the importance of airlines’ ability to accurately estimate cancellations or “no-shows” to ensure a high level of competitiveness and profitability (Garrow and Koppelman, 2004).
The accurate estimation of cancellations is crucial for adequate cargo planning and for the development of a calibrated “overbooking” strategy, serving as a safety margin. Given the need to improve risk management and optimize operations in such a volatile sector, this study is justified by the pursuit of providing shipowners with greater awareness on how to plan export trips, balance risks, and generate insights to enrich sales strategies, pricing, and performance in specific markets. Thus, this research aimed to identify which variables most influence cancellation behavior in container exports, considering “booking” characteristics such as origin/destination, container type, freight value, and quantity of containers, using data from real shipments by a shipowner on an intercontinental route and applying logistic regression techniques, in line with previous studies such as Zhao et al. (2019).
2. Material and Methods
This research was characterized as a quantitative study, with an exploratory and descriptive approach, aiming to identify the variables that influence the cancellation behavior in container exports. For this purpose, binary logistic regression was used as the analysis technique, in line with the objective of improving cargo planning and shipping companies’ sales strategies. The study focused on the analysis of booking cancellation events in a weekly containerized cargo export service, operated by a shipping company on an intercontinental route, originating from the east coast of South America and destined for other regions of the American continent.
For the purposes of this study, the term ‘cancellation’ was defined broadly. This included proactive rescheduling or withdrawal of the booking by the exporter, ‘no-show’ – characterized by the loss of shipping deadlines even with an active booking – and cargo retention for reasons beyond the exporter’s control, such as customs or sanitary processes, which prevented shipment on the originally scheduled date.
The database used was provided by a company in the maritime transport segment, a large-scale shipowner, and covered a period of approximately six months of real shipments, duly anonymized. Data collection involved two MS Excel databases: one with 23,865 observations of real reservations, made by exporters between October 13, 2024, and April 29, 2025, and another with information on shipments that were canceled after being confirmed between October 2024 and October 2025, the latter serving for model training.
The databases were processed using Spyder software and the Python language, being transformed into Pandas dataframes. Data cleaning and adjustment steps were performed. The original database, which initially had more than 60 columns, underwent a ‘wrangling’ process to select the most relevant variables. Variables such as ‘Commodity’ and ‘Customer Name’ were discarded due to the high number of unique labels and computational limitations. The ‘Equipment Size’ and ‘Equipment Type’ variables were synthesized into a single category to reduce complexity.
Similarly, the variables ‘POR Country’ (country of origin) and ‘POD Country’ (country of destination) were also grouped into an ‘Others’ category to reduce complexity, keeping only countries with sample relevance as original category labels. Next, the ‘booking’ base was crossed with the cancellation history, creating the variable of interest ‘Teve_Rolagem’ (Had_Rollover), which indicated the occurrence of the cancellation event (value 1) or not (value 0). The prevalence of the cancellation event in relation to the complete population of observations was calculated.
The final dataset for model estimation included predictor variables such as ‘Shipment Number’ (booking ID), ‘Customer Vertical’ (applicant’s business segment), ‘Equipment’ (type of container in which the cargo was stuffed), ‘Validation’ (pricing/contracting format of the booking), ‘POR Country’ (origin country code of the cargo), ‘POD Country’ (destination country code of the cargo), ‘Freight per TEU’ (freight value), ‘TEU’ (quantity of containers calculated in 20-foot units), and ‘Days Before Load’ (number of days between the booking request and the estimated shipment date).
The dichotomous characteristic of the dependent variable (‘Teve_Rolagem’) led to the choice of binary logistic regression for data analysis, a method widely used in epidemiological studies and for statistical procedures (Kleinbaum and Klein, 2002). This tool is classificatory and generates a qualitative ‘output’, which represents the probability of occurrence of the event (1) or non-event (0), as described by Hosmer et al. (1991). The estimation of the coefficients for each independent variable was performed by maximum likelihood, and from the logit (Z), the probability (p) of occurrence of the event of interest and the ‘odds’ were calculated, as detailed by Fávero and Belfiore (2019).
The categorical variables included in the model were submitted to the chi-squared test, using Python’s ‘scipy.stats’ package, to verify their statistical significance. The logistic regression model was generated from the ‘Logit’ function of the ‘statsmodels’ package in Python. To evaluate the model’s quality, the Receiver Operating Characteristic (ROC) curve, the confusion matrix, and the indices of ‘Precision’, ‘Sensitivity’ (Recall), and F1-Score were used. The evaluation considered different ‘thresholds’ for event classification, including 0.5 and 0.2, aiming to optimize sensitivity in detecting cancellations, given the business priority in predicting cancellation occurrences.
3. Results and Discussion
The analysis of container export data revealed significant patterns and influences on booking cancellation behavior, although the final predictive model presented limitations. Initially, the database, composed of 23,865 observations of actual bookings, showed a cancellation prevalence of 23.35%, indicating that almost a quarter of confirmed shipments underwent some alteration or withdrawal. This percentage underscores the relevance of the problem for shipping companies, which seek to optimize their vessel occupancy and mitigate revenue losses in a scenario of high competitiveness and elevated operational costs, as discussed by Ting and Tzeng (2004).
The descriptive statistics of the quantitative data provided an initial overview of the reserves’ characteristics. The variable `Days_Before_Load`, which represents the lead time of the reservation relative to the boarding date, showed an average of 30 days. This period is considered reasonable for meeting logistical and customs deadlines. However, an atypical maximum value of 373 days was observed, suggesting the existence of long-term contracts that allow reservations with significant advance notice, although these are exceptional situations. The variables `TEU` (twenty-foot equivalent units) and `Freight_TEU` (freight value per TEU) registered averages of 3.4 and USD 1,524, respectively, with both exhibiting considerable variance among observations, which points to the diversity of cargo and negotiations in the analyzed service.
Data preparation involved a `wrangling` process to optimize the base for logistic regression. Variables with high redundancy or excessive unique categories, such as `Commodity` and `Customer Name`, were discarded due to computational complexity and data sparsity. Others, like `Equipment Size` and `Equipment Type`, were synthesized to reduce dimensionality. The remaining categorical variables, including `Customer Vertical`, `Equipment`, `Validation`, `POR Country`, and `POD Country`, were subjected to chi-squared tests and demonstrated statistical significance in relation to the cancellation event, indicating their potential influence on the predictive model.
The binary logistic regression model, employed due to the dichotomous nature of the dependent variable (cancellation or non-cancellation), converged and presented overall statistical significance, according to the `p-value` in the `output`. The `Log-Likelihood` value surpassed the null coefficient, suggesting that the included variables contributed to explaining part of the cancellation behavior. McFadden’s Pseudo R² was 0.10; although this indicator is used in some studies to evaluate model quality, the literature presents divergences regarding its clarity and relevance, as pointed out by Fávero and Belfiore (2019).
The initial evaluation of the model’s predictive capability, using a `threshold` of 0.5, revealed a significant deficiency in predicting cancellation events. The confusion matrix indicated that 5,021 actual cancellation observations were erroneously classified as non-events. Although the ROC curve presented an Area Under the Curve (AUC) of almost 72%, the precision, sensitivity, and F1-Score indices for the cancellation class were low, with a sensitivity of only 0.10. This means that the model was only correctly identifying one cancellation out of ten, rendering it ineffective for the business priority of predicting cancellations, even with an accuracy above 50% for the non-cancellation class.
Among the quantitative variables, `Days_Before_Load` was the only one that demonstrated a statistically significant influence on the cancellation event. Its positive coefficient (0.017) and an `Odds Ratio` of 1.017 indicated that each additional day of advance booking increased the probability of cancellation by 0.27%, according to the calculated marginal effects. This finding is noteworthy in the industry’s daily operations, as exporters who make reservations well in advance may be more prone to forgetfulness or changes in market conditions, such as price variations by competitors, which would lead them to seek another shipping line. This behavior highlights the importance of follow-up strategies and flexibility for long-term bookings.
The `TEU` and `Freight_TEU` variables, on the other hand, did not show statistical significance, exerting a null effect on the probability of cancellation. Although the initial inference suggested that higher freight values could inhibit cancellations (due to lower space availability or more urgent cargo), the model’s results did not corroborate this hypothesis. This indicates that, for the service and period analyzed, the quantity of containers and the freight value were not determinants for the occurrence of cancellations, contradicting some initial expectations about customer sensitivity to cost or available capacity.
The `POR_Country` variable (country of origin of the cargo) proved to be one of the most relevant. With Argentina [AR] as the intercept, Brazil [BR] (`POR_Country_BR`) showed an `Odds Ratio` of 23.878, indicating a 23.3 times higher cancellation probability in comparison. Marginal effects showed an impressive impact of a 50% increase in cancellation probability for reservations originating from Brazil. Although Brazil is responsible for 90% of the export volume in this service, its cancellation rate (approximately 20%) was aligned with the model’s general average (23.35%). In contrast, other countries of origin, such as Argentina, Uruguay, and Paraguay, which use `feeder` services to supply intercontinental lines, showed significantly lower cancellation rates, suggesting a more simplified and less bureaucratic cargo management, which favors the materialization of shipments.
Regarding destination countries (`POD_Country`), with Colombia [CO] as the reference variable, some labels showed statistical relevance and positive influence on the probability of cancellation. Guatemala [GT], Puerto Rico [PR], and the United States [US] stand out, whose `Odds Ratios` and marginal effects indicated an increase in the chance of cancellation. The conglomerate of other destinations (`POD_Country_Others`) was not statistically significant. The complexity of clearance policies, customs bureaucracy, exchange rate strength, and trade agreements between different economies may be underlying factors for these variations, although a detailed analysis of these interactions was not the main focus of the study.
The `Customer Vertical` category (client’s area of operation) also provided important insights. With the `Automotive` segment as the intercept, clients from the `Reefer` segment (refrigerated cargo) showed the strongest correlation with cancellation, with about 18% marginal effects on the probability of the event. The `Paper & Forestry` segment also showed an increase of approximately 8%. The high incidence of cancellations for `Reefer` clients can be attributed to the agricultural nature of their cargo, which frequently requires approvals from public bodies, such as the Ministry of Agriculture, in addition to being subject to sanitary risks and market closures, which can cause delays or postponements in shipments.
The variables of the `Validation` category (negotiation modality of the `booking`) were also crucial for understanding the phenomenon. The `Online Pricing` modality negatively influenced cancellations, meaning it inhibited them. This modality, characterized by dynamic pricing on online platforms and shorter booking windows (6 to 8 weeks before the ship’s departure), also includes penalties for cancellation/postponement, which can discourage withdrawals. This suggests that the shipping company should promote this modality to reduce risks. In contrast, the `Over Allocated` category, which applies to exporters with valid contracts that have exceeded their pre-negotiated space, recorded the highest incidence of cancellations, reaching almost 30%.
Given the model’s deficiency in predicting cancellations with a `threshold` of 0.5, an alternative `threshold` of 0.2 was suggested and tested to prioritize the identification of cancellation events. This change resulted in improved sensitivity for the cancellation class (0.76), meaning the model would be able to identify 76% of actual cancellations. However, this improvement was accompanied by a reduction in precision and an increase in misclassifications for non-events, with the model’s overall accuracy dropping to 0.58. This calibration reflects the need to balance the ability to predict the event of interest with the model’s overall precision, especially in scenarios with imbalanced classes.
In summary, the research, despite facing limitations in the predictive capability of the Logit model with the default `threshold`, generated valuable `insights` on the variables influencing the cancellation of container bookings. Booking lead time, country of origin (especially Brazil), certain destination countries, customer segments such as `Reefer` and `Paper & Forestry`, and negotiation modalities `Online Pricing` and `Over Allocated` were identified as relevant factors. These findings provide a basis for shipping lines to improve voyage planning, refine their sales and pricing strategies, and consider implementing more specific policies to mitigate cancellation risks, even though the model requires future exploration of external variables and alternative methodological approaches for more robust forecasting.
4. Conclusion
The study sought to identify the variables that most influence the cancellation of container bookings in an export service, aiming to improve cargo planning and sales strategies for shipping companies. It was found that the booking lead time, expressed in Days_Before_Load, positively influenced the probability of cancellation, suggesting that bookings made further in advance are more prone to cancellations. It was observed that the country of origin Brazil (POR_Country_BR) showed a significantly higher cancellation probability compared to other countries on the route, while the Online Pricing negotiation modality inhibited cancellation, possibly due to dynamic pricing and penalties. Additionally, it was identified that customer segments such as Reefer and Paper & Forestry registered a higher incidence of cancellations, and the Over Allocated category contributed the most to the phenomenon. Although the binary logistic regression model demonstrated overall statistical significance, its predictive capacity for cancellation events was deficient with the standard threshold of 0.5, misclassifying a considerable portion of actual cancellations.
Despite the model’s predictive limitations, the findings generated valuable insights that contribute to the strategic planning of shipping companies. Information on the influence of booking lead time, cargo origin, customer segment, and negotiation modality provides a basis for refining sales, pricing, and risk management strategies, enabling the implementation of more specific policies to mitigate losses. For future studies, it is recommended to explore external variables, such as seasonality and exchange rate fluctuations, and to consider alternative methodological approaches that better handle non-linearity and class imbalance. It is also suggested to collect more robust data over longer periods, as well as to investigate separately the different natures of cancellation (rescheduling, no-show, cargo retention) to improve the understanding and prediction of this behavior in containerized maritime transport.
Bibliographic References
Christiansen, M.; Fagerholt, K.; Nygreen, B.; Ronen, D. 2007. Chapter 4 maritime transportation. P. 189-284. In: Barnhart, C.; Laporte, G. Handbooks in Operations Research and Management Science. v.14. North Holland. Disponível em: https://www.sciencedirect.com/science/chapter/handbook/pii/S0927050706140049. Acesso em: 07 abr. 2026
Fávero, L.P.; Belfiore, P. 2019. Data science for business and decision making. Academic Press, Cambridge, MA, EUA. Disponível em: https://www.sciencedirect.com/book/monograph/9780128112168/data-science-for-business-and-decision-making. Acesso em: 10 abr. 2026
Garrow, L.A.; Koppelman, F.S. 2004. Predicting air travelers’ no-show and standby behavior using passenger and directional itinerary information. Journal of Air Transport Management ν.10 (6): 401-411. Disponível em: https://www.sciencedirect.com/science/article/pii/S0969699704000407. Acesso em: 04 abr. 2026
Hosmer, D.W.; Taber, S.; Lemeshow, S. 1991. The importance of assessing the fit of logistic regression models: a case study. American Journal of Public Health vol.81 (no.12). 1630-1636. Disponível em: https://ajph.aphapublications.org/doi/epdf/10.2105/AJPH.81.12.1630. Acesso em: 10 abr. 2026.
Kleinbaum, D.G.; Klein, M. 2002. Logistic regression: a self-learning text. 2ed. Springer, New York, NY, EUA. Disponível em: https://link.springer.com/book/10.1007/b97379. Acesso em: 10 abr.2026
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 v.12 (2): 481-506. Disponível em: https://www.researchgate.net/publication/262434666_Overbooking_gerenciamento_de_receitas_e_previsao_de_demanda_estudo_empirico_das_posicoes_em_sistemas_de_reservas_de_companhias_aereas. Acesso em: 08 abr. 2026
Tzeng, G.H.; Ting, S.C. 2004. An optimal containership slot allocation for liner shipping revenue management. Maritime Policy & Management v.31 (3): 119-211. Disponível em: https://www.researchgate.net/publication/248989177_An_optimal_containership_slot_allocation_for_liner_shipping_revenue_management. Acesso em: 08 abr. 2026
United Nations Conference for Trade and Development [UNCTAD], 2025. Review of maritime transport 2025, New York, United Nations. Disponível em: https://unctad.org/system/files/official-document/rmt2025overview_en.pdf. Acesso em: 06 abr. 2026
Wang, S.; Alharbi, A.; Davy, P. 2014. Liner ship route schedule design with port time Windows. Transportation Research Part C Emerging Technologies 41 (2014): 1-17 . Disponível em: https://www.sciencedirect.com/science/article/pii/S0968090X14000242?via%3Dihub. Acesso em 04 abr. 2026
Zhao, H.; Meng, Q.; Wang, Y. 2019. Exploratory data analysis for the cancellation of slot booking in intercontinental container liner shipping: a case study of Asia to US West Coast service. Transportation Research Part C Emerging Technologies v. 106: 243-263. Disponível em: https://www.sciencedirect.com/science/article/pii/S0968090X19300324?via%3Dihub. Acesso em: 07 abr. 2026
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