The Department of Education wanted to analyze the process whereby graduating medical students ought and were appointed to residencies in hospitals. A veteran of the Department, Howard Roberts was assigned this task. Howard was puzzled at first; why should the DOE be interested in studying medical student job-hunting? He assumed that, like most professions, medical students were hired into residencies like into any other job, by applying, interviewing, receiving offers, and accepting at the hospital of their choice.
Howard was wrong. The process is run with a computer-executed
``match." Each student interviews at the hospitals of his/her
choice and both he/she and the hospital rank each other against all
of the other hospitals and students they are considering. These
rankings are sent to the National Resident Matching Program (NRMP),
where they are entered into a computer and a single match is
selected, wherever possible, for each student and available
position. Needing more information, Howard hired a summer student,
Thomas Johnson, to research the matching process. Tom's description
of the NRMP matching algorithm appears in Appendix 1.
Background Interviews
Now that Howard understood the algorithm for the match, he sought
to understand the possible problems with its execution. He sent Tom
back out to look at the quantitative problems with the algorithm
itself. while he spoke with students and hospital administrators
involved in the match. Tom found some problems with the algorithm,
which appear in Appendix 2. Howard's interviews were condensed and
are printed below.
Interview with Jayne Doe, recently appointed to residency:
When I didn't match to my first choice (one of the ones who had claimed that I was its first choice) I realized they lied too.
Interview with Bill Jones, director of the Resident Program at Inner City Hospital.
The first thing that must be done is make the match follow the federal equal opportunity guidelines. Right now there are no stipulations in the match to maintain racial or sexual equality. The NRMP claims that the hospitals are the ones who must obey those guidelines, while the hospitals use the NRMP for cover, arguing that once the match is over they have no control. Neither have any respect for social needs.
In exactly the same way, there is not accounting for the social costs of a match which regularly rejects inner-city hospitals like ours. The match is supposed to be a ``free-market" mechanism, but while it obeys the free-market maxim of screwing society, it is certainly removed from the supposed free-market maxim of individual self-determination. Thus it has all the problems of so-called free-market solutions, while not actually being in any way free.
Assignment
Appendix 1
The NRMP uses a simple elimination algorithm to execute its match of medical students to residencies. This method takes into account the student and hospital preferences for each other in a ``Hospital First" algorithm described in the he NRMP Directory. It matches the first choices of the hospitals with the highest possible student choices as will be shown with the following example:
Eight students (A-H) have ranked their preferences for each of the four hospitals (W-Z). Similarly, the hospitals have ranked the students. Since each hospital has two openings, the NRMP algorithm defines the two highest-ranked students as ``first choices" for the hospitals.
The first stage of the NRMP algorithm tries to make a match of students' first choices with hospitals' first choices (1,1). Only one match, C to X, is achieved in this first run, as shown below [a match will be in parentheses ()].
Next, the hospitals below X on C's rank list are removed, and C is removed from their corresponding lists. This ensures that no student will ever be rematched to a lower-ranked hospital than the one to which he was earlier matched. This puts B within W's quota of openings. A second 1,1 run is executed. This run produces no matches, as W is not B's first choice. Once there are no 1,1 matches, the algorithm tries a single 2,1 match (student second choice and hospital first choice). This produces three matches, as shown below.
After the single 2,1 run, the algorithm returns to 1,1 runs. This produces an interesting conflicting result. E is matched to Z, even though E was previously matched to X. Since Z is E's first choice, this 1,1 match is executed instead of E's 2,1 match with Y, as shown below:
The algorithm thus keeps open the possibility of students improving their matches. It has no mechanism, however, for matching any student to a lower-ranked hospital once he has been matched to one with a higher ranking.
This iterative process of 1,1 and 2,1 matches is repeated until all the students who can be matched to their first or second choice have been matched. At this point the algorithm has matched the following students:
Now a single 3,1 match is run. This produces no match, so a single 4,1 match is run, matching A to W and H to Y. The match process is now complete, with the final solution shown below:
Appendix 2. Suboptimal Solutions with the NRMP Algorithm
One of the best criteria for any matching algorithm is that its solution be pareto-optimal. Considering the match as a two-actor model (with the hospital group as one actor and the student group as the other) a pareto-optimal solution would be one in which neither the hospitals not the students can improve their matches. Given that the object of the matching program is to minimize the total rankings of the students and the hospitals (or at least minimize the totals of each), then alternate optimal solutions would be those which provided the same total ``rank sum" for each group as the chosen solution. In the case of the described example:
the sum of matched students' ranking of hospitals is 16, while the sum of the matched hospitals' rankings is 25. Thus an alternate optimal match would have the same rank sums as these, while a ``better" match would have smaller sums.
Analysis of this example shows that the algorithm assigned the students and hospitals to a sub-optimal match (by the two-actor criteria). By moving student F down from his first-choice hospital (W) to his second choice (Y), student H can be moved from his fourth choice (Y) up to his first (W), as shown below (with the alternate solution marked with -'s instead of ()'s):
This new match reduces the student rank sum by two from 16 to 14, because one student moved up three while another moved down only one. The hospital rank sum remains the same, as hospital Y gains two rank points, exactly offsetting the two lost by hospital W. Thus the new solution improves the students' match without hurting the hospitals'. In the two-actor interpretation of the match, the original solution was sub-optimal; it was possible to improve one actor's rank sum without hurting that of the other actor.