Friday, 7 September 2018

Measure of Central Tendency using R

Measure of central tendency

In statistics, a central tendency (or measure of central tendency) is a central or typical value for a probability distribution. It may also be called a centre or location of the distribution. Colloquially, measures of central tendency are often called averages.



1-Arithmetic Mean (AM):
The sum of all measurements divided by the number of observations in the data set.


2- Geometric Mean:
The nth root of the product of the data values, where there are n of these. This measure is valid only for  data that are measured absolutely on a strictly positive scale. For geometric mean we have to install "psych" package.






3-Harmonic mean:
The reciprocal of the arithmetic mean of the reciprocals of the data values. This measure too is valid only for data that are measured absolutely on a strictly positive scale. For harmonic mean we have to install "DescTools" package.








4-Weighted Mean:
An arithmetic mean that incorporates weighting to certain data elements.
















5- Median:
The middle most value in a data series is called the median. For median we have to make the data in decreasing or increasing order.

6-Mode:
The most frequent value in the data set. This is the only central tendency measure that can be used with nominal data, which have purely qualitative category assignments.


No comments:

Post a Comment