EconBase
← Back to paper

Empirical Bayes Estimation in Heterogeneous Coefficient Panel Models

Extracted main text — title through conclusion, appendix excluded. This is what our citation measures are computed over, published so the extraction can be checked by eye.

105,832 characters · 18 sections · 75 citation commands

Rendered from LaTeX for readability, not typeset faithfully. Citation keys are highlighted; maths is left as source; figures, tables and equation environments are summarised rather than reproduced; unrecognised commands are greyed out so nothing is silently dropped. Email addresses are removed.

Empirical Bayes Estimation in Heterogeneous Coefficient Panel Models

\thispagestyle{empty} \setcounter{page}{0}

abstractWe develop an empirical Bayes (EB) G-modeling framework for short-panel linear models with nonparametric prior for the random intercepts, slopes, dynamics, and non-spherical error variances. We establish identification and consistency of the nonparametric maximum likelihood estimator (NPMLE) under general conditions, and provide low-level sufficient conditions for several models of empirical interest. Conditions for regret consistency of the EB estimators are also established. The NPMLE is computed using a Wasserstein-Fisher-Rao gradient flow algorithm adapted to panel regressions. Using data from the Panel Study of Income Dynamics, we find that the slope coefficient for potential experience is substantially heterogeneous and negatively correlated with the random intercept, and that error variances and autoregressive coefficients vary significantly across individuals. The EB estimates reduce mean squared prediction errors relative to individual maximum likelihood estimates. \\ \\ Keywords: G-modeling, nonparametric maximum likelihood, shrinkage estimation, Wasserstein-Fisher-Rao gradient flow, income dynamics

Introduction

Understanding differences in individual behavior is the primary goal of many economic analyses. Why do workers with similar experience exhibit different earnings profiles? Why do economic agents with similar observed characteristics respond differently to economic shocks and policy interventions? A challenge for empirical researchers in addressing these questions is the presence of individual-level differences that affect behavior but are not captured by observed variables, commonly referred to as unobserved heterogeneity. While it is not hard to allow for unit-specific intercepts in linear regressions, entertaining heterogeneous slope parameters and innovation variances is more challenging, and in a frequentist setting, this usually requires parametric assumptions to gain tractability at the cost of robustness.

This paper considers a setting in which we observe $\{ (Y_{it}, X_{2,it}) : t = 1,\ldots,T \}$ for each unit $i = 1,\ldots,N$, assuming they are independent and identically distributed (i.i.d.) across $i$. We propose a framework for short-$T$ linear panel models with heterogeneous intercepts, slope coefficients, and error distributions. To fix ideas, consider the dynamic linear panel model with an exogenous covariate $X_{2,it}$ and AR(1) errors:

subequations\begin{align} Y_{it} &= a_i + b_i X_{2,it} + u_{it}, \\ u_{it} &= \rho_i u_{it-1} + \sigma_i e_{it}, \quad e_{it} \overset{\mathrm{i.i.d.}}{\sim} \mathcal{N}(0,1), \qquad t \ge 1, \end{align}

where $a_i \in \mathbb{R}$ is a random intercept, $b_i \in \mathbb{R}$ a random slope, $\rho_i \in (-1,1)$ a random autoregressive coefficient, $\sigma_i^2 > 0$ a random variance, and $u_{i0}$ follows the stationary distribution $\mathcal{N}(0,\sigma_i^2/(1-\rho_i^2))$ conditional on $(\sigma_i^2,\rho_i)$. We refer to the model in (ref) as HIVDX since it admits heterogeneity in four dimensions: intercepts ($I$), error variances ($V$), dynamics ($D$) through the autoregressive coefficient, and the coefficient on the exogenous covariate $X_2$. The widely studied Gaussian location-scale model $Y_{it} = a_i + \sigma_i e_{it}$, as well as models that impose $\rho_i = \rho$ and $b_i = b$, are special cases of HIVDX.

We analyze the HIVDX model and the special cases in Section (ref) using a general framework that partitions the random parameters into two sets: regression coefficients $\beta_i = (a_i, b_i)$ of dimension $d_\beta = 2$, and covariance parameters $\delta_i = (\sigma_i^2, \rho_i)$ of dimension $d_\delta = 2$. The parameters can be estimated separately for each $i$ by maximum likelihood. Instead, we assume that the random parameters $\theta_i \equiv (\beta_i, \delta_i)$ are drawn from a true but unknown common distribution $G_*$. Viewing $G_*$ as a prior, the optimal decision rule for each unit under compound squared-error loss is the posterior mean ${\theta}^{*}_i := \mathbb{E}_{G_*}[\theta_i \mid Y_i, X_{2,i}]$, where $Y_i = (Y_{i1}, \ldots, Y_{iT})'$, $X_{2,i} = (X_{2,i1}, \ldots, X_{2,iT})'$, and $\mathbb{E}_{G_*}[\cdot]$ denotes expectation with respect to $\theta_i \sim G_*$.

Specifying that $\theta_i \stackrel{\text{i.i.d.}}{\sim} G_*$ is grounded in the principle of empirical Bayes (EB) introduced by robbins:56. This approach is intrinsically frequentist because it estimates the prior distribution from the data. EB estimation improves on individual-level maximum likelihood estimation through shrinkage, borrowing strength across units to learn both the individual parameters $\theta_i$ and their population distribution $G_*$. Following the terminology of efron-14, the procedure is referred to as G-modeling when $G_*$ is estimated directly. The resulting EB estimator is given by $\hat{\theta}^{\mathrm{EB}}_i := \mathbb{E}_{\hat{G}}[\theta_i \,|\, Y_i, X_{2,i}]$, where $\hat{G}$ denotes an estimator of $G_*$. An EB estimator $\hat \tau_i^{{\mathrm{EB}}}(\theta_i)=\mathbb E_{\hat G}[\tau_i \,|\, Y_i,X_{2,i}] $ for general unit-specific parameters $\tau_i$ defined as functions of $\theta_i$ can also be defined. While parametric G-modeling is convenient, nonparametric modeling guards against misspecification. Recent reviews of EB and its applications in economics include KoenkerGu2024:JPEmicro, KoenkerGu2025book, and Walters:24. To our knowledge, no nonparametric EB analysis has considered all four sources of heterogeneity present in the HIVDX model.

We study identification and estimation of the HIVDX model within an EB framework. The generality of our model with $d_\beta > 1$ and $d_\delta > 0$ introduces several challenges. First, while assuming the identification of $G_*$ in the Gaussian location model with i.i.d.\ errors without formal proof may be defensible, this assumption cannot be taken for granted in more complex settings. Theorem (ref) establishes that identification requires: (i) the design matrix to have full column rank almost surely, and (ii) the covariance structure to remain identifiable after removing the mean component by appropriately differencing the data. These conditions imply that $d_\beta < T$, leaving $T - d_\beta$ degrees of freedom to identify the covariance structure; this imposes a constraint on the dimension of heterogeneous variance parameters ($d_\delta$).

We apply Theorem (ref) to the location model ($d_\beta=1$) and illustrate how differencing facilitates identification. Specifically, we show that $T \ge 3$ suffices for AR(1) errors (Proposition (ref)), whereas ARMA(1,1) errors require $T \ge 4$ (Proposition (ref)). The analysis is, however, more involved when $d_\beta > 1$, as the mean and variance components are convolved within the outcome distribution. Now whether and how $G_*$ can be identified depends critically on the specific time-series variation of the covariate. We examine two canonical examples. The first example includes models with a common time trend and heterogeneous initial conditions (e.g., potential experience in income dynamics) as a special case. For this example, Proposition (ref) establishes that $G_*$ is nonparametrically identified with $T \ge 4$. The second example includes a common mean shift as a special case. For this case, Proposition (ref) shows that identification of $G_*$ is possible with $T\ge 5$. Identification must be worked out on a case by case basis.

The second challenge lies in establishing consistent estimation of the HIVDX model. The classic proof of kiefer1956consistency assumes compactness, but when $\beta_i$ is allowed to be unbounded, the space of mixing distributions is non-compact. While the case of ${d_{\beta}} = 1$ can be resolved by embedding $\mathbb{R}$ into its compact completion $[-\infty, \infty]$, the multidimensional setting (${d_{\beta}} \ge 2$) presents unique difficulties because mass can diverge along infinitely many distinct directions. To address this, Section (ref) adopts a metric induced by the vague topology to effectively compactify the space of prior distributions. Theorem (ref) establishes almost sure consistency of the nonparametric maximum likelihood estimator (NPMLE) with respect to this metric. Building on this result, Theorem (ref) in Section (ref) provides conditions for regret consistency (equivalently, asymptotic optimality) of the EB estimator for $\tau_i$, taking into account that $\tau_i$ may involve functions of the random coefficients and the data. For example, the optimal (but infeasible) one-step-ahead prediction under quadratic loss is ${\tau}^{*}_i = \mathbb{E}_{G_*}[a_i + b_i X_{2,i T+1} + \rho_i Y_{iT} \,|\, Y_{i}, X_{i},X_{2,i T+1}] - \mathbb{E}_{G_*}[\rho_i a_i +\rho_i b_i X_{2,iT} \,|\, Y_{i}, X_{i}]$. The prediction error $\hat \tau^{{\mathrm{EB}}}_i-\tau_i^*$ thus involves interaction of the errors in estimating the random coefficients and $(Y_i,X_i)$. Proposition (ref) provides low-level sufficient conditions for the EB prediction to be regret-consistent.

The third challenge arises from the computational complexity associated with multiple sources of heterogeneity. In location models, the NPMLE of $G$ is typically computed by optimizing over a fixed grid of $m$ points. The location of the grid points and the size of the grid are usually fixed during the iterations. However, as $d_\theta$ increases, the grid required to maintain accuracy needs to grow exponentially. It would be desirable to have an algorithm that allows the support points to move adaptively. This motivates a shift from Euclidean optimization to optimization on the space of probability measures, where the updates are governed by gradient flows. In this framework, the choice of geometry is critical. For example, the Fisher-Rao gradient flow corresponds to reweighting fixed support points, whereas the Wasserstein gradient flow transports mass across the parameter space, effectively moving the support. Recently, yan2024learning demonstrate the theoretical and computational advantages of combining these geometries for the Gaussian location mixture model. Motivated by this encouraging result, Section (ref) develops a Wasserstein-Fisher-Rao (WFR) gradient flow algorithm for panel regressions with multiple sources of heterogeneity.

