Download presentation

Presentation is loading. Please wait.

Published byDiane Harrison Modified over 2 years ago

1
Matching and Market Design: Introduction, Bipartite Matching N ICOLE I MMORLICA, M ICROSOFT R ESEARCH NE

2
Background. Computer science, economics, applied research. N ICOLE I MMORLICA, MSR NE R ESEARCHER Ph.D. 2005 (in computer science). Thesis: Computing with Strategic Agents. Postdocs 2005-2008. Studied applications of: theory to advertising markets at MSR, combinatorics to economics at CWI. Professor 2008-2012 (of computer science). Taught courses and advised students in CS-econ. Researcher 2012-present. Study CS-econ issues from the very theoretical to the very applied.

3
Research. What are realistic utopias for selfish societies? N ICOLE I MMORLICA, MSR NE R ESEARCHER Mechanism Design: Can we systematically allocate scare resources to people who need it the most? Or sell the resources and generate high revenue? simplicity Social Networks: What behavioral patterns can be supported by various structures? What information can be learned? How does behavior impact structure? diversity Market Design: What outcomes will be observed in matching markets, and how can we facilitate the matching process in practical settings? partial information

4
C OURSE L OGISTICS Course. CS 286r: Topics at the Interface of Computer Science and Economics – Matching and Market Design. Website. www.Immorlica.com/marketDesign/Harvard Lectures. Fridays, 9am-noon, MD 221. Includes a 20 minute coffee break halfway through, and you’re all invited to join me for lunch afterwards. Teachers. Nicole Immorlica, Ran Shorrer, Brendan Lucier, Scott Kominers, and more! Workload. Readings/participation (around 20 pages/week), 2 problem sets (around 6 hrs each), course project (3 stages).

5
Outline 1.Introduction: markets in practice and theory, discussion of market design 2.Bipartite Matching: elementary definitions, max cardinality & max weight matchings

6
Part 1: Introduction.

7
Markets are a medium of exchange. Markets agents objects

8
Markets firms workers agents objects Labor MarketsSchool Choice students high schools Sponsored Search advertisers ad slots Kidney Exchange patients kidneys

9
Traditional markets: shopping malls, eBay, ad auctions, FCC spectrum auctions Examples School choice: allocation of students to schools via centralized city-run program Labor markets: NRMP, cadet-branch matching Kidney exchange: matching of kidney donors to compatible recipients

10
Al Roth Market Design

11
Market design involves a responsibility for detail, a need to deal with all of a market’s complications, not just its principle features. Designers therefore cannot work only with the simple conceptual models used for theoretical insights into the general working of markets. Instead, market design calls for an engineering approach. – from The Economist as an Engineer, by Al Roth Market Design

12
…this paper makes the case that experimental and computational economics are natural complements to game theory in the work of design. The paper also argues that some of the challenges facing both markets involve dealing with related kinds of complementarities, and that this suggests an agenda for future theoretical research. – from The Economist as an Engineer, by Al Roth Market Design

13
Develop simple theory, …to deal with complexity in practice. Market Design

14
Computer Science & Economics

15
On Spherical Cows …

16
Computer Science: computability NP: set of problems whose solutions can be checked efficiently. P: set of problems that can be solved efficiently (i.e., in polynomial time).

17
Computer Science: computability 368 12 9 4 327 85 9 45 89

18
751932648 384156972 9 26478135 697241583 532687419 148395726 813564297 469723851 275819364

19
Traveling Salesman: find smallest route that visits each capitol.

20
Computer Science: computability Student social network: Study groups of size two? Size three?

21
Economics: rationality Many systems are composed of many independent self-interested agents These agents are rational, i.e. they act in their own self-interest and reason strategically, i.e. they take into account the actions of others

22
Let’s play a game Experiment: The median game. 1. Guess an integer in [1, …, 100]. 2. Write your number on a piece of paper. P R I Z E : The people whose numbers are closest to 2/3 of the median win.

23
The Median Game JoseJulianBruceMarcosNicole 254505069 Calculating the winner: 1. Sort the numbers: 0, 25, 45, 50, 69 2. Pick the middle one (the median): 45 3. Compute 2/3 of the median: 30 winner!

24
Are you a winner?

