{% if sections.vif is defined %}

📈 Variance Inflation Factor (VIF) Analysis

The VIF table presents the variance inflation factors for each variable, helping to identify multicollinearity in your dataset.

{% set vif_data = sections.vif.data %} {% if vif_data and vif_data|length > 0 %}
{% for idx in range(vif_data.feature | length) %} {% if idx == 0 and sections.vif.chart and sections.vif.chart.image %} {% endif %} {% endfor %}
Feature Variable VIF Value Chart
{{ vif_data.feature[idx] }} {{ "%.3f"|format(vif_data.vif[idx]) if vif_data.vif[idx] is number else vif_data.vif[idx] }} Chart for VIF
{% endif %}
{% endif %}