Mathematical Statistics Functions

Data error may appear at any stage of data acquisition and pre-processing, and that will affect study results and leads to erroneous statistical interpretation and conclusions.

Mean

The mean is the most common measure of center. It is what most people think of when they hear the word "average." However, the mean is affected by extreme values, so it may not be the best measure of center to use in a skewed distribution.

Procedure for finding

  1. Add all the data values together
  2. Divide by the sampling counter

Properties

  • The mean always exists
  • The mean does not have to be one of the data values
  • The mean uses all the data values
  • The mean is affected by extreme values

Formula

\(\bar x = \frac{{{x_1} + {x_2} + \cdots + {x_n}}}{n} = \frac{{\sum\limits_{i = 1}^n {{x_i}} }}{n}\)

Example

>> mean([12, 7, 3, 4.2, 18, 2, 54, -21, 8, -5])
8.22
>> mean([1, 2, 3, 4, 4])
2.8
>> mean([-1.0, 2.5, 3.25, 5.75])
2.625

© 2024 Air Supply Information Center (Air Supply BBS)