Modelling a timeseries of cumulative maximum

There seem to be some issues with the math related to latex syntax or definition of latex blocks