We use the EB approach to analyze the income data in the Panel Study of Income Dynamics (PSID) in Section (ref). The model allows earnings $Y_{it}$ to have unit-specific mean $a_i$ and response $b_i$ to potential experience $X_{2,it}$, with a heteroskedastic error covariance structure that depends on internal dynamics $\rho_i$ and exposure to shocks through $\sigma_i^2$. We find that (i) the slope coefficient $b_i$ for potential experience exhibits substantial heterogeneity and is negatively correlated with the random intercept $a_i$, and (ii) there is pronounced cross-sectional heterogeneity in both the variance ($\sigma_i^2$) and the dynamics ($\rho_i$). The EB estimates reduce mean squared prediction errors relative to individual maximum likelihood estimates. Section (ref) shows that features of the EB estimates and forecast error reduction are replicated in Monte Carlo experiments calibrated to the application.

Before turning to the main part of the paper, we briefly discuss recent work that, while not directly related to our approach, are conceptually connected to the broader EB literature. KevinChen:2024 analyzes conditionally Gaussian settings with known variances \(\sigma_i^2\). He first studentized the data by estimating the conditional mean and variance of outcomes given \(\sigma_i^2\), and then estimate the prior to plug into EB decision rules. The paper emphasizes the importance of nonparametric estimation in both stages. In contrast, we allow for unobserved \(\sigma_i^2\) and heterogeneous dynamics across multiple time periods.

Kwon:2025 considers a multivariate Gaussian model with a hierarchical prior, while Cheng-et-al:2025 propose a parametric EB estimator for two-way effects with assortative matching. Both methods rely on linear shrinkage rules selected to minimize unbiased risk estimates. In contrast, we adopt a fully nonparametric EB approach via NPMLE. Gaillac2024 develops posterior mean estimators for multiple random coefficient models for cross-sectional regressions. In a panel extension, the paper constructs time averages for each unit and allows heterogeneity only in time-invariant regressors, while assuming homogeneous coefficients for time-varying regressors. In contrast, our framework focuses on random coefficients associated with regressors that vary over time.

AGT:EBAdaptive investigate EB methods in compound adaptive experiments, where the outcome of each arm follows a normal distribution with an unknown mean. They demonstrate that the risk guarantees for G-modeling, originally derived under i.i.d.\ sampling, continue to hold for adaptively collected data without knowledge of the sampling algorithm. In contrast, F-modeling is shown to yield biased estimates in this setting.

Recent work has extended nonparametric EB methods beyond the classical Gaussian location model to a variety of settings, including heteroskedastic models (e.g., {Bodhi:JRSSB}, {Bodhi:JRSSB}), high-dimensional or multivariate regression (e.g., {Bodhi:EB-HD}, {Bodhi:EB-HD}; {Wu:EB-HD}, {Wu:EB-HD}; {Jiang:2025}, {Jiang:2025}), and variance estimation (e.g., {IgnatiadisSen2025AoS}, {IgnatiadisSen2025AoS}). These works only consider a static model while our focus is the heterogeneous dynamic panel model presented above as HIVDX.

The Econometric Setup and EB Modeling

We consider a panel of observations on $N$ cross-sectional units over $T$ time periods, focusing on a short-panel framework in which $N$ grows while $T$ remains fixed. Our main setup is a general heterogeneous coefficient (HC) model that nests the HIVDX model:

equation[equation omitted — 66 chars of source]

where \(Y_i = (Y_{i1}, \ldots, Y_{iT})'\) is a \(T \times 1\) vector of outcomes, \(X_i = (X_{i1}, \ldots, X_{iT})'\) is a \(T \times d_{\beta}\) matrix of observed covariates, and $e_i = (e_{i1}, \ldots, e_{iT})'$ is a vector of independent Gaussian errors. We assume that the first column of $X_i$ is $\iota_T$, the $T$-dimensional vector of ones. For each $i$, $P_i$ is lower triangular, and the corresponding conditional covariance matrix $\Sigma_i \equiv P_i P_i'$ is positive definite. To capture its dependence on heterogeneous variance parameters $\delta_i \in \mathbb{R}^{{d_{\delta}}}$, we write $P_i = P(\delta_i)$, where $\delta \mapsto P(\delta)$ is a continuously differentiable function of $\delta$.

To see that the HIVDX model is a special case of the HC model for particular $(\beta_i, \delta_i)$, note that since $e_{it}$ are i.i.d. $\mathcal{N}(0,1)$, $u_i = (u_{i1}, \ldots, u_{iT})'$ is normally distributed with conditional covariance matrix $\Sigma_i$, whose $(t,s)$ entry is given by

equation[equation omitted — 130 chars of source]

Hence, $P_i$ is defined via the Cholesky decomposition of $\Sigma_i = P_i P_i'$ with $\delta_i = (\sigma_i^2, \rho_i)$. We develop our theoretical framework through the lens of the HC model since it provides a unified way to analyze a broader class of dynamics such as ARMA errors. Let $I_T$ denote the $T \times T$ identity matrix. The following assumptions will be used throughout.

assumption[DGP] Let \((Y_i, X_i)_{i=1}^N\) be identically and independently distributed (i.i.d.) data, satisfying (ref). In addition, the following conditions hold. \begin{enumerate} • The pairs \((\beta_i, \delta_i)_{i=1}^N\) are i.i.d. draws from an unknown distribution \(G_*\) and are independent of \((X_i)_{i=1}^N\). • The parameter space for $\delta_i$ is a compact subset $\mathcal{K}_{\delta} \subseteq \mathbb{R}^{{d_{\delta}}}$. For each $\delta_i \in \mathcal{K}_{\delta}$, the covariance matrix $\Sigma_i \equiv P(\delta_i)P(\delta_i)'$ satisfies $\underaccent{\bar}{c}\, I_T \le \Sigma_i \le \bar{c}\, I_T$ for some $0 < \underaccent{\bar}{c} < \bar{c} < \infty$. • $e_i \sim \mathcal{N}(0, I_T)$. \end{enumerate}

Conditional on \((\beta_i, \delta_i)\) and \(X_i\), the outcome vector \(Y_i\) follows the distribution \(\mathcal{N}(X_i \beta_i, \Sigma_i)\). Individuals in this model are distinguished by types characterized by their heterogeneous features. Given the information structure, individual types cannot be directly uncovered from the data, but their distributions can be identified.

Let $\theta_i := (\beta_i, \delta_i)$ collect all heterogeneous parameters, lying in the space $\Theta := \mathbb{R}^{{d_{\beta}}}\times\mathcal{K}_{\delta} \subseteq \mathbb{R}^{{d_{\theta}}}$ with ${d_{\theta}} = {d_{\beta}} + {d_{\delta}}$. If $\theta_i$ were observed, the conditional density of $Y_i$ given $X_i$ is

align*[align* omitted — 167 chars of source]

When $\theta_i$ is unobserved but its distribution is given as $G$, the marginal density of $Y_i$ given $X_i$, obtained by integrating out $\theta_i$ from the likelihood, is

equation*[equation* omitted — 93 chars of source]

where the independence between $\theta_i$ and $X_i$ is used.\footnote{We use $G_*$ to denote the unknown true distribution and $G$ to denote a generic distribution in the class of possible distributions that includes $G_*$. The notation $f_{G}(Y_i, X_i)$ emphasizes that the marginal density of $Y_i$ given $X_i$ depends on $G$.}

For the estimation of $(\theta_i)_{i=1}^N$, two conceptual frameworks are available. The first is the separate decision framework that treats each $\theta_i$ as fixed and minimizes the individual risk $\mathbb{E}[\|\hat \theta_i - \theta_i\|^ 2 \,|\, \theta_i]$. This yields the individual MLE,

equation*[equation* omitted — 152 chars of source]

which provides an asymptotically efficient estimator for $\theta_i$ as $T \to \infty$. However, stein:54 and james-stein:61 demonstrate for independent Gaussian observations that the MLE is inadmissible under squared-error loss when the dimension of the parameter vector is at least three (here, $N \ge 3$). In this setting, the MLE is dominated by a shrinkage estimator that achieves lower total risk by pooling information across observations.

The second approach is the compound decision framework. Unlike the separate framework, which minimizes risk for each unit individually, this approach seeks to minimize the aggregate risk over the ensemble of $N$ units. While the strict compound decision formulation treats $(\theta_i)_{i=1}^N$ as fixed, robbins:56 demonstrates that this problem can be effectively solved by adopting an EB perspective. By modeling the parameters as i.i.d.\ draws from a common latent distribution $G_*$, we can derive an optimal (oracle) decision rule, which takes the form of the posterior mean:

equation[equation omitted — 229 chars of source]

This estimator improves efficiency by pooling information across units, thereby reducing the variance relative to the individual maximum likelihood estimators $\hat {\theta}^{\operatorname{MLE}}_i$. These efficiency gains come at the cost of introducing individual bias (i.e., $\mathbb{E}[{\theta}^{*}_i \,|\, \theta_i] \ne \theta_i$), but the reduction in the overall compound mean squared error dominates this cost. In essence, ${\theta}^{*}_i$ shrinks $\hat {\theta}^{\operatorname{MLE}}_i$ toward the prior.

In practice, the compound decision rule is infeasible due to the unknown $G_*$. In Bayesian analysis, the prior $G_*$ is typically specified as a parametric distribution, either by fixing its hyperparameters or by assigning them their own distributions. efron-morris:73 show that the James-Stein shrinkage estimator can be interpreted as a parametric EB estimator, with $G_*$ serving as a parametric prior whose hyperparameters are estimated from the data.

An Empirical Bayes analysis can approximate the infeasible oracle decision rule in one of two ways: F-modeling or G-modeling. F-modeling directly computes the shrinkage term from the data without explicit knowledge of $G_*$. For example, assuming $\Sigma_i \equiv \Sigma$ for some known homogeneous covariance matrix $\Sigma$ (that is, $\rho_i=\rho$ and $\sigma_i^2 = \sigma^2$ for some known $\rho$ and $\sigma^2$), the (infeasible) F-modeling EB estimator is

equation[equation omitted — 247 chars of source]

