arXiv:2611.11183econ.EMNov 2026

Manuscript Offprint

arXiv:2611.11183

Testing Conditional Moment Restrictions in Networks

Wenxuan Ding

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Abstract

Parametric models of network formation, such as dyadic logit models, are increasingly popular, but few tools exist to test their specification. This paper develops a specification test for conditionally independent dyad (CID) models based on the probabilities that these models assign to subgraphs, the patterns of links among small groups of agents. Given the agents’ characteristics, a parametric CID model determines not only the probability of each link but also the probability that a group of agents forms a triangle, a star, or any other subgraph. Under correct specification, the expected frequency of each subgraph among agents with given characteristics equals its model-implied probability. This forms the basis of the testable conditional moment restrictions. The test statistic is the weighted integrated squared distance between a nonparametric kernel estimate of these probabilities and the probabilities implied by the estimated parametric model. I derive its asymptotic distribution under the null hypothesis.

Keywords: Network formation, specification testing, subgraph counts, graphons, conditionally independent dyad models, kernel smoothing, U-statistics.

[Click here for the latest version]

1 Introduction

Social and economic networks, such as risk-sharing ties among households (Fafchamps and Lund, 2003; Fafchamps and Gubert, 2007) and job referral networks (Schmutte, 2015), shape economic outcomes (Jackson et al., 2017). A large literature models how they form; see Graham (2020) and de Paula et al. (2020) for overviews. Conditionally independent dyad (CID) models, in which links form independently across pairs of agents given the agents’ observed and unobserved characteristics, are a large class of network formation models. This class is motivated by the Aldous–Hoover representation of exchangeable random graphs (Aldous, 1981; Hoover, 1979) and includes stochastic block models, latent space models, and models with degree heterogeneity (Bickel and Chen, 2009; Hoff et al., 2002; Graham, 2017; Kitamura and Laage, 2024). In parametric CID models, the probability that two agents link is a known function, such as a logit, of their observed characteristics and a finite-dimensional parameter; some models add agent-specific unobserved heterogeneity (Graham, 2017; Jochmans, 2018; Dzemski, 2019; Graham, 2024). These models are used to measure homophily and degree heterogeneity, to simulate counterfactual networks, and to serve as building blocks of peer-effects models with endogenous networks (Johnsson and Moon, 2021; Hsieh et al., 2020). Their conclusions rest on the parametric specification, yet few tools exist to test it.

This paper develops a specification test for parametric CID models. The test uses subgraphs: the patterns of links among small groups of agents, such as triangles and stars. Under correct specification, the expected frequency of any subgraph among agents with given characteristics must equal its model-implied probability. Specifically, for a graph SS on pp vertices, let P(S,x)P(S,x) be the probability that the links among pp agents with continuously distributed characteristics x=(x1,…,xp)x=(x_{1},\ldots,x_{p}) form SS. Under the parametric model, links are independent given observed characteristics, and two agents with characteristics xix_{i} and xjx_{j} link with probability e(xi,xj;θ)e(x_{i},x_{j};\theta). Hence P(S,x)P(S,x) is a known function of these link probabilities, which I denote by P(S,x;eθ)P(S,x;e_{\theta}), where eθ:=e(⋅,⋅ ;θ)e_{\theta}:=e(\cdot,\cdot\,;\theta). For instance, three agents with characteristics (x1,x2,x3)(x_{1},x_{2},x_{3}) form a triangle with probability e(x1,x2;θ)e(x1,x3;θ)e(x2,x3;θ)e(x_{1},x_{2};\theta)e(x_{1},x_{3};\theta)e(x_{2},x_{3};\theta). The null hypothesis is that P(S,x)=P(S,x;eθ)P(S,x)=P(S,x;e_{\theta}) for some θ\theta and almost all xx. I estimate P(S,x)P(S,x) nonparametrically by the kernel-weighted frequency of SS among tuples of agents whose characteristics are close to xx (Ding, 2026). I estimate θ\theta by the pseudo composite likelihood estimator of Graham (2024), which yields the model-implied estimate P(S,x;eθ^)P(S,x;e_{\widehat{\theta}}). As in kernel-based specification tests (Härdle and Mammen, 1993, e.g.,), the test statistic is the weighted integrated squared difference between the two estimates,

TN,S=NhNdX/2∫{P^N(S,x)−Kh,NP(S,⋅ ;eθ^)(x)}2π(x) dx,T_{N,S}=Nh_{N}^{d_{X}/2}\int\bigl\{\widehat{P}_{N}(S,x)-\mathcal{K}_{h,N}P(S,\cdot\,;e_{\widehat{\theta}})(x)\bigr\}^{2}\pi(x)\,dx,

where NN is the number of agents, hNh_{N} is the bandwidth, dXd_{X} is the dimension of each agent’s characteristics, P^N(S,x)\widehat{P}_{N}(S,x) is the nonparametric kernel estimate, and π\pi is a weight function. The operator Kh,N\mathcal{K}_{h,N} smooths the parametric estimate with the same kernel weights, which removes a linear term from the asymptotic expansion of the statistic. The test applies to any subgraph. Test statistics for several subgraphs can be combined by taking their maximum or a weighted average; wheels, subgraphs with one central agent and several arms, are a natural family as their moments identify stochastic block models (Bickel et al., 2011). The asymptotic theory in this paper is for a single subgraph.

The main technical challenge is network dependence. The observations are the subgraphs induced by pp-tuples of agents. Two such subgraphs are independent when their tuples are disjoint but dependent when they share an agent. I first show that the parametric pseudo composite likelihood estimator is consistent and asymptotically normal at the N\sqrt{N} rate under this dependence, provided the model is correctly specified. By the results of Ding (2026), the kernel estimate is uniformly consistent. I then write the test statistic as a kernel-weighted generalized U-statistic of order 2p2p, derive its Hoeffding decomposition, and isolate its leading term, a quadratic form. Applying the central limit theorem for generalized quadratic forms of de Jong (1987), I derive the asymptotic null distribution of the test statistic when its agent-level projection, the first-order Hoeffding projection onto individual agents, is nondegenerate. As with the rate of the kernel estimator in Ding (2026), the normalization NhNdX/2Nh_{N}^{d_{X}/2} depends only on the dimension dXd_{X} of a single agent’s characteristics, not on the dimension pdXpd_{X} of all characteristics in the subgraph; this alleviates the curse of dimensionality.

References (72)