MovingMedian
✖
MovingMedian
Details

- MovingMedian gives a list of the medians of elements in list taken in blocks of length r. »
- MovingMedian gives a list of length Length[list]-r+1.
- MovingMedian works with SparseArray objects. »
Examples
open allclose allBasic Examples (2)Summary of the most common use cases
Scope (5)Survey of the scope of standard use cases
Compute moving medians for any numeric data:

https://wolfram.com/xid/01yp86vks5k-cq771q

Obtain results at machine precision:

https://wolfram.com/xid/01yp86vks5k-yve

Obtain results for lists of any precision:

https://wolfram.com/xid/01yp86vks5k-dftm52

Moving medians of matrices are matrices:

https://wolfram.com/xid/01yp86vks5k-f6w30t


https://wolfram.com/xid/01yp86vks5k-hrjjx3

Moving median of a TimeSeries:

https://wolfram.com/xid/01yp86vks5k-nv4lr8

https://wolfram.com/xid/01yp86vks5k-fa5nzt

Generalizations & Extensions (1)Generalized and extended use cases
Compute results for a SparseArray:

https://wolfram.com/xid/01yp86vks5k-l4ct3


https://wolfram.com/xid/01yp86vks5k-d6csj0

Applications (2)Sample problems that can be solved with this function

https://wolfram.com/xid/01yp86vks5k-j42qsa


https://wolfram.com/xid/01yp86vks5k-biof3w


https://wolfram.com/xid/01yp86vks5k-wjb0f


https://wolfram.com/xid/01yp86vks5k-czj2v8

Compute the 100-day moving median of a financial time series:

https://wolfram.com/xid/01yp86vks5k-mbxbnh


https://wolfram.com/xid/01yp86vks5k-cq2lfi

Properties & Relations (3)Properties of the function, and connections to other functions
A moving median is a sequence of medians:

https://wolfram.com/xid/01yp86vks5k-bxc2b1


https://wolfram.com/xid/01yp86vks5k-i0fg4m

A two‐term MovingMedian is equivalent to a two‐term MovingAverage:

https://wolfram.com/xid/01yp86vks5k-i96jjd


https://wolfram.com/xid/01yp86vks5k-1z6z5

MovingMedian is equivalent to MovingMap of Median:

https://wolfram.com/xid/01yp86vks5k-cb4t6a


https://wolfram.com/xid/01yp86vks5k-ok4d32


https://wolfram.com/xid/01yp86vks5k-ig9mo


https://wolfram.com/xid/01yp86vks5k-cqtk8k

Possible Issues (1)Common pitfalls and unexpected behavior
Wolfram Research (2007), MovingMedian, Wolfram Language function, https://reference.wolfram.com/language/ref/MovingMedian.html.
Text
Wolfram Research (2007), MovingMedian, Wolfram Language function, https://reference.wolfram.com/language/ref/MovingMedian.html.
Wolfram Research (2007), MovingMedian, Wolfram Language function, https://reference.wolfram.com/language/ref/MovingMedian.html.
CMS
Wolfram Language. 2007. "MovingMedian." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/MovingMedian.html.
Wolfram Language. 2007. "MovingMedian." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/MovingMedian.html.
APA
Wolfram Language. (2007). MovingMedian. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/MovingMedian.html
Wolfram Language. (2007). MovingMedian. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/MovingMedian.html
BibTeX
@misc{reference.wolfram_2025_movingmedian, author="Wolfram Research", title="{MovingMedian}", year="2007", howpublished="\url{https://reference.wolfram.com/language/ref/MovingMedian.html}", note=[Accessed: 04-May-2025
]}
BibLaTeX
@online{reference.wolfram_2025_movingmedian, organization={Wolfram Research}, title={MovingMedian}, year={2007}, url={https://reference.wolfram.com/language/ref/MovingMedian.html}, note=[Accessed: 04-May-2025
]}