25
Questions Given computability & rationality assumptions: How will selfish agents behave? What properties emerge as a result of selfish behavior? Is it possible to formulate the rules of the system to encourage socially-optimal behavior?

26
Develop simple theory, …to deal with complexity in practice. Market Design

27
Thickness: need to attract a sufficient proportion of potential market participants to come together ready to transact with one another. Market Design Complexities – from What have we learned from market design?, by Al Roth

28
Congestion: must provide enough time or fast enough transactions so that market participants can consider enough alternatives to arrive at satisfactory ones. Market Design Complexities – from What have we learned from market design?, by Al Roth

29
Simplicity: must make it easy to participate in market as opposed to transacting outside of the marketplace or engaging in strategic behavior that reduces overall welfare. Market Design Complexities – from What have we learned from market design?, by Al Roth

30
Others: Asset to be traded Nature of contracts Medium of exchange Measure of performance Need for design Market culture Fairness and repugnance Market Design Complexities – from 1/22/14 post on The Leisure of the Theory Class, by Ricky Vohra

31
Example: traditional markets FCC spectrum auctions, eBay, ad auctions etc.: sellers offer goods and services, buyers purchase via posted prices or auctions Practice:

32
Example: traditional markets Strategic behavior, complex agent preferences, price discovery, packages and deals Issues:

33
Example: traditional markets Existence of market-clearing prices, approximately optimal simple mechanisms, techniques to aid price discovery Theory:

34
Example: school choice Boston, New York City, etc: students submit preferences about different schools; matched based on “priorities” (e.g., test scores, geography, sibling matches) Practice:

35
Example: school choice NYC too slow to clear; Boston strategically complicated, result in unstable matches, many complaints in school boards Issues:

36
Example: school choice theorists proposed alternate mechanisms including the Gale-Shapley algorithm for stable marriage, schools adopt these Theory:

37
Example: entry-level labor markets National Residency Matching Program (NRMP): physicians look for residency programs at hospitals in the United States Practice:

38
Example: entry-level labor markets 19501990 decentralized, unraveling, exploding offers inefficiencies centralized clearinghouse, 95% voluntary participation dropping participation sparks redesign to accommodate couples, system still in use Issues:

39
Example: entry-level labor markets NRMP central clearinghouse algorithm corresponds to Gale-Shapley algorithm Theory:

40
Example: kidney exchange In 2005: 75,000 patients waiting for transplants 16,370 transplants performed (9,800 from deceased donors, 6,570 from living donors) 4,200 patients died while waiting Practice:

41
Example: kidney exchange Source and allocation of kidneys: cadaver kidneys: centralized matching mechanism based on priority queue living donors: patient must identify donor, needs to be compatible other: angel donors, black market sales Issues:

42
Example: kidney exchange living donor exchanges: Theory: patient 1donor 1 patient 2donor 2

43
Example: kidney exchange living donor exchanges: adopted mechanism uses top-trading cycles, theory of maximum matching, results in improved welfare (many more transplants) Theory:

44
Part 2: Bipartite Matching.

45
Matching BoysGirls Questions. 1) What’s the most # of agents we can accommodate? 2) How can we find this allocation?

46
Matching BoysGirls left verticesright vertices edges Bipartite Graph:

47
Matching left vertices right vertices edges Bipartite Graph: 10

48
Matching matching = a set of edges that share no vertices.

49
Matching How to find a maximum matching? Idea: add edges until we can’t anymore. maximal

50
Matching How to find a maximum matching? Idea: add edges until we can’t anymore. Not maximum, but close! maximal maximum

51
Matching Defn. A soln. S to a maximization problem is an α-approximation if its value is at least an α fraction of the optimal value. Thm. Maximal matching (½)-approximates maximum matching. maximal maximum

52
Matching How to find a maximum matching? Idea: add edges until we can’t anymore, allowing people to push each other out.

53
Matching augmenting path = path between exposed vertices Theorem. Matching is maximum iff no augmenting paths.

54
Matching matching = a set of edges that share no vertices. vertex cover = a set of vertices such that each edge is incident to at least one vertex in the set.

55
Matching Theorem. Maximum matching equals minimum vertex cover.

56
Matching Theorem. Maximum matching equals minimum vertex cover (bipartite graphs). Proof. Matching = M, cover = C. 1.|M| ≤ |C|.