where $\hat {\beta}^{\operatorname{MLE}}_i = (X_i'\Sigma^{-1} X_i)^{-1}X_i'\Sigma^{-1} Y_i$ and $\hat f_{\hat{\beta}|X}(\hat{\beta}, x)$ is an estimator for $f_{\hat{\beta}|X}(\hat{\beta}, x)$ – the conditional density of $\hat {\beta}^{\operatorname{MLE}}_i$ given $X_i=x$ under $G_*$. In practice, $\Sigma$ is typically unknown and must also be estimated. Equation (ref), commonly known as Tweedie's formula in the literature, shows that the posterior mean of $\beta_i$ adjusts the corresponding MLE by a shrinkage term derived from the cross-sectional distribution of the MLE.\footnote{In the simplest case when $Y \,|\, \theta \overset{\text{ind.}}{\sim} \mathcal{N}(\theta, 1)$ with $T=1$, the Tweedie formula is $\mathbb{E}_{G_*}[\theta| y] = y + \tfrac{d}{dy} \log f_{G_*}(y)$, where $f_{G_*}(\cdot)$ denotes the marginal density of $Y$ under $G_*$.} The magnitude of the shrinkage term grows with the variance of $\hat {\beta}^{\operatorname{MLE}}_i$, as measured by $(X_i' \Sigma^{-1} X_i)^{-1}$, and with the informativeness of the prior, as reflected in $f_{\hat{\beta}|X}$.\footnote{ It can be shown that the oracle-decision errors and the shrinkage term are uncorrelated, that is, $\operatorname{Cov}_{G_*} ({\beta}^{*}_i - \beta_i, \hat {\beta}^{\operatorname{MLE}}_i - {\beta}^{*}_i ) = 0$, where ${\beta}^{*}_i := \mathbb{E}_{G_*}[\beta_i \,|\, Y_i, X_i]$, implying that the variance reduction is attributable to the shrinkage term in (ref).}

F-modeling typically relies on the assumption that the likelihood belongs to the linear exponential family, offering computational convenience when this condition holds. Walters:24 provides a survey of F-modeling applications in labor economics. LMS:20 estimate the posterior mean of \(a_i\) by F-modeling using Tweedie's formula. However, this method does not readily extend to the HIVDX model. We adopt the alternative of G-modeling and explicitly estimate the unknown prior $G_*$. shen2022empirical demonstrate that G-modeling has superior statistical properties in Poisson mixture models than F-modeling.

While parametric G-modeling imposes a specific functional form on the prior, nonparametric G-modeling characterizes the true distribution $G_*$ as the maximizer of the population log-likelihood:

equation[equation omitted — 136 chars of source]

where $\mathcal{G}$ is the class of all probability distributions on $\Theta$ and $F(G) := \mathbb{E}[\log f_{G}(Y_i, X_i)]$ denotes the expected marginal log-likelihood (i.e., the negative risk). This formulation motivates estimating $G_*$ via its sample analog:

equation[equation omitted — 139 chars of source]

where the empirical criterion is given by $F_N(G) := N^{-1} \sum_{i=1}^N \log f_{G}(Y_i, X_i)$. We refer to $\hat G$ as the NPMLE\ of $G_*$. Substituting $\hat G$ for $G_*$ in (ref) yields the G-modeling EB estimator for $\theta_i$:

equation[equation omitted — 208 chars of source]

The NPMLE\ is built on the same principle as parametric MLE, namely that $G_*$ is the maximizer of the population log-likelihood defined in (ref). If $G_*$ is the unique maximizer of $F$ over $\mathcal{G}$, it is said to be (point-)identified. However, it is known that the NPMLE\ in (ref) may not be unique in multidimensional settings; in such cases, $\hat{G}$ refers to any maximizer. Thus, before presenting an algorithm to compute $\hat G$ in Section (ref), we first establish conditions for the identification of $G_*$ in Section (ref), and then show in Section (ref) that consistent estimation is possible despite multiple sources of heterogeneity.

Identification

This section establishes identification of the HC model defined in (ref). Let $\mathcal{G}$ denote the class of all distributions on $\Theta \equiv \mathbb{R}^{{d_{\beta}}}\times \mathcal{K}_{\delta}$, defined as

equation[equation omitted — 238 chars of source]

where $\mathcal{K}_{\delta}\subseteq\mathbb{R}^{{d_{\delta}}}$ is a compact subset in which $\delta_i$ is supported, as in Assumption (ref). Since any solution to the MLE in (ref) must lie in the set

equation[equation omitted — 129 chars of source]

the identified set of distributions consists of distributions consistent with the observed marginal likelihood. We now state the conditions on the covariates and the parametric form of $P(\cdot)$ required for the identification of $G_*$.

assumptionThere exists a pair $({\pmb{X}},\pmb{M})$ of fixed matrices with ${\pmb{X}} \in \operatorname{supp}(X_i)$ and $\pmb{M} \in \mathbb{R}^{T\times (T-{d_{\beta}})}$ such that the following conditions hold: \begin{enumerate} • $\operatorname{rank}({\pmb{X}}) = {d_{\beta}} \le T-1$, $\operatorname{rank}(\pmb{M}) = T - {d_{\beta}} \ge 1$, and $\pmb{M}'{\pmb{X}} = 0$. • For any $\delta, \tilde{\delta} \in \mathcal{K}_{\delta}$, \[ \pmb{M}'P(\delta)P(\delta)'\pmb{M} = \pmb{M}'P(\tilde{\delta})P(\tilde{\delta})'\pmb{M} \quad \text{if and only if} \quad \delta = \tilde{\delta}. \] \end{enumerate}

Assumption (ref)(i) requires ${\pmb{X}}\in \operatorname{supp}(X_i)$ to have full column rank, paralleling the familiar rank condition in regression. This ensures the existence of an annihilator matrix $\pmb{M}$ with rank $T - {d_{\beta}}$.\footnote{The choice of $\pmb{M}$ is unique (up to a nonsingular linear transformation) given ${\pmb{X}}$, since a different choice of $\pmb{M}$ can be written as $\tilde{\pmb{M}} = \pmb{M} A$ for some nonsingular $A$.} We further require that ${d_{\beta}} \le T-1$ so that $\pmb{M}$ has non-null rank and can be used in part (ii). This restriction is needed because, in our setting, the covariances $\Sigma_i$ depend on unknown $\delta_i$.

Assumption (ref)(ii) imposes that $\delta\mapsto \pmb{M}'P(\delta)P(\delta)'\pmb{M}$ is a one-to-one function of $\delta \in \mathcal{K}_{\delta}$, meaning that the variance parameters remain identifiable after removing the effect of ${\pmb{X}} \beta_i$. The intuition is as follows. Since the concatenated matrix $({\pmb{X}}, \pmb{M})$ is of full rank, the information in $Y_i$, conditional on $X_i = {\pmb{X}}$, can be expressed as

equation*[equation* omitted — 278 chars of source]

where $\pmb{M} 'Y_i$ is a Gaussian mixture with mean zero and variance $\pmb{M}'P_iP_i'\pmb{M}=\pmb{M}'P(\delta_i)P(\delta_i)'\pmb{M}$. The distribution of $\pmb{M}'P(\delta_i)P(\delta_i)'\pmb{M}$ can therefore be identified from the distribution of $\pmb{M} 'Y_i$. Then, the distribution of $\delta_i$ is identified in view of Assumption (ref)(ii).

To identify $G_*$, the remaining step is to recover the conditional distribution of $\beta_i$ given $\delta_i$. Let $\mathcal{E} \in \mathbb{R}^{T\times(T-{d_{\beta}})}$. The key idea is to express

align*[align* omitted — 155 chars of source]

