Robustly estimating the marginal likelihood for cognitive models via importance sampling
Minh-Ngoc Tran, Marcel Scharth, David Gunawan, Robert Kohn, Scott D., Brown, Guy E. Hawkins

TL;DR
This paper introduces an efficient importance sampling method for unbiasedly estimating the marginal likelihood in Bayesian models with intractable likelihoods, facilitating model comparison in cognitive science.
Contribution
It proposes a novel importance sampling approach that provides unbiased marginal likelihood estimates using samples from MCMC, with robustness and computational efficiency.
Findings
Method successfully estimates marginal likelihood in hierarchical cognitive models.
Approach is robust to sampling quality and target distribution.
Code implementation is freely available for further research.
Abstract
Recent advances in Markov chain Monte Carlo (MCMC) extend the scope of Bayesian inference to models for which the likelihood function is intractable. Although these developments allow us to estimate model parameters, other basic problems such as estimating the marginal likelihood, a fundamental tool in Bayesian model selection, remain challenging. This is an important scientific limitation because testing psychological hypotheses with hierarchical models has proven difficult with current model selection methods. We propose an efficient method for estimating the marginal likelihood for models where the likelihood is intractable, but can be estimated unbiasedly. It is based on first running a sampling method such as MCMC to obtain samples for the model parameters, and then using these samples to construct the proposal density in an importance sampling (IS) framework with an unbiased…
| Choice attributes | Values | Parameters |
|---|---|---|
| Alternative specific constant for “take the test” | 1 | |
| Whether patient knows doctor | 0 (no), 1 (yes) | |
| Whether doctor is male | 0 (no), 1 (yes) | |
| Whether test is due | 0 (no), 1 (yes) | |
| Whether doctor recommends test | 0 (no), 1 (yes) | |
| Test cost | {0, 10, 20, 30} |
| 1 | 0.77 | 0.97 |
|---|---|---|
| 5 | 0.93 | 0.99 |
| 10 | 0.97 | 1.00 |
| 100 | 1.00 | 1.00 |
| 1.00 | 1.00 |
| Model | I | II | III | IV | V |
|---|---|---|---|---|---|
| PMwG (in minutes) | 54.70 | 62.76 | 55.88 | 57.05 | 62.03 |
| (in minutes) | 31.88 | 34.27 | 34.44 | 33.54 | 35.49 |
| Total CPU time (in minutes) | 86.58 | 97.03 | 90.32 | 90.59 | 97.52 |
| Model | I | II | III | IV | V |
|---|---|---|---|---|---|
| PMwG (in minutes) | 100.52 | 103.01 | 107.60 | 105.40 | 116.25 |
| (in minutes) | 35.82 | 39.58 | 42.96 | 45.24 | 57.88 |
| Total CPU time (in minutes) | 136.34 | 142.59 | 150.56 | 150.64 | 174.13 |
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Robustly Estimating the Marginal Likelihood for Cognitive Models via Importance Sampling
M.-N. Tran The University of Sydney Business School
M. Scharth11footnotemark: 1
D. Gunawan UNSW Business School, University of New South Wales
R. Kohn22footnotemark: 2
S. D. Brown School of Psychology, University of Newcastle
G. E. Hawkins33footnotemark: 3 111The research of Tran, Gunawan, Kohn and Brown was partially supported by Australian Research Council grant DP180102195. Hawkins was partially supported by Australian Research Council grant DE170100177. Tran and Kohn thank Michael Pitt for some useful discussions that led to the development of Proposition A1.
Abstract
Recent advances in Markov chain Monte Carlo (MCMC) extend the scope of Bayesian inference to models for which the likelihood function is intractable. Although these developments allow us to estimate model parameters, other basic problems such as estimating the marginal likelihood, a fundamental tool in Bayesian model selection, remain challenging. This is an important scientific limitation because testing psychological hypotheses with hierarchical models has proven difficult with current model selection methods. We propose an efficient method for estimating the marginal likelihood for models where the likelihood is intractable, but can be estimated unbiasedly. It is based on first running a sampling method such as MCMC to obtain samples for the model parameters, and then using these samples to construct the proposal density in an importance sampling (IS) framework with an unbiased estimate of the likelihood. Our method has several attractive properties: it generates an unbiased estimate of the marginal likelihood, it is robust to the quality and target of the sampling method used to form the IS proposals, and it is computationally cheap to estimate the variance of the marginal likelihood estimator. We also obtain the convergence properties of the method and provide guidelines on maximizing computational efficiency. The method is illustrated in two challenging cases involving hierarchical models: identifying the form of individual differences in an applied choice scenario, and evaluating the best parameterization of a cognitive model in a speeded decision making context. Freely available code to implement the methods is provided. Extensions to posterior moment estimation and parallelization are also discussed.
Keywords: Bayesian inference; Hierarchical LBA model; Model selection; Parallel computation; Standard error; Unbiased likelihood estimate.
1 Introduction
Many psychologically interesting research questions involve comparing competing theories: Does sleep deprivation cause attentional lapses? Does alcohol impair the speed of information processing or reduce cautiousness, or both? Does the forgetting curve follow a power or exponential function? In many cases, the competing theories can be represented as a set of quantitative models that are applied (“fitted”) to the observed data. We can then estimate a metric that quantifies the degree to which each model accounts for the patterns observed in data balanced against its flexibility. Model flexibility is often defined as the range of data patterns that a model can predict, which includes patterns that were observed as well as patterns that were not observed. Flexibility is an important consideration in model choice as it assesses the degree to which a theory is suitably constrained to predict the observed data and that it does not simply predict many possible patterns that were not observed; the latter form of model is theoretically non-informative as it “predicts” almost any pattern that could be observed. Many methods exist that attempt to quantitatively account for the flexibility of models, and hence inform model choice, including likelihood ratio tests, various information criteria (e.g., Akaike, Bayesian and Deviance Information Criteria; AIC, BIC, and DIC, respectively), minimum description length, cross validation and others, with varying degrees of success. The emerging gold standard in quantitative psychology is the marginal likelihood; the commonly cited Bayes factor is the ratio of the marginal likelihoods of two models.
The marginal likelihood of a model is the average likelihood of the model given the data, where the average is taken over the prior distribution of the model parameters. By integrating the likelihood across the prior predictive space of a model, the marginal likelihood has the attractive property that it inherently accounts for the flexibility of the model. This removes the need for post-hoc complexity corrections to goodness of fit measures, as implemented in the “information criteria” metrics (e.g., AIC, BIC, DIC), because it provides a guarantee that a model which accounts for the observed patterns in data and few other possible though unobserved patterns will be quantitatively favored over a competing model which accounts for the observed data but also provides the capacity to account for many other patterns that were not observed. This occurs because the latter model would have low likelihood across the (many) regions of the prior space where data were not observed, which lowers the marginal likelihood.
Although theoretically attractive, estimating the marginal likelihood for psychologically interesting models poses a number of practical challenges. The likelihood function is the density function of the data with the participant-level parameters (also called random effects) integrated out, when viewed as a function of the group-level parameters. It is usually analytically or computationally intractable for psychological and statistical models because it is an integral that cannot be evaluated. This can be the case even in conceptually very simple models. For example, in generalized linear mixed models where random effects (e.g., model parameters for individual participants) account for the dependence between observations from the same individual (Fitzmaurice et al.,, 2011), the likelihood is often intractable because it is an integral over the random effects. Recent advances in particle Markov chain Monte Carlo (P-MCMC) methods extend the scope of the applications of Bayesian inference to cases where the likelihood is intractable (see Andrieu and Roberts,, 2009; Andrieu et al.,, 2010; Chopin et al.,, 2013; Tran et al.,, 2016). However, some basic problems such as estimating the marginal likelihood and the standard error of this estimator remain challenging, because the marginal likelihood is the density of the data with both the group-level parameters and random effects integrated out. Section 2 discusses some existing approaches for addressing this challenge.
Our article proposes an importance sampling (IS) approach for estimating the marginal likelihood when the likelihood is intractable but can be estimated unbiasedly. The method is implemented by first running a sampling scheme such as MCMC, whose draws are used to form an importance distribution for the fixed parameters. We then estimate the marginal likelihood using an unbiased estimate of the likelihood combined with this importance distribution. We call this approach Importance Sampling Squared , as it is itself an importance sampling (IS) procedure and we can often estimate the likelihood by IS. We claim that it has several advantages over competing methods for estimating the marginal likelihood. The three most important ones are that a) it produces an unbiased estimate of the marginal likelihood; b) the method is robust against potential issues with the samples used to form the proposals; and c) it provides an easily computable and cheap estimate of the variability of the marginal likelihood estimator. Unbiasedness means that we can approach the true value and easily lower the variance of the estimator by getting more samples. Robustness means that the marginal likelihood estimator is simulation consistent even when the MCMC sampler has not yet converged to the posterior distribution of interest. This can mean that the MCMC may have a slightly perturbed posterior as a target or that the MCMC has the posterior as a target but it may not as yet have converged. The reason that works robustly is that it uses importance weights to correct for bad importance samples. Estimating the variability of the estimator directly means that we do not have to replicate the algorithm to obtain reliable estimates of the standard error of the estimator. These observations in turn suggest that it may be desirable to run the initial MCMC in parallel, and without rigorously requiring each MCMC to converge before forming the proposals for IS. Sections 2, 5 and Section A1 of the appendix expand on these points.
The rest of the paper is organized as follows. Section 2 introduces the general model under consideration, reviews several competing approaches for estimating the marginal likelihood, and briefly compares them to our approach. Section 3 gives a detailed description of the method. Section 4 illustrates the method in two applications, which show that the method gives accurate estimates of the marginal likelihood and its standard error in reasonable computing time. Section 5 concludes and discusses future work on speeding up the computation. Sections A1 to A5 are five appendices. Section A1 outlines how our results on estimating the marginal likelihood extend to estimating posterior expectations. Section A2 studies the effect on IS of using an estimated likelihood. Section A3 provides further estimation details for the two applications in Section 4 and Section A4 provides additional applications of the method. Finally, Section A5 contains the proofs of all the results in the paper.
2 Marginal Likelihood Estimation for Hierarchical Models
This section defines the class of hierarchical models for which the density function of the observations (individual participant data), conditional on the group-level parameters and a vector of individual level parameters (random effects) is available, but the likelihood is intractable because it is an integral that cannot be computed over the individual random effects. We also briefly review competing approaches.
Let be the vector of observations (responses) for the subject and define as the vector of observations for all subjects. Let , where denotes -dimensional Euclidean space, be the vector of random effects (subject-level parameters) for subject and define as its density. We define as the vector of all random effects in the model (i.e., all subject-level parameters). Let be the vector of unknown group-level parameters and let be the prior for . Assuming that the , are independent given , the joint density of the random effects and the observations is
[TABLE]
We assume the densities , , and are available analytically or numerically (e.g., by numerical integration). However, even when these densities are separately available, the likelihood of the hierarchical model is typically analytically intractable because it is an integral over the random effects:
[TABLE]
By Bayes’ rule, we can express the joint posterior density of and as
[TABLE]
where
[TABLE]
is the marginal likelihood.
The main goal of the article is to develop an efficient method for estimating the marginal likelihood, given samples from the posterior distribution over the group-level parameters and individual-level random effects. These samples will have been obtained through generic sampling routines (e.g., JAGS, STAN) or custom (e.g., differential evolution-MCMC (DE-MCMC) in Turner et al.,, 2013). Even custom samplers still suffer from the problems of high autocorrelation between successive iterates of samples from the posterior, and of slow or uncertain convergence in some problems; for example, when the vector of random effects is high dimensional. These problems can lead to unreliable or biased posterior samples, in which case model selection metrics derived from those posterior samples can also be dramatically wrong. This issue has the potential to influence the reliability of some modern developments in estimating the marginal likelihood for cognitive models, including bridge sampling (Gronau et al.,, 2017, 2019) and thermodynamic integration (Evans and Annis,, 2019). Both of those approaches have the same structure: they begin with posterior samples, and post-process these samples to estimate the marginal likelihood. Both bridge sampling and thermodynamic integration are therefore sensitive to the accuracy of the sampling method – when the posterior samples are biased in some way, the estimated marginal likelihood will also be biased. An alternative approach is to bypass posterior samples altogether. For example, Evans and Brown, (2018) proposed estimating the marginal likelihood directly by Monte Carlo integration over the prior. This method works well in small problems, but it can be highly inefficient. This “direct” method quickly becomes computationally infeasible in high-dimensional problems, or with hierarchically-specified models.
Our paper proposes a new approach. The basic idea is that we first obtain samples of the model parameters (; group level), but not the random effects (; individual participants). These samples are used to form efficient proposal densities for an importance sampling algorithm on the model parameters. The IS2 method therefore does not suffer from the same potential drawbacks as the bridge sampling and thermodynamic integration methods, because the samples are only used to form the proposals for . This means that unreliable samples of may lead to inefficient proposal densities, which can decrease the efficiency of the IS2 method, but will not lead to bias in the marginal likelihood. In fact, the IS2 method makes it possible to obtain unbiased and simulation consistent estimators of the marginal likelihood without ensuring that the underlying Markov chain(s) have in fact converged, although they need to produce reasonable estimates of the posterior. Section 5 discusses the robustness property of the IS2 estimator and how to use it to speed up the estimation of the marginal likelihood and posterior moments.
3 Estimating the Marginal Likelihood by
The likelihood of hierarchical models of the form in Equation (2) can be analytically intractable, though it can be estimated unbiasedly using importance sampling (other hierarchical models such as state space models may require a particle filter). Let be a family of proposal densities that we use to approximate the conditional posterior densities . Let be a proposal density for the group-level parameters, . We note that many different methods can be used to obtain efficient and reliable proposals for the group-level parameters and for the random effects , for each subject . A simple frequently used approach takes the proposal as a multivariate Student t distribution with a small number of degrees of freedom, whose location is a mode of the log-likelihood and whose scale matrix is the inverse of minus the Hessian matrix at this mode. Our article constructs the proposal distribution by first running MCMC, even just a short MCMC, to obtain samples from the posterior distribution. We then construct a proposal distribution in the IS2 procedure by fitting a mixture of normal or Student t distributions to these samples, as outlined in Section 4 and Appendix A3.
The density is estimated unbiasedly by
[TABLE]
where and is the number of importance samples used in the likelihood estimate, which we will refer to as the number of “particles”. We note that for importance sampling to be effective, it is necessary for the support of to contain the support of its corresponding conditional density (i.e., the tails of the proposal should be fatter than the tails of the target). This condition for importance sampling is usually easily satisfied using the defensive sampling approach in Hesterberg, (1995). Appendix A3 discusses the defensive sampling approach and the proposal . Hence,
[TABLE]
is an unbiased estimator of the likelihood . To choose an optimal number of particles , discussed in Section A2.1, we use the delta method to estimate the variance
[TABLE]
of . This gives the estimate
[TABLE]
We now rewrite Equation (4) to show how it can be estimated by IS. Let consist of all random variables used to construct for a given value of , with the density of . In practice, as will be clear shortly, it is unnecessary to know . We also equivalently write as . Then is unbiased if
[TABLE]
Let be the proposal for obtained by MCMC or otherwise. Then, the marginal likelihood is given by
[TABLE]
This leads to the IS2 estimator,
[TABLE]
Algorithm 1 outlines the algorithm for obtaining an estimate of the marginal likelihood. On a practical note, the algorithm is well-suited to efficient parallelization, by processing particles (importance samples) independently in steps (1) and (2).
The usual way to estimate the standard error of the marginal likelihood estimator is by replication, i.e., by estimating the marginal likelihood estimator a number of times and then computing the standard deviation of these estimates. However, reliable estimation by replication can take a long time. An important advantage of our method is that it is straightforward to estimate the standard error of the marginal likelihood estimator . This affords researchers greater confidence in application of the estimated marginal likelihood, and also permits a simpler investigation of the tradeoff between efficiency and bias. The variance estimator is
[TABLE]
It is clear that under mild conditions the IS2 estimator is unbiased, simulation consistent and tends to normality as it is an IS estimator. Theorem 1 formally states these results and Section A5 of the Appendix gives its proof.
Theorem 1**.**
Let be the number of samples for and the number of particles for estimating the likelihood. Under the assumptions in Theorem A1 in Section A1.1 of the Appendix.
(i) and as for any .
(ii) \sqrt{M}\big{(}\widehat{p}_{\text{\rm IS}^{2}}\left({y}\right)-p\left({y}\right)\big{)}\overset{d}{\rightarrow}N\left(0,{\sigma}^{2}_{p_{\text{\rm IS}^{2}}(y)}\right) and as for any .
There is a trade-off between the statistical precision of the IS2 estimator (in terms of the variance from Equation (12)) and the computational cost of obtaining the estimate. A large number of particles gives a more accurate estimate of the likelihood with greater computational cost, while a small results in a likelihood estimator that is cheap to evaluate but has larger variance. Section A2 of the Appendix provides theoretical and practical guidelines of this tradeoff. Proposition A1 in Section A2.2 shows that the optimal in the tradeoff between accuracy and computational cost is such that the variance of the log-likelihood estimator is approximately 1.
4 Applying the IS2 Method to Data
This section describes two applications of the IS2 method to real data. The applications are chosen from quite different domains – the first focuses on choice in a health context, the second focuses on an experimental manipulation in cognition. We chose these applications as they are challenging cases for estimating marginal likelihoods, and thus represent good test cases for illustrating the power of our method. They also emphasize that the IS2 method is not restricted to a particular domain of application or model class. It is a general method for estimating the marginal likelihood and the standard error of that estimate and can be applied in a variety of other contexts where quantitative models are estimated from data in a hierarchical framework including the study of attention, decision making, categorization, and memory.
4.1 Individual differences in health-related decisions
The first application explores individual differences in preferences for health decision making, by examining choices for hypothetical appointments with a health practitioner. A common approach to understanding individual differences in applied contexts is to assume that different individuals have different utility parameters, where the utility represents the subjective value placed on the attributes that describe the products and services on offer. In this sense the utility is a quantitative estimate of what people like and what they dislike. A common way to model individual differences in choices is to then assume individual differences in utility parameters, commonly described as “taste heterogeneity”. The mixed logit model is the most common framework for modeling individual differences in utilities (Train,, 2009), which assumes utility parameters are multivariate normal distributed in the population. Nevertheless, more recent research suggests that all individuals might hold the same (or have sufficiently similar) utilities except that those utilities can be scaled up or down for different individuals (Fiebig et al.,, 2010). This approach assumes that the ratio of the utilities for pairs of items is constant across participants though the absolute difference between those utilities can differ. This “scale heterogeneity” means that some people make more random choices than others, though their latent preferences, in the limit of very many trials, are similar.
The key model comparison question in this context is whether the choices observed in a population of participants are more consistent with individual differences in latent preferences (taste) or individual differences in choice consistency (scale). We tested this idea for the data reported in Fiebig et al., (2010) in a study where women made choices about choice scenarios for a pap smear test, where each scenario was defined by a combination of the values of the choice attributes listed in Table 1 (not all unique combinations were presented). For example, one choice scenario might be that the pap smear would be conducted by a female doctor who is unknown to the patient, the test is not due though the doctor recommends it, with a cost of $20. The participant is then asked whether they would take this test or not.
Our goal is to test whether choices in the pap smear test data provide greater support for the presence of individual differences in latent preferences, or the presence of individual differences in latent preferences and choice consistency. For this goal, we estimated different models which instantiated the different hypotheses. We then used the IS2 method to estimate the marginal likelihoods of those models, and used those estimates for model selection via Bayes factors.
4.1.1 Behavioural model
We analyse the choice data with the generalized multinomial logit (GMNL) model (Fiebig et al.,, 2010), a generalization of the mixed logit model, that accounts for individual differences in both latent preferences and choice consistency. We let the observed choice for participant in scenario be if the participant chooses to take the test and otherwise. The general form of the GMNL for the probability of individual on trial selecting the test is
[TABLE]
where and are the vectors of utility weights and choice attributes respectively. As is standard in most consumer decision research, the GMNL model assumes that the attributes comprising an option (i.e., a hypothetical appointment) each have an associated utility, and the utility of an option as a whole is the sum of the component attribute utilities. The summed utility probabilistically generates a choice via the Luce choice rule, as shown in Equation (13). The model also allows for an a priori bias toward accepting or rejecting the test at each trial independent of the feature values of the test, known as an alternative specific constant; , with .
The utilities for individual participants are modeled as
[TABLE]
with and . The expected value of the scaling coefficients is one, implying that . We set the across-participant variance parameter for the cost attribute to zero () as we found no evidence of heterogeneity across individuals for this attribute, beyond the scaling effect. As the sum of the probabilities over the possible choice options in Equation (13) is 1 (i.e., take the test, or not), to make the model identified we set the coefficients with respect to (not taking the test) to zero.
The GMNL model accounts for individual differences in latent preferences (taste) and choice consistency (scale) through the parameters and , respectively. When (so that for all individuals), the GMNL model reduces to the mixed logit model. The mixed logit model captures heterogeneity in consumer preferences by allowing individuals to weight the choice attributes differently (i.e., individual differences in attribute utilities). By introducing taste heterogeneity, the mixed logit model avoids the restrictive independence of irrelevant alternatives property of the standard multinomial logit model.
The GMNL model additionally allows for differing choice consistency across individuals, known as scale heterogeneity, through the random variable . This variable changes all attribute weights simultaneously, allowing the model to predict choices to be more random for some consumers than others, such that smaller values of (so that ) indicate differences in latent preferences where larger values of (so that ) indicate differences in choice consistency. The parameter weights the specification between two alternative ways of introducing heterogeneity into the model.
The parameter vector is , while the vector of random effects for each individual is . The likelihood is therefore
[TABLE]
where is the observed choice, and is given by the choice probability in Equation (13). We use diffuse priors specified as , , , , for , , and . The standard deviation parameters have half-Cauchy priors (Gelman,, 2006). Section A3 of the Appendix provides complete details of the estimation procedure.
4.1.2 Results
We estimated the posterior distribution using importance samples for the parameters, and estimated the Monte Carlo standard errors by bootstrapping the importance samples because we found that bootstrapping gave the most stable results of the estimator. Appendix A3 gives implementation details. The log marginal likelihood (with standard error) for the mixed logit and GMNL models were (.003) and (.012), respectively. The Monte Carlo standard errors are very small, indicating the IS2 method is highly efficient. The estimates of the log marginal likelihood allow us to calculate a Bayes factor of approximately 20 for the GMNL model over the mixed logit model; = .
The larger marginal likelihood for the GMNL model than the mixed logit model provides some evidence for the presence of scale heterogeneity for this data set. Corroborating evidence comes from the parameter estimates. The posterior mean for was .17 (90% credible interval [.014–.452]), where the weight for scale heterogeneity in the GMNL model was . This means that assuming individuals only differed in their latent preferences (taste heterogeneity) did not sufficiently capture the trends in data. Some participants also made more variable choices than others (scale heterogeneity).
4.2 The speed-accuracy tradeoff in perceptual decisions
Our second application explores the cognitive processes involved in perceptual decisions. We examine decision making in the context of the well-studied speed-accuracy tradeoff: the finding that electing to make faster decisions decreases decision accuracy and, conversely, that electing to increase decision accuracy causes decisions to become slower (see Heitz,, 2014, for a review). The speed-accuracy tradeoff is typically attributed to changes in caution – the quantity of evidence required to trigger a response (i.e., the response threshold). Here, we apply the method to a class of decision making models in the Linear Ballistic Accumulator (LBA; Brown and Heathcote,, 2008) framework to confirm that model choice via the marginal likelihood is consistent with existing methods of model choice in the literature.
We draw upon data reported by Forstmann et al., (2008) coming from an experiment in which participants were required to make difficult motion discrimination decisions under varying degrees of time pressure. The participants made repeated decisions about whether a cloud of semi-randomly moving dots appeared to move to the left or to the right of a display. Participants made these decisions under three conditions that differed in their task instructions: they were asked to respond as accurately as possible (condition 1: “accuracy emphasis”), at their own pace (condition 2: “neutral emphasis”), or as quickly as possible (condition 3: “speed emphasis”). The three conditions were randomized across trials. A visual cue described the decision emphasis on a trial-by-trial basis prior to stimulus onset. Each subject made 280 decisions in each condition for a total of trials. See Forstmann et al., (2008) for all remaining details.
Freely available code applying the IS2 method to one of the hierarchical LBA models described here is available at osf.io/xv59c. Section A4 of the Appendix also provides two additional applications of the IS2 method to the hierarchical LBA: one application to the speed-accuracy tradeoff in lexical decisions, and a second application to response bias in lexical decisions. Code for these two examples is also available at the same repository.
4.2.1 Behavioural model
We analyse the choice and response time data with a hierarchical LBA model. In a typical perceptual decision making experiment, the observation for the participant contains two pieces of information. The first is the response choice, denoted by , where is the number of response alternatives. The second is the response time (RT), denoted by . Brown and Heathcote, (2008) derived the joint density and cumulative distribution function of the finishing time of an LBA accumulator over response choice and response time. The finishing time distribution for each of the LBA accumulators is determined by five parameters: the mean and standard deviation of the drift rate distribution , the threshold parameter , the width of the start point distribution , and the non-decision time . It is common to set the standard deviation of the drift rate distribution to one, i.e. (see also Donkin et al.,, 2009). The probability density of the accumulator reaching the threshold at time , and the other accumulators not reaching the threshold prior to time , is
[TABLE]
where and are the density and distribution functions for the finishing times of a single LBA accumulator (for details see Brown and Heathcote,, 2008; Terry et al.,, 2015). In a two-choice experiment where response bias is not expected, it is convenient to define the means of the drift rate distributions as , where is the mean of the drift rate for the accumulator corresponding to the incorrect response and is the mean of the drift rate for the accumulator corresponding to the correct response. Together, these assumptions imply that each subject , , has the vector of random effects
[TABLE]
With the usual assumption of independence, the conditional density of all the observations is
[TABLE]
We follow the notation and assumptions in Gunawan et al., (2019). For each subject , let the vector of random effects
[TABLE]
where , , , and . We take the following prior densities (as in Gunawan et al.,, 2019): is , where is the dimension of , and the hierarchical prior for is
[TABLE]
where , are positive scalars and is the diagonal matrix with diagonal elements .222The notation means an inverse Wishart distribution with degrees of freedom and scale matrix and the notation means an inverse Gamma distribution with scale parameter and shape parameter . This is the marginally non-informative prior of Huang and Wand, (2013). Following Gunawan et al., (2019), we set and for all . These settings lead to half- marginal prior distributions for the standard deviations of and uniform marginal prior distributions for the off-diagonal correlations implied by .
We tested whether the changes in task instructions across the three experimental conditions caused changes in observed decision behaviour that is consistent with changes in decision caution. We compared four LBA models. For consistency with the notation above, we refer to instructions that emphasize accuracy, neutral or speedy decisions as , and , respectively, and the correct and error accumulators as and , respectively.
Model I
assumes no differences in parameters across the three conditions, i.e., a null model. This model corresponds to the psychological assumption that performance is not influenced by the instructions given to participants. The vector of random effects for subject is
[TABLE]
Model II
assumes there are two response threshold parameters. One threshold parameter defines decision-making in the accuracy- and neutral-emphasis conditions, and the second threshold parameter in the speed-emphasis condition. This makes the simplifying assumption that performance in two of the three conditions is so similar as to be effectively identically distributed,
[TABLE]
Model III
assumes there are three response threshold parameters, one for each condition. This model assumes that the participant responds to each condition with a different level of caution, though otherwise with identically distributed parameters,
[TABLE]
Model IV
assumes there are separate response threshold and non-decision time parameters for each condition. This model assumes that instructions to emphasise speedy, neutral or accurate decisions influence not only cautiousness but also the time required to perceptually encode the stimulus and produce a motor response (non-decision time),
[TABLE]
As in the first application, Section A3 of the Appendix provides complete details of the estimation procedure.
4.2.2 Results
Once we obtained samples from the posterior, we ran the algorithm with draws to estimate the log of the marginal likelihood, , and adaptively set the number of particles that were used to estimate the likelihood such that the variance of the log-likelihood estimates did not exceed ; recall that is the optimal variance of the log-likelihood (cf. Section 3). We initiated this adaptive procedure by starting with particles and computed the variance of the log-likelihood given in Equation (7). If the variance was greater than 1, we increased the number of particles. We again estimated the Monte Carlo standard error of the log of the marginal likelihood estimates by bootstrapping the importance samples because we found that bootstrapping gave the most stable results.
The log marginal likelihoods (with standard errors) for Models I, II, III and IV are, respectively, 5204.17 (0.11), 7352.75 (0.06), 7453.73 (0.10) and 7521.44 (0.17), with a total computation time of around 80 minutes. As in the first application, the Monte Carlo standard errors are very small, suggesting that IS2 is highly efficient. The marginal likelihoods favor Model IV – allowing a separate response threshold and a separate non-decision time for each instruction condition. This outcome is partially consistent with Forstmann et al., (2008), but also suggests that the non-decision time – the combined time required to perceptually encode a stimulus and produce a motor response – changes with instruction condition.
5 General Discussion and Future Work
Model comparison is the means by which competing theories are rigorously evaluated and compared, which is fundamental to advancing psychological science. Many quantitative approaches to model comparison in psychology have struggled to appropriately account for model flexibility – the range of data patterns that a model can predict. For example, commonly used methods such as AIC and BIC measure the flexibility of a model simply by counting the number of freely estimated model parameters. This is problematic because not all parameters are equal, in terms of complexity, and models with the same numbers of parameters can be quite different in complexity. In some cases, adding extra parameters to a model can even decrease the complexity, for example when a hierarchical distribution structure is added to constrain otherwise-independent models for individual participants. Model selection via the marginal likelihood is one of the few methods that naturally accounts for model flexibility.
Despite its theoretical advantages, the marginal likelihood has seen limited uptake in practice for all but the simplest of psychological models, owing to its prohibitive computational cost. Although many psychologically interesting models have analytic, numerical or rapidly-simulated solutions for the responses of individual participants (e.g., the density of observed choices and response times of individual participants), the likelihood for hierarchical versions of those same models can be analytically intractable because they contain an integral over the individual random effects. This has proved to be the stumbling block in previous attempts to compute the marginal likelihood for hierarchical implementations of psychological models.
Our article develops a method for Bayesian model comparison when the likelihood (of a hierarchical model) is intractable but can be estimated unbiasedly. We show that when the density of individual observations conditioned on group- and individual-level parameters is available, an importance sampling algorithm can provide an unbiased estimate of the marginal likelihood of hierarchical models. We term this approach importance sampling squared (). The method can be applied to samples from the posterior distribution over a model’s parameters obtained following any sampling method. Section A2 of the Appendix studies the convergence properties of the estimator and provides practical guidelines for optimally selecting the number of particles required to estimate the likelihood.
We show how the method can be used to estimate the marginal likelihood in hierarchical models of health decision making and choice response time models. In both applications, the method estimates the marginal likelihood in a principled way, providing conclusions that are consistent with the current literature. In all cases, the marginal likelihood is estimated with very small Monte-Carlo standard errors. To aid researchers in using the IS2 method in their own research, we provide scripts implementing the key elements of the method, as applied to data from Forstmann et al., (2008) and Wagenmakers et al., (2008) – see osf.io/xv59c for more details.
The data applications highlight two important properties of the method: it is an efficient and unbiased estimator of the marginal likelihood, and it provides a standard error of the estimator. The marginal likelihood is a key quantity in appropriately accounting for model flexibility in quantitative model comparison. The standard error of an estimator is essential for interpreting any model comparison metric, not just marginal likelihoods, as it expresses the variability of the estimated metric. This is equally important in quantitatively comparing psychological models as it is in the interpretation of conventional statistics, despite being routinely overlooked. No researcher would conclude the population means of two groups differ solely on the basis of a difference in their sampled group means – we would demand a measure that expresses the magnitude of the mean difference as a function of its variability, like a -test. The method provides the researcher with the tools to do precisely this with potentially complex and non-linear psychological models: it estimates the magnitude of differences (marginal likelihoods for different models) as a function of the variability of those estimates (the standard errors).
We emphasize that the method is general and can be used to estimate the marginal likelihood and its standard error from models where the density of individual observations conditioned on group-level parameters and a vector of individual-level parameters is available. This is quite a general scenario – reaching beyond the models studied here, and decision-making models more generally – that applies to a very large category of psychological models for which hierarchical Bayesian parameter estimation has been used to date. This generality holds great promise for as a vehicle for performing model comparison via the marginal likelihood in psychological research.
We also note that the IS2 method is robust, by which we mean that the MCMC draws used to form the proposals do not have to converge to draws from the exact posterior as they are used in IS2 to form importance sampling proposals. Hence, as long as they are roughly in the same region as the posterior, the marginal likelihood estimates will be simulation consistent. The same remarks hold if the MCMC targets a slightly perturbed posterior.
For faster computation, we conjecture that future work could speed up the estimation of the marginal likelihood as follows: a) First, run the MCMC procedure in parallel on chains without worrying about the precise convergence of each chain. In practice this means we can run each chain for far fewer iterates than would be required for carrying out Bayesian inference if the inference was based only on the output of each chain. b) Second, form a proposal density based on the output of all the chains. c) Third, use IS to get robust and unbiased estimates of the marginal likelihood from each of processors. d) Finally, average the estimates to get a final unbiased estimate of the marginal likelihood whose variance is th the variance of each individual estimator. The robustness and unbiasedness properties of the IS2 estimator are crucial in ensuring that bias does not dominate the variance as becomes large.
We note in Section A1 of the Appendix that posterior expectations of functions of the parameters can similarly be estimated with IS2, albeit with some very minor bias. We conjecture that such posterior moment estimators will be far more efficient than those obtained from standard MCMC output, but leave to future work such speeding up of the computations of the marginal likelihood and posterior moments.
Finally, we note that the marginal likelihood is sometimes sensitive to the prior, and this might lead to some controversy in using marginal likelihood for model comparison. Addressing this issue is beyond the scope of this paper, and we focus only on how to estimate the marginal likelihood efficiently when the likelihood function is intractable.
Appendix
A1 Using the Method to Obtain Posterior Expectations
The motivation for using so far in this article was to develop an efficient and robust estimator for the marginal likelihood and the standard error of the estimator. This section shows that it is also straightforward to use to robustly estimate expectations with respect to the posterior distribution, as well as the standard errors of these estimators. We also discuss the convergence properties of these estimators.
Using the same notation as in Section 2, the posterior expectation of the function of is
[TABLE]
When the likelihood is intractable, but can be estimated unbiasedly, we can use IS2 to estimate unbiasedly and robustly both the numerator and denominator on the right side of Equation (A1), similarly to Section 3, to obtain
[TABLE]
In Equation (A2), is the unbiased estimate of , with the number of samples or particles used to estimate the likelihood. It is clear that under mild conditions both the numerator and denominator of (A2) will converge to the numerator and denominator respectively of (A1) as , and hence converges to . It is also clear that under very mild conditions the numerator of (A2) becomes normally distributed as , which then means that also converges to normality. These issues are discussed more rigorously below.
We note that while both the numerator and denominator in (A1) are estimated unbiasedly, is a biased estimator of , although the bias goes to 0 as .
In practice, the variances of both the numerator and denominator in (A2), as well as their covariance, can be estimated by the bootstrap and hence both the variance and bias of can be estimated.
A1.1 Some technical results
We now give some large sample (in ) convergence results for assuming that,
Assumption A1**.**
* for every , where the expectation is with respect to the random variables generated in the process of estimating the likelihood.*
It is useful in the rest of this section and Section A5 to follow Pitt et al., (2012) and write as , where is a scalar random variable whose distribution conditional on is governed by the randomness due to estimating the likelihood . Thus, the scalar replaces the multivariate in Section 3. Let be the density of conditional on . Assumption A1 implies that .
Theorem A1**.**
Suppose that Assumption A1 holds, exists and is finite, and , where denotes the support of the distribution .
- (i)
For any , as .
- (ii)
If
[TABLE]
is finite for and for all , then
[TABLE]
where the asymptotic variance in for fixed is given by
[TABLE]
- (iii)
Define
[TABLE]
If the conditions in (ii) hold, then as , for given . The proof is in Section A5.
Although both and depend on , we do not show this dependence explicitly to simplify the notation. Here, all the probabilistic statements, such as the almost sure convergence, must be understood on the extended probability space that takes into account the extra randomness occurring when estimating the likelihood. When the likelihood can be computed, the analogous results are well known in the literature (see, e.g., p.1318, Geweke,, 1989).
A2 The Effect on Importance Sampling of Estimating the Likelihood
The results in the previous section show that it is straightforward to use importance sampling even when the likelihood is intractable but unbiasedly estimated. This section addresses the question of how much asymptotic efficiency is lost when working with an estimated likelihood. We follow Pitt et al., (2012) and Doucet et al., (2015) and make the following idealized assumption to make it possible to develop some intuition and practical guidelines for selecting . Section A5 contains all the proofs unless stated otherwise.
Assumption A2**.**
- (i)
There exists a function such that the density of is , where is a univariate normal density with mean and variance . 2. (ii)
For a given , define . Then, for all .
If is Gaussian, then, by Assumption A1, its mean is times its variance because . Assumption A2 (ii) keeps the variance constant across different values of , thus making it easy to associate the asymptotic variances with . Under Assumption A2, the density depends only on and we write it as .
Lemma A1**.**
If Assumption A2 holds for a fixed , then Equation (A3) becomes
[TABLE]
for both and .
These are the standard conditions for IS (Geweke,, 1989). The proof of this lemma is straightforward and omitted.
Recall that and are respectively the asymptotic variances of the IS estimators we would obtain when the likelihood is available and when it is estimated. We refer to the ratio as the inflation factor, which measures how much the asymptotic variance is inflated when working with an estimated likelihood. Theorem A2 obtains an expression for the inflation factor, shows that it is independent of , greater than or equal to 1 and increases exponentially with , which is the variance of .
Theorem A2**.**
Under Assumption A2 and the conditions in Theorem A1,
[TABLE]
A2.1 Optimal for estimating posterior expectations
This section aims to explicitly take into account both the statistical precision of the estimators and their computational cost. It is apparent that there is a trade-off between these two considerations. A large value of results in a precise estimator so that is small and the relative variance given by Equation (A7) is close to 1. However, the cost of such an estimator will be large due to the large number of particles, , required. Conversely, a small value of results in an estimator that is cheap to evaluate but has a large value of and hence the variance of the IS2 estimator relative to the IS estimator will be large. To explicitly trade-off these considerations, we introduce the computational time which is a product of the relative variance and the computational effort. Minimising results in an optimal value for and hence .
Under Assumption A2, , so that the expected number of particles, over the draws of , is , where . This motivates the assumption that the computational cost is proportional to . From Theorems A1 and A2, the variance of the estimator based on importance samples from is approximated by
[TABLE]
If is the target precision of the estimator , then the required number of samples is , and the required computational cost is proportional to
[TABLE]
Therefore, it makes sense to define the measure of the computing time of the IS2 method (in order to obtain a given precision for the estimators) as
[TABLE]
It is straightforward to check that is minimized at
[TABLE]
and the optimal number of particles is such that .
A2.2 Optimal for estimating the marginal likelihood
Section A2.1 derived the optimal for estimating integrals of the form in Equation (A1). We now show that the optimal is the same when the main goal is to estimate the marginal likelihood.
The marginal likelihood estimator with an estimated likelihood is , with the weights from Equation (10). We noted that where . We again wish to compare the variance of the estimator to that of the IS estimator. Under Assumption A2 that is Gaussian and independent of ,
[TABLE]
Consequently, the relative variance of the two schemes is given by
[TABLE]
where . Following the argument of section A2.1, the corresponding computing time can be defined as
[TABLE]
where the subscript ML indicates this is for the marginal likelihood estimator.
Let minimize for a given . The following proposition, whose proof is obvious and omitted, summarizes some properties of , where below is given by Equation (A10).
Proposition A1**.**
- (i)
For any value of , is a convex function of ; therefore is unique. 2. (ii)
* increases as increases and in (A10) as .*
Table A1 illustrates some of the results of Proposition A1 and shows and the ratio for some common values of used in practice. The table shows that the values of and the ratio are insensitive to , and as increases. From these observations, we advocate using as the optimal value of the variance of the log likelihood estimates in estimating the marginal likelihood.
A3 Estimation Details for the Two Applications
A3.1 Individual differences in health-related decisions
We estimate the likelihood (Equation (14) of the main text) by integrating out the random effects vector for each individual separately using different approaches for the mixed logit and GMNL models. For the mixed logit model, we combine the efficient importance sampling (EIS) method of Richard and Zhang, (2007) with the defensive sampling approach of Hesterberg, (1995). The importance density is the two component defensive mixture
[TABLE]
where is a multivariate Gaussian importance density obtained using EIS. Following Hesterberg, (1995), including the natural sampler in the mixture ensures that the importance weights are bounded. We set the mixture weight as . For the GMNL model, we follow Fiebig et al., (2010) and use the model density as an importance sampler. We implement this simpler approach for the GMNL model because the occurrence of large values of causes the defensive mixture estimates of the log-likelihood to be right skewed in this case.
The repeated questioning of each individual (i.e., choice scenarios) implies that the log-likelihood estimates are sums of independent estimates for each individual. To target a certain variance for the log-likelihood estimator, we chose the number of particles for each individual () and parameter combination such that . We implemented this scheme by using a fixed number of initial importance samples and then used the jackknife method to estimate , the asymptotic variance of , and selected . The preliminary number of particles is for the mixed logit model and for the GMNL model.
To construct efficient and reliable proposal densities for the parameters , we used the “Mixture of by Importance Sampling Weighted Expectation Maximization” approach (MitISEM; Hoogerheide et al.,, 2012). MitISEM constructs a mixture of densities for approximating the target distribution by minimizing the Kullback–Leibler divergence between the target density and the mixture, and it can handle target distributions that have non-standard shapes such as multimodality and skewness; MitISEM effectively approximates the posterior of the two models as two component mixtures of multivariate Student’s distributions. We write , with a fixed random number stream for all . The target distribution in the MitISEM is , which can be considered as the posterior conditional on and the common random numbers . Our procedure is analogous to using common random numbers to obtain simulated maximum likelihood estimates of (see, e.g., Gourieroux and Monfort,, 1995), except that we obtain a histogram estimate of the “posterior” . This “posterior” is biased but is sufficient to obtain a good proposal density.
We implemented two standard variance reduction methods at each IS stage: stratified mixture sampling and antithetic sampling. The first consists of sampling from each component at the exact proportion of the mixture weights. For example, when estimating the likelihood for the mixed logit model we generate exactly draws from the efficient importance density and draws from . The antithetic sampling method consists of generating pairs of perfectly negatively correlated draws from each mixture component (see, e.g., Ripley,, 1987).
A3.2 The speed-accuracy tradeoff in perceptual decisions
We used the Particle Metropolis within Gibbs (PMwG) sampler of Gunawan et al., (2019) to obtain posterior draws of and for each of the four models described in the main text. We fitted a mixture of normal distributions to the samples from the posterior of to obtain the proposal density for the group-level parameters
[TABLE]
where denotes the multivariate normal density function with mean and variance-covariance matrix , and the are the component weights. For practical purposes, we select the number of components using the Bayesian Information Criterion (BIC), and estimate the mixture of normals via Matlab’s built-in function fitgmdist.
Proposal densities for the random effects () were constructed participant-by-participant. For the participant, we first fitted a normal distribution to the samples of , then derived the conditional distribution for . The proposal density for subject is the two-component defensive mixture
[TABLE]
with the prior density of . The inclusion of the prior ensures that the importance weights in Equation (5) are bounded (Hesterberg,, 1995). We set the mixture weight in Equation (A13) to .
A4 Additional Applications of the Hierarchical LBA to Data
This Appendix applies the hierarchical LBA model discussed in Section 4.2 to two additional data sets.
A4.1 The speed-accuracy tradeoff in lexical decisions
This section extends the analysis of the speed-accuracy tradeoff covered in the main text to judgments about the identity of strings of letters. Experiment 1 of Wagenmakers et al., (2008) had participants perform a basic lexical decision task that involved repeated decisions regarding whether letter strings were valid words or not (‘non-words’). Prior to each block of trials, participants were given instructions to respond as quickly as possible (condition 1: speed emphasis) or as accurately as possible (condition 2: accuracy emphasis), where the instruction emphasis alternated between blocks. Concurrent to the speed-accuracy manipulation, word frequency was manipulated across four levels: words of very low frequency (vlf), low frequency (lf) and high frequency (hf), and non-words (nw). Participants completed 20 blocks with 96 trials per block for a total of 1920 lexical decisions per participant. See Wagenmakers et al., (2008) for all remaining details.
Rae et al., (2014) re-analysed Wagenmakers et al., (2008)’s data to test whether instructions manipulating the speed-accuracy tradeoff only cause changes in decision caution (response threshold parameters) or decision caution and the speed of information processing (drift rate parameters). Through a large-scale maximum likelihood-based parameter estimation exercise, Rae et al., (2014) found evidence that emphasising the speed of decisions caused participants to lower their response threshold and increase their drift rates for correct and incorrect responses. The latter result suggests that time pressure increased the overall drive to respond (an overall increase in both correct and incorrect drift rates) while decreasing accuracy. We reassessed these findings, through the lens of the marginal likelihood, comparing five LBA models. For clarity in the following, we refer to instructions that emphasise accuracy and speed as and , respectively, and the correct and error accumulators as and , respectively.
Model I
assumes there are no behavioural differences across all conditions (i.e., a null model), corresponding to a single set of LBA parameters over conditions. The vector of random effects for subject is
[TABLE]
Model II
assumes that decision caution differs as a function of the task instructions (speed vs accuracy), thus allowing two response threshold parameters,
[TABLE]
Model III
assumes the speed of information processing for the correct response, but not the incorrect response, differs as a function of task instructions,
[TABLE]
where and are the mean drift rates for the accumulators corresponding to the correct response in the speed- and accuracy-emphasis conditions, respectively.
Model IV
extends Model III to also allow variation in the speed of information processing for the incorrect response across task instructions,
[TABLE]
where and are the mean drift rates for the incorrect accumulators in the speed- and accuracy-emphasis conditions, respectively.
Model V
combines Models II and IV, thus allowing the response threshold and the drift rates for correct and incorrect responses to vary as a function of task instructions,
[TABLE]
Table A2 shows the log of the marginal likelihood estimates (with standard errors in parentheses) for the five models. The Monte Carlo standard errors for the estimates are again small for all models, suggesting that the method is very efficient. Unsurprisingly, Model I, the most rigid model that allows no parameter variation across conditions, has the smallest marginal likelihood estimate. Model II, which allows response thresholds to vary with task instruction, provides a better representation of the data than Model III, which only allows the mean correct drift rates to vary with task instruction. Interestingly, Model IV, which allows the correct and incorrect drift rates to vary across speed and accuracy instructions, performs better than a model that only allows the response thresholds to differ over those conditions (i.e., Model II). Overall, the results favour Model V, which allows the response thresholds and the correct and incorrect drift rates to vary with task instructions. This is consistent with the general conclusions of Rae et al., (2014). Relative to instructions emphasising decision accuracy, speed-emphasis instructions cause people to lower their response thresholds and increase their rates of accumulation for both the correct and incorrect response options.
A4.2 Biasing lexical decisions
Here we analyse decisions in the presence of response bias. A common method for inducing biased decisions is to manipulate the proportion of stimuli from different response categories; for example, presenting more stimuli from category 1 than category 2 will result in a greater proportion of responses in favour of category 1 over 2. The effect of this form of bias manipulation is most commonly explained as a decision process that is primed to give a response for the more common stimulus on the basis of less evidence than would be required to give a response for the less common stimulus (Voss et al.,, 2004). The LBA model captures this effect of response-relevant information through differences in the threshold across response options: the more common stimulus has a lower response threshold than the less common stimulus (Brown and Heathcote,, 2008), thus requiring less evidence to trigger a response. This parameter change has been confirmed experimentally (Forstmann et al.,, 2010).
Here, we investigate whether changing the proportion of words and non-words induces response biases in lexical decisions, as reflected in the parameter estimates of the LBA model. Experiment 2 of Wagenmakers et al., (2008) had participants perform a lexical decision task where the proportion of word vs non-word stimuli alternated across blocks: in a ‘word’ block, 75% of the stimuli were words and 25% were non-words; in a ‘non-word’ block the proportions switched such that 75% of the stimuli were non-words and 25% were words. Each block had an approximately equal amount of high, low, and very low frequency words. Participants completed blocks with trials per block for a total of 1920 lexical decisions per participant. See Wagenmakers et al., (2008) for all other details.
We test whether the word vs non-word response proportion manipulation affected the response threshold parameters of the LBA model in the expected direction. We used the marginal likelihood to compare five LBA models. In addition to the notation introduced above, we refer to the stimulus manipulation of the proportion of words and non-words as and , where refers to the condition with 75% words and 25% non-words and vice versa for , and and to refer to a response of word and non-word, respectively.
Model I
again assumes constancy in LBA parameters across conditions,
[TABLE]
Model II
assumes that the response threshold varies as a function of the proportion manipulation (, ) but does not differ for responses of words or non-words (, ),
[TABLE]
Model III
assumes that the two responses (“word”, ; “non-word”, ) are governed by accumulators that had different response thresholds, and these thresholds are also free to vary across the proportion manipulation,
[TABLE]
where and refer to the threshold parameters for word and non-word responses in the 75% word condition, respectively, and similarly for and in the 75% non-word condition.
Model IV
has a parallel structure to Model III except that the proportion manipulation (, ) and response (, ) are assumed to selectively influence non-decision time rather than the response threshold,
[TABLE]
where the random effects , , , and were similarly defined as in the threshold parameters of Model III.
Model V
assumes that the proportion manipulation influences the rate of evidence accumulation for correct and incorrect “word” and “non-word” responses, separately for each proportion condition,
[TABLE]
where and are the vectors of mean drift rates for incorrect and correct responses, respectively. The relevant pair of correct-incorrect drift rates for a given datum are contingent on the proportion condition of the trial (75% words or non-words; , ) and the observed response (word or non-word; , ). Phrased differently, each datum (RT and response choice pair from a single trial) contains information to update 2 of the 8 drift rate parameters.
Table A3 shows the log of the marginal likelihoods for the five models. As in the previous applications, the Monte Carlo standard errors for the estimates are small for all models, although the more complex model V has slightly higher standard errors; nevertheless, even this larger standard error is still much smaller than the differences in the log of the marginal likelihoods between models.
Models that do not allow any parameter variation (I) or a simple threshold change across proportion condition but not response type (II) provide a poor representation of the data; these models do not account for response bias, which suggests there were considerable bias effects present in the data. Assuming independent drift rates for each combination of correct/incorrect, response type and proportion condition (V) provided a much improved fit, though it was still inferior to models that assume a selective influence of the response threshold (III) or non-decision time (IV) on the response type proportion condition interaction. The best account of the data is one in which the biased responses are assumed to arise from a change in the response thresholds (III). The parameter estimates of the preferred model suggest that the biased responses arose from lowered response thresholds for more probable responses.
A5 Proofs
Using the same notation as in Section A1.1, we follow Pitt et al., (2012) and define the joint prior density of and as , so that the posterior density of and is
[TABLE]
and has as a marginal. Hence,
[TABLE]
Thus, we can consider in Equation (A15) as an importance density in and , which will lead to the same IS2 estimate for the marginal likelihood as in Section 3.
Proof of Theorem 1.
Unbiasedness holds because we are dealing with IS. The assumptions in Theorem A1 ensure that ’s are i.i.d with a finite second moment. The results of (i) and (ii) then follow. ∎
Proof of Theorem A1.
If then . This, together with the existence and finiteness of ensures that and exist and are finite. Result (i) follows from the strong law of large numbers. To prove (ii), write
[TABLE]
Let X_{i}=\big{(}\varphi(\theta_{i})-\mathbb{E}_{\pi}(\varphi)\big{)}\widetilde{w}(\theta_{i},z_{i}), , and . The are independently and identically distributed with and
[TABLE]
By the central limit theorem for a sum of independently and identically distributed random variables with a finite second moment, . By the strong law of large numbers, . By Slutsky’s theorem,
[TABLE]
The asymptotic variance is given by
[TABLE]
To prove (iii), write
[TABLE]
∎
Proof of Theorem A2.
Under Assumption 2, and . From Equations (A4) and (A5),
[TABLE]
∎
Open Practices Statement
The two applications cover previously published data sets (Fiebig et al.,, 2010; Forstmann et al.,, 2008). Data and code are available at osf.io/xv59c.
The reference list from the paper itself. Each links out to its DOI / PubMed record.
- 1Andrieu et al., (2010) Andrieu, C., Doucet, A., and Holenstein, R. (2010). Particle Markov chain Monte Carlo methods. Journal of the Royal Statistical Society, Series B , 72:1–33.
- 2Andrieu and Roberts, (2009) Andrieu, C. and Roberts, G. (2009). The pseudo-marginal approach for efficient Monte Carlo computations. The Annals of Statistics , 37:697–725.
- 3Brown and Heathcote, (2008) Brown, S. and Heathcote, A. (2008). The simple complete model of choice reaction time: Linear Ballistic accumulation. Cognitive Psychology , 57:153–178.
- 4Chopin et al., (2013) Chopin, N., Jacob, P. E., and Papaspiliopoulos, O. (2013). SMC 2 : An efficient algorithm for sequential analysis of state space models. Journal of Royal Statistical Society Series B , 75(3):397–426.
- 5Donkin et al., (2009) Donkin, C., Brown, S. D., and Heathcote, A. J. (2009). The over-constraint of response time models: Rethinking the scaling problem. Psychonomic Bulletin & Review , 16:1129–1135.
- 6Doucet et al., (2015) Doucet, A., Pitt, M. K., Deligiannidis, G., and Kohn, R. (2015). Efficient implementation of Markov chain Monte Carlo when using an unbiased likelihood estimator. Biometrika , 102(2):295–313.
- 7Evans and Annis, (2019) Evans, N. J. and Annis, J. (2019). Thermodynamic integration via differential evolution: A method for estimating marginal likelihoods. Behavior Research Methods .
- 8Evans and Brown, (2018) Evans, N. J. and Brown, S. D. (2018). Bayes factors for the linear ballistic accumulator model of decision-making. Behavior Research Methods , 50(2):589–603.
