In Statistics, Mean is the thing you normally know as "average". It's calculated by summing all numbers and then dividing the sum by the number of numbers.
// not the actual way to do it, just pointing out the idea
const mean = (arr) => arr.reduce((a,b) => a+b) / arr.length
const x = [1,2,3,4,5]
mean(x) // 3
Also see MedianMedian
In statistics, Median is the number sitting in the middle of a sorted set of numbers.
// not the actual way to do it, just pointing out the idea
const median = (sortedArray) => sortedArray[arr... and ModeMode
In statistics, Mode is the most common number in a data set.
// not the actual way to do it, just pointing out the idea
const mode = (arr) => arr.reduce((acc, el) => {
acc.counters[el] = a....
Status: #🌲