Skip to content

Commit f7da304

Browse files
committed
gh-XXXXXX: Note statistics.median_absolute_deviation in What's New
Add a new 'statistics' section under 'Improved modules' in Doc/whatsnew/3.16.rst, between shlex and tkinter (alphabetical order). Bullet describes the new statistics.median_absolute_deviation function, its default scale=1.4826 consistency constant, and the alternative scale=1 for the raw value. TODO: replace [REPLACE WITH CONTRIBUTOR NAME] and [REPLACE WITH PR NUMBER] placeholders with the actual contributor attribution when the PR is filed.
1 parent fd99fe9 commit f7da304

1 file changed

Lines changed: 12 additions & 0 deletions

File tree

Doc/whatsnew/3.16.rst

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -201,6 +201,18 @@ shlex
201201
(Contributed by Jay Berry in :gh:`148846`.)
202202

203203

204+
statistics
205+
----------
206+
207+
* Added :func:`statistics.median_absolute_deviation` for robust measurement
208+
of statistical dispersion: the median of the absolute deviations from the
209+
median. Pass ``scale=1`` for the raw value or accept the default
210+
``scale=1.4826`` (the consistency constant for the normal distribution) for
211+
an estimator of the population standard deviation that is consistent with
212+
:func:`statistics.stdev`.
213+
(Contributed by [REPLACE WITH CONTRIBUTOR NAME] in :gh:`[REPLACE WITH PR NUMBER]`.)
214+
215+
204216
tkinter
205217
-------
206218

0 commit comments

Comments
 (0)