Abstract:
In two-alternative forced-choice (TAFC) tasks, decision bias is a systematic tendency to approach or avoid a particular option. From a cognitive process perspective, decision bias can originate from pre‑decision initial bias or from bias during evidence accumulation. Traditional behavioral data analysis cannot reliably distinguish between the two sources. The drift-diffusion model (DDM) provides a theoretical framework to separate them, but accurate modeling depends on matching the modeling approach to the research question: different types of bias require different parameterizations and model specifications. The HDDM toolbox not only offers flexible functions for modeling decision biases but also standardizes data structures and modeling workflows through a unified interface. Based on dockerHDDM, this tutorial systematically introduces methods for modeling decision bias. We first describe the two types of decision bias within the DDM framework and then explain in detail the difference between accuracy coding and choice coding in HDDM, the core principle of parameter flipping, and the implementation of the drift criterion (dc), with complete code examples. Finally, using simulated and empirical data, we systematically compare the suitability of nine modeling combinations for the two types of bias. The results indicate that different biases align with different modeling approaches: starting point bias can be modeled by choice coding or parameter flipping with accuracy coding, whereas drift bias must be estimated via the parameter dc. This tutorial provides a systematic guide from theory to practice for modeling decision biases, covering theoretical foundations, parameter settings, model selection, and result interpretation.