The theory of signals and its application to human behaviour