Skip to main content
Frontiers in Psychology logoLink to Frontiers in Psychology
. 2026 Mar 31;17:1746754. doi: 10.3389/fpsyg.2026.1746754

The No-U-Turn sampler and its mixture-modeling revision for the 4-parameter normal ogive model

Shaoyang Guo 1,*, Qian Sun 2,*, Xiaoyu Li 1
PMCID: PMC13086000  PMID: 42005020

Abstract

Introduction

The No-U-Turn Sampler (NUTS), widely applied in psychometrics via the Stan platform, lacks algorithm-level systematic introduction for item response theory (IRT) models and tailored optimizations for specific models. This study systematically explicates the NUTS algorithm for the 4-parameter normal ogive (4PNO) model and proposes a Mixture-Modeling NUT sampler (MMNUTS) to enhance its estimation.

Methods

A simulation study that considers both educational and psychological scenarios with an empirical example from a behavioral scale was designed to examine the feasibility of the proposed MMNUTS. A recoverability comparison is performed among the NUT sampler in Stan, MMNUTS, and the Gibbs-within-Gibbs sampler in the R package fourPNO.

Results

All samplers achieved satisfactory convergence, with estimation accuracy improved at larger sample sizes. MMNUTS showed significant superiority in running time and upper asymptote parameter recovery in the psychological scenario with less informative priors and 5,000 samples. The 4PNO model yielded optimal fit in the empirical analysis, with MMNUTS demonstrating faster convergence and higher computational efficiency than the other two samplers.

Discussion

The proposed MMNUTS maintains robust estimation accuracy while improving computational efficiency for the 4PNO model, providing a foundational reference for developing tailored sampling algorithms for complex psychometric models. The MATLAB codes for MMNUTS are presented in the appendix.

Keywords: 4-parameter normal ogive model, bayesian estimation, Hamilton Monte Carlo, item response theory, revised No-U-Turn sampler

1. Introduction

Since the foundation of modern psychometrics, how to obtain more accurate parameters has been an inevitable issue with the development of psychological or educational models (Lord and Novick, 1968; Rasch, 1960). During the early phases of scholarly investigation, the family of maximum likelihood estimation (MLE) made great contributions to solving the issue of parameter estimation, and it remains a valuable and widely used approach in psychometric research to this day (Bock and Aitkin, 1981; Bock and Lieberman, 1970; Lord, 1980). However, the increasing complexity of modern measurement models poses great challenges for MLE, as it requires a relatively large sample

size to yield stable and accurate estimates. In response to these challenges—particularly in scenarios with small, medium, or even large but complex samples—psychometricians introduced Bayesian priors into the estimation process (Mislevy, 1986; Swaminathan and Gifford, 1986), eventually developing the fully Bayesian Markov Chain Monte Carlo (MCMC) method with the Metropolis-Hastings sampler (Patz and Junker, 1999a,b) as a complementary and powerful alternative.

MCMC is a method with relatively broad applicability and high flexibility in modern statistical inference. Taking the Metropolis-Hastings sampler as an example, its core logic lies in constructing a Markov chain whose stationary distribution matches the target distribution to be sampled (Metropolis et al., 1953). Starting from an arbitrary initial state in the sample space, a new candidate state is proposed at each iteraction according to a predefined transition rule. A probabilistic acceptance-rejection criterion is then used to determine whether to adopt the candidate state or retain the current one. As the number of iterations increases, the chain converges to its stationary distribution, from which valid parameter estimates can be derived. Owing to this straightforward algorithmic logic, together with its robust performance and ease of implementation—facilitated by the BUGS software family—MCMC has become a general solution for parameter estimation, particularly for newly proposed or complex measurement models (Béguin and Glas, 2001; Patz and Junker, 1999b). Despite its widespread adoption, a major challenge of MCMC is its potentially low sampling efficiency, which can result in unacceptably long estimation runtimes in some cases (Luke, 1994), especially for complex item response models (IRT) with large sample sizes and limited prior information (Fu et al., 2021; Zheng et al., 2021). To address this limitation, researchers have continuously strived to develop more efficient sampling algorithms, including the Gibbs sampler (Geman and Geman, 1984), the Slice sampler (Persi et al., 2000), the Hamiltonian Monte Carlo method (Neal, 2011), and the No-U-Turn (NUT) sampler (Hoffman and Gelman, 2014).

After the continuous efforts of the aforementioned studies, the NUT sampler is currently the most effective solution for estimating the majority of psychometric models (Papaspiliopoulos et al., 2020). It draws on the idea of Hamilton dynamics to repeatedly use the gradient of likelihood function to explore in multiple sampling directions, thus greatly improving sampling efficiency (Neal, 2011). It should also be clarified that the core idea of using Hamiltonian dynamics is inherent to the Hamiltonian Monte Carlo (HMC) approach (Neal, 2011); the NUT sampler, as an optimized extension of HMC, mainly plays a role in simplifying the computation and guiding the search. Moreover, Carpenter et al. (2017) develops a general Bayesian estimation implementation tool Stan based on the NUT sampler, and it also has been formally introduced for psychometrics by Luo and Jiao (2017), although the basic IRT models (one/two parameter logistic IRT model) were already provided in the Stan user manual. Until now, Stan has been widely used for parameter estimation in both item response theory models (Ames and Au, 2018; Bürkner, 2021; Scharl and Gnambs, 2019; Xue and Chen, 2023) and cognitive diagnosis models (Jiang and Carter, 2019; Tan et al., 2023).

Unfortunately, although Stan greatly alleviated the efficiency problems of parameter estimation, it also reduced researchers' enthusiasm to further improve the NUT sampler, especially for developing algorithms tailored to specific psychometric models. In literature, no researchers have systematically introduced how to utilize the NUT sampler for psychometric models from an algorithmic perspective, and there are even no corresponding algorithmic revisions for specific models. The lack of literature regarding the NUT sampler at the algorithmic level is not conducive to further improving the estimation in the field of psychometrics, which also motivated this study to offer a systematical introduction and an exploratory improvement for the NUT sampler given a specific model from an algorithmic perspective.

Recently, another interesting topic concerning the estimation issue is how to obtain stable estimates of IRT models with asymptote parameters. Specifically, a series of mixture-modeling-based Bayesian EM approaches were developed for Birnbaum (1968)'s 3PLM (Guo and Zheng, 2019; Guo et al., 2020), Barton and Lord (1981)'s 4PLM (Meng et al., 2019; Zheng et al., 2021), and San Martín et al. (2006) one-parameter ability-based guessing (1PL-AG) model (Guo et al., 2021); and several Gibbs-based samplers were proposed for the uni- or multi-dimensional 4-parameter IRT models (Culpepper, 2015, 2017; Fu et al., 2021; Zhang et al., 2020). These efforts not only make the mixture-modeling-based Bayesian EM algorithms quickly obtain Bayesian estimates that are comparable to those from MCMC but also alleviate the time-consuming issue of MCMC. Furthermore, this study was also inspired by the above efforts to attempt to combine the mixture-modeling approaches and the NUT sampler, and then proposed a mixture-modeling NUT sampler (MMNUTS) to further improve estimating accuracy and save running time. Moreover, among models containing asymptote parameters, the 4-parameter normal Ogive (4PNO) model (with both upper and lower asymptote parameters) is the most representative and can be easily extended to models with only one asymptote parameter. In addition, existing research has focused primarily on the logistic model, with the normal ogive model receiving relatively less attention. Accordingly, this study uses the 4PNO model as an illustrative example for the subsequent discussion.

Following is the remainder of this manuscript: First, an introduction of the 4PNO model was reported to describe its item response function, applications, and implementations. Second, the NUT sampler for the IRT models was systematically introduced from an algorithmic perspective using the 4PNO model as an example. Third, the MMNUT sampler which imposes the mixture-modeling revision to the NUT sampler for the 4PNO model was deliberated. Fourth, several item parameter recovery metrics, including bias, root mean square error (RMSE), and averaged posterior standard deviation (PSD), were compared between the MMNUT sampler, the original NUT sampler in R package rstan (Stan Development Team, 2022), and the Gibbs-within-Gibbs sampler in R package fourPNO (Culpepper, 2015). Fifth, the superiority of the MMNUTS within the 4PNO framework is demonstrated through an empirical example, by comparing Gelman–Rubin potential scale reduction factors, point estimates, associated standard errors, and computation time. Lastly, the major findings and future directions were discussed.

2. The No-U-Turn sampler for item response theory models

2.1. The 4-parameter normal ogive model

The item response function of the 4PNO model given a correct response yij = 1 in Equations (1, 2) is defined by Culpepper (2015) as

P(yij=1|θi,ϖj)≡Pij=gj+(1-sj-gj)Pij*, (1)

with,

Pij*=Φ(αjθi-βj), (2)

