PyGellermann: a Python tool to generate pseudorandom series for human and non-human animal behavioural experiments
- PMID: 37403146
- PMCID: PMC10320995
- DOI: 10.1186/s13104-023-06396-x
PyGellermann: a Python tool to generate pseudorandom series for human and non-human animal behavioural experiments
Abstract
Objective: Researchers in animal cognition, psychophysics, and experimental psychology need to randomise the presentation order of trials in experimental sessions. In many paradigms, for each trial, one of two responses can be correct, and the trials need to be ordered such that the participant's responses are a fair assessment of their performance. Specifically, in some cases, especially for low numbers of trials, randomised trial orders need to be excluded if they contain simple patterns which a participant could accidentally match and so succeed at the task without learning.
Results: We present and distribute a simple Python software package and tool to produce pseudorandom sequences following the Gellermann series. This series has been proposed to pre-empt simple heuristics and avoid inflated performance rates via false positive responses. Our tool allows users to choose the sequence length and outputs a .csv file with newly and randomly generated sequences. This allows behavioural researchers to produce, in a few seconds, a pseudorandom sequence for their specific experiment. PyGellermann is available at https://github.com/YannickJadoul/PyGellermann .
Keywords: Animal cognition; Experimental psychology; Go/no-go; Psychometrics; Python; Randomization; Simple heuristics; Two-alternative forced-choice.
© 2023. The Author(s).
Conflict of interest statement
The authors declare that they have no competing interests.
Figures



Similar articles
-
A short, animated video to improve good COVID-19 hygiene practices: a structured summary of a study protocol for a randomized controlled trial.Trials. 2020 Jun 3;21(1):469. doi: 10.1186/s13063-020-04449-1. Trials. 2020. PMID: 32493460 Free PMC article.
-
NeuroPycon: An open-source python toolbox for fast multi-modal and reproducible brain connectivity pipelines.Neuroimage. 2020 Oct 1;219:117020. doi: 10.1016/j.neuroimage.2020.117020. Epub 2020 Jun 6. Neuroimage. 2020. PMID: 32522662
-
Mix, a program for pseudorandomization.Behav Res Methods. 2006 Nov;38(4):584-9. doi: 10.3758/bf03193889. Behav Res Methods. 2006. PMID: 17393828
-
The DynaSig-ML Python package: automated learning of biomolecular dynamics-function relationships.Bioinformatics. 2023 Apr 3;39(4):btad180. doi: 10.1093/bioinformatics/btad180. Bioinformatics. 2023. PMID: 37079725 Free PMC article.
-
Dietary glycation compounds - implications for human health.Crit Rev Toxicol. 2024 Sep;54(8):485-617. doi: 10.1080/10408444.2024.2362985. Epub 2024 Aug 16. Crit Rev Toxicol. 2024. PMID: 39150724
Cited by
-
Vocal usage learning and vocal comprehension learning in harbor seals.BMC Neurosci. 2024 Oct 4;25(1):48. doi: 10.1186/s12868-024-00899-4. BMC Neurosci. 2024. PMID: 39367300 Free PMC article.
References
-
- Ortiz ST, Maxwell A, Hernandez A, Hansen KA. Does participation in acoustic experiments improve welfare in captive animals? A case study of three grey seals (Halichoerus grypus). bioRxiv. 2020:2020-08.
-
- Lazareva OF. Perceptual categorization in pigeons. In: Kaufman AB, Call J, Kaufman JCE, editors. Cambridge handbooks in psychology. Cambridge: Cambridge University Press; 2021.
-
- Ortiz ST, Maxwell A, Krasheninnikova A, Wahlberg M, Larsen ON. Problem solving capabilities of peach-fronted conures (Eupsittula aurea) studied with the string-pulling test. Behaviour. 2019;156(5–8):815–46. doi: 10.1163/1568539X-00003539. - DOI
MeSH terms
Grants and funding
LinkOut - more resources
Full Text Sources