Fair Allocation Activity

A common scenario in a Moodle course is that participants need to be assigned to different groups.

For this purpose, we would like to introduce the Fair Allocation activity, which aims to assign students as fairly as possible to the available options according to their preferences.

Unlike the Group Choice activity, allocation to groups is not on a first-come, first-served basis. Instead, participants can vote for their preferred options during a time period you set. Only after the voting period has ended are participants assigned to the options as fairly as possible using an algorithm. You can also manually reassign participants after the algorithm has run.

Prerequisite: Editing Mode

To add the activity to your course, turn on editing mode by clicking the white button next to Edit in the header (Fig. 1)

Create a Fair Allocation Activity

In the section where you want to add the activity, click Add an activity or resource (Fig. 1).

In the window that opens, select Fair Allocation (Fig. 2).

Fair Allocation Settings

A new page will open, where you can configure the activity (Fig. 3).

First, you must enter a name for the activity, as this is a required field.

Next, select the voting strategy and configure the settings for that strategy. The following voting strategies are available:

  • Accept–Reject
    For each option, users can indicate whether they would accept or reject it.

  • Accept–Neutral–Reject
    For each option, users can indicate whether they would accept or reject it, or remain neutral.

  • Likert scale
    For each option, users can vote using a scale of positive integers. The scale starts at 0, and you can set its upper limit in the settings. A higher number indicates a stronger preference.

  • Allocate points
    Users can assign points to each option. You can set the total number of points available in the settings. The more points an option receives, the stronger the preference for it.

  • Rank options
    Users can select and rank their top N options. You can set how many options they must rank.

  • Checkboxes
    Users can indicate which options they find acceptable by ticking a checkbox for each one.

Finally, specify the time period during which voting will be open.

Add Options

On the overview page, you will see a section called Options. Before users can choose between different options, you need to add them here.

Click Edit options (Fig. 4). This will take you to a page listing your options. Since none have been added yet, the list will be empty. Click Add a new option (Fig. 5).

Enter a title for the new option, and optionally add a description and a maximum number of participants. You can also deactivate an option; inactive options will not be shown to students. In this example, leave the option active (Fig. 5).

Click Save changes to save and return to the previous page, or Save and continue to add another option.

When you return to the list of options, the options you created will be displayed, as shown in Fig. 6. Once you are happy with them, click Back to return to the plugin overview page.

 

Voting Phase

Once the voting period begins, participants can take their time to select and save their preferences until the voting period ends.

Figure 7 shows the voting interface as it appears to a participant in our example.

As the instructor, you can also view the current votes during the voting period. In the Reports section, click Show evaluation table (Fig. 8).

Please note that the table may change until the voting period officially ends, as students can change their choices at any time during this period.

Ending the Voting Period and Running the Allocation

 

In the Change allocation section, the Run allocation algorithm button becomes active. Click it to start the algorithm (Fig. 9). Depending on the number of participants and options, the process may take some time to complete in the background.

You can then view the specific assignments in the evaluation table under Votes and allocations (Fig. 10).

You can also click Show allocation statistics to view information about the quality of the allocation (Fig. 11). This includes, among other things, how many participants were assigned an option they ranked as their top preference.

As mentioned earlier, you can also manually assign individual participants to an option. Click Manual allocation form. A new page will open with a table listing all participants and options (Fig. 12). To assign a participant, simply tick the box for the desired option.

You also have another way to assign participants who did not vote. You can choose between Distribute unassigned participants evenly and Fill places with unassigned participants (Fig. 13).

 

Prevent access after end of submission

In the Change allocation section, the Run allocation algorithm button becomes active. Click it to start the algorithm (Fig. 9). Depending on the number of participants and options, the process may take some time to complete in the background.

You can then view the specific assignments in the evaluation table under Votes and allocations (Fig. 10).

You can also click Show allocation statistics to view information about the quality of the allocation (Fig. 11). This includes, among other things, how many participants were assigned an option they ranked as their top preference.

As mentioned earlier, you can also manually assign individual participants to an option. Click Manual allocation form. A new page will open with a table listing all participants and options (Fig. 12). To assign a participant, simply tick the box for the desired option.

You also have another way to assign participants who did not vote. You can choose between Distribute unassigned participants evenly and Fill places with unassigned participants (Fig. 13).

 

Attribution for reuse:

“Fair Distribution Activity” by Kathrin Osswald  (Ulm University), licensed under CC BY 4.1.