57
Matching Theorem. Maximum matching equals minimum vertex cover (bipartite graphs). Proof. Matching = M, cover = C. 2.|max M| ≥ |min C| (constructive).

58
Matching Theorem. Maximum matching equals minimum vertex cover (bipartite graphs). Proof. Matching = M, cover = C. 2.|max M| ≥ |min C| (constructive). augmenting path = path between exposed vertices

59
Matching Theorem. Maximum matching equals minimum vertex cover (bipartite graphs). Proof. Matching = M, cover = C. 2.|max M| ≥ |min C| (constructive). Key.vertices reachable from left-side exposed vertices. proposed vertex cover.

60
Matching Theorem. Maximum matching equals minimum vertex cover. Question. When can we match everyone?

61
Perfect Matching Defn. A matching is perfect if every vertex is matched. Question. When can we match everyone?

62
Hall’s Marriage Theorem Thm. A perfect matching exists if and only if every set of girls likes at least as large a set of boys. Defn. A matching is perfect if every vertex is matched. BoysGirls

63
Hall’s Marriage Theorem Condition. Every set of girls likes at least as large a set of boys. BoysGirls Girls not in Cover Prf. |Cover|= |Boys in Cover| + |Girls in Cover| ≥ |Girls not in Cover| + |Girls in Cover| = |Girls| and Girls is a cover, so |min Cover| ≤ |Girls|. Boys in Cover

64
Matching in Random Graphs AgentsItems Theorem. If each agent likes at least 2log n items, then with good probability there is a way to assign everyone an item they like.

65
Matching in Random Graphs Theorem. If each agent likes at least 2ln(n) items, then with good probability there is a way to assign everyone an item they like. Intuition. Deferred randomness. 1)Pr[ unique choice in market of size k ] = (1 – 1/k) k-1 ≥ 1/3 2)Constant fraction of market clears in each step. 3)Entire market clears in about log n steps.

66
Matching in Random Graphs Theorem. If each agent likes k < ½ ln(n) items, then with good probability someone is unassigned. Intuition. Some item is liked by nobody. E[ # unliked items]= n ∙ Pr[ item is unliked ] = n ∙ (1 – 1/n) nk = n ∙ e -k > n ∙ n -½ > 1 for k < ½ ln(n).

67
Weighted Matching Questions. 1) What’s the most value we can create? 2) How can we find this allocation? AgentsItems $4 $8 $6

68
Weighted Matching AgentsItems $4 $8 $6 AgentsItems WLOG, assume complete bipartite graph. Look for max-weight matching.

69
2 Primal-Dual Approach LR 2 3 1 3 2 1 2 1 “dual” variable y maps vertices to numbers such that for every edge e = (u,v), w(e) ≤ y(u) + y(v) (y non-negative). 3 3 3 3 0 0 0 0 “budgets” y(.) “prices” y(.) “value” or “weight” w(.)

70
Primal-Dual Approach LR 1 3 2 1 w(e) ≤ y(u) + y(v) implies ∑ e in M w(e) ≤ ∑ e in LUR y(v) 3 3 3 3 0 0 0 0 “budgets” y(.) “prices” y(.) “weight” w(.) 2 1 2 3 2

71
2 Primal-Dual Approach LR 2 3 1 3 2 1 2 1 Feasible Dual: for every M, y(.), ∑ e in M w(e) ≤ ∑ e in LUR y(v) 3 3 3 3 0 0 0 0 “budgets” y(.) “prices” y(.) “weight” w(.) Certificate of Optimality: find M, y(.) s.t. this holds with equality

72
Hungarian Algorithm Algorithm maintains invariants 1)Feasibility of dual: w(e) ≤ y(u) + y(v) 2)Tightness: if e=(u,v) is in M, then w(e) = y(u) + y(v) Algorithm: Initialize y(v) = max weight for v in L; y(v) for v in R = 0; M = {.}. Repeat: 1)Augment matching: if there’s an augmenting path in subgraph of tight edges, use it to augment matching M. 2)Dual adjustment: if M is not perfect, adjust dual variable y(.) to make more edges tight. Until M is maximum or duals reach zero.

73
Augmentation Step LR 3 2 Find augmenting paths in subgraph of tight edges. 4 5 3 1 2 0 4 3 5 6 5 matching edge new matching edges

