Mode ( statistics ) - wikipedia Mode ( statistics ) For other uses, see Mode. The mode of a set of data values is the value that appears most often. It is the value x at which its probability mass function takes its maximum value. In other words, it is the value that is most likely to be sampled. Like the statistical mean and median, the mode is a way of expressing, in a ( usually ) single number, important information about a random variable or a population. The numerical value of the mode is the same as that of the mean and median in a normal distribution, and it may be very different in highly skewed distributions. The mode is not necessarily unique to a given discrete distribution, since the probability mass function may take the same maximum value at several points x, x, etc. The most extreme case occurs in uniform distributions, where all values occur equally frequently. When the probability density function of a continuous distribution has multiple local maxima it is common to refer to all of the local maxima as modes of the distribution. Such a continuous distribution is called multimodal ( as opposed to unimodal ). A mode of a continuous probability distribution is often considered to be any value x at which its probability density function has a locally maximum value, so any peak is a mode. In symmetric unimodal distributions, such as the normal distribution, the mean ( if defined ), median and mode all coincide. For samples, if it is known that they are drawn from a symmetric unimodal distribution, the sample mean can be used as an estimate of the population mode. Contents 1 Mode of a sample 2 Comparison of mean, median and mode 2.1 Use 2.2 Uniqueness and definedness 2.3 Properties 2.4 Example for a skewed distribution 2.5 Van Zwet condition 3 Unimodal distributions 4 History 5 See also 6 References 7 External links Mode of a sample The mode of a sample is the element that occurs most often in the collection. For example, the mode of the sample ( 1, 3, 6, 6, 6, 6, 7, 7, 12, 12, 17 ) is 6. Given the list of data ( 1, 1, 2, 4, 4 ) the mode is not unique -- the dataset may be said to be bimodal, while a set with more than two modes may be described as multimodal. For a sample from a continuous distribution, such as ( 0.935..., 1.211..., 2.430..., 3.668..., 3.874... ), the concept is unusable in its raw form, since no two values will be exactly the same, so each value will occur precisely once. In order to estimate the mode of the underlying distribution, the usual practice is to discretize the data by assigning frequency values to intervals of equal distance, as for making a histogram, effectively replacing the values by the midpoints of the intervals they are assigned to. The mode is then the value where the histogram reaches its peak. For small or middle - sized samples the outcome of this procedure is sensitive to the choice of interval width if chosen too narrow or too wide ; typically one should have a sizable fraction of the data concentrated in a relatively small number of intervals ( 5 to 10 ), while the fraction of the data falling outside these intervals is also sizable. An alternate approach is kernel density estimation, which essentially blurs point samples to produce a continuous estimate of the probability density function which can provide an estimate of the mode. The following MATLAB ( or Octave ) code example computes the mode of a sample : X = sort ( x ) ; indices = find ( diff ( ( X ; realmax ) ) > 0 ) ; % indices where repeated values change ( modeL, i ) = max ( diff ( ( 0 ; indices ) ) ) ; % longest persistence length of repeated values mode = X ( indices ( i ) ) ; The algorithm requires as a first step to sort the sample in ascending order. It then computes the discrete derivative of the sorted list, and finds the indices where this derivative is positive. Next it computes the discrete derivative of this set of indices, locating the maximum of this derivative of indices, and finally evaluates the sorted sample at the point where that maximum occurs, which corresponds to the last member of the stretch of repeated values. Comparison of mean, median and mode See also : Mean and Median Geometric visualisation of the mode, median and mean of an arbitrary probability density function. Comparison of common averages of values ( 1, 2, 2, 3, 4, 7, 9 ) Type Description Example Result Arithmetic mean Sum of values of a data set divided by number of values : x  ̄ = 1 n ∑ i = 1 n x i ( displaystyle scriptstyle ( \bar ( x ) ) = ( \frac ( 1 ) ( n ) ) sum _ ( i = 1 ) ^ ( n ) x_ ( i ) ) ( 1 + 2 + 2 + 3 + 4 + 7 + 9 ) / 7 Median Middle value separating the greater and lesser halves of a data set 1, 2, 2, 3, 4, 7, 9 Mode Most frequent value in a data set 1, 2, 2, 3, 4, 7, 9 Use Unlike mean and median, the concept of mode also makes sense for `` nominal data '' ( i.e., not consisting of numerical values in the case of mean, or even of ordered values in the case of median ). For example, taking a sample of Korean family names, one might find that `` Kim '' occurs more often than any other name. Then `` Kim '' would be the mode of the sample. In any voting system where a plurality determines victory, a single modal value determines the victor, while a multi-modal outcome would require some tie - breaking procedure to take place. Unlike median, the concept of mode makes sense for any random variable assuming values from a vector space, including the real numbers ( a one - dimensional vector space ) and the integers ( which can be considered embedded in the reals ). For example, a distribution of points in the plane will typically have a mean and a mode, but the concept of median does not apply. The median makes sense when there is a linear order on the possible values. Generalizations of the concept of median to higher - dimensional spaces are the geometric median and the centerpoint. Uniqueness and definedness For some probability distributions, the expected value may be infinite or undefined, but if defined, it is unique. The mean of a ( finite ) sample is always defined. The median is the value such that the fractions not exceeding it and not falling below it are each at least 1 / 2. It is not necessarily unique, but never infinite or totally undefined. For a data sample it is the `` halfway '' value when the list of values is ordered in increasing value, where usually for a list of even length the numerical average is taken of the two values closest to `` halfway ''. Finally, as said before, the mode is not necessarily unique. Certain pathological distributions ( for example, the Cantor distribution ) have no defined mode at all. For a finite data sample, the mode is one ( or more ) of the values in the sample. Properties Assuming definedness, and for simplicity uniqueness, the following are some of the most interesting properties. All three measures have the following property : If the random variable ( or each value from the sample ) is subjected to the linear or affine transformation which replaces X by aX+b, so are the mean, median and mode. Except for extremely small samples, the mode is insensitive to `` outliers '' ( such as occasional, rare, false experimental readings ). The median is also very robust in the presence of outliers, while the mean is rather sensitive. In continuous unimodal distributions the median often lies between the mean and the mode, about one third of the way going from mean to mode. In a formula, median ≈ ( 2 × mean + mode ) / 3. This rule, due to Karl Pearson, often applies to slightly non-symmetric distributions that resemble a normal distribution, but it is not always true and in general the three statistics can appear in any order. For unimodal distributions, the mode is within 3 ( displaystyle ( sqrt ( 3 ) ) ) standard deviations of the mean, and the root mean square deviation about the mode is between the standard deviation and twice the standard deviation. Example for a skewed distribution An example of a skewed distribution is personal wealth : Few people are very rich, but among those some are extremely rich. However, many are rather poor. Comparison of mean, median and mode of two log - normal distributions with different skewness. A well - known class of distributions that can be arbitrarily skewed is given by the log - normal distribution. It is obtained by transforming a random variable X having a normal distribution into random variable Y = e. Then the logarithm of random variable Y is normally distributed, hence the name. Taking the mean μ of X to be 0, the median of Y will be 1, independent of the standard deviation σ of X. This is so because X has a symmetric distribution, so its median is also 0. The transformation from X to Y is monotonic, and so we find the median e = 1 for Y. When X has standard deviation σ = 0.25, the distribution of Y is weakly skewed. Using formulas for the log - normal distribution, we find : mean = e μ + σ 2 / 2 = e 0 + 0.25 2 / 2 ≈ 1.032 mode = e μ − σ 2 = e 0 − 0.25 2 ≈ 0.939 median = e μ = e 0 = 1 ( displaystyle ( \begin ( array ) ( rlll ) ( \text ( mean ) ) & = e ^ ( mu + sigma ^ ( 2 ) / 2 ) & = e ^ ( 0 + 0.25 ^ ( 2 ) / 2 ) & approx 1.032 ( \text ( mode ) ) & = e ^ ( mu - sigma ^ ( 2 ) ) & = e ^ ( 0 - 0.25 ^ ( 2 ) ) & approx 0.939 ( \text ( median ) ) & = e ^ ( mu ) & = e ^ ( 0 ) & = 1 end ( array ) ) ) Indeed, the median is about one third on the way from mean to mode. When X has a larger standard deviation, σ = 1, the distribution of Y is strongly skewed. Now mean = e μ + σ 2 / 2 = e 0 + 1 2 / 2 ≈ 1.649 mode = e μ − σ 2 = e 0 − 1 2 ≈ 0.368 median = e μ = e 0 = 1 ( displaystyle ( \begin ( array ) ( rlll ) ( \text ( mean ) ) & = e ^ ( mu + sigma ^ ( 2 ) / 2 ) & = e ^ ( 0 + 1 ^ ( 2 ) / 2 ) & approx 1.649 ( \text ( mode ) ) & = e ^ ( mu - sigma ^ ( 2 ) ) & = e ^ ( 0 - 1 ^ ( 2 ) ) & approx 0.368 ( \text ( median ) ) & = e ^ ( mu ) & = e ^ ( 0 ) & = 1 end ( array ) ) ) Here, Pearson 's rule of thumb fails. Van Zwet condition Van Zwet derived an inequality which provides sufficient conditions for this inequality to hold. The inequality Mode ≤ Median ≤ Mean holds if F ( Median - x ) + F ( Median + x ) ≥ 1 for all x where F ( ) is the cumulative distribution function of the distribution. Unimodal distributions It can be shown for a unimodal distribution that the median X ~ ( displaystyle ( \tilde ( X ) ) ) and the mean X  ̄ ( displaystyle ( \bar ( X ) ) ) lie within ( 3 / 5 ) ≈ 0.7746 standard deviations of each other. In symbols, X ~ − X  ̄ σ ≤ ( 3 / 5 ) 1 / 2 ( displaystyle ( \frac ( left ( \tilde ( X ) ) - ( \bar ( X ) ) \right ) ( sigma ) ) leq ( 3 / 5 ) ^ ( 1 / 2 ) ) where ⋅ ( displaystyle cdot ) is the absolute value. A similar relation holds between the median and the mode : they lie within 3 ≈ 1.732 standard deviations of each other : X ~ − m o d e σ ≤ 3 1 / 2. ( displaystyle ( \frac ( left ( \tilde ( X ) ) - mathrm ( mode ) \right ) ( sigma ) ) leq 3 ^ ( 1 / 2 ). ) History The term mode originates with Karl Pearson in 1895. See also Statistics portal Arg max Bimodal distribution Central tendency Mean Median Descriptive statistics Moment ( mathematics ) Summary statistics Unimodal function References Jump up ^ Damodar N. Gujarati f Econometrics. McGraw - Hill Irwin. 3rd edition, 2006 : p. 110. probability distribution ) ) Jump up ^ Zhang, C ; Mapes, BE ; Soden, BJ ( 2003 ). `` Bimodality in tropical water vapour ''. QJ R. Meteorol Soc. 129 : 2847 -- 2866. doi : 10.1256 / qj. 02.16. Jump up ^ `` AP Statistics Review - Density Curves and the Normal Distributions ''. Retrieved 16 March 2015. Jump up ^ `` Relationship between the mean, median, mode, and standard deviation in a unimodal distribution ''. Jump up ^ Hippel, Paul T. von ( 2005 ). `` Mean, Median, and Skew : Correcting a Textbook Rule ''. Journal of Statistics Education. 13 ( 2 ). doi : 10.1080 / 10691898.2005. 11910556. Jump up ^ Bottomley, H. ( 2004 ). `` Maximum distance between the mode and the mean of a unimodal distribution '' ( PDF ). Unpublished preprint. Jump up ^ van Zwet, WR ( 1979 ). `` Mean, median, mode II ''. Statistica Neerlandica. 33 ( 1 ) : 1 -- 5. doi : 10.1111 / j. 1467 - 9574.1979. tb00657. x. Jump up ^ Basu, Sanjib, and Anirban DasGupta. `` The mean, median, and mode of unimodal distributions : a characterization. '' Theory of Probability & Its Applications 41.2 ( 1997 ) : 210 - 223. Jump up ^ Pearson, Karl ( 1895 ). `` Contributions to the Mathematical Theory of Evolution. II. Skew Variation in Homogeneous Material ''. Philosophical Transactions of the Royal Society of London A. 186 : 343 -- 414. doi : 10.1098 / rsta. 1895.0010. External links Hazewinkel, Michiel, ed. ( 2001 ) ( 1994 ), `` Mode '', Encyclopedia of Mathematics, Springer Science + Business Media B.V. / Kluwer Academic Publishers, ISBN 978 - 1 - 55608 - 010 - 4 A Guide to Understanding & Calculating the Mode Weisstein, Eric W. `` Mode ''. MathWorld. Mean, Median and Mode short beginner video from Khan Academy hide Statistics Outline Index hide Descriptive statistics Continuous data Center Mean arithmetic geometric harmonic Median Mode Dispersion Variance Standard deviation Coefficient of variation Percentile Range Interquartile range Shape Central limit theorem Moments Skewness Kurtosis L - moments Count data Index of dispersion Summary tables Grouped data Frequency distribution Contingency table Dependence Pearson product - moment correlation Rank correlation Spearman 's rho Kendall 's tau Partial correlation Scatter plot Graphics Bar chart Biplot Box plot Control chart Correlogram Fan chart Forest plot Histogram Pie chart Q -- Q plot Run chart Scatter plot Stem - and - leaf display Radar chart Data collection Study design Population Statistic Effect size Statistical power Sample size determination Missing data Survey methodology Sampling stratified cluster Standard error Opinion poll Questionnaire Controlled experiments Design control optimal Controlled trial Randomized Random assignment Replication Blocking Interaction Factorial experiment Uncontrolled studies Observational study Natural experiment Quasi-experiment Statistical inference Statistical theory Population Statistic Probability distribution Sampling distribution Order statistic Empirical distribution Density estimation Statistical model L space Parameter location scale shape Parametric family Likelihood ( monotone ) Location -- scale family Exponential family Completeness Sufficiency Statistical functional Bootstrap U V Optimal decision loss function Efficiency Statistical distance divergence Asymptotics Robustness Frequentist inference Point estimation Estimating equations Maximum likelihood Method of moments M - estimator Minimum distance Unbiased estimators Mean - unbiased minimum - variance Rao -- Blackwellization Lehmann -- Scheffé theorem Median unbiased Plug - in Interval estimation Confidence interval Pivot Likelihood interval Prediction interval Tolerance interval Resampling Bootstrap Jackknife Testing hypotheses 1 - & 2 - tails Power Uniformly most powerful test Permutation test Randomization test Multiple comparisons Parametric tests Likelihood - ratio Wald Score Specific tests Z - test ( normal ) Student 's t - test F - test Goodness of fit Chi - squared G - test Kolmogorov -- Smirnov Anderson -- Darling Lilliefors Jarque -- Bera Normality ( Shapiro -- Wilk ) Likelihood - ratio test Model selection Cross validation AIC BIC Rank statistics Sign Sample median Signed rank ( Wilcoxon ) Hodges -- Lehmann estimator Rank sum ( Mann -- Whitney ) Nonparametric anova 1 - way ( Kruskal -- Wallis ) 2 - way ( Friedman ) Ordered alternative ( Jonckheere -- Terpstra ) Bayesian inference Bayesian probability prior posterior Credible interval Bayes factor Bayesian estimator Maximum posterior estimator Correlation Regression analysis Correlation Pearson product - moment Partial correlation Confounding variable Coefficient of determination Regression analysis Errors and residuals Regression model validation Mixed effects models Simultaneous equations models Multivariate adaptive regression splines ( MARS ) Linear regression Simple linear regression Ordinary least squares General linear model Bayesian regression Non-standard predictors Nonlinear regression Nonparametric Semiparametric Isotonic Robust Heteroscedasticity Homoscedasticity Generalized linear model Exponential families Logistic ( Bernoulli ) / Binomial / Poisson regressions Partition of variance Analysis of variance ( ANOVA, anova ) Analysis of covariance Multivariate ANOVA Degrees of freedom Categorical / Multivariate / Time - series / Survival analysis Categorical Cohen 's kappa Contingency table Graphical model Log - linear model McNemar 's test Multivariate Regression Manova Principal components Canonical correlation Discriminant analysis Cluster analysis Classification Structural equation model Factor analysis Multivariate distributions Elliptical distributions Normal Time - series General Decomposition Trend Stationarity Seasonal adjustment Exponential smoothing Cointegration Structural break Granger causality Specific tests Dickey -- Fuller Johansen Q - statistic ( Ljung -- Box ) Durbin -- Watson Breusch -- Godfrey Time domain Autocorrelation ( ACF ) partial ( PACF ) Cross-correlation ( XCF ) ARMA model ARIMA model ( Box -- Jenkins ) Autoregressive conditional heteroskedasticity ( ARCH ) Vector autoregression ( VAR ) Frequency domain Spectral density estimation Fourier analysis Wavelet Whittle likelihood Survival Survival function Kaplan -- Meier estimator ( product limit ) Proportional hazards models Accelerated failure time ( AFT ) model First hitting time Hazard function Nelson -- Aalen estimator Test Log - rank test Applications Biostatistics Bioinformatics Clinical trials / studies Epidemiology Medical statistics Engineering statistics Chemometrics Methods engineering Probabilistic design Process / quality control Reliability System identification Social statistics Actuarial science Census Crime statistics Demography Econometrics National accounts Official statistics Population statistics Psychometrics Spatial statistics Cartography Environmental statistics Geographic information system Geostatistics Kriging Portal Commons WikiProject Retrieved from `` https://en.wikipedia.org/w/index.php?title=Mode_(statistics)&oldid=864431575 '' Categories : Means Summary statistics Hidden categories : All articles with unsourced statements Articles with unsourced statements from November 2010 Talk Contents Interaction About Wikipedia Aragonés বাংলা Беларуская Български Bosanski Català Čeština ChiShona Cymraeg Dansk Deutsch Eesti Español Euskara فارسی Français Galego 한국어 Հայերեն हिन्दी Íslenska Italiano עברית Latviešu Lietuvių Magyar Македонски Bahasa Melayu Nederlands 日本 語 Norsk Norsk nynorsk Polski Português Русский Sicilianu සිංහල Simple English Slovenčina Slovenščina کوردی Српски / srpski Srpskohrvatski / српскохрватски Suomi Svenska தமிழ் ไทย Тоҷикӣ Türkçe Українська Tiếng Việt 粵語 中文 45 more Edit links This page was last edited on 17 October 2018, at 04 : 49 ( UTC ). Text is available under the Creative Commons Attribution - ShareAlike License ; additional terms may apply. By using this site, you agree to the Terms of Use and Privacy Policy. Wikipedia ® is a registered trademark of the Wikimedia Foundation, Inc., a non-profit organization. About Wikipedia

Question: what is the value that occurs most frequently in a distribution
Answer: Mode