# Adding observed to result of maximum

**URL:** <https://discourse.pymc.io/t/adding-observed-to-result-of-maximum/7826>\
**Category:** Questions\
**Created:** [August 1, 2021, 1:23pm UTC](https://discourse.pymc.io/t/adding-observed-to-result-of-maximum/7826 "2021-08-01T13:23:25Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![Jaime\_Sevilla](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.pymc.io/jaime_sevilla/32/4316_2.png) [@Jaime\_Sevilla](https://discourse.pymc.io/u/Jaime_Sevilla)\
**Post date:** [August 1, 2021, 7:38pm UTC](https://discourse.pymc.io/t/adding-observed-to-result-of-maximum/7826/3 "2021-08-01T19:38:53Z")

</div>

This is an amazingly complete answer, thank you so much!

I was actually trying to implement this as an intermediate step of a more complex model that involved successively taking the maximum of a series of random variables, so (from what I understood from your answer) this solution doesn’t quite work out for me.

I have opened a [new topic with more context](https://discourse.pymc.io/t/modelling-a-timeseries-of-cumulative-maximum/7829), if you find the time to look at that I would really appreciate it!

---

_[View the full topic](https://discourse.pymc.io/t/adding-observed-to-result-of-maximum/7826)._
