Git Product home page Git Product logo

roth-peranson's Introduction


Roth Peranson Match Algorithm

This is an unofficial Python implementation of the Nobel Prize winning algorithm used to match Canadian medical school graduates to residency positions.

Prerequisites

This is largely standalone, the only requirement being Python 3 and pandas to manage the csv rank order lists.

pip install pandas

Example

The test case here is based on the Carms guide to the matching algorithm. Print statement have been included as comments if you wish to run a "loud" version of the matching in order to show the search and recursive replacements as they happen.

Notes

This implements the simple markets, applicant proposing version of the algorithm. The main differences from the full carms use is the lack of couples matching or second year entry.

How it works

The algorithm is based on the work of Alvin E. Roth and Elliot Peranson in their paper The Redesign of the Matching Market for American Physicians: Some Engineering Aspects of Economic Design as well as previous work on matching markets by David Gale and Lloyd Shapley. Roth and Shapley jointly won the 2012 Nobel Prize in Economics "for the theory of stable allocations and the practice of market design"

The goal is to form "Stable Matches", that is, no candidate and program wish they were matched with each other instead of their actual match.

To do this both candidates and programs produce rank order lists of their preferences after which the algorithm progresses through each candidate, down their rank order list, temporarily matching them to their most preferred program which has also ranked them.

As students are considered, better matches, from the perspective of the program, may displace candidates with a temporary match in which case that candidate progresses down their remaining options potentially displacing others and so on until each students rank order list has been exhausted.

At this point all students will either be matched to the best program they can be, relative to their competition, or will have failed to match entirely.

The design of the algorithm minimises the potential for strategic rank order lists, incentivising programs and applicants to state their true preferences.

Further work needs to be done on this implementation to support candidates with complementarities.

Authors

  • John Dirk Morrison - Research and Implementation - Github: J-DM

Acknowledgements

Illustration - Pair-to-Pair by pedro baños cancer from the Noun Project

Get in touch!

You can reach me at john.dirk.morrison [you know the thing] gmail.com

roth-peranson's People

Contributors

j-dm avatar

Stargazers

Roman avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.