Happy to answer questions if anything is not clear or discuss.
See here for quantiles: https://stackoverflow.com/questions/1058813/on-line-iterator...
The P^2 algorithm used in creme is interesting. For the median it would give a 2 sided median deviation. Maybe this could be changed slightly to be symmetric and give Median and MAD. I'll look into.
Discussed in the previous post: http://anthonylloyd.github.io/blog/2016/10/21/MAD-Outliers
It's roughly the range around the median where half the sample is within (since you can do 2 sided MAD also).