Cavique, LuísPombinho, PauloTallón Ballesteros, Antonio J.Correia, Luís2020-11-182020-11-182020978-3-030-62364-7(Print)978-3-030-62365-4 (Online)http://hdl.handle.net/10400.2/10184Education covers a range of sectors from kindergarten to higher education. In the education system, each grade has three possible outcomes: dropout, retention and pass to the next grade. In this work, we study the data from the Department of Statistics of Education and Science (DGEEC) of the Education Ministry. DGEEC maintains those outcomes for each school year, therefore, this study seeks a longitudinal view based on student flow. The document reports the data pre-processing, a stochastic model based on the pre-processed data and a data generation process that uses the previous model.engData pre-processingData generationStudent flowStochastic modelData pre-processing and data generation in the student flow case studyconference object10.1007/978-3-030-62365-4_4