Mean, Median, and Mode

0
195

In Machine Learning there are often three values that interests us and that are: Mean, Median and Mode.

Example: We have registered the speed of 13 cars:

speed = [99,86,87,88,111,86,103,87,94,78,77,85,86]

Mean

The mean value is the average value.

To calculate the mean, find the sum of all values, and divide the sum by the number of values:

(99+86+87+88+111+86+103+87+94+78+77+85+86) / 13 = 89.77

Median

The median value is the value in the middle, after you have sorted all the values:

77, 78, 85, 86, 86, 86, 87, 88, 94, 99, 103, 111

If there are two numbers in the middle, divide the sum of those numbers by two.

77, 78, 85, 86, 86, 86, 87, 87, 94, 98, 99, 103

(86 + 87) / 2 = 86.5

Mode

The Mode value is the value that appears the most number of times:

99, 86, 87, 88, 111, 86, 103, 87, 94, 78, 77, 85, 86 = 86

Поиск
Категории
Больше
Другое
Get Case Study Done Right with Assignment Help UAE
In the academic world, students face numerous challenges in managing their coursework...
От Ellena Selzin 2025-06-07 05:58:39 0
Другое
Attitude and Heading Reference Systems (AHRS) Market Grows with Increasing Adoption in UAVs and Modern Avionics
"Executive Summary Attitude and Heading Reference Systems (AHRS) Market : The global...
От Rahul Rangwa 2025-06-19 06:29:11 0
Information Technology
BitPay Clone Script: Launch Your Own Crypto Payment Gateway
In the rapidly evolving digital finance landscape, cryptocurrency adoption is skyrocketing...
От Riya George 2025-07-01 07:28:48 0
Игры
Daftar Link Slot Gacor Situs Terpercaya GANDA303
Salah satu yang patut dicontoh adalah situs ganda303, sebuah platform judi slot online terpercaya...
От Martin Harrist 2025-07-04 09:06:28 0
Omaada - A global social and professionals networking platform https://www.omaada.com