74
Dual Adjustment Step LR 3 2 Update dual variables to make more tight edges: 1)Orient matching edges right-to-left, tight edges left-to-right. 2)Find set Z of vertices reachable from exposed vertices of L. 3)Decrease dual of v in L ∩ Z; increase dual of v in R ∩ Z until an edge goes tight. 4 5 3 1 2 0 4 3 matching edges tight edges 5 6 5 3

75
Dual Adjustment Step matching edges tight edges LR 1 1 1 1 2 3 2 1 0 0 0 2 3 3 2 2 2

76
Dual Adjustment Step matching edges tight edges LR 1 1 1 1 2 3 2 1 0 0 0 2 3 3 2 2 2 0 1 2 2 1

77
Dual Adjustment Step matching edges tight edges LR 1 1 1 0 1 2 2 2 1 0 0 2 3 3 2 2 2

78
Correctness Algorithm maintains invariants 1)Tight: w(e) = y(u) + y(v), for e in M matching edges can’t cross in or out of red set. 2)Dual feasibility: w(e) ≤ y(u) + y(v) edges that cross from inside red set to outside it cannot be tight. LR -Δ-Δ +Δ+Δ matching edges tight edges reachable from exposed vertices

79
Optimality Uncovered vertices all have zero duals at end of algorithm: 1)Once a vertex is covered, it remains so throughout algorithm. 2)So uncovered left-vertices have duals that decrease at same rate and reach zero simultaneously 3)And uncovered right-vertices have zero duals initially, never change. Thus, by tightness invariant, weight of matching equals dual value and so it must be optimal. LR -Δ-Δ +Δ+Δ

80
Example matching edges tight edges LR 1 1 3 3 3 3 0 0 0 0 2 3 3 2 2 2 1

81
Example matching edges tight edges LR 1 1 3 3 3 3 0 0 0 0 2 3 3 2 2 2 1

82
Example matching edges tight edges LR 1 1 3 3 3 3 0 0 0 0 2 3 3 2 2 2 1

83
Example matching edges tight edges LR 1 1 3 3 3 3 0 0 0 0 2 3 3 2 2 2 1 2 2

84
Example matching edges tight edges LR 1 1 3 3 3 3 0 0 0 0 2 3 3 2 2 2 1 2 2

85
Example matching edges tight edges LR 1 1 3 3 3 3 0 0 0 0 2 3 3 2 2 2 1 2 2

86
Example matching edges tight edges LR 1 1 3 3 3 3 0 0 0 0 2 3 3 2 2 2 1 2 2 11 2

87
Example matching edges tight edges LR 1 1 3 3 3 3 0 0 0 0 2 3 3 2 2 2 1 2 2 11 2

88
Example matching edges tight edges LR 1 1 3 3 3 3 0 0 0 0 2 3 3 2 2 2 1 2 2 1 1 2 0 2 1 1 2

89
Example matching edges tight edges LR 1 1 2 3 3 2 2 2 1 3 3 3 3 0 0 0 0 2 2 1 1 2 0 2 1 1 2

90
Example matching edges tight edges LR 1 1 2 3 3 2 2 2 1 0 0 0 0 12 1 3 2 1 3 3 3 3 2 2 1 2 0 1 2 0 1 1

91
Example matching edges tight edges LR 1 1 2 3 3 2 2 2 1 3 3 3 3 2 2 1 2 0 1 2 0 1 1 0 0 0 0 12 1 3 2 1

92
Example matching edges tight edges LR 1 1 3 3 3 3 0 0 0 0 2 3 3 2 2 2 1 2 2 1 1 2 0 2 1 1 2 3 2 0 1 1 1

Similar presentations

OK

Social Networks 101 P ROF. J ASON H ARTLINE AND P ROF. N ICOLE I MMORLICA.

Social Networks 101 P ROF. J ASON H ARTLINE AND P ROF. N ICOLE I MMORLICA.

© 2018 SlidePlayer.com Inc.

All rights reserved.

Ads by Google

Animated ppt on magnetism powerpoint Ppt on art of war author Ppt on production management information system Ppt on artificial intelligence system Ppt on spiritual leadership conference Ppt on satellite orbit magazine Ppt on hiroshima and nagasaki attack Ppt on social etiquettes tips Ppt on dance steps Ppt on sub soil investigation report