{% 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 %}

VIF Values Table

The table below lists each feature variable and its corresponding VIF value.

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

VIF Distribution Chart

This chart visualizes the VIF values for each feature, making it easy to spot variables with high multicollinearity.

Chart for VIF
{% endif %}
{% endif %}
{% endif %}