Patrick B. answered 03/24/21
Math and computer tutor/teacher
It returns the median value of the sorted array...
If there is an EVEN # of statistics, the MEDIAN is defined as the AVERAGE of the
two "middle" statistics...
Otherwise, there is a unique statistic in the "middle" of the data set, that is the median.
EX.
10 12 15 16 17 18 19 20 21 22 23
There are 11 stats: 18 is the median; 5 below and 5 above
EX
10 12 15 16 17 18 20 21 22 23 24 25
There are 2 middle statistics: 18 and 20
The median is (18+20)/2 = 38/2 = 19