Just for the sake of having a variety of options presented, I've put together this "bash + single-purpose tools" method.
I like bash, but for this particular purpose I'll probably use Rscript; it is just so terse, and it will be handy for other more involved mathematical jobs...
For bash to handle floating-point numbers, this script uses numprocess and numaverage from package num-utils.
arr=($(sort -n "LIST" |tee >( numaverage 2>/dev/null >stats.avg ) | while IFS= read -r numb ;do echo "$numb"; done )) cnt=${#arr[@]}; ((cnt==0)) && { echo -e "0\t0\t0\t0\t0"; exit; } mid=$((cnt/2)); if [[ ${cnt#${cnt%?}} == [02468] ]] then med=$( echo -n "${arr[mid-1]}" |numprocess /+${arr[mid]},%2/ ) else med=${arr[mid]}; fi echo -ne "$cnt\t${arr[0]}\t${arr[cnt-1]}\t$med\t"; cat stats.avg