as a perturbation of $\pmb{M}'Y_i$ with noise $\mathcal{E}' {\pmb{X}}' Y_i$. We measure the shift in the mixing distribution of $\pmb{M}'Y_i + \mathcal{E}' {\pmb{X}}' Y_i$ relative to the mixing distribution of $\pmb{M}'Y_i$ identified earlier. This comparison reveals the conditional distribution of $\mathcal{E}'({\pmb{X}}'{\pmb{X}}) \beta_i$ given $\delta_i$ as $\mathcal{E}$ traverses $\mathbb{R}^{T\times(T-{d_{\beta}})}$, which then identifies $\beta_i$ given $\delta_i$ via the Cramer-Wold device.

The following theorem formalizes this result. The proof of Theorem (ref) as well as the proofs of all other theorems and propositions are given in Appendix (ref).

thmUnder Assumptions (ref) and (ref), $G_*$ is identified in the class $\mathcal{G} = \mathcal{P}(\mathbb{R}^{{d_{\beta}}} \times \mathcal{K}_\delta)$.

The primary challenge in identifying $G_*$ is to distinguish the mean and variance components that are convolved into the outcome distribution. For instance, assume that $Y_i \sim \mathcal{N}(0,1)$ is a scalar observation. The observed distribution of $Y_i$ can be rationalized by a continuum of models: $Y_i = a_i + \sigma_i e_i$, where $a_i \sim\mathcal{N}(0,v_a)$ and $\sigma_i\equiv \sqrt{1-v_a}$ for $v_a \in [0,1]$. Thus, one cannot tell which model generates the observed distribution without imposing further restrictions on $a_i$ or $\sigma_i$. bruni1985identifiability establish general identification results for Gaussian mixtures under a compact support assumption for both the mean and variance components.\footnote{The results of bruni1985identifiability are also used in identification of latent distributions in labor economic analyses (see, e.g., Pastorino:2024,bunting2024,dePaula2025), but the context is different from identification of mixture models in econometrics such as discussed in Compiani:Kitamura:2016.} Using a type of identification-at-infinity argument, they show that both components can be separated by leveraging variation in the tails of $Y_i$. However, this argument breaks down as soon as the mean component places a slight nonzero mass in the tails, producing observationally indistinguishable yet fundamentally different models, as illustrated above. In contrast, our identification strategy rests on the rank and one-to-one restrictions that preclude this type of identification failure.

Theorem (ref) extends to models that include homogeneous slope parameters:

equation[equation omitted — 89 chars of source]

where \(W_i = (W_{i1}, \ldots, W_{iT})'\) is a \(T \times d_{\gamma}\) matrix of additional controls associated with common slopes $\gamma_* \in \mathbb{R}^{{d_{\gamma}}}$. The common parameters $\gamma_*$ can often be identified without knowledge of $G_*$ by pooling cross-sectional information.

To see how $\gamma_*$ can be identified, rewrite (ref) as a pooled-effects model:

equation*[equation* omitted — 63 chars of source]

where $\beta_* := \mathbb{E}_{G_*}[\beta_i]$ and $u_i = X_i(\beta_i - \beta_*) + P_i e_i$ denotes the composite error. The parameter $\gamma_*$ is identified as the familiar regression coefficient

equation*[equation* omitted — 94 chars of source]

provided that $\mathbb{E}[\tilde{W}_i'\tilde{W}_i] > 0$, where $\tilde{W}_i := W_i - X_i \mathbb{E}[X_i'X_i]^{-1}\mathbb{E}[X_i' W_i]$. Once $\gamma_*$ is identified, the model can be analyzed using the residuals $Y_i - W_i \gamma_*$. Theorem (ref) serves as a general tool for analyzing identification in HC models. Before applying Theorem (ref) to the HIVDX model, we first consider a HIVD model without the covariate $X_{2i}$. We verify Assumption (ref) by demonstrating how to choose a pair $({\pmb{X}},\pmb{M})$.

Identification of the HIVD Model

We consider two variants of the HIVD model: one with AR(1) errors and the other with ARMA(1,1) errors.

AR(1) Errors

Consider the following AR(1) panel model without covariates:

equation[equation omitted — 182 chars of source]

where the initial condition $u_{i0}$ is assumed to be drawn from the stationary distribution $\mathcal{N}(0, \sigma_i^2/(1-\rho_i^2))$. The parameters are collected in $\theta_i = (a_i, \sigma_i^2, \rho_i) \overset{\mathrm{i.i.d.}}\sim G_*$.

propAssume that $T \ge 3$. Consider the panel AR(1) model given in (ref). $G_*$ is identified in $\mathcal{G} = \mathcal{P}(\Theta)$, where $\Theta = \mathbb{R} \times \mathcal{K}_{(\sigma^2,\rho)}$ and $\mathcal{K}_{(\sigma^2,\rho)}$ is a compact subset of $(0, \infty) \times (-1,1)$.

The restriction on $\mathcal{K}_{(\sigma^2,\rho)}$ implies that $\rho_i$ is bounded away from $\{-1,1\}$ and that $\sigma_i^2$ is bounded away from $0$ and infinity. The condition $T \ge 3$ is not only sufficient but also necessary for the identification of the three-dimensional parameter $\theta_i$. The variance parameters are identified from the covariance structure after purging the fixed effect $a_i$ by first-differencing $Y_i$ via a suitably chosen $\pmb{M}$. Finally, the compact support for $\delta_i$ ensures that $Y_i$ has non-degenerate and bounded covariance matrices across all $\delta_i$; in particular, this condition rules out unit root processes. Our choice of $\pmb{M}$ can be illustrated with $T=3$. Let ${\pmb{X}}$ be the column vector of ones whose rank is $1$. Set $\pmb{M}$ equal to the first-difference matrix:

equation*[equation* omitted — 107 chars of source]

This choice of $\pmb{M}$ yields

equation*[equation* omitted — 162 chars of source]

Since $\rho = 1 + 2\mathcal{V}_{21}/\mathcal{V}_{11}$ and $\sigma^2 = \mathcal{V}_{11} + \mathcal{V}_{21}$, there exists a one-to-one relationship between $\mathcal{V}$ and $\delta$, which ensures that $\delta$ is identified from $\pmb{M}' P(\delta)P(\delta)'\pmb{M}$.

ARMA(1,1) Errors

Consider the ARMA(1,1) panel model:

equation*[equation* omitted — 172 chars of source]

where $e_{it} \overset{\mathrm{i.i.d.}}\sim \mathcal{N}(0,1)$ and the initial condition $u_{i0}$ is drawn from the stationary distribution. The additional random coefficient $\varphi_i \in [-1,1]$ captures heterogeneity in the MA component. Under the given assumptions, $u_{i}$ is normally distributed with a conditional covariance matrix $\Sigma_i$, whose $(t,s)$ entry is given by

equation*[equation* omitted — 319 chars of source]
propLet $\theta_i = (a_i, \sigma_i^2, \rho_i, \varphi_i)$ collect all heterogeneous coefficients in the panel model with ARMA(1,1) errors, with $\theta_i \overset{\mathrm{i.i.d.}}\sim G_*$. Assume that $T \ge 4$ and let $G_*(\rho_i + \varphi_i = 0) = 0$ denote that the probability that $\rho_i + \varphi_i = 0$ equals zero under $G_*$. Then $G_*$ is identified in $\mathcal{G} = \mathcal{P}(\Theta)$, where $\Theta = \mathbb{R} \times \mathcal{K}_{(\sigma^2,\rho,\varphi)}$ and $\mathcal{K}_{(\sigma^2,\rho,\varphi)}$ is a compact subset of $(0,\infty)\times (-1,1)\times [-1,1]$.

The condition $T \ge 4$ is necessary to observe the process over a horizon sufficient to distinguish the two sources of persistence, namely $\rho_i$ and $\varphi_i$. The restriction $G_*(\rho_i + \varphi_i = 0) = 0$ ensures that the two dynamic components do not perfectly offset one another. We provide the specific choice of $({\pmb{X}},\pmb{M})$ for Assumption (ref) in Appendix (ref).

Identification of the HIVDX Model

We now return to the HIVDX model given in (ref). In this model, the parameters are partitioned as $\beta_i = (a_i, b_i)$ and $\delta_i = (\sigma_i^2, \rho_i)$, yielding the full parameter vector $\theta_i = (a_i, b_i, \sigma_i^2, \rho_i)$ with dimension ${d_{\theta}} = 4$. Define $\Delta x_t := x_t - x_{t-1}$ as the first difference operator applied to the sequence $(x_t)_{t=1}^T$. Whether and how $G_*$ can be identified depends critically on the specific time-series variation of the covariates. We illustrate this using two processes for $X_{2it}$. In the first case, the parameters of the HIVDX model are identified when $T\ge 4$, whereas identification requires $T\ge 5$ in the second case.

Case I

We start with the following proposition.

propAssume that $T\ge 4$ and either $ \Delta X_{2,i2} = \pm \Delta X_{2,i3} \ne 0 \text{ or } \Delta X_{2,i2} \ne \Delta X_{2,i4} $ holds with positive probability. Then, $G_*$ is identified in $\mathcal{G} = \mathcal{P}(\Theta)$, where $\Theta = \mathbb{R} \times \mathcal{K}_{(\sigma^2,\rho)}$ and $\mathcal{K}_{(\sigma^2,\rho)}$ is a compact subset of $(0, \infty) \times (-1,1)$.

To illustrate, suppose that $X_{2,it} = X_{2,i1} + (t - 1)$ is a linear trend with a random initial value. Then, we have $\Delta X_{2,it} \equiv 1$ for all $t$. We need to find an appropriate $({\pmb{X}},\pmb{M})$. Pick $X_{2,1}$ in $\operatorname{supp}(X_{2,i1})$ and define

equation*[equation* omitted — 265 chars of source]

where $\pmb{M}$ represents the second-difference operator in matrix form. It is clear that ${\pmb{X}}$ has full column rank. Furthermore, because $\pmb{M}$ annihilates both the intercept (column of ones) and $X_{2, it}$, the transformation $\pmb{M}' Y_i$ eliminates the fixed effects $\beta_i$ entirely. Let

equation*[equation* omitted — 141 chars of source]

where $\pmb{M}' Y_i \in \mathbb{R}^2$ collects the second differences of the errors, $(\Delta^2 {u}_{i3}, \Delta^2 {u}_{i4})$, conditional on $X_i={\pmb{X}}$. We obtain the following equations:

align*[align* omitted — 434 chars of source]

Hence, the system can be inverted:

equation*[equation* omitted — 209 chars of source]

This shows that the mapping $\delta \mapsto \mathcal{V}$ is one-to-one , thereby satisfying Assumption (ref)(ii). However, as shown in Appendix (ref), Proposition (ref) will not identify the $X_2$ process in Case II that will now be discussed.

Case II

propAssume that $T \ge 5$ and that $\Delta X_{2,it}$ is not identically zero for some $t \in \{2,\ldots, T\}$. Then, $G_*$ is identified in $\mathcal{G} = \mathcal{P}(\Theta)$, where $\Theta = \mathbb{R} \times \mathcal{K}_{(\sigma^2,\rho)}$ and $\mathcal{K}_{(\sigma^2,\rho)}$ is a compact subset of $(0, \infty) \times (-1,1)$.

An example of $X_{2,it}$ that satisfies the condition in the proposition is a one-time universal level shift: $X_{2,it} = \mathbf{1}\{t \ge 3\}$, as in a nationwide policy change. Then, the sequence of first differences is $ (\Delta X_{2,i2}, \Delta X_{2,i3}, \Delta X_{2,i4}, \Delta X_{2,i5}) = (0, 1, 0, 0). $ Then, $\pmb{M}$ can now be constructed as

equation*[equation* omitted — 142 chars of source]

which yields $\pmb{M}'Y_i = (\Delta u_{i2}, \Delta u_{i4}, \Delta u_{i5})'$. Since the $(1,1)$ and $(2,3)$ elements of the covariance matrix $\mathcal{V} = \mathbb{V}(\pmb{M}'Y_i \mid \delta_i = \delta)$ are given by

align*[align* omitted — 243 chars of source]

we can identify $\rho$ via the ratio $2\mathcal{V}_{23}/\mathcal{V}_{11} + 1$, and subsequently recover $\sigma^2$. This establishes that the mapping $\delta \mapsto \mathcal{V}$ is one-to-one, as required by Assumption (ref)(ii). The result in Proposition (ref) also extends to the analysis of heterogeneous treatment implemented at a known time $s \ge 2$, giving

align*[align* omitted — 87 chars of source]

Then the term $\mathbf{1}\{t \ge s\}$ represents a common treatment or policy, and $b_i$ captures the individual-specific treatment effect.

As these examples illustrate, incorporating covariates necessitates a significantly more involved analysis. This is because the transformation matrix $\pmb{M}$ that yields differenced data often obscures the autocovariance structure required to identify $\delta_i$. It is worth emphasizing that while the sufficient conditions in Proposition (ref) are simple to verify, the underlying proof is combinatorially complex. Establishing this general result requires an exhaustive analysis of all distinct patterns of $\Delta X_{2,it}$ to verify the one-to-one mapping between $\delta$ and $\mathcal{V}$ in every possible scenario, as shown in the Appendix.

Consistency of the NPMLE

This section establishes that $G_*$ can be consistently estimated by the NPMLE\ under Assumption (ref) and the additional regularity assumptions stated below.

assumption\begin{enumerate} • $\mathbb{E}[\|Y_i\|^2] < \infty$ and $\mathbb{E}[\|X_i\|^2]<\infty$. • $\mathbb{P}(\operatorname{rank}(X_i) = {d_{\beta}}) = 1$. \end{enumerate}

Assumption (ref)(i) imposes standard moment conditions. Assumption (ref)(ii) requires full column rank of each $X_i$. This ensures that each individual likelihood distinguishes between different values of $\beta_i$, so that the individual MLEs are well-defined.

Our proof of the consistency of the NPMLE\ builds upon kiefer1956consistency, who consider the case where ${d_{\beta}} = 1$. Since we are interested in cases where ${d_{\beta}} > 1$, we verify a multivariate version of Assumptions 1--5 in kiefer1956consistency. Distinct from the issue of identification, the multivariate setting presents a topological complexity not found in the scalar case: probability mass can diverge along multiple directions. A primary technical challenge therefore lies in finding a metric that renders the space $\mathcal{G}$ totally bounded (thereby ensuring the compactness of its completion) while enabling the comparison of distributions with such diverging mass.

To this end, the vague topology is the natural choice. We adopt the canonical metrization of this topology, defined by

equation*[equation* omitted — 156 chars of source]

where $\{h_r\}_{r=1}^\infty$ is a dense sequence in the unit ball of $C_c(\Theta)$ with respect to the supremum norm $\|h\|_{\infty}=\sup_{\theta \in \Theta} |h(\theta)|$.\footnote{Here, $C_c(\Theta)$ denotes the space of continuous real-valued functions on $\Theta$ with compact support.} Since the test functions $h_r$ vanish at infinity, this metric treats any mass that drifts to infinity as if it were collapsed to a single “point at infinity,” irrespective of the direction of divergence. This choice of metric is compatible with the model because the likelihood cannot distinguish between different parameter values at infinity (i.e., the likelihood vanishes as parameters diverge). In effect, the metric compactifies the domain by collapsing all unbounded directions into a single point, mirroring the likelihood's asymptotic behavior. Finally, we note that convergence in the vague topology coincides with standard weak convergence whenever the limiting distribution is itself a probability measure.

The next theorem presents the almost sure consistency of the NPMLE\ with respect to the weak metric $d$.

thmLet Assumptions (ref), (ref), and (ref) hold. Then, $d(\hat{G}, G_*) \overset{\operatorname{a.s.}}{\longrightarrow} 0$ as $N \to \infty$.

Alternative metrics are discussed in the NPMLE\ literature, though they serve theoretical roles distinct from our metric $d$. The first is the Hellinger distance between the marginal densities, $\frac{1}{2}\int (\sqrt{f_{\hat{G}}(y)} - \sqrt{f_{G_*}(y)})^2 dy$. While Hellinger distance is frequently considered in mixture models ({jiangGeneralMaximumLikelihood2009}, {jiangGeneralMaximumLikelihood2009}; {Bodhi:JRSSB}, {Bodhi:JRSSB}), it measures proximity in the data space rather than the parameter space. In our setting, the convergence of the fitted marginal density $f_{\hat{G}}$ to the truth $f_{G_*}$ is of secondary importance. Another alternative is the Wasserstein distance (e.g., $W_2$ as in {Bodhi:JRSSB}, {Bodhi:JRSSB}). However, $W_2$ requires the convergence of second moments and consequently becomes unbounded if probability mass escapes to infinity. This renders it unsuitable for our goal of establishing consistency through compactification. The metric $d$ allows us to apply the Kiefer-Wolfowitz machinery. It strikes a necessary balance: it induces a topology sufficiently weak to ensure compactness (accommodating mass at infinity), yet strong enough to imply the consistency of downstream EB estimation.

The consistency of the NPMLE\ extends to the constrained NPMLE, defined as

equation*[equation* omitted — 113 chars of source]

where $\tilde{\mathcal{G}} \subseteq \mathcal{G}$ is a subset that contains $G_*$. For instance, GK:2017 employ a profile likelihood approach to estimate a dynamic panel model similar to (ref) under the restriction $\rho_i = \rho_*$. In our framework, imposing homogeneity ($\rho_i \equiv \rho$) corresponds to optimizing over a restricted subspace $\tilde{\mathcal{G}}$.

The estimator $\hat{G}$ allows for the recovery of various features of the data-generating process that can be expressed as continuous functionals. In particular, consistent estimators of prior and posterior moments can be obtained from the NPMLE\ under suitable regularity conditions. For example, the covariance matrix $\mathbb{V}_{G_*}(\theta_i)$ of the true prior can be estimated by $\mathbb{V}_{\hat{G}}(\theta_i)$, provided that $\|\theta\|^2$ is uniformly integrable with respect to the sequence of estimated priors. See the discussion following Assumption (ref) for sufficient conditions ensuring such uniform integrability.

Regret Consistency and $\ell_p$ Convergence

Let $(\tau_i)_{i=1}^N = (\tau(\theta_i))_{i=1}^N$ denote the unit-level latent parameters of interest, each defined as a function of $\theta_i$.\footnote{We focus on the case of a scalar parameter here. However, the discussion and results in this section readily extend to the vector-valued case.} The estimation problem consists of constructing a compound decision rule $(Y_i, X_i)_{i=1}^N \mapsto (\hat{\tau}_i)_{i=1}^N$. G-modeling yields the estimator:

equation*[equation* omitted — 195 chars of source]

This section establishes asymptotic guarantees for $\hat{\tau}^{\mathrm{EB}}_i$ in terms of regret $R(\hat{\tau}^{\mathrm{EB}}, \tau) - R({\tau}^{*}, \tau)$, where $R(\hat{\tau}, \tau) := \mathbb{E}_{G_*}[L(\hat{\tau},\tau)]$ is compound risk. Specifically, we consider quadratic loss $L(\hat{\tau}, \tau) :=\frac{1}{N}\sum_{i=1}^N (\hat\tau_i-\tau_i)^2$, and hence the oracle posterior mean is defined by:

equation[equation omitted — 160 chars of source]

where the second equality follows from the independence across units. Write

equation*[equation* omitted — 296 chars of source]

since $\mathbb{E}_{G_*}[(\hat{\tau}^{\mathrm{EB}}_i - {\tau}^{*}_i)({\tau}^{*}_i - \tau_i)] = 0$ by the properties of conditional expectation. The condition $\lim_{N \to \infty} [R(\hat{\tau}^{\mathrm{EB}}, \tau) - R({\tau}^{*}, \tau)] = 0$ is referred to as regret consistency (see, e.g., AGT:EBAdaptive) or asymptotic optimality (see, e.g., Zhang:1997).

Consider the case when $\tau_i$ is the prediction of $Y_{i T+1}$. The oracle predictor ${\tau}^{*}_i$ in the HIVDX model is given by

align[align omitted — 215 chars of source]

The EB one-period-ahead prediction $\hat{\tau}^{\mathrm{EB}}_i$ is then obtained by substituting the NPMLE\ for $G_*$ in (ref). Evaluating the EB method in this setting requires controlling the compound error arising from the interaction between the estimation discrepancy $\hat{\theta}^{\mathrm{EB}}_i - {\theta}^{*}_i$ and these observed variables. Consequently, the analysis necessitates controlling the $\ell_p$ distance (where $p \ge 2$, with $p=4$ being a particularly important case) between the EB and oracle estimates.

assumptionAssume that $\mathbb{E}_{G_*}[|\tau_i|^p] < \infty$ for some $p \in [2, \infty)$. Moreover, the following conditions hold. \begin{enumerate} • The function $\tau(\theta)$ is continuous in $\theta \in \Theta$ and, for all $c > 0$, satisfies \begin{equation*} \lim_{\|\beta\|\to\infty} \exp(-c \|\beta\|^2) |\tau(\theta)| = 0. \end{equation*} • For all $\epsilon > 0$, there exists $M < \infty$ such that \begin{align*} \limsup_{N\to\infty} \mathbb{E} \left[ \int_{\Theta} |\tau(\theta)|^p \mathbf{1}\{|\tau(\theta)| \ge M\} d\hat{G}_N(\theta) \right] &\le \epsilon, \end{align*} where $\hat{G}_N$ is the NPMLE\ defined in (ref), with $N$ denoting the sample size. \end{enumerate}

Assumption (ref)(i) requires that $\tau(\theta)$ depends continuously on $\theta$ and grows slower than any quadratic exponential function of $\|\beta\|$. This ensures that $|\hat{\tau}^{\mathrm{EB}}_i - {\tau}^{*}_i| \to 0$ for each unit $i$ as $d(\hat{G}_N, G_*) \to 0$. The continuity requirement can be relaxed to allow $\tau(\theta)$ to be discontinuous on a set where $G_*$ places zero mass.

Assumption (ref)(ii) imposes a high-level condition on the NPMLE\ sequence, requiring $|\tau_i|^p$ to be uniformly integrable with respect to the sequence of estimated priors. This condition is automatically satisfied when $\tau_i$ has bounded support (e.g., $\tau_i = \delta_i$) but can be nontrivial for unbounded $\tau_i$ such as slope parameters. For such cases, Assumption (ref)(ii) requires specific moment conditions on $(Y_i,X_i)$; for example, the $p$-th moment of $\beta_i$ in the HIVDX model is bounded by the $p$-th moment of $Y_i$, provided $X_i$ satisfies certain regularity conditions.

thmLet Assumptions (ref), (ref), (ref), and (ref) hold for some $p \in [2, \infty)$. Then $(\hat{\tau}^{\mathrm{EB}}_i)_{i=1}^N$ is regret-consistent, i.e., \begin{equation*} R(\hat{\tau}^{\mathrm{EB}}, \tau) - R({\tau}^{*}, \tau) \to 0 \quad as N \to \infty. \end{equation*} Moreover, the EB estimators converge in $\ell_p$-norm: \begin{equation*} \mathbb{E}\left[\frac{1}{N}\sum_{i=1}^N |\hat{\tau}^{\mathrm{EB}}_i-{\tau}^{*}_i|^p\right] \to 0 \quad as N \to \infty. \end{equation*}

Theorem (ref) provides the theoretical justification for using $(\hat{\tau}^{\mathrm{EB}}_i)_{i=1}^N$ in large samples. The primary challenge in establishing this result is that the weak convergence of the priors, $d(\hat{G}, G_*) \overset{\operatorname{a.s.}}{\longrightarrow} 0$, implies the convergence of integrals only for bounded continuous functions. However, $\tau(\theta)$ and the squared-error loss are generally unbounded functions of the parameters. Assumption (ref)(ii) is critical because uniform integrability of the estimated prior moments ensures uniform integrability of the posterior moments across units. This allows us to upgrade the weak convergence of $\hat{G}$ to the convergence of the posterior expectations (the EB estimators) in $\ell_p$-norm. Notably, the second result of the theorem, that is, convergence in $\ell_p$-norm, is stronger than simple regret consistency ($p=2$) and is particularly useful when the latent parameters enter the decision problem nonlinearly or interact with unbounded covariates.

Regret Consistency in the HIVDX Model

This subsection applies Theorem (ref) to the HIVDX model, focusing on several quantities of interest: the individual-level parameters $\theta_i$ and the one-period-ahead prediction. These examples provide the theoretical underpinnings for the empirical analysis presented in Section (ref).

When $\tau_i = \theta_i$ and $\theta_i=(\beta_i',\delta_i')'$ in the HIVDX model, the EB estimator of $\theta_i$ can be partitioned as $\hat{\theta}^{\mathrm{EB}}_i = (\hat{\beta}^{\mathrm{EB}}_i, \hat{\delta}^{\mathrm{EB}}_i)$. Regret consistency of $\hat{\delta}^{\mathrm{EB}}_i$ follows immediately from Theorem (ref) and Assumption (ref), as $\delta_i$ lies in a compact set. For $\hat{\beta}^{\mathrm{EB}}_i$, however, Assumption (ref)(ii) requires $\|\beta_i\|^p$ to be uniformly integrable with respect to the sequence of estimated priors. This condition is guaranteed by a moment condition on $(Y_i,X_i)$.

Once $(\theta_i)_{i=1}^N$ have been estimated, we turn to the one-period-ahead EB prediction $\hat{Y}^{\mathrm{EB}}_{i T+1}$ of $Y_{i T+1}$. Given the oracle estimator in (ref), the prediction error involves interaction of the errors in estimating the random coefficients and $(Y_i,X_i)$.

Let $\bar{X}_{2,i} = T^{-1}\sum_{t=1}^T X_{2,it}$ denote the time average of $X_{2,it}$ for unit $i$.

propLet Assumption (ref) hold. Assume that $|\bar{X}_{2,i}| \le M$ and $\sum_{t=1}^T (X_{2,it} - \bar{X}_{2,i})^2 \ge c$ for some constants $M, c > 0$ and for all $i \ge 1$. \begin{enumerate}[leftmargin=0.3in] • $(\hat{\sigma}^{2,\mathrm{EB}}_i)_{i=1}^N$ and $(\hat{\rho}^{\mathrm{EB}}_i)_{i=1}^N$ are regret-consistent. • In addition, assume that $\mathbb{E}[\|Y_i\|^{2+\varepsilon}] < \infty$ for some $\varepsilon > 0$. Then $(\hat{a}^{{\mathrm{EB}}}_i)_{i=1}^N$ and $(\hat{b}^{{\mathrm{EB}}}_i)_{i=1}^N$ are regret-consistent. • Assume further that $\mathbb{E}[\|Y_i\|^{4+\varepsilon}] < \infty$ for some $\varepsilon > 0$, $\mathbb{E}[|X_{2,iT}|^{4}] < \infty$, and $\mathbb{E}[|X_{2,i T+1}|^{4}] < \infty$. Then the predictions $(\hat{Y}^{{\mathrm{EB}}}_{i T+1})_{i=1}^N$ are regret-consistent. \end{enumerate}

Proposition (ref)(iii) requires fourth (and slightly higher) moments of $(X_{2,iT}, X_{2,i T+1})$ and $Y_i$ to control the components of the prediction risk $\mathbb{E}[N^{-1} \sum_{i=1}^N (\hat{Y}^{{\mathrm{EB}}}_{i T+1} - \hat{Y}^{*}_{i T+1})^2]$. For instance, applying the Cauchy-Schwarz inequality to the component involving the slope coefficient yields

equation*[equation* omitted — 298 chars of source]

The moment assumption on $Y_i$ ensures that the first term on the right-hand side vanishes asymptotically (by Theorem (ref) with $p=4$), while the fourth moment of $X_{2, i T+1}$ ensures that the second term remains bounded.

Computational Algorithms

A variety of computational methods have been proposed for implementing the NPMLE. Although the optimization problem is convex, computation is challenging because the optimization variable $G$ is an infinite-dimensional object, rendering direct implementation intractable. A common remedy is to approximate $G$ by a discrete distribution supported on $m$ atoms (with $m \in \mathbb{N}$), thereby reducing the problem to fitting an $m$-component mixture model. This approach is justified by the well-known result that a discrete NPMLE\ with at most $N_0$ support points exists (possibly among multiple maximizers), where $N_0$ is the number of distinct data points ({lindsay1983geometry}, {lindsay1983geometry}).\footnote{shen2022empirical show that the required number of components $m$ grows at the rate $O(\log N)$ in the one-dimensional case under subgaussian priors, and conjecture that in higher dimensions $m$ increases on the order of $O((\log N)^C)$, where $C$ depends on the dimension of $\theta_i$. For one-dimensional Gaussian location mixtures, Polyanskiy-Sellke:2025 establish computational guarantees, including an algorithm that computes the exact support size.}

Specifically, let $\pmb \theta = (\theta^j)_{j=1}^m$ denote a grid of support points for $G$, and let $\pmb \omega = (\omega^j)_{j=1}^m$ be the associated weights satisfying $\omega^j \ge 0$ for all $j$ and $\sum_{j=1}^m \omega^j = 1$. Let $G^{\pmb \theta, \pmb \omega}$ denote the discrete distribution induced by $(\pmb \theta, \pmb \omega)$, i.e., \[ G^{\pmb \theta, \pmb \omega}(\Theta') = \sum_{j=1}^m \omega^j \, {\mathbf{1}\large[{\theta^j \in \Theta'}\large]} \qquad \text{for all subsets } \Theta' \subseteq \Theta, \] where we use the superscript $j$ to denote the grid $(\theta^j)_{j=1}^m \in \Theta^m$, as distinct from the individual-specific parameters $(\theta_i)_{i=1}^N \in \Theta^N$. The NPMLE\ of the HC model is given by

equation*[equation* omitted — 363 chars of source]

where

equation*[equation* omitted — 202 chars of source]

By the Karush-Kuhn-Tucker theorem, this problem is equivalent to maximizing the Lagrangian

equation[equation omitted — 233 chars of source]

The first-order conditions with respect to $\pmb \omega$ imply that the optimal Lagrange multiplier is fixed at $\lambda = 1$.

Most EB estimators are solutions to the discretized problem described above. For example, jiangGeneralMaximumLikelihood2009 introduce a fixed-point EM algorithm that mirrors the standard EM routine and establish that it attains a global optimum up to an explicit error bound. GK:2017 estimate a dynamic panel model with two-dimensional heterogeneity using the interior-point algorithm of koenkerConvexOptimizationShape2014 to fit weights on a fixed grid. More recently, KCSA:2020, ZCST:2024, and WIM:2025 propose alternative methods based on general-purpose convex programming to improve scalability.

A feature shared by all these methods is that the location of the support points is fixed, so optimization is performed solely with respect to the weights $\pmb \omega$. Unlike in simple mixture models, determining where to position the grid points is not obvious when the dimension of $\theta$ exceeds two. ZCST:2024 suggest using observed data points as the grid when the dimension is three or higher. The choice of grid size is also delicate: a grid dense enough to minimize approximation error becomes computationally intractable due to the curse of dimensionality, while a sparse grid risks significant discretization bias.

To overcome the limitations of fixed grids, we consider an algorithm that allows the support points to move adaptively. This necessitates a shift from optimizing weights on a static grid to optimizing the probability distribution $G$ itself within the space of probability measures $\mathcal{P}(\Theta)$. In this infinite-dimensional setting, the standard gradient descent used in Euclidean spaces is replaced by gradient flow, where the specific trajectory depends critically on the geometric structure imposed on $\mathcal{P}(\Theta)$. Because $\mathcal P(\Theta)$ can have a complex geometry, different metrics can generate markedly different gradient-flow trajectories.

Consider the gradient flow induced by two commonly used metrics: the Fisher-Rao (FR) and the Wasserstein (W). The FR gradient flow updates $G_t^{\mathrm{FR}}$ according to \[ G_{t + \Delta t}^{\mathrm{FR}} - G_t^{\mathrm{FR}} \approx G_t^{\mathrm{FR}}\big(\alpha_t - \mathbb{E}_{G_t^{\mathrm{FR}}}[\alpha_t]\big), \] where the reweighting strategy $\alpha_t: \Theta \to \mathbb{R}$ is chosen to maximize the likelihood gain $F_N(G_{t + \Delta t}^{\mathrm{FR}}) - F_N(G_t^{\mathrm{FR}})$ subject to the normalization $\mathbb{E}_{G_t^{\mathrm{FR}}}[(\alpha_t - \mathbb{E}_{G_t^{\mathrm{FR}}}[\alpha_t])^2] = 1$. Intuitively, the FR flow increases probability mass at locations with high fitness but cannot create mass at new locations or move existing support points. In contrast, the W gradient flow evolves according to the continuity (transport) equation \[ G_{t + \Delta t}^{\mathrm{W}} - G_t^{\mathrm{W}} \approx - \mathrm{div}(G_t^{\mathrm{W}} V_t), \] where the velocity field $V_t: \Theta \to \mathbb{R}^{{d_{\theta}}}$ describes the movement of mass and is chosen to maximize the gain in $F_N$ under the normalization $\mathbb{E}_{G_t^{\mathrm{W}}}[\|V_t\|^2] = 1$. This trajectory effectively moves the support points across the parameter space $\Theta$.

yan2024learning show for the Gaussian location mixture case that the FR flow is guaranteed to reach a global maximum when initialized with full support, while $W$ may be stuck at a local maximum. To also exploit the gains from transporting mass across space, yan2024learning consider a discrete-time {Wasserstein-Fisher-Rao}\ (WFR) gradient flow algorithm that combines both reweighting of FR and transport dynamics of W when updating $G_t^{\mathrm{WFR}}$: \[ G_{t+ \Delta t}^{\mathrm{WFR}} - G_{t}^{\mathrm{WFR}} \approx - \mathrm{div}(G_{t}^{\mathrm{WFR}} V_t) + G_{t}^{\mathrm{WFR}}\big(\alpha_t - \mathbb{E}_{G_t^{\mathrm{WFR}}}[\alpha_t]\big). \] The algorithm adaptively relocates support points so that $m$ remains moderate and need not exceed the sample size $N$. It thus inherits the global convergence guarantees of the FR flow, and adaptivity of W through mass transport. Again in a Gaussian location mixture setting, WFR is shown to be superior to the EM algorithm, and gradient-descent methods based solely on the FR or W flow. Motivated by these encouraging results, we extend the WFR from a Gaussian location mixture to the HC model.

WFR Algorithm for the HC Model

The WFR gradient-descent algorithm updates $(\pmb \theta_n, \pmb \omega_n)_{n \ge 0}$ by alternately reweighting and moving the mass along the steepest descent path. Let $\eta \in (0,1]$ denote the step size (learning rate), and define the posterior weights

equation*[equation* omitted — 203 chars of source]

which correspond to the E-step in the EM algorithm. Holding $\pmb \theta_n$ fixed, the algorithm first updates the weights $\pmb \omega_n$ via

align[align omitted — 403 chars of source]

which we refer to as the FR-step. The reweighting function is chosen as the gradient of the objective function in (ref) with respect to $\omega^j$, thereby ensuring descent. Next, with $\pmb \omega_{n+1}$ fixed, the grid $\pmb \theta_n$ is updated according to

align[align omitted — 337 chars of source]

where $P_{\Theta}(\cdot)$ denotes the metric projection onto $\Theta$, ensuring that $\theta_{n+1}^j \in \Theta$.\footnote{Formally, for any $\tilde{\theta} \in \mathbb{R}^{d_\theta}$, the metric projection is $ P_\Theta(\tilde{\theta}) := \operatornamewithlimits{arg\hspace{0.1em} min}_{\theta \in \Theta} \|\tilde{\theta} - \theta\|. $ It yields the closest point in $\Theta$ to $\tilde{\theta}$ under the Euclidean norm. For example, if $\Theta = [a,b]^{d_\theta}$ is a box constraint, then $P_\Theta(\tilde{\theta})$ simply clips each coordinate of $\tilde{\theta}$ to lie within $[a,b]$. This ensures that each updated grid point $\theta_{n+1}^j$ remains feasible, even if the gradient step temporarily leaves the parameter space $\Theta$.} This W-step moves each grid point in the direction of the posterior-weighted average score, corresponding to a discrete version of the W gradient flow. Starting from \(n = 0\), the FR- and W-steps are applied alternately until \(n = \overline{n}\), the maximum number of iterations, or until the following convergence criterion is met: namely, \[ \max_{j} \left\{ \frac{1}{N} \sum_{i=1}^N \pi_{ij}(\pmb{\theta}_n, \pmb{\omega}_n) - 1 \right\} \le \mathtt{tol} \] for some tolerance parameter \(\mathtt{tol}>0\).\footnote{A necessary and sufficient condition for \(\hat G\) to be NPMLE\ is $ \frac{1}{N} \sum_{i=1}^N \frac{\ell(Y_i \,|\, X_i, \theta)}{f_{\hat G}(Y_i, X_i)} \le 1 \text{ for all } \theta \in \Theta. $ } Let \(\hat n\) denote the stopping index (either the first \(n\) satisfying the convergence criterion or \(\overline n\) if it is not met). The resulting estimate is the NPMLE\ \(\hat G = G^{\pmb{\theta}_{\hat n}, \pmb{\omega}_{\hat n}}\). Implementation of the HC model is summarized in Algorithm (ref).

algorithm[algorithm omitted — 1,830 chars of source]

\paragraph*{Starting values}

Choosing an initial grid that is well spread over $\Theta$ is essential for the WFR gradient-descent algorithm to converge to a global optimum ({yan2024learning}, {yan2024learning}, Theorem 4). If, instead, all atoms are initialized at the same location, i.e., $\theta_0^j = \tilde{\theta}$ for all $j=1,\ldots,m$, then the subsequent updates satisfy $\theta_n^1 = \cdots = \theta_n^m$ for every $n \ge 0$. In this case, the distribution $G^{\pmb \theta_n, \pmb \omega_n}$ degenerates to a single point mass at $\theta_n^j = \tilde{\theta}$, failing to capture any heterogeneity in the $\theta_i$’s and hence unable to recover the NPMLE.

In practice, we generate a dispersed initialization by computing MLEs on random subsamples of the data. The procedure is as follows. Fix the subsample size $B$. If the time dimension $T$ is sufficient to ensure that individual MLEs are well-defined, one may choose $B=1$ to maximize the diversity of the grid points. For $j=1,\ldots,m$:

itemize• Sample a set of indices $\mathcal{I}_j = \{i(1), \ldots, i(B)\}$ uniformly at random from $\{1,\ldots,N\}$. • Compute the subsample MLE using $\mathcal{I}_j$: \[ \theta_0^j = \operatornamewithlimits{arg\hspace{0.1em} max}_{\theta \in \Theta} \sum_{b=1}^B \log \ell(Y_{i(b)} \,|\, X_{i(b)}, \theta) \] and assign a uniform weight $\omega_0^j = 1/m$.

The resulting collection $(\theta_0^j, \omega_0^j)_{j=1}^m$ serves as the initial grid and weights.

Comparison with the EM Algorithm

The EM algorithm is often used to find a (local) solution to mixture problems of the form (ref). Let $D_{ij} = {\mathbf{1}\large[{\theta_i = \theta^j}\large]}$ denote an unobserved indicator of unit $i$’s membership in component $j$. If the true $D_{ij}$ were known, the “complete-data” maximum likelihood problem would be

equation*[equation* omitted — 314 chars of source]

which can be optimized directly with respect to $\pmb \theta$. However, this is infeasible because the true $D_{ij}$ are unobserved. The EM algorithm circumvents this difficulty by replacing $D_{ij}$ with its conditional expectation,

equation*[equation* omitted — 230 chars of source]

evaluated at the current iterate $(\pmb \theta, \pmb \omega)$. This step is referred to as the E-step. Let $(\pmb \theta_n^{\mathrm{EM}}, \pmb \omega_n^{\mathrm{EM}})$ denote the $n$th iterate of the support points and their weights. Given these values, the expected log-likelihood can be written as

equation*[equation* omitted — 240 chars of source]

In the subsequent M-step, $(\pmb \theta_n^{\mathrm{EM}}, \pmb \omega_n^{\mathrm{EM}})$ are updated by solving

align*[align* omitted — 387 chars of source]

The E- and M-steps are iterated until convergence, $(\pmb \theta_n^{\mathrm{EM}}, \pmb \omega_n^{\mathrm{EM}}) \to (\hat{\pmb \theta}^{\mathrm{EM}}, \hat{\pmb \omega}^{\mathrm{EM}})$, yielding the EM estimator $\hat G^{\mathrm{EM}} = G^{\hat{\pmb \theta}^{\mathrm{EM}}, \hat{\pmb \omega}^{\mathrm{EM}}}$.

When $\eta$ in our algorithm is set to $1$, the FR-step coincides with the weight update in the EM algorithm. For smaller values of $\eta$, the weights are adjusted more conservatively, leading to more stable updates than in EM. Similarly, the W-step can be viewed as moving $\pmb \theta_n$ incrementally along the gradient of the $Q_N$-function. Because it is formulated as a gradient-descent procedure, the WFR algorithm enjoys stronger convergence guarantees than EM. By contrast, the EM algorithm generally requires more careful initialization to reach the global maximum ({balakrishnanStatisticalGuaranteesEM2017}, {balakrishnanStatisticalGuaranteesEM2017}).

Empirical Analysis of Income Dynamics

There is a large body of literature seeking to understand heterogeneity in earnings. See Altoniji:2023 and browning-ejrnaes:13 for recent reviews of this literature. We highlight several closely related methodological contributions. Chamberlain:Hirano:1999 consider a parametric Bayesian approach that allow for heterogeneity in $\sigma_i^2$. geweke-keane-joe:00 also adopt a Bayesian framework with a finite mixture model for the composite errors $\sigma_i e_{it}$, while hirano-ecma:02 extends this framework using an infinite mixture model. GK:2017 propose an EB approach that was closest in spirit to ours. These four papers did not allow for random $(b_i, \rho_i)$. Giacomini-et-al:2025 develop an individual-weight shrinkage estimator that optimizes unit-level (rather than aggregate) accuracy by exploiting each individual's own past history, with feasible weights motivated by minimax regret. moon-schorfheide-zhang consider random components in all $(a_i, b_i, \rho_i, \sigma_i^2)$ within a parametric Bayesian framework. Specifically, they adopt a spike-and-slab prior that accommodate either dense or sparse structures but assume independence across random components. In contrast, we adopt a nonparametric EB approach for the prior distribution and allow for dependence among the random components.

In this section, we re-examine the application in GK:2017, which analyzes log real earnings data studied in meghir2004income. The extract consists of 938 individuals who have continuous earnings records from age 25 onward in the Panel Study of Income Dynamics (PSID) for the period 1968--1993. The panel is unbalanced with varying numbers of time periods \(T_i\).\footnote{The only minor difference between the current model and the original HIVDX model in (ref) is that \(T_i\) may vary across \(i\). The likelihood function can be easily modified to accommodate unbalanced panels.} As in GK:2017, \(Y_{it}\) denotes residuals obtained from year-specific regressions of log real earnings on a vector of covariates. Though the HIVDX model motivates GK's analysis, they assume $\rho_i$ is homogeneous and $b_i=0$ in the application. Furthermore, their likelihood, expressed in terms of sufficient statistics, is conditioned on the initial observation \(Y_{i1}\), which implicitly assumes that the random component is independent of \(Y_{i1}\). Thus, their marginal likelihood depends on $Y_{i1}$ only through $Y_{i2}-\rho_* Y_{i1}$.

Using GK's PSID sample extract and their definition of $Y_{it}$ (residualized incomes), we estimate the HIVDX model with $\theta_i := (a_i, b_i, \sigma_i^2, \rho_i)$ and $X_{2,it} := \mathrm{Exp}_{it}/10$, so that $b_i$ is scaled up by a factor of $10$, and $X_{2,it}$ is potential experience constructed as $\mathrm{Exp}_{it} \;:=\; \text{age} \;-\; \max\{\text{years of schooling},\,12\} \;-\; 6$.\footnote{An equivalent form used in the literature is $\mathrm{Exp}_{it} = \min\{ \text{age} - \text{years of schooling} - 6, \text{age} - 18 \}$.} Furthermore, our analysis differs from GK in three other respects. First, we model $Y_{i1}$ under a stationarity assumption without assuming independence between \(Y_{i1}\) and $\theta_i$. Second, the likelihood is directly evaluated from the observed data since sufficient statistics are not available in the presence of $X_{2,it}$ and $\rho_i$. Third, we fit the model and estimate the prior distribution of $\theta_i$ using the WFR algorithm described in Section (ref). In empirical analyses, we used $\overline{n} = 100,000$ as the maximum number of iterations and did not implement the stopping criterion. The initialization algorithm with $B = 1$ and $m=500$ and the step size of $\eta = 0.0005$ are used.

{

table[table omitted — 1,252 chars of source]

}

Table (ref) shows the first and second moments from the estimated prior $\hat{G}$. The marginal variances suggest that the coefficients are heterogeneous in all four dimensions. The variance of \(a_i\) is substantial, especially relative to the variance of \(Y_{it}\) across all units and time ($0.22$). Regarding \(b_i\), the variance of \(b_i X_{2,it}\) when \(X_{2,it} = x\) is approximately \(0.1 x^2\). The value of $x$ ranges over $[0.2, 3.2]$ within the sample, indicating notable heterogeneity in experience profiles. The variance of \(\sigma_i^2\) is 0.0229 and is non-negligible. Finally, the distribution of $\rho_i$ is also spread out, with approximately $73\%$ of probability mass lying in $[0.2,0.8]$.

Turning to the covariances of the random coefficients, the covariance between individual intercepts \((a_i)\) and variances \((\sigma_i^2)\) is negative, as in GK. However, allowing for additional sources of heterogeneity leads to some new findings. We find a negative correlation between $\sigma_i^2$ and $b_i$, and weak associations between $\rho_i$ with the other parameters ($a_i,b_i,\sigma_i^2$). The most interesting result is the strong negative correlation between the individual intercepts ($a_i$) and slopes ($b_i$).

{

figure[figure omitted — 1,955 chars of source]

}

A side-by-side comparison between the individual MLEs and EB estimates of $\theta_i$ is presented in Figure (ref). As we work with residual earnings, it is not surprising that the means of the individual MLEs and EB estimates of $a_i$ and $b_i$ are close to zero. A notable feature is that the individual MLEs of $\rho_i$ are highly dispersed, with a substantial fraction taking negative values, whereas the EB estimates are mostly positive and considerably more concentrated around their mean value of 0.422. The cross-sectional variances of $\hat a_i^{\mathrm{EB}}$, $\hat b_i^{\mathrm{EB}}$, and $\hat \rho_i^{\mathrm{EB}}$ are reduced by approximately 63%, 72%, and 48%, respectively, relative to the corresponding individual MLEs. While no conspicuous shrinkage is observed for $\hat \sigma_i^{2,\mathrm{EB}}$, these reductions suggest substantial compound mean squared error gains from the EB approach.

Lastly, we consider one-period-ahead predictions of $(Y_{i,T_i})_{i=1}^N$ using a sample that holds out final-period observations. Figure (ref) compares the resulting predictions and prediction errors from the individual MLE and the EB methods. The one-period-ahead prediction of $Y_{i,T_i}$ is computed as

align[align omitted — 179 chars of source]

where the hats indicate either EB or individual-level MLE estimates. As shown in Figure (ref), the EB method exhibits substantial shrinkage, reducing the variance of the predicted values by approximately 25% compared to the MLE. This translates into improved forecasting performance, leading to a variance reduction of approximately 20% in the prediction errors.

figure[figure omitted — 1,340 chars of source]

As shown in Table (ref), a notable feature is the negative correlation between $a_i$ and $b_i$. To further examine this relationship, the left panel of Figure (ref) plots the EB estimate pairs $(\hat a_i^{\mathrm{EB}}, \hat b_i^{\mathrm{EB}})$ for $N = 938$ individuals, revealing a clear negative association between the individual intercepts $\hat a_i^{\mathrm{EB}}$ and slopes $\hat b_i^{\mathrm{EB}}$.\footnote{ Figure (ref) in Appendix (ref) presents all pairwise scatter plots of the EB estimates for \(\theta_i\).} To explore the experience profile in the cross-section, we use the estimated moments in Table (ref) to compute the cross-sectional prior variance of \(a_i + b_i x\), which captures the deviation of an individual's income trajectory at \(X_{2,it} = x\) from the average. The mapping \(x \mapsto \mathbb{V}_{\hat G}(a_i + b_i x)\), shown in the right panel of Figure (ref), indicates that the variance declines up to about \(x = 1\) (ten years of experience) and increases thereafter. This non-monotonic pattern arises from the negative covariance between \(a_i\) and \(b_i\). Interestingly, a similar U-shaped relationship between the log variance of residual earnings and experience is documented in Mincer:1974, who attributes it to “a weak correlation between post-school investment ratios and earning capacity.”

{

figure[figure omitted — 1,002 chars of source]

}

For completeness, we also computed estimates using the EM algorithm discussed in Section (ref), initializing it with the same starting values used for WFR (as described in Section (ref)). We find that the EM estimates are very similar to the WFR solution. While the EM algorithm attains a slightly higher likelihood value by optimizing weights over the dense initial grid, the WFR algorithm yields an approximate solution with fewer mass points. Furthermore, although the EM algorithm generally requires fewer iterations to converge, the computational cost per iteration is higher. These results are encouraging, as they suggest WFR is well-suited for higher-dimensional problems where fixed-grid algorithms become computationally challenging.

Monte Carlo Experiments

We conduct Monte Carlo experiments to evaluate the performance of the EB estimator in dynamic panel models relative to (i) the oracle decision rule and (ii) the individual MLE.

The following DGPs are considered.

enumerate• The HIVD model with $\theta_i = (a_i, \sigma_i^2, \rho_i)$. The individual intercepts $(a_i)_{i=1}^N$ are drawn from the $\mathrm{Gamma}(1/2,\sqrt{2})$ distribution independently of $(\sigma_i^2, \rho_i)$. The joint distribution of $(\sigma_i^2, \rho_i)$ assigns probability mass \(1/6\) to \((\sigma_i^2, \rho_i) = (0.1, 0.8)\) and \((0.3, 0.2)\), and probability mass \(1/3\) to \((\sigma_i^2, \rho_i) = (0.1, 0.2)\) and \((0.3, 0.8)\). This design features a negative correlation of $-0.33$ between $\rho_i$ and $\sigma_i^2$. The initial $u_{i0}$ is drawn from the stationary distribution $\mathcal{N}(0,\sigma_i^2/(1-\rho_i^2))$. The sample size for estimation is $(N,T)=(1000,5)$. An additional observation $Y_{i T+1}$ is generated for each unit to compute prediction errors. • The Restricted HIVD model follows the HIVD model above but imposes $\rho_i \equiv 0.5$ and assumes $\sigma_i^2$ has a two-point distribution satisfying $G_*(\sigma_i^2 = 0.1) = G_*(\sigma_i^2 = 0.3) = 0.5$. The initial distribution of $u_{i0}$ is $\mathcal{N}(0, \sigma_i^2/(1-0.5^2))$. The distribution of $a_i$ and the sample size is the same as in HIVD. This DGP mimics a scenario in which a researcher does not know that $\rho_i$ is a constant and continue to estimate the HIVD model. • The HIDVX model generates $\theta_i = (a_i, b_i, \sigma_i^2, \rho_i)$ from the prior distribution estimated from the PSID sample. The covariate (interpreted as experience divided by 10) is assumed to evolve according to $X_{2,it} = X_{2,i,t-1} + 0.1$, with $(N,T) = (1000, 13)$, approximately as in the PSID sample. The initial value $X_{2,i1}$ is drawn from a discrete distribution with probabilities $\mathbb{P}(X_{2,i1}=0.3) = 0.25$, $\mathbb{P}(X_{2,i1}=0.4) = 0.05$, $\mathbb{P}(X_{2,i1}=0.5) = \mathbb{P}(X_{2,i1}=0.6) = 0.1$, and $\mathbb{P}(X_{2,i1}=0.7) = 0.5$.

For the first two models, the WFR parameters are $\eta = 0.1$, $\overline{n} = 2000$, and $\mathtt{tol} = 10^{-4}$. For the more complex HIVDX, $\eta = 0.005$, $\overline{n} = 10000$ without applying the early stopping criterion to ensure stable and reliable convergence of the algorithm.

Let $\hat{\varepsilon}_i = \hat{\tau}_i - \tau_i$ denote the estimation error for unit $i$, where $\tau_i$ is one of the model parameters, or the one step ahead prediction. For each method and replication, we compute

equation*[equation* omitted — 314 chars of source]

Additionally, a measure of predictability, denoted by R$^2$, is computed as one minus the ratio of the mean squared prediction error to the sample variance of $Y_{i T+1}$.

Table (ref) reports results for the HIVD model and its restricted variant. In both designs, the oracle estimator achieves the lowest estimation error, but the EB estimator improves upon the individual MLE with uniformly smaller RMSE across all parameters. The gains are particularly pronounced for $\rho_i$. The gains from EB are even larger in the restricted HIVD design, where the prior for $\rho_i$ is more informative. Most of the RMSEs of the EB estimator are within 10% of those of the oracle.

Table (ref) presents the results for the HIVDX model. Similarly to Table (ref), the EB estimator outperforms the individual MLE across all parameters. For both $a_i$ and $b_i$, the EB method achieves MSEs that are approximately 55% of those of the MLE. The EB estimator substantially reduces the MSE for $\rho_i$ as well, primarily attributable to bias reduction. It is interesting to note that the Monte Carlo results for the bias of the MLE of $\rho_i$ echo the pattern observed in the empirical application in Section (ref). In terms of out-of-sample prediction accuracy, R$^2$ increases from 0.591 for the MLE to 0.662 for EB.

Finally, Table (ref) shows the prior moment estimation results in the HIVDX design. The first moments of $\theta_i$ are generally well estimated, with the exception of a modest downward bias in the estimate of $\mathbb{E}_{G_*}[\rho_i]$. The variances of $\theta_i$ tend to be somewhat overestimated, which is expected given that estimation noise generally inflates the estimated variance of $\theta_i$ relative to the true variance. The negative covariance between $a_i$ and $b_i$ is estimated with a downward bias but the sign is reliably recovered.

table[table omitted — 2,219 chars of source]
table[table omitted — 1,479 chars of source]
table[table omitted — 1,668 chars of source]

Conclusions

We have proposed a nonparametric empirical Bayes framework for analyzing short-panel data with rich forms of unobserved heterogeneity. The analysis generalizes classical G-modeling to accommodate heterogeneous slopes and non-spherical error structures. Identification, consistency, and optimality results are established under general conditions, with primitive sufficient conditions derived for specific cases of interest. However, we have not developed any accompanying inference methods. Recent contributions such as AKPM:2022 and ignatiadis2022confidence can be useful for future research.