where, Φ(·) is the cumulative distribution function of the standard normal distribution; yij∈Y represents the response of examinee i(i = 1, 2, ..., I) on item j(j = 1, 2, ..., J); ϖj=[αj,βj,gj,sj]T∈W collects the item slope αj, threshold βj, lower asymptote gj, and upper asymptote sj parameters for item j; θi∈θ is the ability parameter for subject i.

In recent years, the significance of asymptote parameters has drawn more attention in both educational and psychological assessments (Kern and Culpepper, 2020; Waller and Feuerstahler, 2017). In educational scenarios, the gj and sj parameters were traditionally regarded as the guessing and slipping parameters, respectively. Furthermore, several studies have shown that the sj parameter is particularly valuable for low-stakes and large-scale assessments, which can be used to recover the mistakes caused by the lack of motivation of high-performing students (Culpepper, 2017; Green, 2011). In psychological scenarios, the gj and sj parameters can be respectively interpreted as the effect of malingering responses and the effect of social desirability bias, especially for those sensitive tests (Guo et al., 2023; Waller and Reise, 2010).

To obtain the estimates of the 4PNO model, Culpepper (2015) proposed a Gibbs-within-Gibbs sampler and then developed a R package four PNO, and Meng and Xu (2022) proposed a mixed stochastic approximation EM (MSAEM) algorithm to compute the marginalized maximum a posteriori estimator. Based on their efforts, this study aims to further examine the feasibility of the NUT sampler and its mixture-modeling revision for the 4PNO model.

2.2. The No-U-Turn sampler for the 4PNO model

Using the 4-parameter normal ogive (4PNO) model as an example, this section will illustrate how the NUT sampler operates on IRT models. First, the likelihood function of 4PNO model can be defined in Equation (3) as

L(θ,W|Y)=∏i=1I∏j=1J[Pijyij(1-Pij)1-yij]. (3)

Then, let g(•) be the prior probability density function for item or ability parameters, then the log-likelihood function for the parameters of item j or examinee i after incorporating Bayesian prior should be

lϖj=ln ∏i=1I[Pijyij(1-Pij)1-yij][g(ϖj)]lθi=ln ∏j=1J[Pijyij(1-Pij)1-yij][g(θi)], (4)

Furthermore, the gradients of the item or ability parameters in Equation (4) can be expressed as

lϖj′=∂lϖj∂ϖj=∂lng(ϖj)∂ϖj+∑i=1I[yij−PijPij(1−Pij)∂Pij∂ϖj]lθi′=∂lθi∂θi=∂lng(θi)∂θi+∑j=1J[yij−PijPij(1−Pij)∂Pij∂θi]. (5)

Compared with the MH or Gibbs sampler, the NUT sampler is far more complicated. To facilitate understanding, this section will first give a macro estimating framework for the NUT sampler, and then discuss the technical details for each part of the framework. Basically, the NUT sampler estimates model parameters through Hamiltonian dynamics-augmented MCMC sampling, where tuning parameters (step size and trajectory length) are critical to tune the trade-off between proposal acceptance rate and sampling speed. Compared with the original HMC algorithm, a significant improvement of the NUT sampler is that it can automatically find the optimal tuning parameters, thereby enabling it to perform tasks more efficiency and robust. By optimizing these parameters, the NUT sampler generates guided parameter candidates that converge to the target posterior distribution, ensuring reliable and accurate parameter estimates for high-dimensional statistical models. As illustrated in Figure 1, the NUT sampler for the 4PNO model may be separated into four parts, each of which will be described in detail below. In addition, the corresponding MATLAB codes were also reported in Appendix A for reference.

Figure 1.

Flowchart illustrating a computational process with four main parts: A—input data and settings; B—optimization of tuning parameters for specific variables; C—iterative loops with a warm-up and convergence stage utilizing NUT sampling and parameter updating; D—output of estimates and standard errors.

The flow chart of the No-U-Turn sampler for the 4PNO model.

Part A: Input data & settings. To produce the Bayesian estimates of the 4PNO model, the NUT sampler requires several preconditions, such as the response matrix Y, the initial values [ϖ0, θ0] and corresponding priors g(•) for item and ability parameters, the number of maximum iterations (k = 1, 2, ..., K). In addition, the NUTS sampler necessitates the initialization of certain constant parameters to facilitate computations. Given that these values require no manual adjustment in most scenarios and to minimize redundant statistical notation, this study directly incorporates these fixed constants into subsequent calculations, following the recommendation of Hoffman and Gelman (2014). For instance, the constant 0 is used in the expression Hϖ0=04T in Step B5 of Part B of the following text, the constant 10 is used in the expression ηa=(k+10)-1 in Step C1 of Part C below. For further details, interested readers are referred to the work of Algorithm 6 from Hoffman and Gelman (2014) for details. Once the data and settings have been inputted, the NUT sampler will move to Part B.

Part B: Optimize the tuning parameter ε. The tuning parameter ε is crucial for the estimation process of the NUT sampler, as it determines how much the estimating parameters should move in each iteration. To guarantee the accuracy and convergence of the estimation, the NUT sampler must find an initial reasonable ε for each item or ability parameter. Therefore, Part B was designed to specifically demonstrate how to obtain the optimized ε for each parameter.

The item response theory (IRT) model involves two key parameter types: examinee ability parameters and item parameters. In practice, the Markov chain Monte Carlo (MCMC) algorithm adopts a joint estimation approach for these parameters: it first updates ability parameters by treating item parameters as known, then iteratively refines item parameters using the updated ability estimates, and repeats this cycle until convergence. Given the high similarity between the optimization and sampling procedures for item and ability parameters, the subsequent sections focus exclusively on illustrating the process of updating item parameters under the assumption that ability parameters are fixed and known. Once all of the optimized tuning parameters are obtained, the NUT sampler will move to Part C. The tuning parameters ε for item j can be optimized via following steps:

Step B1: Obtain [lϖ0,lϖ0′] based on initial values [ϖ0, θ0] from Equations (4, 5).

Step B2: Let εϖ0=14T=[1,1,1,1]T where T represents the transpose symbol, and then randomly sample rϖ0 from MVN(04T,I4), where I4 is a 4-dimensional identity matrix.

Step B3: Obtain [ϖ1,rϖ1,lϖ1′,lϖ1] from LeapFrog(ϖ0, εϖ0, rϖ0), and Equations (4, 5), where the function LeapFrog(ϖ0, εϖ0, rϖ0) can be defined as

rϖ1∗=rϖ0+εϖ02∘lϖ0′⇒ϖ1=ϖ0+εϖ0∘rϖ1∗⇒rϖ1=rϖ1∗+εϖ02∘lϖ1′,

where ° represents Hadamard Product (the element-wise multiplication of their corresponding components). It is worth noting that Step B3 actually implements a LeapFrog process of HMC. Specifically, the Leapfrog integrator discretizes Hamiltonian dynamics via a 3-step process: half-step momentum update, full-step position update, and a final half-step momentum update. This staggered small-step scheme accurately approximates continuous system trajectories while conserving energy. Moreover, in the Leapfrog step, the momentum term r guides movement through the parameter space and corresponds to the particle's momentum. Endowing the sampler with inertia, r enables NUT sampler to move in smooth trajectories across the parameter space instead of the tiny, random steps of traditional MCMC, allowing the algorithm to jump over local “dead ends” and quickly reach high-probability regions for greater efficiency. During LeapFrog process, r is updated in small steps alongside the target distribution's gradient. Critically, r is randomly reset at the start of each iteration to ensure sampling fairness and eventual convergence to the true target distribution, while using momentum to explore far faster than standard random walk methods.

Step B4: Calculate the optimal criteria δ = [Ωρ>2−ρ], where [•] is Iverson's bracket, ρ = 2[Ω>0.5]−1 represents the determination of the direction of transition with the value of 1 or -1, Ω = exp(ξ1−ξ0), ξ1=l(yj|ω1,θ)-12rϖ1Trϖ1, ξ0=l(yj|ω0,θ)-12rϖ0Trϖ0, and ξ1 and ξ0 are the weighted posterior probabilities given the estimates of ω1 and ω0, respectively.

Step B5: If δ = 1, then let εϖ0←2ρεϖ0 and do loops from Step B3 to B5; otherwise, return εϖ0, and set ιϖ0 = ln (10εϖ0), εω¯0′=14T, and Hϖ0=04T, where ιϖ0 and Hϖ0 were procedural parameters for program and calculation.

Part C: Do loops until the maximum number of MCMC iterations. Part C is the core sampling algorithm of the NUT sampler, which consists of two stages of K(k = 1, 2, ..., K) MCMC iterations: The warm-up stage for burn-in and the convergence stage for generating the posterior distribution. Specifically, the sampling procedures of the two stages are almost the same, the only difference is that the warm-up stage needs to further update ε, while the convergence stage does not. In each MCMC iteration, the so-called function BuildTree() is the most complicated process. Intuitively speaking, it is just like a binary tree with M branches. In every t∈[1, 2, ..., M] growth (or multisampling), a direction will be randomly selected from the positive (+) and negative (-) ways for exploration and then iterated to M growth on this basis. Thus, the Bayesian sampling for the kth iteration can be yielded via the following steps:

