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

Search
Categories
Read More
Other
Gurgaon to Agra Cab
Book Gurgaon to Agra cab online at best price. CabBazar provides car rental services for all cab...
By Cab Bazar 2025-06-13 07:23:01 0
Other
पंडित जी ऑन कॉल: मुफ्त में कुंडली मिलान व सलाह
भारतीय संस्कृति में ज्योतिष विज्ञान को बहुत उच्च महत्व मिला है। बचपन से विवाह, व्यवसाय, विद्या,...
By PanditJi OnCall 2025-05-31 12:32:36 0
Other
Inventory Management Software Market CAGR of 6.62% during the forecast period of 2025 to 2032.
Executive Summary Inventory Management Software Market : CAGR Value Global inventory...
By Pooja Chincholkar 2025-07-09 05:59:13 0
Information Technology
Optoelectronics Applications Expand Across Next-Gen Devices and Infrastructure
The global optoelectronics market is undergoing a transformative phase, fueled by technological...
By Amit Mohite 2025-07-07 16:34:38 0
Omaada - A global social and professionals networking platform https://www.omaada.com