{% if sections.acf_pacf is defined %}

📊 ACF & PACF Analysis

The ACF and PACF tables present the numerical values of autocorrelation and partial autocorrelation coefficients for each variable across specified lags. These tabulated values enable precise identification of statistically significant lags and the strength of relationships over time.

{% set columns = sections.acf_pacf.data %} {% if columns|length > 1 %}
{% for col in columns %} {% endfor %} {% for col in columns %} {% endfor %} {% set max_lags = columns | map(attribute='lags') | map('length') | max %} {% for idx in range(max_lags) %} {% for col in columns %} {% endfor %} {% endfor %}
Lag{{ col.column }}
ACF PACF
{% if columns[0].lags[idx] is defined %} {{ columns[0].lags[idx] }} {% else %} - {% endif %} {% if col.acf[idx] is defined and col.acf[idx] is number %} {{ "%.3f"|format(col.acf[idx]) }} {% elif col.acf[idx] is defined %} {{ col.acf[idx] }} {% else %} - {% endif %} {% if col.pacf[idx] is defined and col.pacf[idx] is number %} {{ "%.3f"|format(col.pacf[idx]) }} {% elif col.pacf[idx] is defined %} {{ col.pacf[idx] }} {% else %} - {% endif %}
{% else %} {% for item in columns %}
ACF and PACF for {{ item.column }}
{% for idx in range(item.lags | length) %} {% endfor %}
Lag ACF PACF
{{ item.lags[idx] }} {% if item.acf[idx] is number %} {{ "%.3f" | format(item.acf[idx]) }} {% else %} {{ item.acf[idx] }} {% endif %} {% if item.pacf[idx] is number %} {{ "%.3f" | format(item.pacf[idx]) }} {% else %} {{ item.pacf[idx] }} {% endif %}
{% endfor %} {% endif %} {% if sections.acf_pacf.chart and sections.acf_pacf.chart.image %}
Chart for ACF PACF
{% endif %}
{% endif %}