Step C1: Update lϖ0′ and ξ0 (see Step B3 and B4) by resampling rϖ0 from MVN(04T,I4). Then, a reference value should be randomly sampled to assist in determining whether the new value should be updated during subsequent parameter updates. It also should be noted that in the original NUT sampler by Hoffman and Gelman (2014), this reference value was designed to verify whether the updated eξ1 is sufficiently probable to be larger than current eξ0, and should thus be randomly sampled from U[0, exp(ξ0)]. Since exponentiation is computationally expensive, this study instead compares their logarithmic forms in practice. To implement this approach, referred to NUTS-matlab project (https://github.com/aki-nishimura/NUTS-matlab) developed by Hoffman's research team and calculated u0 = ξ0−x, where x is randomly sampled from the Exponential distribution Exp(1). This allows the algorithm to directly compare ξ1 and u0, thereby reducing computational costs. Third, let ϖ0-, ϖ0+ and ϖ1 be initialized with the value ϖ0; rϖ0- and rϖ0+ be initialized with the value rϖ0; lϖ0− and lϖ0+ be initialized with the value lϖ0′. Finally, set t = 0, na = 1, ηa=(k+10)-1, and ηb=k-0.75, where na, ηa, and ηb were procedural parameters for program and calculation.

Step C2: Randomly choose a positive or negative direction from dir∈[−1, +1], and then update parameters via the BuildTree() function in Box 1. More specifically, if dir = −1, set (ϖ0∗lϖ0∗′rϖ0∗ξ0∗u0∗t∗)←(ϖ0−,lϖ0−,rϖ0−,ξ0,u0,t) to return ϖ1, ϖ1-, rϖ1-, lϖ1−′, nb, υa, λa and λb; otherwise, set (ϖ0∗lϖ0∗′rϖ0∗ξ0∗u0∗t∗)←(ϖ0+,lϖ0+′,rϖ0+,ξ0,u0,t) to return ϖ1, ϖ1+, rϖ1+, lϖ1+′, nb, υa, λa and λb, where nb, υa, λa, and λb were procedural parameters for program and calculation.

Box 1. The pseudo-codes for function BuildTree().

Function suildTreel (dir, ϖ0* lϖ0*′, rϖ0*, ξ0*, u0*,t*, εϖ0 θ, yp, M)

% dir is a number indicating the sampling direction valued from [−1, 1].

% ϖ0* Is is a 4 × 1 vector containing the current item estimates of the 4PNO model for Item, j.

% lϖ0*′ is a 4 × 1 vector containing the first derivatives given ϖ0*

% rϖ0 is a 4 × 1 vector randomly sampled from MVN(0sT,I4) for LeapFrog(ϖ0, εϖ0, rϖ0).

%ξ0* is a number collecting the weighted posterior probabilities given ω0 from Step B4.

% u0* is a number for controlling loops obtained from S tep C 1.

% εϖ0 is a 4 × 1 vector collecting the tuning parameters obtained by Step B5.

% t* is a number indicating the number of current branches in the binary trees.

%θ is a 1 × 1 vector containing the ability parameters for all examinees.

% yj is a l×1 vector containing the responses of Item j.

% M is a number indicating the max branches M(t = 0, 1, …, M) of the binary trees.

If t* = 1 :

(1) Obtain [ϖ1*,rϖ1*,lϖ1*′,lϖ1*] via (ϖ0, εϖ0, rϖ0) process referring to Step B3;

(2) Calculate ξ1*=l(yj|ω1*,θ)-12rϖ1*Trϖ1*;, where T is the transpose symbol;

(3) Update nb=[u0*<ξ1*] υa=[(u0*-100)≥ξ1*] λa=min(1,exp(ξ1*-ξ0*))

(4) Set (ϖ1,lϖ1′,rϖ1)←(ϖ1*lϖ1*′rϖ1*), (ϖ1-,lϖ1-′,rϖ1-)←(ϖ1*lϖ1*′rϖ1*),

(ϖ1+,lϖ1+′,rϖ1+)←(ϖ1*lϖ1*′rϖ1*) and λs←1;

else:

(1) Let t*←(t*−1) and then call BuildTree() to obtain the updated parameters;

(2) If (va = 0) :

(a) If (∣ dir = −1) : Replace (ϖ0*,lϖ0*′,rϖ0*) with (ϖ1-,lϖ1-′,rϖ1-)to call BuildTree() again to gain (ω2*,lω2*′,rω2*), (nb′,va′,λa′,λb′), and update (ω1-,lω1-′,rω1-);

Else (dir = 1): Replace (ϖ0*,lω0*′,rω0*) with (ϖ1+,lω1+′,rω1+)to call BuildTree() again to gain (ω2*,lω2*′,rω2*), (nb′,va′,λa′,λb′) and update (ω1+,lω1+′,rω1+);

(b) Let vb=[x<(nb′/(nb+nb′))], where x is randomly sampled from U(0, 1).

If (vb = 1) : Update (ϖ1*,lw1*′,rw1*)←(ϖ2*,lw2*′,rw2*);

(c) Update nb←nb+nb′,λa←λa+λa′,λb←λb+λb′, and va←[[ϖ1Trw1-<0]+[ϖ1Trw1+<0]+[va+vb≠0]≠0], where ϖ1′=ϖ1+-ϖ1-.

Return (ω1,lω1′,rω1), (ω1-,lω1-′,rω1-), (ω1+,lω1+′,rω1+),nb,va,λa, and λb.

Step C3: Calculate procedural parameter υb = [x≥(nb/na)], where x is randomly sampled from U(0, 1). Then, update na←na+nb and t←t+1. If υa = 0 and υb = 0, then update ϖ0←ϖ1. Note: na and t have been initialized in Step C1.

Step C4: Calculate υc=[[ϖ1′rϖ1−<0]+[ϖ1′rϖ1+<0]≠0] , where ϖ1′ =ϖ1+−ϖ1−. If υa = 0 and υc = 0, then do loops from Step C1 to C4; otherwise, return ϖ0 and λc = λa/λb, where υc, and λc were procedural parameters for program and calculation.

Step C5: If k ≤ 0.5K (a half of sampling were selected as the warm-up stage), then update Hϖ0←(1−ηa)Hϖ0+ηa(0.8−λc), εϖ0←exp(ιϖ0-(k/0.05)Hϖ0), and εϖ0′←exp((1−ηb)ln(εϖ0′)+ηbln(εϖ0)); otherwise (convergence stage), remain εϖ0 unchanged. Note: ιϖ0 and Hϖ0 have been initialized in Step B5.

Part D: Output estimates and standard errors. Collecting the Bayesian samplings from the convergence stage of Part D to build a posterior distribution for each parameter, and then the Bayesian estimates and standard errors (SEs) can be obtained by computing the mean and standard deviations of the corresponding posterior distribution.

3. The mixture-modeling No-U-Turn sampler for the 4PNO model

3.1. Mixture-modeling reformulation

The mixture-modeling reformulation has been widely used in the Bayesian estimation for the IRT models with asymptotes (Culpepper, 2015; Guo et al., 2023, 2021; Zheng et al., 2021). Following Béguin and Glas (2001), a latent dichotomous variable zij~ Bernoulli(Pij*) in Equation (6) has been introduced by Culpepper (2015) to provide a conditional probability of a correct response given zij∈Z as

yij|zij,ϖj,θi~{Bernoulli(1−sj),zij=1Bernoulli(gj),zij=0 (6)

where zij = 1 means the examinee i knows the answer of item j, so the unslipping probability 1−sj will determine whether he can answer correctly; and zij = 0 means the examinee i does not know the answer of item j, so the guessing probability gj will limit the correct response. Instead of using the conditional probability in the Gibbs-within-Gibbs sampler (Culpepper, 2015), the joint probability of (yij, zij) in Equation (7) was used in this study as

P(yij,zij|ϖj,θi)~{(1−sj)Pij*,yij=1 & zij=1sjPij*,yij=0 & zij=1gj(1−Pij*),yij=1 & zij=0(1−gj)(1−Pij*),yij=0 & zij=0. (7)

Thus, the likelihood function of (yij, zij) in Equation (8) and the corresponding log-likelihood function in Equation (9) should be

L(θ,W∣Y,Z)=∏i=1I∏j=1J[[(1−sj)Pij∗]yijzij×[gj(1−Pij∗)]yij(1−zij)×[sjPij∗](1−yij)zij×[(1−gj)(1−Pij∗)](1−yij)(1−zij)], (8)

and

lnL(θ,W∣Y,Z)=∑i=1I∑j=1J[zijlnPij∗+(1−zij)ln(1−Pij∗)+yij(1−zij)lngj+(1−yij)(1−zij)ln(1−gj)(1−yij)zijlnsj+yijzijln(1−sj)].. (9)

3.2. Revisions to the original NUT sampler

As for the mixture-modeling reformulated 4PNO model, suppose zij is known, then L(θ, W | Y, Z) will be exactly equal to L(θ, W | Y), so it is reasonable to maintain the traditional likelihood L(θ, W | Y) for finding the optimal estimates. However, compared with other MCMC samplers that only use the ratio of log-likelihood, one significant feature of the NUT sampler is the use of gradients. In this case, the unobservable parameter zij becomes a major obstacle for the NUT sampler to obtain the gradients from L(θ, W | Y).

Following Guo et al. (2023), this study first takes the expectation of the log-likelihood given zij to obtain E[ln L(θ, W | Y, Z)], and then uses the conditional expectation E(zij|yij, θi, ϖj) in Equation (10) to approximate zij to solve the expected log-likelihood. By Bayes rules,

E(zij|yij,θi,ϖj)≡zij(E)=(1-sj)Pij*Pij×yij+sjPij*1-Pij×(1-yij). (10)

To facilitate the robustness of the sampling (Mislevy, 1986), let αj*=ln αj, γj = ln(gj/(1−gj)), ςj = ln(sj/(1−sj)), and ϕ(▪) be the density function of the normal distribution with prior mean μ and standard deviation σ, then the corresponding gradients for each type of parameters of the expected log-likelihood with Bayesian priors in Equations (11–15) can be deduced as (see Appendix B for detailed mathematical derivations)

lθi′=−θi−μθiσθi2+∑j=1Jzij(E)−Pij∗Pij∗(1−Pij∗)eαj∗×ϕ(eαj∗θi−βj),, (11)
lαj*′=−αj*−μαj*σαj*2+∑i=1Izij(E)−Pij*Pij*(1−Pij*)eαj*θi×ϕ(eαj*θi−βj), (12)
lβj′=−βj−μβjσβj2−∑i=1Izij(L)−Pij*Pij*(1−Pij*)×ϕ(eαj*θi−βj), (13)
lγj′′=−γj−μγjσγj2+∑i=1I(yij−Invlogit(γj))(1−zij(E)), (14)
lζj′′=−ςj−μςjσςj2+∑i=1I(1−yij−Invlogit(ςj))×zij(E), (15)

where, Invlogit(x) = [1+exp(−x)]−1, and ϕ(·) is the probability density function of the standard normal distribution. By substituting the above gradients into Parts B & C of the NUT sampler, the Bayesian estimates can be yielded for the mixture-modeling reformulated 4PNO model.

4. Simulation studies

4.1. Research objectives

The simulation studies compared the item parameter recovery of the MMNUT sampler (MMNUTS) with that of the original NUT sampler in R package rstan (Stan Development Team, 2022) and the Gibbs-within-Gibbs sampler proposed by Culpepper (2015) in R package fourPNO. The MMNUTS algorithm is implemented in MATLAB R2023b, as MATLAB offers optimized LAPACK/BLAS linear algebra libraries and provides higher code readability by eliminating explicit compilation steps. To ensure numerical reliability, random seeds are fixed in MATLAB and R, rstan and fourPNO are configured per developer recommendations, and simulations of pre-researches confirm parameter estimates are consistent within numerical precision across software, with minor differences in implementation, numerical precision, and underlying libraries acknowledged but not the focus of this work. The recoverability of three samplers was evaluated by simulating various design features, including the location of item thresholds (educational vs. psychological situations) and sample sizes (2,500 vs. 5,000). The simulations are conducted in MATLAB R2023b, and the MATLAB scripts for MMNUTS and the simulated true item parameters are available in online Appendices A, C, respectively.

4.2. Design features and data generation

Simulating educational and psychopathological scenarios for the 4PNO model is essential due to the distinct psychometric features and estimation challenges of the two domains. According to Culpepper (2015), educational assessments have item parameters clustered at the center of the latent continuum, while psychopathology ones feature larger difficulty parameters that make estimating the upper asymptote far harder, and simulating both quantifies how these differences impact 4PNO parameter recovery accuracy. Additionally, the two domains interpret the 4PNO's asymptote parameters differently, gjand sj stand for guessing/slipping in education and false endorsement/under-reporting in psychopathology, and dual simulations validate the model's ability to recover these substantively distinct parameters across contexts, thus confirming its generalizability. Both educational and psychological situations with two sample sizes (2,500 and 5,000) were simulated, and in both cases, the ability parameters θi were sampled from the standard normal distribution. Since the four-parameter model is particularly valuable for low-stakes educational assessments, the estimator should have the power to recover the widely distributed parameters in practice, especially for both asymptote parameters. Based on the Fu et al. (2021), Meng and Xu (2022) and Culpepper (2015), the item slope, thresholds, guessing, and slipping parameters for 20 items were generated from αj~ U(0.5, 3), βj~ N(0, 1), gj~ U(0.05, 0.35), and sj~ U(0.05, 0.35), respectively. Specifically, the mean, standard deviation (SD), minimum, and maximum values of simulated item discrimination, difficulty (β/α), guessing, and slipping parameters using traditional IRT metrics were (1.48, 0.67, 0.58, 2.82), (−0.04, 0.79, −2.10, 1.43), (0.19, 0.08, 0.08, 0.33), and (0.17, 0.06, 0.06, 0.26), respectively. Moreover, the Pearson correlation coefficient between g and s was −0.181.

For psychological tests, based on the 4PL calibration of adolescent self-esteem scale by Waller and Reise (2010), the item parameters of the 4PNO model reparametrized by Culpepper (2015) were used to simulate responses on 23 items. Specifically, the mean, SD, minimum, and maximum values of item discrimination, difficulty, guessing, and slipping parameters for psychological tests using traditional IRT metrics were (1.15, 0.33, 0.72, 1.95), (0.40, 0.64, −0.50, 1.56), (0.04, 0.05, 0.00, 0.24), and (0.26, 0.16, 0.05, 0.60), respectively. Moreover, the Pearson correlation coefficient between g and s was −0.308. Compared with the educational exams, the items on psychological tests have obviously larger difficulty parameters and social desirability bias (higher slipping but lower guessing), which may impair the recoverability since it is more challenging to recover the slipping parameters when the difficulty is larger (Culpepper, 2015).

4.3. Settings, priors, and item recovery criteria for three samplers

For each design feature, 100 replications with 4 chains were conducted to evaluate the recoverability of three samplers for item parameters. To avoid result discrepancies caused by varying initial values in the simulation study, identical initial values were used for each iteration. Following standard item response theory model conventions, initial values were generated as follows: (1) Item difficulty (correct rate), discrimination (item-total Pearson correlation), guessing (low-group correct rate), slipping (high-group error rate), and participant's average score rates were calculated via classical test theory. (2) These 0–1 bounded indicators were transformed to a normal scale using the inverse standard normal cumulative distribution function. (3) Initial item parameters were randomly sampled from a normal distribution (mean = transformed values, SD = 1) to ensure distinct initial values across chains. For both revised and original NUT samplers, 2,000 iterations (the first 1,000 iterations will be discarded as warm-up) were run to obtain the posterior distributions of item parameters, and the mean of the posterior distributions will be used to calculate the final estimates. Furthermore, all tuning parameters of both samplers adopted the default settings of the rstan package (see input variable “control” in function “stan” for details). For the Gibbs-within-Gibbs sampler, Culpepper (2015) suggested that at least 100,000 MCMC iterations (the first 50,000 iterations will be discarded as burn-in) were required for estimating the 4PNO model when thinning parameter equals 1, so 100,000 MCMC iterations were generated to obtain the Bayesian estimates in this study.

Considering the differences in algorithmic constraints and item parameterization, two types of priors were used for the MMNUTS/NUTS and the Gibbs-within-Gibbs sampler, respectively. In the educational situation, refer to Houts and Cai (2015), the normal-distributed priors were used for both the revised and original NUT sampler as ln α~ N(0, 0.5), β~ N(0,2), (γ, ς)~ N(−1.39, 0.5) (Invlogit(−1.39)≈0.20); while the truncated Normal distribution and Beta distribution priors were used for the Gibbs-within-Gibbs sampler based on the suggestion of Culpepper (2015) and Zimowski et al. (2003) as: α~ N(0,2)I(α>0), β~ N(0,2) and (g, s)~ Beta(4, 16), where the practical expectation of α was about 1.13 due to its prior normal distribution being truncated at 0 and the hyper-parameter in Beta distribution is the reparameterization of (5, 17) in BILOG-MG (Zimowski et al., 2003) with the expectation of 0.20. In a more challenging psychological situation, to further check the robustness of the proposed sampler, relatively less informative priors were used for the asymptote parameters as (γ, ς)~ N(−1.61, 0.8) in both MMNUTS and NUTS and (g, s)~ Beta(1, 5) in the Gibbs-within-Gibbs sampler (Invlogit(−1.61)≈E(Beta(1, 5))≈0.17). In addition, the priors of ability parameters for all three samplers were θ~ N(0, 1).

The Gelman-Rubin potential scale reduction factors R^<1.1 from 4 chains (Gelman and Rubin, 1992) were used as convergence criteria. The root mean squared error (RMSE) and bias were used to assess the accuracy in recovering item parameters across the 100 replications where

RMSE=∑r=1R(ϖ^j(r)-ϖj)2R, bias=∑r=1R(ϖ^j(r)-ϖj)R,

and R is the number of converged replications. Furthermore, the averaged posterior standard deviation (PSD) of item parameters was calculated to assess the variability of three samplers.

4.4. Results

Three samplers have achieved convergence in all replications, and the RMSEs, bias, and PSDs for educational and psychological scenarios were plotted in Figures 2, 3 (the complete results are also tabulated in Appendix D), respectively. It can be seen from the two figures that the increase of sample size from 2,500 to 5,000 led to substantial improvements in the accuracy of RMSEs and bias, as well as the variability of PSDs for all three samplers, which suggests that the 4PNO model is more suitable for sample sizes greater than 5,000. In general, the recoverability of all three samplers is comparable; nevertheless, their performance under educational and psychological contexts varies, especially for the slope and asymptote parameters.

Figure 2.

Nine-panel boxplot matrix compares RMSEs, Bias, and PSDs for four parameters (alpha, beta, gamma, sigma) with two sample sizes (two thousand five hundred and five thousand) using three methods (MMNUTS, Gibbs, NUTS), with data presented for each metric and parameter.

The RMSEs, bias, and PSDs for the educational scenario.

Figure 3.

Boxplot matrix comparing RMSEs, Bias, and PSDs across four parameters (alpha, beta, gamma, sigma), three methods (MMNUTS, Gibbs, NUTS), and two sample sizes (two thousand five hundred and five thousand). Each row represents a parameter and each column a metric, showing distributional differences across methods and sample sizes.

The RMSEs, bias, and PSDs for the psychological scenario.

Given the results in Figures 2, 3, the following findings can be observed about the item recovery of slope parameters: (1) Generally, the bias, RMSEs, and PSDs exhibited by MMNUTS and NUTS are very similar, yet they demonstrate discernible differences when contrasted with Gibbs-within-Gibbs sampler, especially for the RMSEs. (2) Averagely, MMNUTS and NUTS exhibit obviously smaller RMSEs compared to Gibbs-within-Gibbs in the educational domain, whereas their RMSEs were approximately comparable in the psychological field. (3) Compared to MMNUTS and NUTS, Gibbs-within-Gibbs shows a narrower range of variation of RMSEs in the educational scenario but a slightly broader range of RMSE variation in the psychological context. (4) The PSDs showed a consistent trend with RMSEs and bias.

The reason for these differences is probably related to the type and information of priors. In educational settings, due to the broad distribution of true values (αedu∈[0.58, 2.82]), the prior with a larger variance in the Gibbs-within-Gibbs method (α~ N(0,2)I(α>0)) allows for the easier recovery of aberrant values. Conversely, in psychological settings where the distribution of true values is narrower (αpsych∈[0.72, 1.95]), the prior with a smaller variance used in MMNUTS and NUTS (ln α~ N(0, 0.5)) can provide more informative information to facilitate the recovery.

Regarding the asymptote parameters, estimating the lower and upper asymptotes presents distinct sets of challenges. For the educational settings (μg = 0.19 & μs = 0.17), the recovery of the guessing parameters is more difficult, and all three samplers yielded aberrant values in both bias and RMSEs, while the recovery of the slipping parameters is relatively feasible. However, for the psychological situation, although the recovery of guessing parameters appears satisfactory, the recovery of slipping parameters by the three samplers yields much worse RMSEs, bias, and PSDs than those from educational settings, particularly when considering a sample size of 2,500.

Despite this, both MMNUTS and NUTS still demonstrates certain advantages in recovering asymptote parameters when using relatively less informative priors. Specifically, in the educational setting with relatively informative priors ((γ, ς)~ N(−1.39, 0.5) and (g, s)~ Beta(4, 16)), the item recovery of guessing and slipping parameters by MMNUTS and NUTS are comparable to those from the Gibbs-within-Gibbs sampler; however, when the priors change to be less informative ((γ, ς)~ N(−1.61, 0.8) and (g, s)~ Beta(1, 5)) in the psychological settings, the RMSEs of slipping parameters by MMNUTS and NUTS are notably smaller than those from the Gibbs-within-Gibbs sampler. Moreover, there are even no aberrant RMSE values yielded from MMNUTS when the sample size increases to 5,000, indicates that MMNUTS can improve the accuracy of asymptote parameters by introducing the mixture-modeling approach.

Another interesting finding relates to the threshold parameters in the psychological scenario. It can be seen that there are several aberrant values of rstan appearing in both bias and RMSEs, while both fourPNO and MMNUTS remain stable. This observation may reflect potential differences between algorithms optimized for specific models and general Bayesian implementations, though such differences need to be interpreted with caution given the stochastic nature of the sampling process and the limited scope of the simulation. It is worth noting that Figure 3 (second row for the threshold β parameter) shows that the number of outliers is basically similar across all three routines, with rstan exhibiting one particularly prominent outlier. Additionally, the variability of rstan tends to decrease as the sample size increases. A similar pattern of outliers is also observable in the loading parameter estimates.

5. An empirical example

This example will demonstrate the usefulness of the 4PNO model with MMNUTS using a behavioral scale, as the simulations have presented the item recovery in educational and psychological settings. The datasets including the responses of 11,154 students to 12 Tobacco and Alcohol Use (TAU) items from the 2009-2010 Health Behavior in School-Aged Children (HBSC) research (Iannotti, 2013) were analyzed. The TAU items ask subjects “How frequently have you smoked cigarettes during the LAST 30 DAYS” or “Have you ever had so much alcohol that you were really drunk” (all 12 items can be found in Appendix E), and each item requires subjects to report their frequency of TAU using 2-7 incrementally categorical options (e.g., 0 = Never, 1 = Rarely, 2 = Every month, 3 = Every week, and 4 = Every day). Since all samples consist of students in grades 5 to 10, the distribution of TAU responses is extremely positively skewed, so the datasets can be dichotomized as “never → 0” and “else → 1”.

To demonstrate the superiority of the 4PNO model, the 2PNO, 3PNO, and 4PNO models were used to analyze the recoded binary datasets via MMNUTS, Gibbs-within-Gibbs sampler, and original NUTS. Specifically, all three samplers used the same setting as the first simulation study. Table 1 summarizes the model fits of five competitive models. Obviously, the AIC and BIC of the 2PNO model are smaller than those of the 3PNO model but bigger than those of the 4PNO model, suggesting the utility of the upper asymptote parameters.

Table 1.

The model comparisons of empirical examples.

Model Log-Likelihood Parameters AIC BIC LR tests to 4PNO
χ2 df P
2PNO −33685.31 24 67418.62 67594.29 402.68 24 P < 0.001
3PNO −33777.54 36 67626.07 67890.57 587.14 12 P < 0.001
4PNO −33483.97 48 67063.95 67415.28

Figure 4 plots the Gelman-Rubin potential scale reduction factor R^ (Gelman and Rubin, 1992) from MMNUTS and NUTS across chain lengths from 50 to 2,000 in increments of 20 and the Gibbs-within-Gibbs sampler across chain lengths from 1,000 to 100,000 in increments of 1,000. It can be shown that MMNUTS and NUTS converge rapidly after around 1,000 iterations, but the Gibbs-within-Gibbs sampler needs approximately 50,000 iterations. These results replicate the findings of Culpepper (2015) and Carpenter et al. (2017) for the convergence rates of the No-U-Turn and Gibbs samplers, respectively.

Figure 4.

Grid of twelve line charts comparing convergence diagnostics (R̂) for parameters alpha, beta, gamma, and sigma across three sampling methods: MMNUTS, NUTS, and Gibbs. Each chart shows R̂ values over increasing burn-in iterations, with a horizontal reference line at R̂ equals 1.1. MMNUTS and NUTS converge below the threshold faster than Gibbs for all parameters.

Plots of Gelman-Rubin potential scale reduction factors for the 4PNO model based on four independent chains with different starting values, Rhat, across different burn-in lengths. The Rhat plots for MMNUTS and NUTS are based upon chain lengths from 50 to 2,000 in increments of 20. The Rhat plot for the Gibbs sampler from 1,000 to 100,000 in increments of 1,000.

The item estimates and corresponding standard errors produced by three samplers are displayed in Table 2, and all coefficients are comparable. However, on a 4.7GHz processor with 32GB of RAM, MMNUTS requires approximately 1.05 hours to complete a single chain (2,000 iterations), whereas fourPNO (100,000 iterations) and rstan (2,000 iterations) require 2.03 and 3.61 h, respectively. In addition to the interpretation of slipping or social desirability bias, the upper asymptote parameters for the TAU items have alternative interpretations as preference trends. For example, Items 3 to 7 have been respectively devised to detect the frequency of drinking beer, wine, liquor/spirits, pre-mixed drinks, and other drinks that contain alcohol, but a drinker may like to drink only certain beverages, resulting in a lower probability of choosing others (s∈[0.1820.461]). In this case, the upper asymptote parameters can be used to model the preference for alcoholic beverages.

Table 2.

The item point estimates (Est.) with standard errors (SE) of empirical examples.

Item α β
MMNUTS NUTS Gibbs-within-Gibbs MMNUTS NUTS Gibbs-within-Gibbs
Est. SE Est. SE Est. SE Est. SE Est. SE Est. SE
1 2.734 0.168 2.733 0.165 2.596 0.164 3.244 0.194 3.240 0.192 3.126 0.192
2 4.041 0.112 4.011 0.116 4.349 0.251 5.887 0.138 5.840 0.142 6.382 0.349
3 3.763 0.249 3.771 0.256 3.396 0.211 2.794 0.166 2.798 0.173 2.541 0.145
4 3.878 0.369 3.891 0.409 3.145 0.201 2.289 0.208 2.297 0.235 1.843 0.111
5 6.592 0.385 6.550 0.382 5.884 0.426 5.606 0.305 5.559 0.301 5.076 0.362
6 4.983 0.364 4.955 0.364 4.370 0.317 3.635 0.262 3.606 0.264 3.206 0.227
7 5.240 0.429 5.252 0.405 4.754 0.390 3.999 0.316 4.001 0.295 3.659 0.291
8 2.354 0.109 2.362 0.105 2.302 0.128 3.225 0.134 3.232 0.131 3.179 0.160
9 4.614 0.322 4.623 0.326 4.317 0.293 3.109 0.196 3.111 0.193 2.934 0.175
10 3.586 0.220 3.601 0.234 3.546 0.183 3.485 0.181 3.497 0.190 3.470 0.147
11 3.796 0.071 3.786 0.071 4.919 0.389 5.948 0.068 5.925 0.070 7.700 0.587
12 4.031 0.311 4.045 0.338 3.764 0.265 3.955 0.276 3.963 0.300 3.745 0.236
Item g s
MMNUTS NUTS Gibbs-within-Gibbs MMNUTS NUTS Gibbs-within-Gibbs
Est. SE Est. SE Est. SE Est. SE Est. SE Est. SE
1 0.039 0.003 0.039 0.003 0.036 0.003 0.027 0.007 0.027 0.007 0.013 0.006
2 0.010 0.001 0.010 0.001 0.009 0.001 0.036 0.009 0.036 0.010 0.024 0.010
3 0.009 0.002 0.009 0.002 0.004 0.002 0.239 0.014 0.239 0.014 0.237 0.014
4 0.016 0.003 0.016 0.003 0.008 0.003 0.461 0.014 0.461 0.014 0.456 0.014
5 0.006 0.001 0.006 0.001 0.004 0.001 0.214 0.012 0.214 0.012 0.213 0.013
6 0.012 0.002 0.011 0.002 0.007 0.002 0.182 0.011 0.182 0.011 0.181 0.011
7 0.009 0.002 0.009 0.002 0.006 0.002 0.197 0.012 0.198 0.012 0.198 0.013
8 0.008 0.001 0.008 0.001 0.005 0.002 0.026 0.007 0.025 0.007 0.011 0.005
9 0.006 0.001 0.006 0.001 0.002 0.001 0.149 0.012 0.149 0.012 0.147 0.012
10 0.003 0.001 0.003 0.001 0.001 0.000 0.287 0.017 0.287 0.017 0.290 0.017
11 0.006 0.001 0.006 0.001 0.005 0.001 0.034 0.009 0.035 0.010 0.019 0.009
12 0.011 0.001 0.011 0.001 0.009 0.001 0.228 0.016 0.228 0.016 0.227 0.016

6. Discussion

The development of algorithms is an iterative process, for example, Zheng et al. (2018) developed the EMM algorithm based on Bock and Aitkin (1981)'s EM algorithm to offer a feasible MLE for the 3-parameter logistic model (3PLM) under a medium sample size; Fu et al. (2021) introduced the data augmentation scheme to the Gibbs sampler for the 4-parameter logistic model (4PLM); and Guo et al. (2023) proposed the MM-MH-RM algorithm based on Cai (2010) for the multidimensional IRT models with asymptote parameters. Therefore, this study revisited the NUT sampler from an algorithmic perspective, which may provide a foundation for future research to iteratively develop algorithms for psychometric models.

Beyond the introduction of the NUT sampler, this study further proposes a MMNUT sampler by integrating the mixture-modeling approach. It then validates the feasibility of both the original NUT sampler and the MMNUT sampler for the 4PNO model. Overall, the item recovery performance of the three samplers (MMNUTS, NUTS, and Gibbs-within-Gibbs sampler) varies across different parameters and scenarios: at times, the NUT-based approaches yield more favorable results; at other times, the Gibbs-within-Gibbs sampler performs comparably, and dedicated implementations may demonstrate stability in specific contexts. However, the NUT-based sampler has demonstrated superior time efficiency and iteration efficiency than the traditional Gibbs-based sampler, this is consistent with the previous research of Homan and Gelman (2014). As for the MMNUT sampler, although its general recovery performance is roughly comparable to those of the original NUTS, the MMNUT sample still has slight advantages in the recovery of upper asymptote parameters under weakly informative priors and larger sample sizes (≥5,000). This characteristic may be related to the design of the mixture-modeling approach. This characteristic may be attributed to the design of the mixture-modeling framework. As suggested in studies by Zheng et al. (2021) and Guo et al. (2023) on the 4PL model, the parameter estimation approach employed in the mixture model presents similar advantages in recovering the asymptotic parameters. In terms of sample size, this study also replicated the findings of Culpepper (2015) Gibbs-within-Gibbs sampler, indicating that the 4PNO model requires a sample of at least 5,000 examinees to achieve estimating stability. This finding highlights the potential value of developing optimized algorithms tailored to specific models. Another noteworthy finding is about the priors. The uniform priors for asymptote parameters may be more suitable for the educational scenario, while more informative priors may be better for the psychological scenario which has relatively larger upper or lower asymptote parameters. In addition, the priors for slope parameters also have an obvious impact on the item recovery, suggesting that researchers should choose the most appropriate priors according to specific scenarios.

Beyond the simulation studies in the fields of education and psychology, this study also examines the feasibility of applying the MMNUT algorithm and the 4PNO model to behavioral data through empirical analysis. Furthermore, analyses based on point estimates of the 4PNO model reveal that the meaning and distributional patterns of the upper and lower asymptote parameters in behavioral data are analogous to those in psychological tests, and can likewise serve as an indicator of social desirability bias. For instance, higher values of the s parameter suggest that individuals with higher levels of alcohol and tobacco use tend to underreport their frequency of use.

Several limitations should be noted. First, despite aiming to make the NUT sampler accessible to psychometricians via the 4PNO model, the complexity of Hamiltonian dynamics, gradient calculations, and the BuildTree() function still hinders easy understanding, even with step-by-step breakdowns. Second, the proposed MMNUTS shows clear advantages in running time but lacks distinct superiority in estimation accuracy. It performs comparably to the original NUT sampler and Gibbs-within-Gibbs sampler across most parameters and scenarios, with only marginal improvements in upper asymptote parameter recovery under specific conditions. Third, the exploration of the relationship between prior information and estimation accuracy is superficial. The study merely compares different prior types (more vs. less informative) in educational and psychological scenarios without delving into the mechanisms of how prior specifications (e.g., variance, distribution type) influence parameter recovery.

The following potential directions can be explored based on the current study. First, methodologically, the current study exclusively adopted the joint likelihood approach L(θ, W|Y, Z) for posterior distribution sampling. While this approach has demonstrated its effectiveness, future research should further expand the scope of likelihood-based methods by systematically examining the performance of conditional likelihood L(θ, W, Z|Y) as proposed in Culpepper (2015) under diverse scenarios. Specifically, comparisons between joint and conditional likelihood should not only focus on parameter estimation accuracy but also on computational efficiency, robustness to model misspecification, and scalability with increasing sample sizes or item numbers. Moreover, the function of the latent variable zij(E) is not just augmented data, the future study may try to exploit its diagnostic value in checking the ecological validity of psychological testing, especially for mental health tests.

Second, regarding stochastic-based sampling algorithms, the No-U-Turn Sampler (NUTS) employed in this study can serve as a benchmark to advance other iterative sampling methods, yet more in-depth comparisons and improvements are warranted. Future research should systematically evaluate the performance of NUTS against modified versions of classic algorithms such as Metropolis-Hastings Random Walk (MH-RM), Stochastic Approximation EM (SAEM), and Monte Carlo EM (MCEM) across multiple criteria. Additionally, exploring adaptive modifications of these algorithms (e.g., adaptive step-size adjustment for MH-RM or variance reduction techniques for SAEM) with reference to NUTS's adaptive path-finding mechanism could provide new insights into enhancing sampler performance.

Third, the extension of NUTS and its mixture-modeling revision (MMNUTS) to more complex IRT models with asymptote parameters should be further elaborated, incorporating both methodological refinements and applied validations. Beyond the five-parameter logistic (5PL) model, one-parameter logistic ability-based guessing (1PL-AG) model, two-parameter logistic extension (2PLE) model, and 4PNO with covariates model, future work should explore their multidimensional and multilevel counterparts in greater detail. For multidimensional models, it is critical to examine how MMNUTS performs in estimating correlated latent traits and handling cross-loadings, which are prevalent in multidimensional psychological assessments. For multilevel models, the adaptation of MMNUTS to account for random effects at different levels and potential heteroscedasticity across clusters is an important methodological gap to fill.

Fourth, parameter estimation under missing data should be addressed. Given that missing data are common in psychological testing due to fatigue, omitted responses, or attrition, future studies can compare MMNUTS under different missing-data strategies and develop adaptive procedures that explicitly model missing-data mechanisms. Finally, another important methodological direction involves examining the impact of violations of derivational assumptions on MMNUTS and NUTS performance. Common violations in IRT include non-normality of the latent trait distribution (e.g., skewed or bimodal distributions in clinical populations), heteroscedasticity of item residuals, and violation of local independence (e.g., item clusters or response sets). Future research should systematically simulate these assumption violations and evaluate how they affect parameter estimation accuracy, model fit indices, and sampler convergence.

Funding Statement

The author(s) declared that financial support was received for this work and/or its publication. This research was partially supported by Youth Fund Project for Humanities and Social Sciences Research of the Ministry of Education Research on Gamified Assessment Methods and Training Strategies for Collaborative Problem-Solving Competence Supported by Large Language Models (25YJC880029), the Green Yang Jinfeng Plan of Yangzhou excellent doctoral funding project (5005/137013654), and 2025 Humanities and Social Sciences Research Fund Project of Yangzhou University (5005/136020503).

Footnotes

Edited by: Giulia Calignano, University of Padua, Italy

Reviewed by: Stefano Noventa, Università degli Studi di Padova, Italy

Azizur Rahman, University of Manitoba, Canada

Data availability statement

The original contributions presented in the study are included in the article/Supplementary material, further inquiries can be directed to the corresponding author/s.

Author contributions

SG: Writing – original draft, Investigation, Software, Resources, Visualization, Funding acquisition, Methodology, Writing – review & editing, Validation, Formal analysis, Project administration, Conceptualization, Supervision, Data curation. QS: Data curation, Visualization, Validation, Writing – review & editing, Formal analysis. XL: Writing – review & editing, Data curation, Resources, Visualization, Formal analysis.

Conflict of interest

The author(s) declared that this work was conducted in the absence of any commercial or financial relationships that could be construed as a potential conflict of interest.

Generative AI statement

The author(s) declared that generative AI was used in the creation of this manuscript. The author(s) acknowledge that generative AI was used to polish the language and grammar of this manuscript.

Any alternative text (alt text) provided alongside figures in this article has been generated by Frontiers with the support of artificial intelligence and reasonable efforts have been made to ensure accuracy, including review by the authors wherever possible. If you identify any issues, please contact us.

Publisher's note

All claims expressed in this article are solely those of the authors and do not necessarily represent those of their affiliated organizations, or those of the publisher, the editors and the reviewers. Any product that may be evaluated in this article, or claim that may be made by its manufacturer, is not guaranteed or endorsed by the publisher.

Supplementary material

The Supplementary Material for this article can be found online at: https://www.frontiersin.org/articles/10.3389/fpsyg.2026.1746754/full#supplementary-material

Supplementary_File_1.docx (952.9KB, docx)

References

  1. Ames A. J., Au C. H. (2018). Using Stan for item response theory models. Measur. Interdiscip. Res. Perspect. 16, 129–134. doi: 10.1080/15366367.2018.1437304 [DOI] [Google Scholar]
  2. Barton M. A., Lord F. M. (1981). An upper asymptote for the three-parameter logistic item response model. ETS Res. Rep. Series 1981, 1–8. doi: 10.1002/j.2333-8504.1981.tb01255.x [DOI] [Google Scholar]
  3. Béguin A. A., Glas C. A. W. (2001). MCMC estimation and some model-fit analysis of multidimensional IRT models [journal article]. Psychometrika 66, 541–561. doi: 10.1007/BF02296195 [DOI] [Google Scholar]
  4. Birnbaum A. (1968). “Some latent trait models and their use in inferring an examinee's ability,” in Statistical Theories of Mental Test Scores, eds. Lord F. M. and Novick M. R. (pp. 395–479). Massachusetts, MA: Adison-Wesley. [Google Scholar]
  5. Bock R. D., Aitkin M. (1981). Marginal maximum likelihood estimation of item parameters: Application of an EM algorithm. Psychometrika 46, 443–459. doi: 10.1007/BF02293801 [DOI] [Google Scholar]
  6. Bock R. D., Lieberman M. (1970). Fitting a response model for n dichotomously scored items. Psychometrika 35, 179–197. doi: 10.1007/BF02291262 [DOI] [Google Scholar]
  7. Bürkner P. C. (2021). Bayesian item response modeling in R with brms and Stan. J. Stat. Softw. 100, 1–54. doi: 10.18637/jss.v100.i05 [DOI] [Google Scholar]
  8. Cai L. (2010). High-dimensional exploratory item factor analysis by a Metropolis-Hastings Robbins-Monro algorithm. Psychometrika 75, 33–57. doi: 10.1007/s11336-009-9136-x [DOI] [Google Scholar]
  9. Carpenter B., Gelman A., Hoffman M. D., Lee D., Goodrich B., Betancourt M., et al. (2017). Stan: A probabilistic programming language. J. Stat. Softw. 76, 1–32. doi: 10.18637/jss.v076.i01 [DOI] [PMC free article] [PubMed] [Google Scholar]
  10. Culpepper S. A. (2015). Revisiting the 4-parameter item response model: bayesian estimation and application. Psychometrika 81, 1142–1163. doi: 10.1007/s11336-015-9477-6 [DOI] [PubMed] [Google Scholar]
  11. Culpepper S. A. (2017). The prevalence and implications of slipping on low-stakes, large-scale assessments. J. Educ. Behav. Stat. 42, 706–725. doi: 10.3102/1076998617705653 [DOI] [Google Scholar]
  12. Fu Z.-H., Zhang S., Su Y.-H., Shi N., Tao J. (2021). A Gibbs sampler for the multidimensional four-parameter logistic item response model via a data augmentation scheme. Br. J. Math. Stat. Psychol. 74, 427–464. doi: 10.1111/bmsp.12234 [DOI] [PubMed] [Google Scholar]
  13. Gelman A., Rubin D. B. (1992). Inference from iterative simulation using multiple sequences. Stat. Sci. 7, 457–472. doi: 10.1214/ss/1177011136 [DOI] [Google Scholar]
  14. Geman D., Geman S. (1984). Stochastic relaxation, Gibbs distributions,and the bayesian restoration of images. IEEE Trans. Pattern Anal. Mach. Intell. 6, 721–741. doi: 10.1109/TPAMI.1984.4767596 [DOI] [PubMed] [Google Scholar]
  15. Green B. F. (2011). A comment on early student blunders on computer-based adaptive tests. Appl. Psychol. Meas. 35, 165–174. doi: 10.1177/0146621610377080 [DOI] [Google Scholar]
  16. Guo S., Chen Y., Zheng C., Li G. (2023). Mixture-modelling-based Bayesian MH-RM algorithm for the multidimensional 4PLM. Br. J. Math. Stat. Psychol. 76, 585–604. doi: 10.1111/bmsp.12300 [DOI] [PubMed] [Google Scholar]
  17. Guo S., Wu T., Zheng C., Chen Y. (2021). Bayesian modal estimation for the one parameter logistic ability-based guessing (1PL-AG) model. Appl. Psychol. Meas. 45, 195–213. doi: 10.1177/0146621621990761 [DOI] [PMC free article] [PubMed] [Google Scholar]
  18. Guo S., Zheng C. (2019). The Bayesian expectation-maximization-maximization for the 3PLM. Front. Psychol. 10:01175. doi: 10.3389/fpsyg.2019.01175 [DOI] [PMC free article] [PubMed] [Google Scholar]
  19. Guo S., Zheng C., Kern J. L. (2020). IRTBEMM: An R package for estimating IRT models with guessing or slipping parameters. Appl. Psychol. Meas. 44, 566–567. doi: 10.1177/0146621620932654 [DOI] [PMC free article] [PubMed] [Google Scholar]
  20. Hoffman M. D., Gelman A. (2014). The No-U-turn sampler: adaptively setting path lengths in Hamiltonian monte carlo. J. Mach. Learn. Res. 15, 1593–1623. http://jmlr.org/papers/v15/hoffman14a.html [Google Scholar]
  21. Homan M. D., Gelman A. (2014). The No-U-turn sampler: adaptively setting path lengths in Hamiltonian Monte Carlo. J. Mach. Learn. Res. 15, 1593–1623. [Google Scholar]
  22. Houts C. R., Cai L. (2015). “FlexMIRT: Flexible Multilevel Multidimensional Item Analysis and Test Scoring User's Manual Version 3.6 RC. Available online at: https://www.vpgcentral.com/software/flexmirt/.
  23. Iannotti R. J. (2013). Health Behavior in School-Aged Children (HBSC), 2009-2010 Inter-University Consortium for Political and Social Research. doi: 10.3886/ICPSR34792 [DOI] [Google Scholar]
  24. Jiang Z., Carter R. (2019). Using Hamiltonian Monte Carlo to estimate the log-linear cognitive diagnosis model via Stan. Behav. Res. Methods 51, 651–662. doi: 10.3758/s13428-018-1069-9 [DOI] [PubMed] [Google Scholar]
  25. Kern J. L., Culpepper S. A. (2020). A restricted four-parameter IRT model: the dyad four-parameter normal Ogive (Dyad-4PNO) model. Psychometrika 85, 575–599. doi: 10.1007/s11336-020-09716-3 [DOI] [PubMed] [Google Scholar]
  26. Lord F. M. (1980). Applications of Item Response Theory to Practical Testing Problems. Milton Park: Routledge. [Google Scholar]
  27. Lord F. M., Novick M. R. (1968). Statistical Theories of Mental Test Scores. Massachusetts, MA: Adison-Wesley. [Google Scholar]
  28. Luke T. (1994). Markov Chains for exploring posterior distributions. Ann. Stat. 22, 1701–1728. doi: 10.1214/aos/1176325753 [DOI] [Google Scholar]
  29. Luo Y., Jiao H. (2017). Using the stan program for bayesian item response theory. Educ. Psychol. Meas. 78, 384–408. doi: 10.1177/0013164417693666 [DOI] [PMC free article] [PubMed] [Google Scholar]
  30. Meng X. B., Xu G. (2022). A Mixed Stochastic Approximation EM (MSAEM) algorithm for the estimation of the four-parameter normal Ogive model. Psychometrika 88, 1407–1442. doi: 10.1007/s11336-022-09870-w [DOI] [PubMed] [Google Scholar]
  31. Meng X. B., Xu G., Zhang J., Tao J. (2019). Marginalized maximum a posteriori estimation for the four-parameter logistic model under a mixture modelling framework. Br. J. Math. Stat. Psychol. 74, 3–28. doi: 10.1111/bmsp.12185 [DOI] [PubMed] [Google Scholar]
  32. Metropolis N., Rosenbluth A. W., Rosenbluth M. N., Teller A. H., Teller E. (1953). Equation of state calculations by fast computing machines. J. Chem. Phys. 21, 1087–1092. doi: 10.1063/1.1699114 [DOI] [PubMed] [Google Scholar]
  33. Mislevy R. J. (1986). Bayes modal estimation in item response models. Psychometrika 51, 177–195. doi: 10.1007/BF02293979 [DOI] [Google Scholar]
  34. Neal R. (2011). “Chapter 5: MCMC using hamiltonian dynamics,” in Handbook of Markov Chain Monte Carlo. Boca Raton, FL: CRC Press. doi: 10.1201/b10905-6 [DOI] [Google Scholar]
  35. Papaspiliopoulos O., Roberts G. O., Zanella G. (2020). Scalable inference for crossed random effects models. Biometrika 107, 25–40. doi: 10.1093/biomet/asz058 [DOI] [Google Scholar]
  36. Patz R. J., Junker B. W. (1999a). A straightforward approach to Markov Chain Monte Carlo methods for item response models. J. Educ. Behav. Stat. 24, 146–178. doi: 10.3102/10769986024002146 [DOI] [Google Scholar]
  37. Patz R. J., Junker B. W. (1999b). Applications and extensions of MCMC in IRT: Multiple item types, missing data, and rated responses. J. Educ. Behav. Stat. 24, 342–366. doi: 10.3102/10769986024004342 [DOI] [Google Scholar]
  38. Persi D., Susan H., Radford M. N. (2000). Analysis of a nonreversible Markov chain sampler. Ann. Appl. Probab. 10, 726–752. doi: 10.1214/aoap/1019487508 [DOI] [Google Scholar]
  39. Rasch G. (1960). Probabilistic Models for Some Intelligence and Attainment Tests. Chicago: University of Chicago Press. [Google Scholar]
  40. San Martín E., Del Pino G., De Boeck P. (2006). IRT models for ability-based guessing. Appl. Psychol. Meas. 30, 183–203. doi: 10.1177/0146621605282773 [DOI] [Google Scholar]
  41. Scharl A., Gnambs T. (2019). Longitudinal item response modeling and posterior predictive checking in R and Stan. Quant. Methods Psychol. 15, 75–95. doi: 10.20982/tqmp.15.2.p075 [DOI] [Google Scholar]
  42. Stan Development Team (2022). rstan: the R Interface to Stan. In (Version R package version 2.26.11). Available online at: https://mc-stan.org/users/interfaces/rstan.
  43. Swaminathan H., Gifford J. A. (1986). Bayesian estimation in the three-parameter logistic model. Psychometrika 51, 589–601. doi: 10.1007/BF02295598 [DOI] [Google Scholar]
  44. Tan Z., de la Torre J., Ma W., Huh D., Larimer M. E., Mun E.-Y. (2023). A tutorial on cognitive diagnosis modeling for characterizing mental health symptom profiles using existing item responses. Prevent. Sci. 24, 480–492. doi: 10.1007/s11121-022-01346-8 [DOI] [PMC free article] [PubMed] [Google Scholar]
  45. Waller N. G., Feuerstahler L. M. (2017). Bayesian modal estimation of the four-parameter item response model in real, realistic, and idealized data sets. Multivar. Behav. Res. 52, 350–370. doi: 10.1080/00273171.2017.1292893 [DOI] [PubMed] [Google Scholar]
  46. Waller N. G., Reise S. P. (2010). “Measuring psychopathology with nonstandard item response theory models: Fitting the four-parameter model to the Minnesota Multiphasic Personality Inventory,” in Embretson S. (Ed.), Measuring Psychological Constructs: Advances in Model Based Approaches. Washington, DC: American Psychological Association. doi: 10.1037/12074-007 [DOI] [Google Scholar]
  47. Xue M. F., Chen Y. (2023). A Stan tutorial on Bayesian IRTree models: conventional models and explanatory extension. Behav. Res. Methods. 56, 3995–4008. doi: 10.3758/s13428-023-02121-5 [DOI] [PMC free article] [PubMed] [Google Scholar]
  48. Zhang J., Lu J., Du H., Zhang Z. (2020). Gibbs-Slice sampling algorithm for estimating the four-parameter logistic model [Original Research]. Front. Psychol. 11:02121. doi: 10.3389/fpsyg.2020.02121 [DOI] [PMC free article] [PubMed] [Google Scholar]
  49. Zheng C., Guo S., Kern J. L. (2021). Fast Bayesian Estimation for the Four-Parameter Logistic Model (4PLM). Thousand Oaks, CA: Sage Open; 11, 1–13. doi: 10.1177/21582440211052556 [DOI] [Google Scholar]
  50. Zheng C., Meng X. B., Guo S., Liu Z. (2018). Expectation-maximization-maximization: a feasible MLE algorithm for the three-parameter logistic model based on a mixture modeling reformulation. Front. Psychol. 8:02302. doi: 10.3389/fpsyg.2017.02302 [DOI] [PMC free article] [PubMed] [Google Scholar]
  51. Zimowski M. F., Muraki E., Mislevy R. J., Bock R. D. (2003). BILOG-MG3 User's guide. Skokie, IL: Scientific Software International. [Google Scholar]

Associated Data

This section collects any data citations, data availability statements, or supplementary materials included in this article.

Supplementary Materials

Supplementary_File_1.docx (952.9KB, docx)

Data Availability Statement

The original contributions presented in the study are included in the article/Supplementary material, further inquiries can be directed to the corresponding author/s.


Articles from Frontiers in Psychology are provided here courtesy of Frontiers Media SA

RESOURCES