scieee AI-readable full text Open interactive document viewer

On the revealed preference analysis of stable aggregate matchings

Demuynck, Thomas,Salman, Umutcan

Abstract

EconStor is a publication server for scholarly economic literature, provided as a non-commercial public service by the ZBW.

Full text

Demuynck, Thomas; Salman, Umutcan Article On the revealed preference analysis of stable aggregate matchings Theoretical Economics Provided in Cooperation with: The Econometric Society Suggested Citation: Demuynck, Thomas; Salman, Umutcan (2022) : On the revealed preference analysis of stable aggregate matchings, Theoretical Economics, ISSN 1555-7561, The Econometric Society, New Haven, CT, Vol. 17, Iss. 4, pp. 1651-1682, https://doi.org/10.3982/TE4723 This Version is available at: https://hdl.handle.net/10419/296396 Standard-Nutzungsbedingungen: Die Dokumente auf EconStor dürfen zu eigenen wissenschaftlichen Zwecken und zum Privatgebrauch gespeichert und kopiert werden. Sie dürfen die Dokumente nicht für öffentliche oder kommerzielle Zwecke vervielfältigen, öffentlich ausstellen, öffentlich zugänglich machen, vertreiben oder anderweitig nutzen. Sofern die Verfasser die Dokumente unter Open-Content-Lizenzen (insbesondere CC-Lizenzen) zur Verfügung gestellt haben sollten, gelten abweichend von diesen Nutzungsbedingungen die in der dort genannten Lizenz gewährten Nutzungsrechte. Terms of use: Documents in EconStor may be saved and copied for your personal and scholarly purposes. You are not to copy documents for public or commercial purposes, to exhibit the documents publicly, to make them publicly available on the internet, or to distribute or otherwise use the documents in public. If the documents have been made available under an Open Content Licence (especially Creative Commons Licences), you may exercise further usage rights as specified in the indicated licence. https://creativecommons.org/licenses/by-nc/4.0/ Theoretical Economics 17 (2022), 1651–1682 1555-7561/20221651 On the revealed preference analysis of stable aggregate matchings Thomas Demuynck ECARES, Université Libre de Bruxelles Umutcan Salman ECARES, Université Libre de Bruxelles Echenique, Lee, Shum, and Yenmez (2013) established the testable revealed preference restrictions for stable aggregate matching with transferable and nontransferable utility and for extremal stable matchings. In this paper, we rephrase their restrictions in terms of properties on a corresponding bipartite graph. From this, we obtain a simple condition that verifies whether a given aggregate matching is rationalizable. For matchings that are not rationalizable, we provide a simple greedy algorithm that computes the minimum number of matches that need to be removed to obtain a rationalizable matching. We also show that the related problem of finding the minimum number of types that we need to remove in order to obtain a rationalizable matching is NP-complete. Keywords. Revealed preference theory, two-sided matching markets, stability, computational complexity, matroid. JEL classification. C78, D11. 1. Introduction This paper revisits the results of Echenique et al. (2013) (ELSY from now on) by investigating the testable revealed preference implications of stable aggregate matchings in a transferable utility (TU) and nontransferable utility (NTU) setting.1For their characterization, Echenique et al. (2013) start by mapping a given aggregate matching to a particular graph. They show that the matching is NTU rationalizable if and only if this graph has no two distinct, regular, and vertex-minimal cycles that are connected.2Sub- sequently, they show that an aggregate matching is TU rationalizable or NTU rationalizable by an extremal stable matching if and only if the associated graph has no regular vertex-minimal cycle. Thomas Demuynck: [email protected] Umutcan Salman: [email protected] Thomas Demuynck acknowledges financial support from the Fonds de la Recherche Scientifique-FNRS under Grant F.4516.18 and EOS project 30544469. 1See also Echenique (2008), Cherchye, Demuynck, De Rock, and Vermeulen (2017), and Hu, Li, and Tang (2020) for other revealed preference approaches to matching models. 2See the next section for a formal definition of the various concepts. ©2022 The Authors. Licensed under the Creative Commons Attribution-NonCommercial License 4.0. Available at https://econtheory.org.https://doi.org/10.3982/TE4723 1652 Demuynck and Salman Theoretical Economics 17 (2022) The contribution of this paper is threefold. First, we derive an easy equivalent set of conditions to verify these rationalizability conditions. Our conditions only involve comparing the number of vertices and edges on the connected components of a corresponding bipartite graph and are therefore very easy to verify. Next, we look at matchings where the rationalizability conditions are not satisfied. Relying on results from matroid theory, we provide efficient greedy algorithms to determine the minimum number of matches that need to be removed in order to obtain a matching that is rationalizability. This provides us with a goodness-of-fit measure to determine how close a given matching is to being rationalizable. Another way to restore rationalizability is by removing types. This begs the question of determining the minimal number of types that must be removed in order to obtain a matching that is rationalizable. We show that this problem is NP-hard. The paper unfolds as follows. Section 2sets the stage by describing the framework and ELSY’s characterization. In Section 3, we present an equivalent characterization in terms of a bipartite graph. Section 4looks at the problem of removing a minimal number of matches to obtain a matching that is rationalizable. In turn, Section 5looks at the problem of removing a minimal number of types in order to obtain a rationalizable matching. Section 6contains a short empirical illustration. Section 7contains a conclusion. All proofs are in the Appendix. 2. Framework and contribution In this section, we introduce the notation and definitions necessary to state the main result of ELSY. There are two disjoint finite sets of types, denoted by Mand W.ThesetMis the set of types of men and Wis the set of types of women. For each type combination (m,w)∈M×W, we know the number of matchings (marriages) that take place between these types. We denote this number by X(m,w)∈N∪{0}.3We define an (aggregate) matching by a triple M=(M,W,X). Similar to ELSY, we ignore singles. In addition, we will also abstain from including individual rationality constraints as a stability requirement. For many data sets on matchings, singles are not observed or are assumed to have preferences different than matched individuals. If so, omitting them from the analysis is without loss of generality. On the other hand, the model can easily be extended to include singles by adding on each side of the market an additional type representing “singlehood.” See, for example, the working paper of Echenique, Lee, and Shum (2010) on how to incorporate singles into the current framework. The nontransferable utility setting Following the revealed preference methodology, the goal is to assign preferences for each type of men m∈Mover all types of women w∈W and preferences for all types of women w∈Wover all types of men m∈M, such that the observed matching is stable. Let PM=(Pm)m∈Mbe a preference profile for the types of 3It is easy to generalize the setting to X(m,w)∈R+, for example, to account for random matchings. Theoretical Economics 17 (2022) Revealed preference analysis 1653 men in Mand let PW=(Pw)w∈WbeapreferenceprofileforthetypesofwomeninW. Every preference Pmand Pwis a strict linear order over Wand M, respectively. The pair (m,w)∈M×Wis a blocking pair if there exists a type m∈Mand a type w∈Wsuch that mP wm,wP mw,andbothXm,w>0andXm,w>0. This means that type wwomen prefer men of type mover men of type mand that type mmen prefer women of type wwomen over women of type w, although there are type mmen matched to type wwomen and type wwomen matched to men of type m.The matching M=(M,W,X)is stable for the preferences (PM,PW)if there are no blocking pairs. Although in reality we may observe the matching M=(M,W,X), we usually do not observe the preference profiles PMand PW. If it is possible to find preference profiles PMand PWsuch that the observed matching is stable, then the matching is said to be NTU rationalizable. Definition (NTU Rationalizability). A matching M=(M,W,X)is NTU rationalizable if and only if there exists a preference profile PMand a preference profile PWsuch that Mis stable for the preferences (PM,PW). An extremal stable matchings is a matching that is better for one side of the market (and worse for the other side) than any other stable matching. Here, better is in the sense of first-order stochastic dominance.4Men optimal stable matchings are called M-optimal while women optimal matchings are W-optimal. Definition (M-(W-) Extremal Rationalizability). A matching M=(M,W,X)is M- (W-) rationalizable if and only if there exists a preference profile PMand a preference profile PWsuch that Mis the M-orW-optimal stable matching for the preferences (PM,PW). The transferable utility setting In the TU setting, every type-man–type-woman combination obtains a surplus α(m,w)that can be divided between the two partners. In such TU settings, stable matchings are those that maximize joint surplus (Shapley and Shubik (1972)): max  Z(m,w)∈N∪{0} α(m,w)Z(m,w), such that  m∈M Z(m,w)= m∈M X(m,w)∀w∈W  w∈W Z(m,w)= w∈W X(m,w)∀m∈M. (OP1) 4See Echenique et al. (2013) for the exact definition. 1654 Demuynck and Salman Theoretical Economics 17 (2022) The two restrictions in the program are adding up constraints and imposing that the matching (M,W,Z)should have, for each man type and woman type, the same number of individuals as in the observed matching. The matching (M,W,Z)is TU stable if Zis a solution of (OP1). In reality, however, we do not observe the surplus values α(m,w). Following the revealed preference methodology, the aim is to find values α(m,w)such that the observed matching M=(M,W,X)solves (OP1). Definition (TU Rationalizability). A matching M=(M,W,X)is TU rationalizable if and only if there exist surplus values (α(m,w))m∈M,w∈Wsuch that M=(M,W,X)is TU stable, i.e., solves (OP1). Graph theoretic concepts In order to state the rationalizability characterizations of ELSY, we need to introduce some graph theoretic notation and definitions. An undirected graph or network G=(V,E)consists of a finite set of vertices or nodes, V,andedges,E, where each edge e∈Eis a two element subset of V.Weusually write edges as e=(x,y)instead of e={x,y}, but it should be understood that (x,y) and (y,x)represent the same edge. Apath in a graph G=(V,E)is a sequence of distinct vertices in V,sayρ= x0,x1,,xnsuch that (xi,xi+1)∈Efor all i=0, ,n−1. Two vertices x,y∈Vare connected if there is a path from xto y. Acycle in a graph G=(V,E)is a sequence of vertices γ=x0,x1,x2,,xn,x0such that (i) for all i=1, ,n−1, (xi,x(i+1))∈Eand (xn,x0)∈E, (ii) all these edges are distinct, and (iii) all vertices x0,,xnare also distinct. Acycleγ=x0,x1,,xn,x0is vertex-minimal if there is no proper subset of vertices that also form a cycle. As an illustration, in Figure 1, the cycle γ=a,b,c,d,e,ais not vertex-minimal as γ=a,b,d,e,ais a cycle with fewer vertices. If γand γare two cycles and there is a path from a vertex in γto a vertex in γin G, we say that the two cycles are connected. The graph ˜ G=(˜ V,˜ E)is a subgraph of G=(V,E)if ˜ V⊆Vand ˜ Econtains all edges from Ethat have both vertices in ˜ V: ˜ E=(x,y)∈E:x,y∈˜ V. Aconnected component of G=(V,E)is a subgraph ˜ G=(˜ V,˜ E)such that any two vertices in ˜ Vare connected via some path in ˜ Gand no vertex in ˜ Vis connected to a vertex a b c d e Figure 1. The cycle a,b,c,d,eis not vertex-minimal. Theoretical Economics 17 (2022) Revealed preference analysis 1655 m1 m2 m3 w1w2w3 11 910 020 41 13 91 0 m1 m2 m3 w1w2w3 Figure 2. A matching and its graph G=(V,E). in V\˜ Vvia some path in G. Every graph can be partitioned into its connected components. Two vertices are in the same connected component of Gif and only if they are connected in G. Atree is a connected graph with no cycles. If every connected component of a graph is a tree, the graph is called a forest. Generalizing this notion, we call a connected graph a pseudotree if it contains at most one cycle. If every connected component of a graph is a pseudotree, the graph is called apseudoforest. The graph GStarting from a matching M=(M,W,X),ELSYdefineaparticulargraph G=(V,E),whereVconsists of all type combinations (m,w)that have at least one matching: V=(m,w)∈M×W:X(m,w)>0. Next, the graph G=(V,E)has an edge between a vertex (m,w)and a vertex (m,w)if and only if m=mor w=w: E=(m,w),m,w∈V2:m=mor w=w. Figure 2gives an example reproduced from ELSY. The left panel shows a matching M= (M,W,X)for three types of men and three types of women. The value at row miand column wjis given by X(mi,wj). The panel on the right gives the graph G=(V,E). There is a node for every nonzero entry in the matching table and an edge between every two nodes in a common row or column. We call a cycle γin Gregular if it involves at least two types of men and two types of women. For example, in Figure 2the following cycle is regular: γ=(m1,w1),(m1,w2),(m3,w2),(m3,w1),(m1,w1). On the other hand, the the following cycle is not regular: γ=(m1,w2),(m3,w2),(m2,w2),(m1,w2). The following theorem gives the characterization of ELSY. Theorem 1(Echenique et al. (2013)). (i) A matching M=(M,W,X)is NTU rationalizable if and only if the graph G=(V,E)does not contain two distinct, regular, vertex-minimal cycles that are connected. 1656 Demuynck and Salman Theoretical Economics 17 (2022) m1 m2 m3 w1w2 Figure 3. Two connected cycles that are not vertex-minimal. (ii) A matching M=(M,W,X)is TU rationalizable, M-extremal rationalizable, or W-extremal rationalizable if and only if the graph G=(V,E)does not contain a regular, vertex-minimal cycle. As the revealed preference conditions for TU rationalizability and M- (W-) extremal rationalizability are equivalent, we will refer to the two cases simply as TU rationalizability from now on. The example in Figure 2is not NTU (TU) rationalizable. Indeed, there are two regular, vertex-minimal cycles that are connected: γ1=(m1,w1),(m1,w2),(m3,w2),(m3,w1),(m1,w1) γ2=(m1,w2),(m1,w3),(m2,w3),(m2,w2),(m1,w2). Figure 3illustrates why we need to requirement vertex-minimality of the cycles. The graph has two connected regular cycles γ1=(m1,w1),(m3,w1),(m3,w2),(m1,w2),(m1,w1) and γ2=(m1,w1),(m3,w1),(m3,w2),(m2,w2),(m1,w2),(m1,w1). The cycle γ2, however, is not vertex-minimal as the node (m2,w2)can be removed to obtain the cycle γ1. As such, the graph is still NTU rationalizable although it has two connected regular cycles. If we want to verify whether a given matching is rationalizable, we could proceed by directly verifying the condition in Theorem 1. For example, for NTU rationalizability, one could try to enumerate all regular vertex-minimal cycles in the network G=(V,E) and check whether two of them are connected. Doing so, however, is not straightforward. As we will show in Theorem 2below, there is a much more efficient way to verify rationalizability. In order to do so, we need to introduce an alternative representation of the matching in terms of a bipartite graph. 3. The bipartite graph Our results rely on the construction of a bipartite graph G=(V,E)from the matching M=(M,W,X). We will use the calligraphic notation G,V,andEto denote this graph. Theoretical Economics 17 (2022) Revealed preference analysis 1657 m1 m2 m3 w1w2w3 m1 m2 m3 w1 w2 w3 Figure 4. The graphs G(left) and G(right). The vertices Vare given by the set of types V=M∪W. Next, we have an edge between a vertex mand a vertex wif and only if they have some matches: E=(m,w)∈M×W:X(m,w)>0. Figure 4gives an illustration. The left part reproduces Gfrom Figure 2.Therightgraph gives the corresponding bipartite graph G=(V,E).VerticesinGare related to edges in G, while edges in Gcorrespond to a pair of connected edges in G. The following result shows how rationalizability can alternatively be verified using the graph G=(V,E). Theorem 2. (i) The following conditions are equivalent: (i.a) The matching M=(M,W,X)is NTU rationalizable. (i.b) The graph G=(V,E)has no two distinct, regular, vertex-minimal cycles that are connected. (i.c) The graph G=(V,E)has no two connected cycles. (i.d) Every connected component of the graph G=(V,E)has at least as many vertices as edges. (ii) The following conditions are equivalent: (ii.a) The matching M=(M,W,X)is TU rationalizable. (ii.b) The graph G=(V,E)has no regular, vertex-minimal cycle. (ii.c) The graph G=(V,E)has no cycle. (ii.d) Every connected component of the graph G=(V,E)has more vertices than edges. The equivalences (i.a)–(i.b) and (ii.a)–(ii.b) repeat the characterization of ELSY from Theorem 1. Our main contribution is the equivalence (i.b)–(i.c) and (ii.b)–(ii.c).These show the connection between regular, vertex-minimal cycles of Gand cycles in the bipartite graph G. Notice that for the cycles in Gwe do not impose any requirement in 1658 Demuynck and Salman Theoretical Economics 17 (2022) terms of vertex-minimality. Also, as every cycle in Gcontains at least two man types and two woman types (due to the “bipartiteness” of G), every cycle in Gautomatically satisfies the regularity requirement. The equivalences (i.c)–(i.d) and (ii.c)–(ii.d) follow directly from known results in graph theory. In particular, a connected graph has one single cycle if and only if it has the same number of vertices and edges, and a connected graph has no cycle if and only if it has more vertices than edges (see, for instance, Berge (1962, p. 27ff)). As an illustration of Theorem 2, notice that the bipartite graph of Figure 4has two connected cycles, m1,w1,m3,w2,m1and m1,w2,m2,w3,m1, so the matching is not NTU rationalizable. This also follows immediately from observing that the single connected component of Ginvolves six vertices and seven edges, so condition (i.d) is not satisfied. Conditions (i.d) and (ii.d) provide us with a very efficient test to see if a matching is rationalizable: (i) construct the graph G=(V,E), (ii) partition this graph into its connected components (e.g., using a depth first search), and (iii) compare the number of vertices and edges on each component. Step (i) takes at most O(|M|×|W|)steps. Step (ii) is of order O(|V|+|E|)and step (iii) also takes linear time. Given that |E|≤|M|×|W|, we see that the total running time is O(|M|×|W|). 4. Distance to rationalizability The rationalizability conditions in Theorem 2only provide a yes/no answer: a matching is either rationalizable or not. In many cases, such a yes/no answer is not very informative as even a small deviation from rationalizability may lead to a rejection of the revealed preference test. As noted by Varian (1990), [w]hat we usually care about [for revealed preference] is whether optimization is a reasonable way to describe some behavior. For most purposes, ‘nearly optimizing behavior’ is just as good as ‘optimizing’ behavior. Similar reasoning can be made in the current matching framework: what we really care about is whether the notion of stability provides a reasonably good way to describe the observed matching patterns. As such, we would like to have a measure of how far a given matching is from being rationalizable.5 Assume that we have a metric dthat captures the distance between two matchings. In particular, for two matchings M=(M,W,X)and M=(M,W,X)with the same set of men and women types, we denote by d(M,M)≥0thedistance between Mand M. A straightforward goodness-of-fit measure is obtained by computing the minimal 5In revealed preference analysis, near consistency with rationalizability is usually evaluated using a goodness-of-fit measure. Some examples are Afriat’s critical cost efficiency index Afriat (1973), the Houtman–Maks index (Houtman and Maks (1985)), the Varian index (Varian (1990)), the money pump index (Echenique, Lee, and Shum (2011)), the swaps index (Apesteguia and Ballester (2015)), and the minimum cost index (Dean and Martin (2016)). We are not aware of any other existing goodness-of-fit measure for the current matching context. Theoretical Economics 17 (2022) Revealed preference analysis 1665 7. Conclusion This paper complements and extends the revealed preference analysis in Echenique et al. (2013). We provide an efficient way to test whether aggregate matchings are TU or NTU rationalizable by comparing the number of vertices and edges of the connected components of a bipartite graph. We further study non-rationalizable matchings. We draw the connection with matroid theory to obtain an efficient algorithm that permits the identification of the minimum number of matches that need to be removed to restore rationalizability and we show that restoring rationalizability by removing a minimal number of types is NP-hard. We provided an short illustration to show the practical relevance of using the revealed preference approach to analyze aggregate matchings. From an empirical point, the results of this paper bring us closer to the verification of stability for matching markets where preferences of the individuals are unobservable, which is the case in most real life decentralized matching markets. Our illustration show that using goodness-of-fit measures like the CMI makes it possible to capture the degree of non-rationalizability in these markets. The fact that the set of TU or NTU rationalizable submatchings forms a matroid might be particularly interesting for future research. Matroid theory is a vast and expanding area of research in mathematics and computer science. In this regard, several other results from this field may also be relevant for the current framework. As an example, Edmonds (1965) constructed an efficient algorithm that can partition a given set into a minimum number of independent subsets. Translating this to our framework, it means that we can efficiently decompose a given matching into a minimal number of rationalizable matchings. Appendix A: Proofs of results in main text A.1 Proof of Theorem 2 The equivalence (i.a)–(i.b) and (ii.a)–(ii.b) follow from Theorem 1. Also, the equivalences (i.c)–(i.d) and (ii.c)–(ii.d) follow from known results in the literature (see Berge (1962, p. 27ff)). As such, we will focus on proving the equivalence (i.b)–(i.c) and (ii.b)–(ii.c).For this, we first state some intermediate results. Lemma 5. Let γ=v0,,vn,v0be a cycle. Then there exists no strict subset of edges of γ that also form a cycle. Proof. Toward a contradiction, assume that γis a cycle formed from a subset of edges of γ.Let(V,E)be the graph consisting of the vertices and edges of γ,andlet(V,E)be the graph formed by the set of vertices and edges in γ. As every vertex and edge in a cycle is distinct, it follows that every vertex in Vis part of exactly two edges in E, and every vertex in Vis part of exactly two edges in E. As V⊂Vand (V,E)is connected, there must be an edge e∈Ethat connects some vertex v∈Vto a vertex in V\V. This, however, implies that e/∈E,sovhas only one edge in (V,E), a contradiction. 1666 Demuynck and Salman Theoretical Economics 17 (2022) Fix a natural number n. For a natural numbers i≤n,Iwriteito denote imod (n+ 1)(i.e., the remainder of dividing iby n+1). Lemma 6. If i=j+1and j=i+1,thenn=0or n=1. Proof. The first condition requires that there is a q∈Nsuch that j+1=q(n+1)+i. Similarly, the second condition requires that there is an s∈Nsuch that i+1=s(n+1)+j. Solving this system gives 2=(q+s)(n+1). As q,s,n∈N, this implies that either n=0orn=1. As a first result, we demonstrate the intuitive fact that every regular, vertex-minimal cycle in the graph G=(V,E)should have no three consecutive vertices on a common horizontal or vertical line. Lemma 7. Consider a matching M=(M,W,N)with graph G=(V,E).Ifγ=v0,, vn,v0is a regular, vertex-minimal cycle in G=(V,E), then for any three subsequent vertices vi=(mi,wi),vi+1=(mi+1,wi+1),andvi+2=(mi+2,wi+2), the following statements hold: •if mi=mi+1,thenwi+1=wi+2, •if wi=wi+1,thenmi+1=mi+2. Proof.Letγ=v0,v1,,vn,v0be a regular, vertex-minimal cycle and consider three consecutive vertices vi=(mi,wi),vi+1=(mi+1,wi+1),andvi+2=(mi+2,wi+2) in the cycle. Given that the cycle is regular, it should have at least four distinct vertices. As such, γ= vi,vi+1,vi+2,vi. Now, toward a contradiction, assume that mi=mi+1and wi+1= wi+2.Given that (vi+1,vi+2)∈E,itmustbethatmi+1=mi+2.Assuch,mi=mi+2and, therefore, (vi,vi+2)∈E, a contradiction with minimality of γ. Thecasewherewi=wi+1and mi+1= mi+2leads to a similar contradiction. If γ=v0,,vn,v0is a cycle in Gand if for some type m∈M,thereisanisuch that vi=(m,w), we say that the cycle γvisits m. We use a similar definition for visiting a women type w. The following lemma shows that every regular, vertex-minimal cycle of Gvisits a type at most twice and this on subsequent vertices. Lemma 8. If γ=v0,,vn,v0is a regular, vertex-minimal cycle in G, then for all m∈M (w∈W) that are visited by γ, there are exactly two subsequent vertices viand vi+1in the cycle that contain m(w) and no other vertex contains m(w). Proof. We show the proof for a man type m. The proof for a women type wis entirely similar. Theoretical Economics 17 (2022) Revealed preference analysis 1667 Consider a regular, vertex-minimal cycle γ=v0,v1,,vn,v0that visits m.This means that there is a vertex vi=(m,w)for some w∈W.As(vi−1,vi)∈E,itmustbethat either mi−1=mor wi−1=w. If the latter is the case, then from Lemma 7, it follows that m=mi+1. As such, either vi−1contains mor vi+1contains mThis shows that there are at least two subsequent vertices in γthat contain m. Toward a contradiction, assume that there are three vertices that contain m,say vi=(m,wi),vj=(m,wj),vk=(m,wk) for some wi,wj,wk∈W. Without loss of generality, assume that 0 ≤i<j<k≤n.Ifi,j and kare three consecutive numbers, then by Lemma 7,wehavewj=wk, which implies that vj=vk. Given that the only identical vertices in a cycle are the first and last vertices, this gives j=k=0, a contradiction. Given this, assume, without loss of generality, that j+1<k. However, then v0,,vj,vk,,vn,v0is a cycle with fewer vertices, contradicting the vertex-mini- mality of γ. The following lemma shows that there is a one to one correspondence between regular, vertex-minimal cycles in Gand cycles in G. As a corollary, we immediately obtain the equivalence between conditions (ii.b) and (ii.c) of Theorem 2. Lemma 9. For n≥3, the following statements hold: (i) If γ=v0,v1,,vn,v0is a regular, vertex-minimal cycle in Gwith vi=(mi,wi) and w0=w1,thenγ=m0,w1,m2,,mn−1,wn,m0is a cycle in G. (ii) If γ=v0,v1,,vn,v0is a regular, vertex-minimal cycle in Gwith vi=(mi,wi) and m0=m1,thenγ=w0,m1,w2,,wn−1,mn,w0is a cycle in G. (iii) If γ=m0,w1,m2,,mn−1,wn,m0is a cycle in G,thenγ=v0,v1,,vn,v0 with vi=(mi,wi+1)if iis even and vi=(wi,mi+1)if iis odd is a regular, vertexminimal cycle in G. (iv) If γ=w0,m1,w2,,wn−1,mn,w0is a cycle in G,thenγ=v0,v1,,vn,v0 with vi=(wi,mi+1)if iis even and vi=(mi,wi+1)if iis odd is a regular, vertexminimal cycle in G. Proof. We are going to demonstrate (i) and (iii). The two other statements are analogues. Recall that a sequence of vertices x0,,xn,x0is a cycle in the graph G=(V,E)if •for all i,(xi,xi+1)∈E •all vertices x0,,xnare distinct •all edges (xi,xi+1)are distinct. For (i), let γ=v0,v1,,vn,v0be a regular, vertex-minimal cycle in Gwith vi= (mi,wi)and w0=w1. 1668 Demuynck and Salman Theoretical Economics 17 (2022) Then, from repeated application of Lemma 7, we see that w0=w1,m1=m2,and w2=w3,,mn=m0. This shows that vi=(wi,mi)=(wi,mi+1)∈Efor iodd and vi= (mi,wi)=(mi,wi+1)∈Efor ieven. Also notice that nis odd. Let us show that γ=m0,w1,m2,wn,m0 is a cycle in G. For this, we need to show that γhas no identical edges and m0,w1,, mn−1,wndoes not contain identical vertices. To show that γhas no identical vertices, assume, toward a contradiction, that mi= mjfor i= jin γ. Notice that both iand jare even. Then from the definition, vi= (mi,wi+1)and vj=(mj,wj+1).Asmi=mj, Lemma 9tells us that viand vjare adjacent, i.e., i=j+1or j=i+1. Lemma 6shows that n=0orn=1. As nis odd, we have n=1, so γ=v0,v1,v0, which contradicts regularity. Next, let us show that γhas no two identical edges. If (mi,wi+1)=(mj,wj+1)with i= j, this contradicts the fact that m0,,wncannot have two identical vertices. The same holds if (wi,mi+1)=(wj,mj+1)for some i= j.Next,if(mi,wi+1)=(mj+1,wj), then by a similar reasoning it must be that i=j+1and i+1=j. Lemma 6tells us that n=1orn=0. However, nis odd, so n=1. This gives γ=v0,v1,v0, which again contradicts regularity. For (iii), consider a cycle γ=m0,w1,m2,,mn−1,wn,m0in G.Noticethatnis an odd number. Consider the vertices vi=(mi,wi+1)for ieven and vi=(wi,mi+1)for i odd in G. Then for all i,(vi,vi+1)∈E. Let us show that γ=v0,v1,,vn,v0 is a regular, vertex-minimal cycle in G. First notice that Gvisits at least two man and two woman types, so it is regular. Next, as γis a cycle, every man type mand woman type w is contained in at most two vertices of γ(if not, then γwould contain at least three edges involving the same man or woman type, which means that γhas two identical vertices). In order to show that γis a cycle, we need to show that γhas no identical vertices and no identical edges. Toward a contradiction, assume that vi=vjwith i= j.Ifbothiand jare even, then (mi,wi+1)=(mj,wj+1), which implies that γhas two identical edges, a contradiction. If both iand jare odd, a similar contradiction occurs. If iis even and jis odd, then (mi,wi+1)=vi=vj=(mj+1,wj). Given that all vertices in m0,w1,,wnare distinct, this gives i=j+1and i+1=j. From Lemma 6, we know that n=1orn=0. As nis odd, we have n=1 and, therefore, γ=m0,w1,m0, which contradicts the fact that a cycle cannot have two identical edges. The case where iis odd and jis even is similar. In order to see that Gdoes not contain identical edges, assume toward a contradiction that (vi,vi+1)=(vj,vj+1)with i= j. Then either (vi=vjand vi+1=vj+1) Theoretical Economics 17 (2022) Revealed preference analysis 1669 or (vi=vj+1and vi+1=vj). The first case contradicts the first part of the proof as it would mean that v0,,vnhas two identical vertices. As such it must be that vi+1=vjand vj+1=vi. Given that all vertices are distinct, it follows that i=j+1 and i+1=j. Again, by Lemma 6,n=1orn=2 and the latter violates the condition that nis odd. As such, γ=m0,w1,m0, which contradicts the fact that γhas no two identical edges. Finally, we need to show that γis a vertex-minimal cycle. If not, there exists a subset of vertices of γthat also forms a cycle. Let ˜γbe such a cycle. Without loss of generality, we can assume that ˜γis vertex-minimal. If this cycle is regular, then from part (i) of the proof, this produces a cycle in G,say ˜γ, whose set of edges is a strict subset of the edges from γ. This, however, contradicts Lemma 5. If the cycle is not regular, i.e., only contains one man type or one woman type, then as ˜γcontains at least three vertices, there should be a man or woman type that was involved in more than two vertices of γ, a contradiction. The following lemma shows the equivalence between (i.b) and (i.c). Lemma 10. The graph Ghas two distinct regular, vertex-minimal connected cycles if and only if the bipartite graph Ghas two distinct connected cycles. Proof.Letγ1and γ2be two regular, vertex-minimal connected cycles in G,andletγ 1 and γ 2be the corresponding cycles in G(see Lemma 9). Given the bijection between such vertex-minimal cycles in Gand cycles in G,wehavethatγ1and γ2are distinct if an only if γ 1and γ 2are distinct. (⇒) Assume that γ1and γ2are distinct and connected in G.Ifγ1and γ2haveavertex in common, then γ 1and γ 2have a common edge, so we are done. If not, let ρ=v0,,vnbe a path in Gbetween the cycles γ1and γ2. Without loss of generality, assume that ρis vertex-minimal (i.e., there is no subset of vertices in ρthat also connects v0to vn). Similar to the proof of Lemma 7, we can show that ρhas no three subsequent vertices on a common horizontal or vertical line, i.e., for vi=(mi,wi), vi+1=(mi+1,wi+1)and vi+2=(mi+2,wi+2),ifmi=mi+1, then wi+1=wi+2, and if wi= wi+1, then mi+1=mi+2. Assume that w0=w1and nis odd. The other cases can be treated in a similar way. Notice that m0∈γ 1and wn∈γ 2.Assuch, ρ=m0,w1,m2,w3,,mn−1,wn has (mi,wi+1)∈E,m0∈γ 1,andwn∈γ 2. Given that ρis a vertex-minimal path, we can use a proof, very similar to the proof of Lemma 9, to show that ρis also a path. This shows that γ 1and γ 2are connected. For the reverse, let γ 1and γ 2be two cycles in G.Letγ1and γ2be the corresponding vertex-minimal cycles in G(see Lemma 9). If the two cycles γ 1and γ 2have a vertex in common, say m, then there is an edge v=(m,w)in γ 1and an edge v=(m,w)in γ 2. Also, vis in γ1and vis in γ2.As(v,v)∈E,wehavethatγ1and γ2are connected. 1670 Demuynck and Salman Theoretical Economics 17 (2022) Now assume that γ 1and γ 2are disjoint. Let ρbe a path of length nfrom γ 1to γ 2. Without loss of generality, we can assume that ρhas minimal length. Also assume that nisodd.Thecasewherenis even is treated in a similar way. Then ρ=m0,w1,,wn. Define vi=(mi,wi+1)for ieven and vi=(wi,mi+1)for i<nodd. We see that for all i, (vi,vi+1)∈Eand as ρis a path, we have that vi= vjfor all i,j.Then ρ=v0,,vn−1 is a path in G.Ifv0=(m0,w1)∈γ1and vn−1=(mn−1,wn)∈γ2, this gives a path from γ1 to γ2.Ifv0=(m0,w1)/∈γ1and vn−1=(mn−1,wn)∈γ2, then as m0∈γ 1,thereisaw∈γ 1 such that (w,m0)is an edge of γ 1. Define v=(w,m0)to be the corresponding vertex of γ1.Then v,v0,,vn−1 is a path in Gfrom γ1to γ2. The other cases can be dealt with in a similar way. A.2 Proof of Proposition 3 Rewriting (1) using the distance function (2)gives min X m∈M,w∈W  X(m,w)−X(m,w)  subject to M,W,Xis rationalizable. (6) The following lemma shows that any solution Xto this problem has fewer matches than X. Lemma 11. Any solution Xto (6) has that X(m,w)≤X(m,w)for all m∈Mand w∈W. Proof. Assume that for some ˆ m∈Mand ˆ w∈W,X(m,w)>X (m,w).Considerthe new matching (M,W,ˆ X(m,w)), where for all m,wwith m= ˆ mor w= ˆ w,ˆ X(ˆ m,ˆ w)= X(m,w)and ˆ X(ˆ m,ˆ w)=X(ˆ m,ˆ w). Wehavethat(M,W,ˆ X)is also rationalizable as it contains, for all types, no more matches compared to X(so the bipartite graph of (M,W,ˆ X)will be a subgraph of the bipartite graph of (M,W,X)). Also  m∈M,w∈W  X(m,w)−X(m,w)  = m∈M,w∈W  X(m,w)−ˆ X(m,w) + X(ˆ m,ˆ w)−X(ˆ m,ˆ w)  > m,w  X(m,w)−ˆ X(m,w) , which shows that Xwas not optimal, a contradiction. Theoretical Economics 17 (2022) Revealed preference analysis 1671 Lemma 11 shows that (6) can be rewritten as min X m∈M,w∈W Xm,w−X m,w subject to M,W,Xis rationalizable and X m,w≤Xm,w,∀m∈M,∀w∈W. which is the statement of Proposition 3in the main text. A.3 Proof of Proposition 4 Given a woman-type reduction M=(M,W,X)and a number K, it is easy to verify (i) whether |W|≥Kand (ii) whether the reduction is NTU or TU rationalizable (using Proposition 2) in polynomial time. This shows that the problem MTR-NTU and MTR-TU is in NP time. In order to show that the problem is NP-hard, we use a reduction from the problem MIS: Given a graph G=(V,E)and a number k∈N, is there a set of vertices ˜ V⊆Vsuch that |˜ V|≥kand no two vertices in ˜ Vare connected by an edge in E. We need to show that for every instance of MIS we can construct (in polynomial time) an instance of MTR-NTU and MTR-TU such that the instance for the MIS problem is a yes if and only if the instance for the associated MTR problem is a yes. We will first prove this for MTR-NTU and then for MTR-TU. MTR-NTU Consider the graph G=(V,E)and a number k∈Nas an instance of MIS. We construct an instance of MTR-NTU, i.e., a matching (M,W,X)and a number Kin the following way: •For every vertex v∈V, we construct two woman types wv,1 and wv,2. •For every v∈V, we consider two man-types mv,1 and mv,2. •For every vertex v∈Vand every edge e∈Econnected to v, we construct a man type mv,e. To define the matchings among these types, we set X(mv,1,wv,1)=1 X(mv,1,wv,2)=1 X(mv,2,wv,1)=1 X(mv,2,wv,2)=1 X(mv,e,wv,2)=1ifeis adjacent to v. Figure 5gives the example of the configuration for a vertex vwith three adjacent edges, e1,e2,ande3. Notice that this constitutes a cycle. As such, we call it the the cycle of the vertex vor vcycle. 1672 Demuynck and Salman Theoretical Economics 17 (2022) mv,1 mv,e1 mv,e2 mv,e3 mv,2 wv,1wv,2 Figure 5. Illustration of a cycle of a vertex vwith three adjacent edges e1,e2,ande3. A next part of the MTR instance connects the various vcycles with each other. •For every edge e=(vi,vj)∈E, we construct a woman type weand we set X(mvi,e,we)=1 X(mvj,e,we)=1. To finish the description of the MTR-NTU instance, we set the parameter Kfor the MTRNTU problem equal to |V|+|E|+k. This finishes the instance construction. In total, we have 2|V|+vd(v)man types and 2|V|+|E|woman types, where disthedegreeofthevertexv.Thisnumberis bounded by 4|V|+|V|2+|E|, which is polynomial in the inputs. As an illustrative example of how the instance of MTR-NTU may look, consider the network given in Figure 6, which has four vertices {a,b,c,d}and four edges {e1,e2,e3,e4}. The MTR-NTU instance corresponding to this graph is given in Figure 7. In order to finish the proof, we need to show that every yes instance of MIS corresponds to a yes instance for the associated MTR-NTU problem and vice versa. Toward this end, let {G=(V,E),k}be the instance of the MIS problem and let {M= (M,W,X),K}be the associated instance of the MTR-NTU problem. Assume that {G= (V,E),k}is a yes instance and let ˜ Vbe an independent set of size |˜ V|≥k.Letusshow that there is a woman-type reduction (M,W,X)of size |W|≥K=|V|+|E|+k. For all v∈V\˜ V,removefromWthe type wv,2. Notice that this destroys the cycle of vertex v. This leaves us with at least |V|+|E|+k=Kwoman types W. Now assume that M=(M,W,X)is not rationalizable. In this case, there should be two distinct ab cd e1 e2 e3 e4 Figure 6. An example graph G=(V,E)with four vertices and four edges. Theoretical Economics 17 (2022) Revealed preference analysis 1673 ma,1 ma,e1 ma,e2 ma,2 wa,1 wa,2 mb,1 mb,e1 mb,e3 mb,2 wb,1 wb,2 mc,1 mc,e2 mc,e3 mc,e4 mc,2 wc,1 wc,2 md,1 md,e4 md,2 wd,1 wd,2 we1we2we3we4 Figure 7. MTR-NTU instance of the graph in Figure 6. connected minimal cycles. However, this can only be if two vcycles with v∈˜ Vare still connected. This contradicts the definition of an independent set. For the reverse, let {M=(M,W,X),K}be a yes instance for MTR-NTU and let M= (M,W,X)beawoman-typereductionwith|W|≥K=|V|+|E|+k. We are going to perturb this solution slightly to a new yes instance of MTR-NTU in the following way: 1674 Demuynck and Salman Theoretical Economics 17 (2022) P1. For all w,ifw∈W\Wand w=wv,1 for some vertex v∈V, and if wv,2 ∈W,we remove wv,2 from Wand add wv,1 to Winstead. The only reason why wv,1 would be omitted from Wis to destroy the vcycle. However, the same can be accomplished by the woman type wv,2, so rationalizability is preserved. Notice that the size of the set Wdoes not change. P2. For all w,ifw∈W\W,ifw=wefor some edge e∈E, and if wv,2 ∈Wfor one of the two vertices vof the edge e,weaddweto Wand remove wv,2 from W. The reason why wewould be omitted from Wis to separate the two cycles corresponding to the two vertices of e. However, by deleting one of these two vertices for the woman type wv,2, this accomplishes the same goal. As such, rationalizability is preserved and the size of Wdoes not change. After repeated applications of these perturbations, consider the set ˜ Vof all vertices v such that wv,2 ∈W. Let us show that this is an independent set of the desired size. Toward a contradiction, assume that v,v∈˜ Vand e=(v,v)∈E. Thismeansthat both wv,2,wv,2 ∈W.Ifalsowv,1,wv,1,we∈W, then this violates rationalizability of M, as there are two distinct connected minimal cycles. As such, at least one of the three typesisnotinW. •If wv,1 /∈W, then by the fact that wv,2 ∈W, this woman type should have been added to Win exchange for wv,2 by the first perturbation (P1) above. A similar reasoning holds if wv,1 /∈W. •If we/∈W, then the second perturbation (P2) above requires that both wv,2 and wv,2 /∈W, a contradiction. This proves that ˜ Vis an independent set. Notice that there can be at most |V|+|E| elements in Wthat are not of the type wv,2.Asuch,if|W|≥|V|+|E|+k, it follows that ˜ V≥k. MTR-TU Consider the graph G=(V,E)and a number k∈Nas an instance of MIS. We construct an instance of MTR-TU, i.e., a matching (M,W,X)and a number K,inthe following way: •For every vertex v∈V, we construct a woman type wv. •For every edge e∈Ewe construct two woman types w1 eand w2 e. •For every vertex v∈Vand every edge e∈Econnected to v,weconstructtwoman types m1 v,eand m2 v,e. To define the matchings among these types we set Xm1 v,e,wv=1ifeis adjacent to v Xm2 v,e,wv=1ifeis adjacent to v Xm1 v,e,w1 e=1ifeis adjacent to v Xm2 v,e,w2 e=1ifeis adjacent to v. Theoretical Economics 17 (2022) Revealed preference analysis 1681 Demuynck, Thomas and Umutcan Salman (2020), “On the revealed preference analysis of stable aggregate matchings.” ECARES working paper 2020-42. [1659,1663,1664] Dupuy, Arnaud and Alfred Galichon (2014), “Personality traits and the marriage market.” Journal of Political Economy, 122, 1271–1319. [1663,1664] Echenique, Federico (2008), “What matchings can be stable? The testable implications of matching theory.” Mathematics of Operations Research, 33, 757–768. [1651] Echenique, Federico, Sangmok Lee, and Matthew Shum (2010), Aggregate Matchings. Technical report, California Institute of Technology. [1652] Echenique, Federico, Sangmok Lee, and Matthew Shum (2011), “The money pump as a measure of revealed preference violations.” Journal of Political Economy, 119, 1201– 1223. [1658] Echenique, Federico, Sangmok Lee, Matthew Shum, and M. Bumin Yenmez (2013), “The revealed preference theory of stable and extremal stable matchings.” Econometrica, 81, 153–171. [1651,1653,1655,1665] Edmonds, Jack (1965), “Minimum partition of a matroid into independent subsets.” Journal of Research of the National Bureau of Standards, 69B, 67–72. [1665] Gabow, Harold N. and Robert E. Tarjan (1988), “A linear-time algorithm for fining a minimum spanning pseudoforest.” Information Processing Letters, 27, 259–263. [1662] Galler, Bernard A. and Michael J. Fisher (1964), “An improved equivalence algorithm.” Communications of the ACM, 7, 301–303. [1661] Garey, Michael R. and David S. Johnson (1979), Computers and Intractability. Bell Telephone Laboratories, Inc. [1663] Houtman, Martijn and Johannes A. H. Maks (1985), “Determining all maximal data subsets consistent with revealed preference.” Kwantitatieve Methoden, 19, 89–104. [1658] Hu, Gaoji, Jiangtao Li, and Rui Tang (2020), The Revealed Preference Theory of Stable Matchings With One-Sided Preferences. Technical report. [1651] Kruskal, Joseph B. (1956), “On the shortest spanning subtree of a graph and the traveling salesman problem.” Proceedings of the American Mathematical Socienty, 7, 48–50. [1662] Matthews, Laurence R. (1977), “Bicircular matroids.” Quarterly Journal of Mathematics, 28, 213–228. [1660] Oxley, James G. (1992), Matroid Theory. Oxford University Press. [1660,1661] Shapley, Lloyd and Martin Shubik (1972), “The assignment game I: The core.” International Journal of Game Theory, 1, 111–130. [1653] Simões Pereira, Jose M. S. (1972), “On subgraphs as matroid cells.” Mathematische Zeitschrift, 127, 315–322. [1660] 1682 Demuynck and Salman Theoretical Economics 17 (2022) Varian, Hal R. (1990), “Goodness-of-fit in optimizing models.” Journal of Econometrics, 46, 125–140. [1658] Co-editor Federico Echenique handled this manuscript. Manuscript received 25 January, 2021; final version accepted 25 September, 2021; available online 4 October, 2021.