The mean is one of three ways to measure central tendency in statistics. The mean refers to the numerical average of a set of numbers. Two other measures of central tendency are the median, which refers to the number that is in the middle of an ordered set of numbers, and the mode, which refers to the most frequent value in a set of numbers.
Count the number of values in the data set. Declare a variable n and assign it this value.
Add all of the values in the data set together.
Divide the sum of all of the values in the data set by n. This will give you the mean.
Things You'll Need
About the Author
Matt Knouff is a mental health professional, programmer and freelance writer from Lafayette, Ind. His educational background includes a bachelor's degree in psychology and anthropology from Purdue University and undergraduate certificates in computer science and music production. He has been writing professionally for three years and currently writes for TopTenReviews.com and other online publications.
Jupiterimages/Polka Dot/Getty Images