The links contain the source code and the data needed to reproduce the results presented in the article "Retrieving the structure of probabilistic sequences of auditory stimuli from EEG data". The content is organized as follows: (1) The link "raw data" leads to a zip file with several .raw files, one per participant, in the format generated by the equipment. (2) The link "Preprocessed data" leads to a zip file with several .mat files, one per participant, generated after the preprocessing of the raw data. (3) The link "Source code" leads to a zip file with the Matlab programs used to preprocess and analyse the data. The "Source code" zip file is a copy of the GitHub project neuromat/EEGretrieving as of 2020-01-29. For more details on the structure of these files see the Readme files included with the source code.