r.stats.quantile: does the 50th percentile equal to the median?

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

r.stats.quantile: does the 50th percentile equal to the median?

NikosAlexandris
Hi devs,

does the default `percentiles=50` in `r.stats.quantile` equal to the
median?
Is the definition exclusive or inclusive?

Thank you for any insight, Nikos
--

See also
- https://en.wikipedia.org/wiki/Percentile
- https://math.stackexchange.com/q/2048470/445399

_______________________________________________
grass-dev mailing list
[hidden email]
https://lists.osgeo.org/mailman/listinfo/grass-dev
Reply | Threaded
Open this post in threaded view
|

Re: r.stats.quantile: does the 50th percentile equal to the median?

Markus Metz-3


On Fri, Jan 22, 2021 at 2:51 PM <[hidden email]> wrote:
>
> Hi devs,
>
> does the default `percentiles=50` in `r.stats.quantile` equal to the
> median?
> Is the definition exclusive or inclusive?

The median is commonly defined as the 50% percentile, the "middle" item of a sorted dataset. See
https://en.wikipedia.org/wiki/Median

In GRASS, calculations of the median and the 50% percentile are identical.

HTH,

Markus M

 

>
>
> Thank you for any insight, Nikos
> --
>
> See also
> - https://en.wikipedia.org/wiki/Percentile
> - https://math.stackexchange.com/q/2048470/445399
>
> _______________________________________________
> grass-dev mailing list
> [hidden email]
> https://lists.osgeo.org/mailman/listinfo/grass-dev
_______________________________________________
grass-dev mailing list
[hidden email]
https://lists.osgeo.org/mailman/listinfo/grass-dev
Reply | Threaded
Open this post in threaded view
|

Re: r.stats.quantile: does the 50th percentile equal to the median?

NikosAlexandris

Thank you Markus!

---
 


On 2021-01-23 21:20, Markus Metz wrote:



On Fri, Jan 22, 2021 at 2:51 PM <[hidden email]> wrote:
>
> Hi devs,
>
> does the default `percentiles=50` in `r.stats.quantile` equal to the
> median?
> Is the definition exclusive or inclusive?

The median is commonly defined as the 50% percentile, the "middle" item of a sorted dataset. See
https://en.wikipedia.org/wiki/Median

In GRASS, calculations of the median and the 50% percentile are identical.
 
HTH,
 
Markus M
 
 

>
>
> Thank you for any insight, Nikos
> --
>
> See also
> - https://en.wikipedia.org/wiki/Percentile
> - https://math.stackexchange.com/q/2048470/445399
>
> _______________________________________________
> grass-dev mailing list
> [hidden email]
> https://lists.osgeo.org/mailman/listinfo/grass-dev
_______________________________________________
grass-dev mailing list
[hidden email]
https://lists.osgeo.org/mailman/listinfo/grass-dev