{% load otree static %} {% load otree i18n %}
{% blocktrans %} We will go through a simple example to illustrate how the allocation procedure works. In this example, there are four students (1, 2, 3 and 4) and four schools (A, B, C and D). Each school has one slot. Students submit the following preference lists: {% endblocktrans %}
| {% for student in ex_students %} | {% trans 'Student' %} {{ student }} | {% endfor %}
|---|---|
| {{ points }} | {% for preference in preference_list %}{{ preference }} | {% endfor %}
{% blocktrans %} The priority list of each of the four schools is the following. {% endblocktrans %}
| {% for school in ex_schools %} | {% trans 'School' %} {{ school }} | {% endfor %}
|---|---|
| {{ ordinal }} {% trans 'Priority' %} | {% for priority in priority_list %}{% trans 'Student' %} {{ priority }} | {% endfor %}
{% blocktrans %} Note: At any step, any student temporarily admitted at a school is shown in a box. {% endblocktrans %}
{% if treatment == 2 or treatment == 3 or treatment == 4 %}
{% trans 'Step 1' %} {% blocktrans %} For each student, an application is sent to the school that she ranked first. That is, students 1, 2 and 3 apply to school A, and student 4 applies to school C. Thus, school A receives three applications. It temporarily admits the applicant with the highest priority (student 1) and rejects students 2 and 3. School C temporarily admits student 4. {% endblocktrans %}
| {% trans 'School' %} A | {% trans 'School' %} B | {% trans 'School' %} C | {% trans 'School' %} D | |
|---|---|---|---|---|
| {% trans 'Step 1' %} | 1, 2, 3 | 4 |
{% trans 'Step 2' %} {% blocktrans %} Both student 2 and student 3 have been rejected by school A in Step 1 and thus apply to the school that they ranked second (school B). School B receives two applications. It temporarily admits student 2 and rejects student 3, as student 2 has a higher priority at school B than student 3. (For student 1 and student 4, there is no change at this step.) {% endblocktrans %}
| {% trans 'School' %} A | {% trans 'School' %} B | {% trans 'School' %} C | {% trans 'School' %} D | |
|---|---|---|---|---|
| {% trans 'Step 2' %} | 1 | 2, 3 | 4 |
{% trans 'Step 3' %} {% blocktrans %} Student 3 has been rejected by school B in Step 2 and thus applies to the school that she ranked third (school C). Now school C receives two applications. It temporarily admits student 3 and rejects student 4, as student 3 has a higher priority at school C than student 4. (For student 1 and student 2, there is no change at this step.) {% endblocktrans %}
| {% trans 'School' %} A | {% trans 'School' %} B | {% trans 'School' %} C | {% trans 'School' %} D | |
|---|---|---|---|---|
| {% trans 'Step 3' %} | 1 | 2 | 4, 3 |
{% trans 'Step 4' %} {% blocktrans %} Student 4 has been rejected by school C in Step 3 and thus applies to the school that she ranked second (school A). Now school A receives two applications. It temporarily admits student 4 and rejects student 1, as student 4 has a higher priority at school A than student 1. (For student 2 and student 3, there is no change at this step.) {% endblocktrans %}
| {% trans 'School' %} A | {% trans 'School' %} B | {% trans 'School' %} C | {% trans 'School' %} D | |
|---|---|---|---|---|
| {% trans 'Step 4' %} | 1, 4 | 2 | 3 |
{% trans 'Step 5' %} {% blocktrans %} Student 1 has been rejected by school A in Step 4 and thus applies to the school that she ranked second (school D). Now no student is rejected. The assignment is final. {% endblocktrans %}
{% endif %} {% if treatment != 1 %}{% trans 'Step 5' %} {% blocktrans %} Student 1 has been rejected by school A in Step 4 and thus applies to the school that she ranked second (school D). Now no student is rejected. The procedure in Part 1 ends. {% endblocktrans %}
{% endif %}| {% trans 'School' %} A | {% trans 'School' %} B | {% trans 'School' %} C | {% trans 'School' %} D | |
|---|---|---|---|---|
| {% trans 'Step 5' %} | 4 | 2 | 3 | 1 |
{% blocktrans %} We now look for blocking students in Part 1. In the example presented above, student 1 is a blocking student. In Step 1, her application has prevented students 2 and 3 from being admitted at school A. However, being temporarily admitted at school A does not benefit student 1, as she is assigned to school D in the last step (Step 5). {% endblocktrans %}
{% if treatment == 2 %} {% blocktrans %} If student 1 does not consent to waiving her priority, the admissions in the last step of Part 1 (Step 5) become final and Part 2 ends with no change. {% endblocktrans %} {% elif treatment == 3 %} {% blocktrans %} If student 1 objects to waiving her priority, the admissions in the last step of Part 1 (Step 5) become final and Part 2 ends with no change. {% endblocktrans %} {% elif treatment == 4 %} {% blocktrans %} Therefore, an automatic waiver is implemented for student 1. {% endblocktrans %} {% endif %}
{% if treatment == 2 %} {% blocktrans %} If student 1 consents to a waiver, school A is removed from her preference list. Her preference list is adjusted as follows: {% endblocktrans %} {% elif treatment == 3 %} {% blocktrans %} If student 1 does not object to a waiver, school A is removed from her preference list. Her preference list is adjusted as follows: {% endblocktrans %} {% elif treatment == 4 %} {% blocktrans %} Through the automatic waiver, school A is removed from the preference list of student 1. Her preference list is adjusted as follows: {% endblocktrans %} {% endif %}
| {% for student in ex_students %} | {% trans 'Student' %} {{ student }} | {% endfor %}
|---|---|
| {{ points }} | {% for preference in preference_list %}{{ preference }} | {% endfor %}
{% blocktrans %} Now we repeat the admissions procedure described in Part 1. {% endblocktrans %}
{% trans 'Step 1' %} {% blocktrans %} Each student applies to the school that she ranked first on her (adjusted) preference list. That is, student 1 applies to school D, students 2 and 3 apply to school A, and student 4 applies to school C. School A receives two applications. It temporarily admits student 2 and rejects student 3, as student 2 has a higher priority than student 3 at school A. {% endblocktrans %}
| {% trans 'School' %} A | {% trans 'School' %} B | {% trans 'School' %} C | {% trans 'School' %} D | |
|---|---|---|---|---|
| {% trans 'Step 1' %} | 2, 3 | 4 | 1 | |
| {% trans 'Step 2' %} | 2 | 3 | 4 | 1 |
{% trans 'Step 2' %} {% blocktrans %} Student 3 has been rejected by school A in Step 1 and thus applies to the school that she ranked second (school B). No student is rejected. The admission is final. There is no step in which a student becomes a blocking student. {% endblocktrans %}
{% blocktrans %} Note: The final admission of student 1 has not changed (she is still admitted at school D), but the admissions of the other three students have improved. {% endblocktrans %}
{% endif %}