Skip to content

Files

Failed to load latest commit information.

Latest commit

 Cannot retrieve latest commit at this time.

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 

README.md

Finding Average (Mean, Median, Mode)

Arithmetic mean, median and mode are the most common measures of central tendency.

Mean

The most commonly used method foe finding the average of given dataset. To find the mean simply add up all the values and divide by total number of values. If given data is X = x 1 , x 2 , x 3 , . . . x n then mean is

mean = i = 1 n x i n

Median

Median is defined as the value that is exactly in the middle of a data set.

Median could be found by following steps,

  1. Sort the data from smallest to largest.
  2. Median is the middle number of the sorted set of n values.
if n is odd ; median = x n + 1 2 if n is even ; median = x n 2 + x n 2 + 1 2

Mode

Mode refers to the most occurring number/value in the given set.

Codes

This file contains the code for calculating mean, median mode of a given data