{% extends "layout.html" %} {% block content %} Please Enter the expected percentage of each category {{ form.hidden_tag() }} A Chi-square goodness of fit test will compare the values you obtained from your survey with what you would expect from the sample population. It is used to determine whether your sample data is consistent with a specific distribution. The test will assume equal distribution if left as '0'. {% for i in range(form.field|length) %} {{ keys[i] }} {{ form.field[i].expected(class="form-control") }} {% if form.field[i].errors %} {% for error in form.field.errors %} {% for e in error['expected'] %} {{ e }} {% endfor %} {% endfor %} {% endif %} {% endfor %} Total must equal to 0 or {{ total }} Current total: {{ form.submit(class="btn btn-primary align-self-center my-3") }} {% endblock content %}
A Chi-square goodness of fit test will compare the values you obtained from your survey with what you would expect from the sample population. It is used to determine whether your sample data is consistent with a specific distribution. The test will assume equal distribution if left as '0'.