Humans rely on the analysis of sensory input as an important source of knowledge about the world. Especially predicting the ‚when‘ of future events is crucial for successful interaction with our environment. How does the brain exploit the temporal structure of sensory information to predict upcoming events? To address this question, we use psychophysical methods measuring reaction times to auditory and visual stimuli. We construct mathematical models to describe the presumed underlying neuronal computations. Using non-invasive electrophysiological methods, we aim to identify the mechanisms by which these functions are encoded in the brain.