XLI Congreso Nacional de Estadística e Investigación Operativa
E. López Cano1, J. Saugar1, C. Lancho Martín1, M. Cuesta2, I. Martín de Diego1, A. Amado3
(1) Data Science Laboratory, Universidad Rey Juan Carlos; (2) Universidad Carlos III; (3) Dephimáticas, S.L.
Saugar, J., Lancho, C., Cuesta, M., Cano, E.L., de Diego, I.M., Amado, A. (2025). Counterfactual Explanations for Sustainable Tourism Indicators. In: Julian, V., et al. Intelligent Data Engineering and Automated Learning – IDEAL 2024. IDEAL 2024. Lecture Notes in Computer Science, vol 15346. Springer, Cham. https://doi.org/10.1007/978-3-031-77731-8_20
Through understandable “what if” scenarios, counterfactuals explore how changes in the input data affect the results of a model
Indicators such as “Average expense”, “Average stay”, “Percentage of tourism in GDP”, are classified into Dimensions.
Indicators are scaled using a given method (z-score, Min-Max, or distance to a reference value). Let \(x_j\) be such scaled indicators.
A composite indicator by dimension \(y\) is computed then as a weighted average:
\[y = \sum_{j=1}^{p} w_j x_j\]
What indicators does a destination need to change in order to improve the STI by a given amount?
\[y' - y = \sum_{j=1}^{p} w_j (x_j + \beta_j) - \sum_{j=1}^{p} w_j x_j \geq \varepsilon\]
\[\begin{align} \min \quad & \sum_{j=1}^{p} \beta_j + \lambda \sum_{j=1}^{p} \delta_j \label{f_obj} \\ \textrm{s.t.} \quad & y' - y = \sum_{j=1}^{p} w_j (x_j + \beta_j) - \sum_{j=1}^{p} w_j x_j \geq \varepsilon \label{y_epsilon} \\ %& \beta_j \leq a \cdot f_{std}(x_j), & \forall j = 1,\dots,p \label{beta_std} \\ & x_j + \beta_j \leq 1, & \forall j = 1,\dots,p \label{x_j_max1} \\ & \mu_{l} \leq \sum_{j=1}^{p} \delta_j \leq \mu_{u} \label{num_var_change} \\ &\beta_j \leq a f_{std}(x_j) \delta_j & \forall j=1,\dots,p \label{beta_binary} \\ % & \delta_j \leq \beta_j \leq m \delta_j & \forall j=1,\dots,p \label{beta_binary} \\ & \delta_j \in \{0,1\} & \forall j=1,\dots,p \label{delta_binary} \\ &\beta_0, \dots, \beta_p \geq 0, \ \beta_0, \dots, \beta_p \in \mathbb{R} \label{beta_0_real} \\ & \lambda \geq 0, \lambda \in \mathbb{R} \label{m_constant_large_enough} \end{align}\]
The formulation of the problem involves different user-fixed parameters (\(\lambda\), \(\varepsilon\), \(f_{std}(\cdot)\), \(\mu_l\), \(\mu_u\) and \(a\)) that allow its adaptation to different scenarios, depending on the domain requirements.
I+D+i project with the company Dephimática
Experts in public statistics
Sustainable tourism indicators system: Exploration, Visualization, Analysis

Success story with real impact
Using only Open Source Software, including R
Real knowledge transfer
Include more complex prediction models
Give information about the variables that build the indicator
Continuous improvement of the app
Find partners that use the dashboard
carmen.lancho@urjc.es
emilio.lopez@urjc.es
Slides: https://urjcdslab.github.io/seio2025_counterfactual
Questions
Acknowledgements: Spanish Ministry of Science and Innova- tion, under the Knowledge Generation Projects program: XMIDAS (Ref: PID2021- 122640OB-100).

XLI Congreso SEIO, Lleida 10 de junio 2025