A novel mathematical approach to the study of behavioral readout