The following warnings occurred:
Warning [2] count(): Parameter must be an array or an object that implements Countable - Line: 795 - File: showthread.php PHP 7.4.33 (FreeBSD)
File Line Function
/showthread.php 795 errorHandler->error





Post Reply 
median
09-13-2014, 06:11 PM (This post was last modified: 09-13-2014 06:15 PM by Helge Gabert.)
Post: #1
median
I was a little surprised to see that median, for an even number of elements in a list, both in Home and CAS, returns the smaller element of the two middle elements of the ordered list, e.g.,

median({1,2,3,4}) returns 2.

But, as far as I know, the statistical convention is to return the arithmetic mean of the ordered, two middle elements, so what should be returned for the above example is 2.5 in Home, and 5/2 in CAS.
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
median - Helge Gabert - 09-13-2014 06:11 PM
RE: median - parisse - 09-13-2014, 06:44 PM
RE: median - Marcel - 09-13-2014, 08:25 PM
RE: median - Joe Horn - 09-14-2014, 04:21 AM
RE: median - Don Shepherd - 09-13-2014, 09:46 PM
RE: median - Chris Pem10 - 09-14-2014, 02:24 AM
RE: median - Tim Wessman - 09-14-2014, 03:41 AM
RE: median - Helge Gabert - 09-14-2014, 04:35 AM
RE: median - Joe Horn - 09-14-2014, 07:17 AM
RE: median - parisse - 09-14-2014, 06:34 AM
RE: median - parisse - 09-14-2014, 09:37 AM
RE: median - Paul Dale - 09-14-2014, 09:51 AM
RE: median - parisse - 09-14-2014, 11:56 AM
RE: median - Thomas Radtke - 09-14-2014, 10:11 AM



User(s) browsing this thread: 1 Guest(s)