{% if sections.causality is defined %}

🔗 Causality Analysis

The causality analysis section summarizes the results of causality tests between variables and the target. It includes key statistics such as best lag, p-values, scores, and whether a variable is considered causal.

{% set causality_results = sections.causality.data.causality_test_results %} {% if causality_results %}

Error Threshold: {{ sections.causality.data.error_threshold }} %

{% for row in causality_results %} {% endfor %}
Variable Best Lag P-Value Min P-Value Score MAPE Score Lags Tested Causal Coeff. Sign
{{ row.variable }} {{ row.best_lag }} {{ "%.3f"|format(row.p_value) }} {{ "%.3f"|format(row.min_p_value) }} {{ "%.2f"|format(row.score) }} {{ "%.3f"|format(row.mape_score) }} {{ row.number_of_lags_tested }} {% if row.causal %} Yes {% else %} No {% endif %} {{ row.coefficient_sign|capitalize }}
{% endif %}
{% endif %}