median of even-number sized lists
Publié : lun. janv. 29, 2018 3:11 am
Hello,
I've noticed that median command is producing the result 3 for the list [1,2,3,4,5,6]. But since its size is an even number, shouldn't the median be equal to the arithmetic mean of the elements surrounding the "middle" of the list, in this case 3.5 (Octave, for example, returns this result)?
I've noticed that median command is producing the result 3 for the list [1,2,3,4,5,6]. But since its size is an even number, shouldn't the median be equal to the arithmetic mean of the elements surrounding the "middle" of the list, in this case 3.5 (Octave, for example, returns this result)?