EconBase
← Back to paper

Identification of hedonic equilibrium and nonseparable simultaneous equations

The exact contents of citations.db main_text.text for this paper — one flattened LaTeX string, title through conclusion, appendix excluded, unmodified except for removing email addresses. This is what our citation measures are computed over.

65,482 characters

Identification of hedonic equilibrium and nonseparable simultaneous equations


\title[Identification of hedonic equilibrium]{Identification of hedonic equilibrium and nonseparable simultaneous equations}
\author{Victor Chernozhukov, Alfred Galichon, Marc Henry and Brendan Pass}
\address{MIT, NYU and Sciences-Po, Penn State, University of Alberta}
\date{{\scriptsize {First version: 9 February 2014. The present version is of \today. The authors thank
Guillaume Carlier, Andrew Chesher, Pierre-Andr\'e Chiappori, Hidehiko Ichimura, Arthur Lewbel, Rosa Matzkin and multiple seminar audiences
for stimulating discussions. They also thank the editor James Heckman and four referees for insightful comments. Chernozhukov's research has received funding from the NSF. Galichon’s research has received funding from ERC grants CoG-866274 and 313699, from NSF grant DMS-1716489, and from FiME (Laboratoire de Finance des Marchés de l’Energie). Henry's research has received
funding from SSHRC Grants 435-2013-0292 and NSERC Grant
356491-2013. Pass' research has received support from a University of Alberta start-up grant and NSERC grants 412779-2012 and 04658-2018.}}}

\begin{abstract}
This paper derives conditions under which preferences and technology are
nonparametrically identified in hedonic equilibrium models, where products
are differentiated along more than one dimension and agents are
characterized by several dimensions of unobserved heterogeneity. With
products differentiated along a quality index and agents characterized by
scalar unobserved heterogeneity, single crossing conditions on preferences
and technology provide identifying restrictions in \citet{EHN:2004} and \citet{HMN:2010}. We develop similar shape
restrictions in the multi-attribute case. These shape restrictions, which are
based on optimal transport theory and generalized convexity, allow us to identify
preferences for goods differentiated along multiple dimensions, from the observation of a single market.
We thereby derive identification results for nonseparable simultaneous equations and multi-attribute hedonic equilibrium models with (possibly) multiple dimensions of unobserved heterogeneity.
One of our results is a proof of absolute continuity of the distribution of endogenously traded qualities,
which is of independent interest.
\end{abstract}

\maketitle
\thispagestyle{empty}

\noindent

{\footnotesize
\textbf{Keywords}: Hedonic equilibrium, multivariate quantile
identification, multidimensional unobserved heterogeneity, cyclical monotonicity, optimal
transport.

\textbf{JEL subject classification}: C14, C39, C61, C78
}



\section*{\protect Introduction}

Hedonic models were
initially introduced by \citet{Court:39} to price highly
differentiated goods in terms of their attributes. The vast subsequent literature on hedonic regressions
of prices on attributes aimed at measuring the marginal willingness of consumers to pay for the attributes of the good they acquired, or the marginal willingness of workers to accept compensation for the attributes of their occupations. When unobservable taste for attributes drives the consumers' choices, however, a simple regression of price on attributes cannot inform us on the willingness to pay for different quality levels from the ones characterizing the good actually acquired. Nor can they inform us on the willingness to pay for characteristics of the good they would acquire under counterfactual market conditions, with different endowments, preferences and technology.

The willingness to pay for counterfactual transactions, together with structural parameters of preferences and technology, can be recovered with a general equilibrium theory of hedonic models, dating back to \citet{Tinbergen:1956} and \citet{Rosen:1974} (see \citet{Heckman:2019} for an account of their respective contributions).
The common underlying framework, which we also adopt here, is that of a
perfectly competitive market with heterogeneous buyers and sellers and
traded product quality bundles and prices that arise endogenously in
equilibrium\footnote{When preferences are quasi-linear in price and under mild
semicontinuity assumptions, \citet{Ekeland:2010} and
\citet{CMN:2010} show that equilibria exist, in the form of a joint
distribution of product and consumer types (who consumes what), a joint
distribution of product and producer types (who produces what) and a price
schedule such that markets clear for each traded product.}.
\citet{Rosen:1974} proposes a
two-step procedure to estimate general hedonic models and thereby analyze
general equilibrium effects of changes in buyer-seller compositions,
preferences and technology on qualities traded at equilibrium and their
price (see \citet{Heckman:99}). The first step is a regression of prices on attributes, and the second is a simultaneous equations estimation of the demand and supply system with marginal prices estimated in the first step as endogenous variables.

\citet{Brown:83} and \citet{BR:1982} point out that changes in consumers' unobserved taste for attributes would lead them to source goods from different suppliers, so that exclusion restrictions from the supply side cannot be justified\footnote{See also \citet{Epple:1987}, \citet{Bartik:1987} and \citet{KL:1988}.}. The literature on recovering marginal willingness to pay for counterfactual transactions has since followed three strategies: relying on multiple markets across space or time (see \citet{Brown:83}, \citet{BR:1982}, \citet{KL:1988}, \citet{TW:2001} and many references in \citet{KST:2013}); relying on specific functional forms for utility (\citet{BB:2005}, \citeauthor{BT:2011} \citeyear{BT:2011,BT:2019} and references therein); or assume consumers care about a single dimension of good heterogeneity, via a quality index (\citeauthor{EHN:2004} \citeyear{EHN:2002,EHN:2002a,EHN:2004}, \citeauthor{HMN:2010} \citeyear{HMN:2003,HMN:2010}, \citet{EPS:2010} and \citet{EQS:2020}). Each of these strategies has drawbacks. Multimarket strategies rely on the assumption of no leakage between markets, or consumption substitution across time and space. They also rely on the assumption that preferences and the distribution of preference types are stable across markets, so that variation comes from the supply side and preferences are identified, but not technology (or vice versa with symmetric assumptions, see \citet{EHN:2004}). Identification strategies based on specific parameterizations of preferences and technology cannot distinguish features of the specification that are crucial to identification and features that are convenient approximations. Identification proofs must also be repeated for each new parameterization, the suitability of which depends on the application (see the discussion in \citet{Yinger:2014}). Finally, it is important in many applications to account for heterogeneity in consumers' (or workers') relative valuations of different attributes, and hence move beyond the case of a scalar index of attributes.

This paper proposes an identification strategy based on a single market, where agents have heterogeneous relative valuations for different attributes, without relying on a specific parametric specification of preferences and technology. A leading case in the class of specifications we entertain is~$U(x,\varepsilon,z)=\bar U(x,z)+z'\varepsilon,$ where~$U$ is the valuation of the bundle of attributes~$z$ as a function of the vectors of observable and unobservable consumer characteristics~$x$ and~$\varepsilon$ respectively. We show that for each choice of distribution of types~$\varepsilon$, the function~$\bar U$ is recovered nonparametrically (and the same result holds for the supply side).
Our contribution is a direct generalization of the main identification strategy in \citet{HMN:2010}. In the latter, under a single crossing condition\footnote{Also known as Spence-Mirlees or supermodularity condition.} on the utility
function, the first order condition of the consumer problem yields an increasing
demand function, i.e., quality demanded by the consumer as an increasing
function of her unobserved type, interpreted as unobserved taste for
quality. Assortative matching guarantees uniqueness of demand, as the unique
increasing function that maps the distribution of unobserved taste for
quality, which is specified a priori, and the distribution of qualities,
which is observed. Hence demand is identified as a quantile function, as in
\citet{Matzkin:2003}. Identification, therefore, is driven by a shape
restriction on the utility function.

 The main achievement of this paper is to show that a suitable multivariate extension (called {\em twist condition})
 of the single crossing shape restriction delivers the same identification result
 in hedonic equilibrium with multiple good quality dimensions. Heuristically, the proof mirrors \citet{HMN:2010}
 in that is first involves showing identification of inverse demand, which then allows the identification of marginal utility
 from the first order condition of the consumer's program. The identification of inverse demand, i.e., a single valued mapping from
 a vector of good qualities to a vector of unobserved consumer type, involves the twist shape restriction and cyclical monotonicity
 of the hedonic equilibrium solution. The recovery of marginal utility from the first order condition of the consumer's program
 is involved, because differentiability of the hedonic equilibrium price function is not guaranteed. Known conditions for
 differentiability of transport potentials in general optimal transport problems, due to \citet{MTW:2005} and which would yield differentiability of the hedonic equilibrium price in our context, are very strong and rule out many simple forms of the matching surplus (see Chapter~12 of \citet{Villani:2009}). We are able to by-pass the \citet{MTW:2005} conditions using the special structure of the hedonic equilibrium, and
to show approximate differentiability (Definition~10.2 page 218 of \citet{Villani:2009}) of the price function,
 for which we need absolute continuity of the distribution of good qualities traded at equilibrium. To that end, we provide a set of mild conditions on the primitives under which the endogenous distribution of qualities traded at equilibrium is absolutely continuous.
The proof of absolute continuity of the distribution of qualities traded at equilibrium is based on an argument from \citet{FJ:2008}, also applied in \citet{KP:2014}\footnote{\citet{FJ:2008} and \citet{KP:2014} focus on quadratic distance cost, i.e.,~$\zeta(x,\varepsilon,z)=-d^2(z,\varepsilon)$ in the notation of Assumption~\ref{ass:uh}, and work in more exotic geometric spaces.}.

 An important special case of our main identification theorem is the case, where the consumer's utility depends on consumer unobserved heterogeneity~$\varepsilon$ only
 through the index~$z'\varepsilon$, where~$z$ is the vector of good qualities. This case has the appealing interpretation that each dimension of unobservable taste is associated with a
 good quality dimension and the appealing feature that marginal utility is characterized as the solution of a convex program. However, choosing the dimension of unobserved consumer heterogeneity to be equal to the dimension of the vector of good qualities is a somewhat arbitrary modelling choice, and we provide an extension of our main identification theorem to cases where the dimension of unobserved consumer heterogeneity is lower, including a model with scalar unobserved heterogeneity. We derive a local identification result under mild conditions, but for global identification, we need a shape restriction on the endogenous price function, for which we know of no sufficient conditions on primitives. Another restrictive aspect of our main result is the necessary normalization of the distribution of unobserved heterogeneity, when identifying primitives from a single market. We provide some relaxation of this constraint when data from multiple  markets is available, but the results are still fragmentary.

The analysis of identification of inverse demand in hedonic equilibrium reveals that inverse demand satisfies a multivariate notion of monotonicity, whose definition depends on the form of the utility function that is maximized. In the univariate case, this notion reduces to monotonicity of inverse demand. In the case, where the consumer's utility depends on consumer unobserved heterogeneity~$\varepsilon$ only
 through the index~$z'\varepsilon$, where~$z$ is the vector of good qualities, inverse demand is the gradient of a convex function. We show that this notion of multivariate monotonicity is a suitable shape restriction to identify nonseparable simultaneous equations models, generalizing the quantile identification method of \citet{Matzkin:2003} and complementing results in \citet{Matzkin:2015}, where monotonicity is imposed equation by equation\footnote{Not all results in \citet{Matzkin:2003} and \citet{HMN:2010} require normalization of the distribution of unobserved heterogeneity, as we do here.}.

\subsubsection*{\protect Closely related work}

On the identification of multi-attribute hedonic equilibrium models, \citet{EHN:2004} require marginal utility (resp. marginal product) to
be additively separable in unobserved consumer (resp. producer)
characteristic. \citet{HMN:2010} show that demand is nonparametrically
identified under a single crossing condition and that various additional
shape restrictions allow identification of preferences without additive
separability (see also \citeauthor{HMN:2003} \citeyear{HMN:2003,HMN:2005}).
\citet{EHN:2004} emphasize the one-dimensional case but argue that their results can
be extended to multivariate attributes under a separability assumption in
the utility (without restricting the distribution of unobserved heterogeneity).
Our paper directly  follows \citet{HMN:2010} and generalizes the insight therein to allow for heterogeneity in response to different dimensions of amenities or qualitites. However, the analyses in \citet{HMN:2010} and ours are non nested. \citet{HMN:2010} considers several specifications with Barten scales that are outside the scope of our generalization.
\citet{Nesheim:2013} (developed independently and concurrently) is the most closely related paper and complements our work. He achieves identification under an additive separability restriction,
but without restricting the distribution of unobserved heterogeneity. He also imposes conditions from \citet{MTW:2005} to obtain differentiability of the price.
\citet{CMN:2010} derive a matching
formulation of hedonic models and thereby highlight the close relation
between empirical strategies in matching markets and in hedonic markets.
\citet{CMP:2016} have a section on identification (posterior to this paper), where they
use a similar strategy. Two main differences arise from the difference between matching and hedonic models. On the one hand, \citet{CMP:2016} need an extra step to account for the fact that in their matching model the price function is not observed. On the other hand, they do not have to worry about regularity of endogenous objects such as the price and distribution of goods in the hedonic equilibrium setting.
\citet{GS:2012} extend the work of \citet{CS:2006} and identify preferences in marriage markets, where agents match on discrete characteristics, as the unique solution of an optimal transport problem, but unlike the present paper, they are restricted to the case with a discrete quality space. The strategy is extended to the set-valued case by \citet{CGS:2013}, who use subdifferential calculus to identify  dynamic discrete choice problems. \citet{DGH:2014} use network flow techniques to identify discrete hedonic models.

On the identification of nonlinear simultaneous equations models, \citet{Matzkin:2015} uses equation by equation monotonicity in the one dimensional unobservables and exclusion restrictions.  \citet{BH:2018} consider transformation models, as in \citet{Matzkin:2008} (see also \citet{Matzkin:2013}). These strategies do not require normalization of the distribution of unobserved heterogeneity.
\citet{SSS:2018} also (independently and in a very different context) use cyclical monotonicity for identification in panel discrete choice models.
\citet{EGH:2012} and \citet{GH:2012} propose a notion of multivariate quantile based on Brenier's Theorem. \citet{CCG:2014} (coetaneous with the present paper) propose a conditional version of the optimal transport quantiles of \citet{EGH:2012} and \citet{GH:2012} and apply it to quantile regression, whereas \citet{CGHH:2017} (also coetaneous with this paper) apply optimal transport quantiles to the definition of statistical depth, ranks and signs. However, these papers do not consider identification. The present work is, to the best of our knowledge, the first to apply the notion of multivariate quantiles based on optimal transport results to the identification of simultaneous equations, thus providing a multivariate extension of \citet{Matzkin:2003}'s quantile identification idea.


\subsubsection*{\protect Organization of the paper}

The remainder of the paper is organized as follows. Section~
\ref{sec:model} sets the hedonic equilibrium framework out. Section~\ref
{sec:univariate} gives a brief account of the methodology and main results on nonparametric
identification of preferences in single attribute hedonic models, mostly
drawn from \citet{EHN:2004} and \citet{HMN:2010}. Section~\ref
{sec:multiple} shows how these results
and the shape restrictions that drive them can be extended to the case of
multiple attribute hedonic equilibrium markets.
Section~\ref{sec:se} derives multivariate shape restrictions to identify nonseparable simultaneous equations models. The last section concludes.
Proofs of the main results are
relegated to the appendix, as are necessary background definitions and results on optimal transport
theory and a list of our notational conventions.






\section{Hedonic equilibrium and the identification
problem}

\label{sec:model} We consider a competitive environment,
where consumers and producers trade a good or contract, fully characterized
by its type or quality $z$. The set of feasible qualities $Z\subseteq
\mathbb{R}^{d_z}$ is assumed compact and given a priori, but the distribution of the qualities actually traded arises
endogenously in the hedonic market equilibrium, as does their price schedule
$p(z)$. Producers are characterized by their type $\tilde y\in \tilde
Y\subseteq \mathbb{R}^{d_{\tilde y}}$ and consumers by their type $\tilde
x\in \tilde X\subseteq \mathbb{R}^{d_{\tilde x}}$. Type distributions $
P_{\tilde x}$ on $\tilde X$ and $P_{\tilde y}$ on $\tilde Y$ are given
exogenously, so that entry and exit are not modelled. Consumers and producers
are price takers and maximize quasi-linear utility $U(\tilde x,z)-p(z)$ and
profit $p(z)-C(\tilde y,z)$ respectively. Utility $U(\tilde x,z)$
(respectively cost $C(\tilde y,z)$) is upper (respectively lower)
semicontinuous and bounded. In addition, the set of qualities $Z(\tilde x,\tilde y)$
that maximize the joint surplus $U(\tilde x,z)-C(\tilde y,z)$ for each pair of
types $(\tilde x,\tilde y)$ is assumed to have a measurable selection. Then,
\citet{Ekeland:2010} and \citet{CMN:2010} show that an equilibrium
exists in this market, in the form of a price function $p$ on $Z$, a joint
distribution $P_{\tilde xz}$ on $\tilde X\times Z$ and $P_{\tilde yz}$ on $
\tilde Y\times Z$ such that their marginal on $Z$ coincide, so that market
clears for each traded quality $z\in Z$. Uniqueness is not guaranteed, in
particular prices are not uniquely defined for non traded qualities in
equilibrium. Purity is not guaranteed either: an equilibrium specifies a
conditional distribution $P_{z|\tilde x}$ (respectively $P_{z|\tilde y}$) of
qualities consumed by type $\tilde x$ consumers (respectively produced by
type $\tilde y$ producers). The quality traded by a given producer-consumer
pair $(\tilde x,\tilde y)$ is not uniquely determined at equilibrium without additional assumptions.

\citet{Ekeland:2010} and \citet{CMN:2010} further
show that a pure equilibrium exists and is unique, under the following additional
assumptions. First, type distributions $P_{\tilde x}$ and $P_{\tilde y}$ are
absolutely continuous. Second, gradients of utility and cost, $\nabla_{\tilde
x}U(\tilde x,z)$ and $\nabla_{\tilde y}C(\tilde y,z)$ exist and are
injective as functions of quality $z$. The latter condition, also known as
the {\em Twist Condition} in the optimal transport literature, ensures that all
consumers of a given type $\tilde x$ (respectively all producers of a given type $
\tilde y$) consume (respectively produce) the same quality $z$
at equilibrium.

The identification problem consists in the recovery of
structural features of preferences and technology from observation of traded
qualities and their prices in a single market.
The solution concept we impose in our identification analysis is the following feature of hedonic equilibrium, i.e., maximization of surplus generated by a trade.
\begin{myassump}{EC}[Equilibrium concept]
\label{ass:ec}
The joint distribution $\gamma$ of $(\tilde X,Z,\tilde Y)$ and the price function $p$ form an hedonic equilibrium, i.e., they satisfy the following.
The joint distribution $\gamma$ has marginals~$P_{\tilde x}$ and~$P_{\tilde y}$ and for~$\gamma$ almost all~$(\tilde x,z,\tilde y)$, \begin{eqnarray*}
U(\tilde x,z)-p(z)&=&\max_{z'\in Z}\left( U(\tilde x,z')-p(z')\right),\\
p(z)-C(\tilde y,z)&=&\max_{z'\in Z}\left( p(z')-C(\tilde y,z)\right).
\end{eqnarray*}
In addition, observed qualities $z\in Z(\tilde x,\tilde y)$ maximizing joint surplus $U(\tilde x,z)-C(\tilde y,z)$ for each $\tilde x\in\tilde X$ and $\tilde y\in\tilde Y$, lie in the interior of the set of feasible qualities $Z$ and $Z(\tilde x,\tilde y)$ is assumed to have a measurable selection. The joint surplus $U(\tilde x,z)-C(\tilde y,z)$ is finite everywhere. We assume full participation in the market\footnote{
The
possibility of non participation can be modelled by adding isolated
points to the sets of types and renormalizing distributions accordingly (see
Section~1.1 of \citet{CMN:2010} for details).
}.
\end{myassump}
Given observability of prices
and the fact that producer type $\tilde y$ (respectively consumer type $
\tilde x$) does not enter into the utility function $U(\tilde x,z)$
(respectively cost function $C(\tilde y,z)$) directly, we may consider the
consumer and producer problems separately and symmetrically (see \citet{EHN:2002a}). We focus on the
consumer problem and on identification of utility function $U(\tilde x,z)$.
Under assumptions ensuring purity and uniqueness of equilibrium, the model
predicts a deterministic choice of quality $z$ for a given consumer type $
\tilde x$. We do not impose such assumptions, but we need
to account for heterogeneity in consumption patterns even in case of unique and pure equilibrium. Hence, we assume, as
is customary, that consumer types~$\tilde x$ are only partially observable
to the analyst. We write~$\tilde x=(x,\varepsilon)$, where $x\in X\subseteq\mathbb{R}
^{d_x}$ is the observable part of the type vector, and~$\varepsilon\in
\mathbb{R}^{d_\varepsilon}$ is the unobservable part.
We shall make a
separability assumption that will allow us to specify constraints on the
interaction between consumer unobservable type $\varepsilon$ and good
quality~$z$ in order to identify interactions between observable type~$x$
and good quality~$z$.

\begin{myassump}{H}[Unobservable heterogeneity]
\label{ass:uh} Consumer type~$\tilde x$ is composed of
observable type~$x$ with distribution~$P_x$ on~$X\subseteq\mathbb{R}^{d_x}$ and
unobservable type~$\varepsilon$ with a priori specified conditional distribution~$
P_{\varepsilon\vert x}$ on~$\mathbb{R}^{d_\varepsilon}$, with~$d_\varepsilon\leq d_z$.
The utility of
consumers can be decomposed as~$U(\tilde x,z)=\bar
U(x,z)+\zeta(x,\varepsilon,z)$, where the functional form of~$\zeta$ is known,
but that of~$\bar U$ is~not\footnote{Despite the notation used,
$\bar U$ should not necessarily be interpreted as {\em mean utility},
since we allow for a general choice of $\zeta$ and $P_{\varepsilon\vert x}$.
If this interpretation is desirable in a particular application,~$\zeta$
and~$P_{\varepsilon\vert x}$ can be chosen in such a way that $\mathbb E[\zeta(x,\varepsilon,z)\vert x]=0$.}.
\end{myassump}
The main primitive object of interest is the deterministic component of
utility $\bar U(x,z)$. For convenience, we shall use the transformation~$V(x,z):=p(z)-\bar U(x,z)$. The latter will be called the consumer's {\em potential}, in line with the optimal transport terminology. Since the price is assumed to be identified, identification of~$V$ is equivalent to identification of~$\bar U$.
To achieve identification, we require fixing a choice of function~$\zeta$: a leading example, discussed in Section~\ref{sec:lmu}, is the case~$\zeta(x,\varepsilon,z)=z'\varepsilon$.
Identification also requires fixing the conditional distribution~$P_{\varepsilon\vert x}$ of unobserved heterogeneity. This corresponds to the normalization of the distribution of scalar unobservable utility in existing quantile identification strategies. Discrete choice models also typically rely on a fixed distribution for unobservable heterogeneity (generally extreme valued). The requirements to fix both~$\zeta$ and~$P_{\varepsilon\vert x}$ will be relaxed to some extent in Section~\ref{sec:mm} which entertains the possibility of further identification power using information from multiple markets.








\section{\protect Single market identification with scalar
attribute}

\label{sec:univariate}

In this section, we recall and reformulate
results of \citet{HMN:2010} on identification of single attribute
hedonic models. Suppose, for the purpose of this section, that $
d_z=d_\varepsilon=1$, so that unobserved heterogeneity is scalar, as is the
quality dimension. Suppose also that $\zeta$ is
twice continuously differentiable in~$z$ and~$\varepsilon$.
\begin{myassump}{R}[Regularity of preferences and technology]
\label{ass:supp} The functions $\bar U(x,z)$, $C(\tilde y,z)$ and $\zeta(x,\varepsilon,z)$ are twice continuously differentiable with respect~$\varepsilon$ and~$z$.
\end{myassump}
Suppose further (for ease of exposition) that~$V$ is
twice continuously differentiable in~$z$.
The main identifying assumption is a shape restriction on utility called single crossing, Spence-Mirlees or supermodularity, depending on the context.
\begin{myassump}{S1}[Spence-Mirlees]
\label{ass:sm} We have $d_z=1$ and $\zeta_{\varepsilon z}(x,\varepsilon,z)>0$ for all $x,\varepsilon,z$.
\end{myassump}
The first order condition of the consumer problem yields
\begin{eqnarray}  \label{eq:foc}
\zeta_z(x,\varepsilon,z)=V_z(x,z),
\end{eqnarray}
which, under Assumption~\ref{ass:sm}, implicitly defines an inverse demand
function $z\mapsto\varepsilon(x,z)$, which specifies which unobserved type
consumes quality $z$. Combining the second order condition $
\zeta_{zz}(x,\varepsilon,z)<V_{zz}(x,z)$ and further differentiation of (\ref
{eq:foc}), i.e., $\zeta_{zz}(x,\varepsilon,z)+\zeta_{\varepsilon
z}(x,\varepsilon,z)\varepsilon_z(x,z)=V_{zz}(x,z)$, yields
\begin{eqnarray*}
\varepsilon_z(x,z)=\frac{V_{zz}(x,z)-\zeta_{zz}(x,\varepsilon,z)}{
\zeta_{\varepsilon z}(x,\varepsilon,z)}>0.
\end{eqnarray*}
Hence the inverse demand is increasing and is therefore identified as the
unique increasing function that maps the distribution $P_{z|x}$ to the
distribution $P_{\varepsilon\vert x}$, namely the quantile transform. Denoting $F$
the cumulative distribution function corresponding to the distribution~$P$,
we therefore have identification of inverse demand according to the strategy
put forward in \citet{Matzkin:2003} as:
\begin{eqnarray*}
\varepsilon(x,z)=F^{-1}_{\varepsilon|x}\left( F_{z|x}(z|x) \right).
\end{eqnarray*}
The single crossing condition of Assumption~\ref{ass:sm} on the consumer
surplus function $\zeta(x,\varepsilon,z)$ yields positive assortative
matching, as in the \citet{Becker:1973} classical model. Consumers with
higher taste for quality $\varepsilon$ will choose higher qualities in
equilibrium and positive assortative matching drives identification of
demand for quality. The important feature of Assumption~\ref{ass:sm} is
injectivity of $\zeta_z(x,\varepsilon,z)$ relative to $\varepsilon$ and a
similar argument would have carried through under $\zeta_{z\varepsilon}(x,\varepsilon,z)<0
$, yielding negative assortative matching instead.

Once inverse demand is identified, the consumer potential $V(x,z)$,
hence the utility function~$\bar U(x,z)$, can be recovered
up to a constant by integration of the first order condition~(\ref{eq:foc}):
\begin{eqnarray*}
\bar U(x,z)=p(z)-V(x,z)=p(z)-\int_0^z\zeta_z(x,\varepsilon(x,z^{\prime}),z^{\prime})dz^{\prime}.
\end{eqnarray*}
We summarize the previous discussion in the following identification statement, originally due to \citet{HMN:2010}.
\begin{proposition}
\label{prop:ehn}
Under Assumptions~\ref{ass:ec}, \ref{ass:uh}, \ref{ass:supp}, \ref{ass:sm}, $\bar U(x,z)$ is nonparametrically identified, in the sense that $z\mapsto \bar U_z(x,z)$ is the only marginal utility function compatible with the pair~$(P_{xz},p)$,
i.e., any other marginal utility function coincides with it, $P_{z\vert x}$ almost surely.
\end{proposition}
Unlike the demand function, which is identified without knowledge of the
surplus function~$\zeta$, as long as the latter satisfies single crossing (Assumption~\ref
{ass:sm}), identification of the preference function~$\bar U(x,z)$ does
require a priori knowledge of the function~$\zeta$.




\section{\protect Single market identification with multiple
attributes}

\label{sec:multiple}

This section develops the multivariate analogue of identification results in Section~\ref{sec:univariate}.
The strategy follows the same lines. First, a shape restriction on the utility function, analogue to Assumption~\ref{ass:sm}, and a consequence of
maximization behavior, called {\em cyclical monotonicity}, will identify the inverse demand: we will show that a single type~$\varepsilon(x,z)$
chooses good quality~$z$ at equilibrium. Second, formally, the utility is then recovered from the first order condition of the consumer's program.
The latter step, however, involves significant difficulties, due to the possible lack of differentiability of the endogenous price function.

\subsection{Identification of inverse demand}

\subsubsection{Shape restriction}

In the one dimensional case, identification of inverse demand was shown under the single crossing Assumption~\ref{ass:sm}. We noted
that the sign of the single crossing condition was not important for the
identification result. Instead, what is crucial is the following, weaker, condition, which is
commonly known as the {\em Twist Condition} in the optimal transport literature. The crucial condition, maintained throughout, is Assumption~\ref{ass:twist}. As shown in \citet{CMN:2010}, it holds when for each distinct pair of consumer types~$(\varepsilon_1,\varepsilon_2)$, the function~$z\mapsto\zeta(x,\varepsilon_1,z)-\zeta(x,\varepsilon_2,z)$ has no critical point. It is satisfied for example in the case~$\zeta(x,\varepsilon,z)=z'\varepsilon$, in the case~$\zeta(x,\varepsilon,z)=F(x,z'\varepsilon),$ when~$z'\varepsilon>0,$ and $F$ is increasing and convex in its second argument, or in the case~$\zeta(x,\varepsilon,z)=\sum_{k=1}^{d}F_k(x,\varepsilon_k,z_k),$ where, for each~$k$ and~$x$, $F_k$ is supermodular in~$(\varepsilon_k,z_k)$. All these examples are discussed in Sections~\ref{sec:lmu} and~\ref{sec:exp} below.
\begin{myassump}{S2}[Twist Condition]
\label{ass:twist}
For all $x$ and $z$, the following hold.
\begin{enumerate}
\item[(A)]
The gradient $\nabla_z\zeta(x,\varepsilon,z)$ of $\zeta(x,\varepsilon,z)$ in
$z$ is injective as a function of $\varepsilon\in\mbox{Supp}(P_{\varepsilon\vert x})$.
\item[(B)] The gradient $\nabla_\varepsilon\zeta(x, \varepsilon,z)$ of $\zeta(x,\varepsilon,z)$ in
$\varepsilon$ is injective as a function of $z\in Z$.
\end{enumerate}
\end{myassump}
From \citet{GN:65}, it is sufficient that $D^2_{z\varepsilon}\zeta(x,\varepsilon,z)$ be positive definite everywhere for Assumption~\ref{ass:twist} to be satisfied.
Alternative sets of sufficient conditions are given in Theorem~2 of \citet{Mas-Colell:79}\footnote{Relatedly, \citet{BGH:2013} propose injectivity results under a gross substitutes condition.}.
Assumption~\ref{ass:twist}, unlike single crossing, is well defined in the multivariate case, and we shall show,
using recent developments in optimal transport theory, that it continues to
deliver the desired identification in the multivariate case.



\subsubsection{Cyclical monotonicity}
An important implication of Assumption~\ref{ass:ec} is that traded quality $z$
maximizes the joint surplus\footnote{This observation is the
basis for the characterization of hedonic models as transferable utility matching models in \citet{CMN:2010}.}~$U(\tilde x,z)-C(\tilde y,z)$.
Let, therefore,~$S(x,\varepsilon,\tilde y):=\sup_{z\in Z}[U((x,\varepsilon),z)-C(\tilde y,z)]$ be the surplus of a consumer-producer pair~$((x,\varepsilon),\tilde y)$ at equilibrium.
Suppose consumer~$(x,\varepsilon_0)$ (resp.~$(x,\varepsilon_1)$) is paired at equilibrium with producer~$\tilde y_0$ (resp.~$\tilde y_1$) to exchange good quality~$z$.
Then, as shown in the proof of Lemma~\ref{lemma:idid} in the Appendix, their total surplus is at least as large in the current consumer-producer matching as
it would be, were they to switch partners. This is a property of the optimal allocation called {\em cyclical monotonicity}. The total surplus cannot be improved by a cycle of reallocations of consumers and producers. Applied here to cycles of length two, cyclical monotonicity yields:
\begin{eqnarray*}
S(x,\varepsilon_0,\tilde y_0) + S(x,\varepsilon_1,\tilde y_1) &\geq& S(x,\varepsilon_0,\tilde y_1) + S(x,\varepsilon_1,\tilde y_0)\\
&\geq& U((x, \varepsilon_0), z) -C(\tilde y_1,z)+U((x, \varepsilon_1), z) -C(\tilde y_0, z) \\
&=&S(x,\varepsilon_0,\tilde y_0) + S(x,\varepsilon_1,\tilde y_1),
\end{eqnarray*}
where the first inequality holds because of cyclical monotonicity and the second inequality holds by definition of the surplus function~$S$
as a supremum. Hence, equality holds throughout in the previous display. Therefore, choice~$z$ maximizes both $z\mapsto U((x, \varepsilon_0), z) -C(\tilde y_0,z)$
and $z\mapsto U((x, \varepsilon_1), z) -C(\tilde y_0, z)$. It follows that~$\nabla_z\zeta(x,\varepsilon_1,z)=\nabla_z\zeta(x,\varepsilon_0,z)$. The Twist Assumption~\ref{ass:twist} then yields
equality of~$\varepsilon_0$ and~$\varepsilon_1$ and the following lemma (proved formally in the Appendix).


\begin{lemma}[Identification of inverse demand]
\label{lemma:idid}
Under Assumptions~\ref{ass:ec}, \ref{ass:uh}, \ref{ass:twist}(A) and~\ref{ass:supp},
if consumers with characteristics~$(x,\varepsilon_0)$ and~$(x,\varepsilon_1)$ consume the same good quality~$z$
at equilibrium, then~$\varepsilon_0=\varepsilon_1$.
\end{lemma}
We see from Lemma~\ref{lemma:idid} that identification of inverse demand holds under conditions that are analogous to
the scalar case, where the Twist condition replaces Spence-Mirlees as a shape restriction. We also see that the identification proof
also relies on a notion of monotonicity. We will push this analogy further in the Section~\ref{sec:se} and show that the inverse demand function~$z\mapsto\varepsilon(x,z)$
itself satisfies a generalized form of monotonicity, we call~$\zeta$-monotonicity, since its definition involves the function~$\zeta$.


\subsection{Identification of marginal utility}

Heuristically, once identification of inverse demand is established, and~$\varepsilon(x,z)$ is uniquely defined in equilibrium,
the first order condition of the consumer's problem~$\sup_{z\in Z}\{\zeta(x,\varepsilon,z)-V(x,z)\}$
delivers identification of marginal utility~$\nabla_z\bar U(x,z)$. However, using the first order condition presupposes
smoothness of the potential~$V$, hence of the endogenous price function~$z\mapsto p(z)$. Conditions for differentiability of the potential~$V$
in optimal transportation problems are given by \citet{MTW:2005}. They are applied to identification in hedonic models in \citet{Nesheim:2013}.
However, the conditions in \citet{MTW:2005} are not transparent and they are known to be very strong, excluding simple forms of the surplus, such as~$S(\tilde x,\tilde y):=\vert \tilde x-\tilde y\vert^p$, for all~$p\ne2$ for instance. The remainder of this section, therefore, will be devoted to proving a weaker form of differentiability
of the price function, which can be used to identify marginal utility from the first order condition of the consumer's problem.

The consumer's problem yields the expression for indirect utility:
\begin{eqnarray}  \label{eq:zconv}
\sup_{z\in Z}\{\zeta(x,\varepsilon,z)-V(x,z)\}:=V^\zeta(x,\varepsilon).
\end{eqnarray}
Equation~(\ref{eq:zconv}) defines a generalized notion of convex
conjugation, in which the consumer's indirect utility is the conjugate of~$V(x,z)=p(z)-\bar U(x,z)$. This notion of conjugation can be inverted, similarly to
convex conjugation, into:
\begin{eqnarray}  \label{eq:max}
V^{\zeta\zeta}(x,z)=\sup_{\varepsilon\in\mathbb R^{d_\varepsilon}}\{\zeta(x,\varepsilon,z)-V^
\zeta(x,\varepsilon)\},
\end{eqnarray}
where $V^{\zeta\zeta}$ is called the {\em double conjugate} of $V$.
In the special case~$\zeta(x,\varepsilon,z)=z'\varepsilon$,~$\zeta$-conjugate simplifies to the ordinary
convex conjugate of convex analysis and convexity of a lower semi-continuous function is equivalent to equality with its double conjugate. Hence, by extension,
equality with its double~$\zeta$-conjugate defines a generalized notion of convexity (see Definition~2.3.3 page~86 of \citet{Villani:2003}).
\begin{definition}[$\protect\zeta$-convexity]
\label{def:zconv} A function $V$ is called $\zeta$-convex if $V=V^{\zeta\zeta}$.
\end{definition}
We establish~$\zeta$-convexity of the potential as a step towards a notion of differentiability, in analogy with
convex functions, which are locally Lipschitz, hence almost surely differentiable, by Rademacher's Theorem (see for instance \citet{Villani:2009}, Theorem~10.8(ii)).
It also delivers a notion of~$\zeta$-monotonicity for inverse demand, discussed in Section~\ref{sec:se}.
\begin{lemma}
\label{lemma:zconv}
Under~\ref{ass:ec} and~\ref{ass:uh}, the function~$z\mapsto V(x,z)$ is~$P_{z\vert x}$ a.s.~$\zeta$-convex, for all $x$.
\end{lemma}
This result only provides information for pairs~$(x,z)$, where type~$x$ consumers choose good quality~$z$ in equilibrium. In order to obtain a global smoothness result on the potential~$V$, we need conditions under which the endogenous distribution of good qualities traded in equilibrium is absolutely continuous with respect to Lebesgue measure on~$\mathbb R^{d_z}$. They include absolute continuity of the distribution of unobserved heterogeneity, additional smoothness conditions on preferences and technology and the Twist Assumption~\ref{ass:twist}(B), which requires the dimension of unobserved heterogeneity to be the same as the dimension of the good quality space, i.e.,~$d_\varepsilon=d_z$ (this will be relaxed in Section~\ref{sec:ld}).

\begin{myassump}{H'}
\label{ass:uh'} Assumption~\ref{ass:uh} holds and the distribution of unobserved tastes $P_{\varepsilon\vert x}$ is absolutely continuous on~$\mathbb R^{d_z}$ with respect to Lebesgue measure for all $x$.
\end{myassump}

\begin{myassump}{R'}[Conditions for absolute continuity of $P_{z\vert x}$]
\label{ass:supp3} The following hold.
\begin{enumerate}
\item The Hessian of total surplus
$D^2_{zz} \left( U(x,\varepsilon,z) - C(\tilde y,z) \right) $ is bounded above; that is $\Vert D^2_{zz} \left( U(x,\varepsilon,z) - C(\tilde y,z) \right) \Vert \leq M_1$ for all $x,\varepsilon,z,\tilde y$, for some fixed $M_1$.
\item If the support of $P_{\varepsilon\vert x}$ is unbounded, for each $x\in X$, $\Vert\nabla_z\zeta(x,\varepsilon,z)\Vert\rightarrow\infty$ as $\|\varepsilon\|\rightarrow\infty$, uniformly in $z\in Z$.
\item The matrix $D^2_{\varepsilon z }\zeta(x,\varepsilon,z)$ has full rank for all $x, \varepsilon, z$. Its inverse $[D^2_{\varepsilon z }\zeta(x,\varepsilon,z)]^{-1}$ has uniform upper bound~$M_0$:
$\left\Vert[D^2_{\varepsilon z }\zeta(x,\varepsilon,z)]^{-1}\right\Vert\leq M_0$ for all $x,\varepsilon,z$, for some fixed~$M_0$.
\end{enumerate}
\end{myassump}

We then obtain our principal intermediate lemma, which is of independent interest for the theory of hedonic equilibrium. The proof can be found in the technical appendix \citet{CGHP:2020app}.
\begin{lemma}
\label{lemma:abs3}
Under Assumptions~\ref{ass:ec}, ~\ref{ass:uh'},~\ref{ass:twist} and~\ref{ass:supp3}, the endogenous distribution $P_{z\vert x}$ of qualities traded at equilibrium is absolutely continuous with respect to Lebesgue measure.
\end{lemma}
Lemma~4 in the technical appendix \citet{CGHP:2020app} shows everywhere differentiability of the double conjugate potential~$V^{\zeta\zeta}$. This doesn't imply differentiability of~$V$ everywhere, since~$V$ is~$\zeta$-convex (i.e.,~$V=V^{\zeta\zeta}$) only~$P_{z\vert x}$ almost everywhere. However, combined with Lemma~\ref{lemma:abs3}, this yields approximate differentiability of~$z\mapsto V(x,z)$ as defined in Definition~6 of the technical appendix \citet{CGHP:2020app}. Using uniqueness of the approximate gradient of an approximately differentiable function then yields identification of marginal utility~$\nabla_z\bar U(x,z)$ from the first order condition
\begin{eqnarray}
\label{eq:FOC}
\nabla_z\zeta(x,\varepsilon(x,z),z)=\nabla_{ap,z}\;V(x,z)=\nabla_{ap} \; p(z)-\nabla_z\bar U(x,z),
\end{eqnarray}
where~$\nabla_{ap,(z)}$ denotes the approximate gradient (with respect to~$z$) of Definition~6 of the technical appendix \citet{CGHP:2020app}, and where the inverse demand function $\varepsilon(x,z)$ is uniquely determined, by Lemma~\ref{lemma:idid}. This yields our main identification theorem.

\begin{theorem}
\label{thm:id2} Under Assumptions~\ref{ass:ec}, ~\ref{ass:uh'},~\ref{ass:twist} and~\ref{ass:supp3}, the following hold:
\begin{enumerate}
\item $\bar U(x,z)$ is
nonparametrically identified, in the sense that $z\mapsto \nabla_z\bar U(x,z)$ is the only marginal utility function compatible with the
pair $(P_{xz},p)$,
i.e., any other marginal utility function coincides with it, $P_{z\vert x}$ almost surely.
\item For all $x\in X$, $\bar U(x,z)=p(z)-V(x,z)$ and $z\mapsto V(x,z)$ is $P_{z\vert x}$ almost everywhere equal to the $\zeta$-convex solution to the problem $\min_V\left(\mathbb{E}_z[V(x,z)\vert x]+\mathbb{E}_\varepsilon
[V^\zeta(x,\varepsilon)\vert x]\right)$, with $V^\zeta$ defined in~(\ref{eq:zconv}).
\end{enumerate}
\end{theorem}
Theorem~\ref{thm:id2}(1) provides identification of marginal utility without any restriction on the distributions of observable characteristics of producers and consumers. The latter may include discrete characteristics. Regularity conditions in Assumption~\ref{ass:supp3} are satisfied in the cases~$\zeta(x,\varepsilon,z)=\varepsilon'z$ and~$\zeta(x,\varepsilon,z)=\exp(\varepsilon'z)$ as we discuss in Sections~\ref{sec:lmu} and~\ref{sec:exp} respectively. They preclude bunching of consumers at equilibrium, as shown in Lemma~\ref{lemma:abs3}. The result is driven by the shape restriction~\ref{ass:twist} and the strong normalization assumption on the distribution of unobserved heterogeneity. This assumption is inevitable in a single market identification based on a generalized quantile identification strategy. Section~\ref{sec:mm} discusses (partial) identification without knowledge a priori of the distribution of unobserved heterogeneity. Theorem~\ref{thm:id2}(2) provides a framework for estimation and inference on the identified marginal utility based on new developments in computational optimal transport (see for instance the survey in \citet{PC:2019}).


\subsection{Special cases}

\subsubsection{Marginal utility linear in unobserved taste}
\label{sec:lmu}

A leading special case of the identification result in Theorem~\ref{thm:id2} is the choice $\zeta(x,\varepsilon,z)=z^{\prime}\varepsilon$, where marginal utility is linear in unobservable taste.
A natural interpretation of this specification is that each quality dimension~$z_j$ is associated with a specific unobserved taste intensity $\varepsilon_j$ for that particular quality dimension.
Assumptions~\ref{ass:twist} and~\ref{ass:supp3}(2,3) are automatically satisfied when~$\zeta(x,\varepsilon,z)=\varepsilon'z$. In addition, $\zeta$-convexity reduces to traditional convexity, so that we have the following corollary
of Theorem~\ref{thm:id2}:

\begin{corollary}
\label{cor:id2}
Under~\ref{ass:ec}, ~\ref{ass:uh'} with~$\zeta(x,\varepsilon,z)=\varepsilon'z$, and~\ref{ass:supp3}(1), the following hold:
\begin{enumerate}
\item $\bar U(x,z)$ is
nonparametrically identified, in the sense that $z\mapsto \nabla_z\bar U(x,z)$ is the only marginal utility function compatible with the
pair $(P_{xz},p)$,
i.e., any other marginal utility function coincides with it, $P_{z\vert x}$ almost surely.
\item For all $x\in X$, $\bar U(x,z)=p(z)-V(x,z)$ and $z\mapsto V(x,z)$ is $P_{z\vert x}$ almost everywhere equal to the convex solution to the problem $\min_V\left(\mathbb{E}_z[V(x,z)\vert x]+\mathbb{E}_\varepsilon
[V^\ast(x,\varepsilon)\vert x]\right)$, where $V^\ast$ is the convex conjugate of~$V$.
\end{enumerate}
\end{corollary}
A significant computational advantage of Corollary~\ref{cor:id2}(2) over the general case is that the potential solves a convex program. The first order condition~(\ref{eq:FOC}) also simplifies to
$\varepsilon(x,z)=\nabla_{ap,z}\;V(x,z)$, where~$\nabla_{ap,z}$ denotes the approximate gradient with respect to~$z$ (Definition~6 of the technical appendix \citet{CGHP:2020app}). Hence, inverse demand in this case is the approximate gradient of a~$P_{z\vert x}$ almost surely convex function. This can be interpreted as a multivariate version of monotonicity of inverse demand and assortative matching, since in the univariate case, we recover monotonicity of inverse demand as in Section~\ref{sec:univariate}.

\subsubsection{Nonlinear transforms and random Barten scales}
\label{sec:exp}

In the special case of Section~\ref{sec:lmu}, the curvature of marginal willingness to pay for qualities varies only with observable characteristics, but is independent of unobservable type~$\varepsilon$. Two ways Specification~$\zeta(z,\varepsilon,z)=z'\varepsilon$ can be generalized to allow the curvature of marginal utility to vary with unobserved type are the following.
\begin{enumerate}

\item Specification~$\zeta(x,\varepsilon,z)=F(x,z'\varepsilon)$ satisfies Assumptions~\ref{ass:twist} and~\ref{ass:supp3} when the conditional distribution~$P_{\varepsilon\vert x}$ of types has bounded support,~$z'\varepsilon>0,$ and~$F$ is increasing and convex in its second argument (with non zero derivative). A special case is~$\zeta(x,\varepsilon,z):=\exp(z'\varepsilon)$. Under this specification, a type~$\varepsilon$ consumer's marginal willingness to pay for quality~$z$ is~$\nabla_z\bar U(x,z)+\exp(z'\varepsilon)\varepsilon$. The curvature of marginal willingness to pay increases with type, so that there are increasing returns to quality.

\item Specification~$\zeta(x,\varepsilon,z)=\sum_{k=1}^{d_z}F_k(x,\varepsilon_k,z_k),$ satisfies Assumption~\ref{ass:twist} when~$F_k$ is supermodular in~$(\varepsilon_k,z_k)$  for each~$k$ and~$x$, and satifies Assumption~\ref{ass:supp3} when~$\partial^2F_k/\partial z_k^2$ is bounded above and~$\partial^2F_k/\partial\varepsilon_k\partial z_k$ is bounded below for each~$k$, uniformely over~$x$. A special case is~$\zeta(x,\varepsilon,z)=\sum_{k=1}^{d}F_k(x,z_k\varepsilon_k),$ in the spirit of random Barten scales, as in \citet{LP:2017}.

\end{enumerate}

\subsection{Extensions}

\subsubsection{Lower dimensional unobserved heterogeneity}
\label{sec:ld}

Our main identification result, Theorem~\ref{thm:id2}, is obtained under conditions that force the dimension of unobserved heterogeneity
to be the same as the dimension~$d_z$ of the good quality space. The conditions that impose~$d_\varepsilon=d_z$ are Assumption~\ref{ass:uh'} which requires the distribution~$P_{\varepsilon\vert x}$ to be absolutely continuous with respect to Lebesgue measure on~$\mathbb R^{d_z}$, and Assumption~\ref{ass:twist}(B), which requires injectivity of~$z\mapsto\nabla_\varepsilon\zeta(x,\varepsilon,z)$. In the special case~$\zeta(x,\varepsilon,z)=\varepsilon'z$, the interpretation of each dimension of~$\varepsilon$ as a quality dimension specific taste is appealing. However, the choice of dimension of unobserved heterogeneity remains an arbirary modelling choice.

In this section, we relax these assumptions and analyze identification with unobserved heterogeneity of lower dimension, including~$d_\varepsilon=0$ and~$d_\varepsilon=1$. First recall that inverse demand is identified in Lemma~\ref{lemma:idid} under Assumptions~\ref{ass:ec}, \ref{ass:uh}, \ref{ass:twist}(A) and~\ref{ass:supp}, which only require~$d_\varepsilon\leq d_z$. We also know from Lemma~\ref{lemma:zconv} that the potential~$z\mapsto V(x,z)$ is~$P_{z\vert x}$ almost everywhere~$\zeta$-convex. It is therefore~$\zeta$-convex on any open subset of the support of~$P_{z\vert x}$, which we show implies local identification. To obtain a global identification result, we need this~$\zeta$-convexity everywhere.

\begin{myassump}{S3}[$\protect\zeta$-convexity]
\label{ass:zconv} The potential $V$ is $\zeta$-convex as a function of
$z$ for all~$x$.
\end{myassump}
Unfortunately, this global constraint implies a constraint on the endogenous price function, for which we do not have sufficient conditions in the general case.
Under Assumption~\ref{ass:zconv}, we show differentiability of the potential function~$z\mapsto V(x,z)$, hence identification of marginal utility.


\begin{theorem}[Lower dimensional unobservable heterogeneity]
\label{thm:id}
\;\mbox{ }\;
\begin{enumerate}
\item Local identification: Under Assumptions~\ref{ass:ec}, ~\ref{ass:uh},~\ref{ass:supp},~\ref{ass:supp3}(2)
and~\ref{ass:twist}(A),
\begin{enumerate}
\item $\nabla_z\bar U(x,z)$ is identified on any open subset of the support of~$P_{z\vert x}$,
\item $v'\nabla_z\bar U(x,z)$ is identified for any vector~$v$ tangent to the support of~$P_{z\vert x}$.
\end{enumerate}
\item Global identification: If, in addition, Assumption~\ref{ass:zconv} holds, $\nabla_z\bar U(x,z)$ is identified.
\end{enumerate}
\end{theorem}
Local identification therefore holds under very weak assumptions, as seen in Theorem~\ref{thm:id}(1a). However, in cases with lower dimensional unobserved heterogeneity, consumer choices may be concentrated on a lower dimensional manifold, so that there are no open subsets in the support of~$P_{z\vert x}$. In such cases, Theorem~\ref{thm:id}(1b) tells us that we can only identify marginal willingness to pay along the support of good attributes actually traded at equilibrium. To illustrate the idea, suppose consumers are acquiring housing. The latter is differentiated along two dimensions, size and air quality, say. Suppose consumers with identical observable characteristics~x are heterogeneous along a single scalar dimension of unobserved heterogeneity~$\varepsilon$. We would then expect equilibrium housing choices to be concentrated on a curve in the (size~$\times$~air quality) space, implicitly defining a scalar quality index that is monotonic in unobserved type~$\varepsilon$. Our result says that we can identify counterfactual marginal willingness to pay for size and air quality along that curve of observed equilibrium choices only.
To obtain global identification with lower dimensional unobserved heterogeneity, we need a global~$\zeta$-convexity assumption on the potential (which implies a shape restriction on the endogenous price function).

We investigate special cases:
\begin{itemize}

\item The case~$\zeta(x,\varepsilon,z)=0$. From the first order condition of the consumer's program, we then have~$\nabla p(z)=\nabla_z U(x,z)$, so that~$U(x,z)$ is additively separable in~$x$ and~$z$ and the data on matching between consumers and producers cannot inform utility.

\item Scalar unobserved heterogeneity: suppose~$d_\varepsilon=1$ and in addition~$\zeta(x,\varepsilon,z)=\zeta(\varepsilon,z)$. Denote the (scalar) inverse demand~$z\mapsto\varepsilon(x,z)$ and assume regularity of all the terms involved. Differentiating the first order condition of the consumer problem with respect to consumer observable characteristic~$x$ yields
\[D^2_{xz}\bar U(x,z)=-D^2_{x\varepsilon}\zeta(\varepsilon(x,z),z)\nabla_x\varepsilon(x,z),\] which is at most of rank~$1$ since~$D^2_{x\varepsilon}\zeta(\varepsilon(x,z),z)$ is a~$d_z\times d_\varepsilon$ matrix.

\end{itemize}



\subsubsection{Partial identification with multiple markets}
\label{sec:mm}

All identification results so far, require fixing the distribution of unobserved consumer heterogeneity a priori. In this section, we derive identifying information from multiple markets, and the possibility of jointly (partially) identifying the utility function~$\bar U(x,z)$ and the distribution~$P_{\varepsilon\vert x}$.
Suppose~ $m_1$ and $m_2$ index two separate markets, in the sense that producers, consumers or goods cannot move between markets. Markets differ in the distributions of producer and consumer characteristics~$(P_x^{m_1},P_{\tilde y}^{m_1})$ and $(P_x^{m_2},P_{\tilde y}^{m_2})$. Suppose, however, that the distribution of unobserved tastes~$P_{\varepsilon\vert x}$ and the utility function~$U(x,\varepsilon,z)=\bar U(x,z)+z'\varepsilon$ is identical in both markets.
Both markets are at equilibrium. The equilibrium price schedule in market~$m$ is~$p^{m}(z)$. The equilibrium distribution of traded qualities in market~$m$ is~$P^m_{z\vert x}$.

Under the assumptions of Corollary~\ref{cor:id2}, in each market, we recover a nonparametrically identified utility function $\bar U^{m}(x,z;P_{\varepsilon\vert x})$, where the dependence in the unknown distribution of tastes $P_{\varepsilon\vert x}$ is emphasized. For each fixed~$P_{\varepsilon\vert x}$, Corollary~\ref{cor:id2} tells us that~$\nabla_z\bar U^{m}(x,z;P_{\varepsilon\vert x})$ is uniquely determined. In each market, the first order condition of the consumer's problem is~$\varepsilon(x,z;m)=\nabla_{ap,z}p^m(z)-\nabla_z\bar U(x,z;P_{\varepsilon\vert x})$. Differencing across markets therefore yields:
\begin{eqnarray}\label{eq:mm}
\varepsilon(z,x;m_1)-\varepsilon(x,z;m_2)=\nabla_{ap,z}\left( p^{m_1}(z)-p^{m_2}(z)\right),
\end{eqnarray}
which is an identifying equation for~$P_{\varepsilon\vert x}$. The right-hand side of~(\ref{eq:mm}) is identified, since the price functions are observed. Moreover, for each market~$m$,
the inverse demand~$\varepsilon(x,z;m)$ uniquely determines~$P_{\varepsilon\vert x}$, since it pushes the identified~$P^m_{z\vert x}$ forward to~$P_{\varepsilon\vert x}$. Point identification would require conditions under which the difference~$\varepsilon(z,x;m_1)-\varepsilon(x,z;m_2)$ uniquely determines~$P_{\varepsilon\vert x}$, which is beyond the scope of the present work.



\section{Identification of non separable simultaneous equations}
\label{sec:se}

The analysis of hedonic equilibrium models in Section~\ref{sec:multiple} motivates a new approach to the identification of nonseparable
simultaneous equations models of the type~$H(x,z)=\varepsilon$, where~$x\in\mathbb R^{d_x}$ is an observed vector of covariates, $z\in\mathbb R^{d_z}$ is the vector of dependent variables,~$P_{z\vert x}$ is identified from the data,~$H$ is an unknown function and~$\varepsilon\in\mathbb R^{d_\varepsilon}$ is a vector of unobservable shocks with distribution~$P_{\varepsilon\vert x}$. In the case~$d_\varepsilon=d_z=1$, $H$ is identified by \citet{Matzkin:2003} subject to the normalization of~$P_{\varepsilon\vert x}$ and monotonicity of~$z\mapsto H(x,z)$ for all~$x$. This section develops a class of shape restrictions that allows identification of~$H$ in the multivariate case~$1\leq d_\varepsilon\leq d_z$.

As in the scalar case, we fix the conditional distribution~$P_{\varepsilon|x}$ of errors a priori. This is justified by the fact that for any vector of dependent variables~$Z\sim P_{z\vert x}$ and any pair of absolutely continuous error distributions~$(P_{\varepsilon\vert x},\tilde P_{\tilde\varepsilon\vert x})$, there is an invertible mapping~$T$ such that~$H(x,Z)\sim P_{\varepsilon\vert x}$ and~$\tilde H(x,Z):=H(x,T(Z))\sim \tilde P_{\tilde\varepsilon\vert x}$ (by \citet{McCann:95}), so that~$(H,P_{\varepsilon\vert x})$ and~$(\tilde H,\tilde P_{\tilde\varepsilon\vert x})$ are observationally equivalent.

For identification, we rely on a shape restriction that emulates monotonicity in~$z$ of~$H(x,z)$ in the scalar case.
This generalized monotonicity notion is inherited from utility maximizing choices of good quality~$z$ by consumers with characteristics~$(x,\varepsilon)$.
As such, it is indexed by the utility function.
\begin{definition}[$\zeta$-monotonicity]
\label{def:zmon}
Let~$\zeta$ be a function on~$\mathbb R^{d_x}\times\mathbb R^{d_\varepsilon}\times\mathbb R^{d_z}$ that is continuously differentiable in its second and third variables and satisfies Assumption~\ref{ass:twist}(A). A function~$H$ on~$\mathbb R^{d_x}\times\mathbb R^{d_z}$ is~$\zeta$-monotone if for all~$x$, there exists a~$\zeta$-convex function~$z\mapsto V(x,z)$ (see Definition~\ref{def:zconv}) such that for all~$z$, $H(x,z)\in\partial^{\zeta}_zV(x,z)$, where~$\partial^{\zeta}_z$ denotes the~$\zeta$-subdifferential with respect to~$z$ from Definition~4 of the technical appendix \citet{CGHP:2020app}.
\end{definition}
Two special cases help clarify the concept of~$\zeta$-monotonicity:
\begin{enumerate}
\item When~$d_z=d_\varepsilon=1$, injectivity of~$\varepsilon\mapsto\zeta_z(x,\varepsilon,z)$ implies that~$V^\zeta$ is convex or concave, and that~$z\mapsto H(x,z)$ is monotone.
\item When~$d_\varepsilon=d_z$ and~$\zeta(x,\varepsilon,z)=z'\varepsilon$, $V^\zeta=V^\ast$, which is convex, and therefore locally Lipschitz, hence almost surely differentiable by Rademacher's Theorem (\citet{Villani:2009}, Theorem~10.8(ii)), so that~$H(x,z)=\nabla_zV(x,z)$ is the gradient of a convex function.
\end{enumerate}

The class of~$\zeta$-monotone functions has structural underpinnings as demand functions resulting from the maximization of a utility function over good qualities~$z\in\mathbb R^{d_z}$. Suppose a consumer with characteristics~$(x,\varepsilon)$ chooses~$z$ based on the maximization of~$\bar U(x,z)+\zeta(x,\varepsilon,z)-p(z)$. Suppose~$\zeta$ satisfies Assumption~\ref{ass:twist} and~$V(x,z):=p(z)-\bar U(x,z)$ is~$\zeta$-convex. Then, the demand function~$H$ that satisfies~$\nabla V(x,z)=\nabla_z\zeta(x,H(x,z),z)$, $P_{z\vert x}$ a.s., is~$\zeta$-monotonic by Theorem~10.28(b) page~243 of \citet{Villani:2009}.
Theorem~\ref{thm:matzkin} below then shows identification of demand when utility is of the form~$\bar U(x,z)+\zeta(x,\varepsilon,x)$ and~$\zeta$ is fixed.
\begin{theorem}[Nonseparable simultaneous equations]
\label{thm:matzkin}
In the simultaneous equations model $H(x,z)=\varepsilon$, with $z\in \mathbb R^{d_z}$ and $x\in \mathbb R^{d_x}$, and~$\varepsilon$ follows known distribution~$P_{\varepsilon\vert x}$,
the function $H:\mathbb R^{d_x}\times\mathbb R^{d_z}\rightarrow\mathbb R^{d_\varepsilon}$ is identified within the class of measurable~$\zeta$-monotone
functions, for any function~$\zeta$ on~$\mathbb R^{d_x}\times\mathbb R^{d_\varepsilon}\times\mathbb R^{d_z}$ that is bounded above, continuously differentiable in its second and third variables and satisfies Assumptions~\ref{ass:twist}(A), \ref{ass:supp3}(2) and $\int \zeta(x,\varepsilon,z)dP_{\varepsilon\vert x}(\varepsilon) \geq C\in\mathbb R$ for all~$x,z$.
\end{theorem}
Theorem~\ref{thm:matzkin} is a relatively straightforward application of classical results in optimal transport theory, in particular Theorem~10.28 page~243 of \citet{Villani:2009}. Brenier's polar factorization theorem, in \citet{Brenier:91}, was, to the best of our knowledge, first used to define multivariate quantile functions by \citet{EGH:2012} and \citet{GH:2012} with decision theoretic applications. \citet{CCG:2014} and \citet{CGHH:2017}  (both coetaneous with the present paper) apply \citet{McCann:95} to multivariate quantile regression and multivariate depth, quantiles, ranks and signs respectively. This section relies on an extension of these optimal transport results to more general transport costs and interprets it as an identification result, thus extending scalar quantile identification strategies.

If we revisit the two special cases of~$\zeta$-monotonicity above, we obtain the classical quantile identification of \citet{Matzkin:2003}, and a result on the identification of nonseparable simultaneous equations systems within the class of gradients of convex functions.
\begin{enumerate}
\item When~$d_z=d_\varepsilon=1$, Theorem~\ref{thm:matzkin} yields the identification of~$H$ in the system~$\varepsilon=H(x,z)$ when~$z\mapsto H(x,z)$ is monotone.
\item When~$d_\varepsilon=d_z$ and~$\zeta(x,\varepsilon,z)=z'\varepsilon$, Theorem~\ref{thm:matzkin} yields the identification of~$H$ in the system~$\varepsilon=H(x,z)$ when~$z\mapsto H(x,z)$ is the gradient of a convex function.
\end{enumerate}

\begin{corollary}
\label{cor:McCann}
In the simultaneous equations model $z=G(x,\varepsilon)$, with $z\in \mathbb R^{d_z}$, $x\in \mathbb R^{d_x}$, $\varepsilon\sim P_{\varepsilon\vert x}$, and~$P_{\varepsilon\vert x}$ a given absolutely continuous distribution on~$\mathbb R^{d_z}$,
the function $G:\mathbb R^{d_x}\times\mathbb R^{d_z}\rightarrow\mathbb R^{d_z}$ is identified within the class of gradients of convex functions of~$\varepsilon$, for each~$x$.
\end{corollary}
Although the previous result is presented as a corollary of Theorem~\ref{thm:matzkin}, it holds under weaker conditions than would be implied by Theorem~\ref{thm:matzkin} in case~$\zeta(x,\varepsilon,z)=z'\varepsilon$ and is a direct application of the {\em Main Theorem}~ in \citet{McCann:95}. The only constraint is the absolute continuity of the distribution of~$\varepsilon$, so that the outcome vector~$z$ and the covariate vector~$x$ are unrestricted.

Beyond the special cases of Corollary~\ref{cor:McCann}, we revisit the examples of Section~\ref{sec:exp}. First consider the case of exponential transform~$\zeta(x,\varepsilon,z):=\exp(z'\varepsilon)$. Given marginal utility~$\bar U(x,z)+\exp(z'\varepsilon)$ and price~$p(z)$, Theorem~\ref{thm:matzkin} tells us that the solution~$\varepsilon=H(x,z)$ to the consumer's problem~$\nabla p(z)-\nabla_z\bar U(x,z)=\exp(z'H(x,z))H(x,z)$ is unique. In the case consumers are maximizing utility of the form~$\bar U(x,z)+\sum_{k=1}^dF_k(x,z_k\varepsilon_k)$ , the corresponding system of differential equations with a unique solution is~$p_{z_k}(z)-\bar U_{z_k}(x,z)=f_k(x,z_kH_k(x,z))H_k(x,z)$, each~$k$, where~$p_{z_k}$ and~$\bar U_{z_k}$ are the partial derivatives with respect to the~$k$-th variable,~$f_k$ is the derivative of~$F_k$ with respect to the second argument, and~$H_k$ is the~$k$-th component of~$H$.

\section*{Discussion}

This paper proposed a set of conditions under which utilities and costs in a hedonic equilibrium model are identified from the observation of a single market outcome.
The proof strategy extends \citet{EHN:2004} and \citet{HMN:2010} (hereafter EHMN) to the case of goods characterized by more than one attribute. The proposed shape restriction on the utility function, called twist condition, extends the single crossing condition in EHMN. The proof of identification mirrors that of (one of the strategies in) EHMN. First, inverse demand is identified from the twist condition and cyclical monotonicity (a feature of equilibrium). Then the first order condition of the consumer's problem allows the recovery of the utility function, once a suitable form of weak differentiability of the endogenous price function is ensured. The identification proof highlights another parallel with EHMN, which is (generalized) monotonicity of inverse demand. In the scalar case, this generalized monotonicity reduces to monotonicity, whereas in the special case, where utility takes the form~$U((x,\varepsilon),z)=\bar U(x,z)+z'\varepsilon$, inverse demand is the gradient of a convex function. We then show that this generalized form of monotonicity is a suitable shape restriction to identify nonseparable simultaneous equations models with a strategy that extends the quantile identification of \citet{Matzkin:2003}.
Most of our results involve fixing the distribution of unobserved consumer heterogeneity a priori, as in the original quantile identification method. Although we provide some discussion of the case, where data from multiple distinct markets can provide additional identifying equations to (partially) identifying $(\bar U(x,z),P_{\varepsilon\vert x})$ jointly, more research is needed to develop point identification conditions for the latter.