ebooksgratis.com

See also ebooksgratis.com: no banners, no cookies, totally FREE.

CLASSICISTRANIERI HOME PAGE - YOUTUBE CHANNEL
Privacy Policy Cookie Policy Terms and Conditions
Zipf's law - Wikipedia, the free encyclopedia

Zipf's law

From Wikipedia, the free encyclopedia

Zipf's law
Probability mass function
Plot of the Zipf PMF for N = 10
Zipf PMF for N = 10 on a log-log scale. The horizontal axis is the index k . (Note that the function is only defined at integer values of k. The connecting lines do not indicate continuity.)
Cumulative distribution function
Plot of the Zipf CMF for N=10
Zipf CMF for N = 10. The horizontal axis is the index k . (Note that the function is only defined at integer values of k. The connecting lines do not indicate continuity.)
Parameters s>0\, (real)
N \in \{1,2,3\ldots\} (integer)
Support k \in \{1,2,\ldots,N\}
Probability mass function (pmf) \frac{1/k^s}{H_{N,s}}
Cumulative distribution function (cdf) \frac{H_{k,s}}{H_{N,s}}
Mean \frac{H_{N,s-1}}{H_{N,s}}
Median
Mode 1\,
Variance
Skewness
Excess kurtosis
Entropy \frac{s}{H_{N,s}}\sum_{k=1}^N\frac{\ln(k)}{k^s}
+\ln(H_{N,s})
Moment-generating function (mgf) \frac{1}{H_{N,s}}\sum_{n=1}^N \frac{e^{nt}}{n^s}
Characteristic function \frac{1}{H_{N,s}}\sum_{n=1}^N \frac{e^{int}}{n^s}

Zipf's law, an empirical law formulated using mathematical statistics, refers to the fact that many types of data studied in the physical and social sciences can be approximated with a Zipfian distribution, one of a family of related discrete power law probability distributions. The law is named after the linguist George Kingsley Zipf (pronounced /ˈzɪf/) who first proposed it (Zipf 1935, 1949), though J.B. Estoup appears to have noticed the regularity before Zipf.[1].

Contents

[edit] Motivation

Zipf's law states that given some corpus of natural language utterances, the frequency of any word is inversely proportional to its rank in the frequency table. Thus the most frequent word will occur approximately twice as often as the second most frequent word, which occurs twice as often as the fourth most frequent word, etc. For example, in the Brown Corpus "the" is the most frequently occurring word, and all by itself accounts for nearly 7% of all word occurrences (69971 out of slightly over 1 million). True to Zipf's Law, the second-place word "of" accounts for slightly over 3.5% of words (36411 occurrences), followed by "and" (28852). Only 135 vocabulary items are needed to account for half the Brown Corpus.

[edit] Theoretical issues

Zipf's law is most easily observed by scatterplotting the data, with the axes being log(rank order) and log(frequency). For example, "the" as described above would appear at x = log(1), y = log(69971). The data conform to Zipf's law to the extent that the plotted points appear to fall along a single line segment.

Formally, let:

  • N be the number of elements;
  • k be their rank;
  • s be the value of the exponent characterizing the distribution.

Zipf's law then predicts that out of a population of N elements, the frequency of elements of rank k, f(k;s,N), is:

f(k;s,N)=\frac{1/k^s}{\sum_{n=1}^N 1/n^s}

In the example of the frequency of words in the English language, N is the number of words in the English language and, if we use the classic version of Zipf's law, the exponent s is 1. f(ks,N) will then be the fraction of the time the kth most common word occurs.

It is easily seen that the distribution is normalized, i.e., the predicted frequencies sum to 1:

\sum_{k=1}^N f(k;s,N)=1.

The law may also be written:

f(k;s,N)=\frac{1}{k^s H_{N,s}}

where HN,s is the Nth generalized harmonic number.

The simplest case of Zipf's law is a "1/f function". Given a set of Zipfian distributed frequencies, sorted from most common to least common, the second most common frequency will occur ½ as often as the first. The third most common frequency will occur 1/3 as often as the first. The nth most common frequency will occur 1/n as often as the first. However, this cannot hold exactly, because items must occur an integer number of times: there cannot be 2.5 occurrences of a word. Nevertheless, over fairly wide ranges, and to a fairly good approximation, many natural phenomena obey Zipf's law.

Mathematically, it is impossible for the classic version of Zipf's law to hold exactly if there are infinitely many words in a language, since the sum of all relative frequencies in the denominator above is equal to the harmonic series and therefore:

\sum_{n=1}^\infty \frac{1}{n}=\infty\!

In English, the frequencies of the approximately 1000 most-frequently-used words are approximately proportional to 1/ns where s is just slightly more than one.[citation needed]

As long as the exponent s exceeds 1, it is possible for such a law to hold with infinitely many words, since if s > 1 then

\zeta (s) = \sum_{n=1}^\infty \frac{1}{n^s}<\infty. \!

where ζ is Riemann's zeta function.

Just why data conform to Zipfian distributions is a matter of some controversy. That Zipfian distributions arise in randomly-generated texts with no linguistic structure suggests that in linguistic contexts, the law may be a statistical artifact.[2]

[edit] Related laws

A plot of word frequency in Wikipedia (November 27, 2006). The plot is in log-log coordinates. x  is rank of a word in the frequency table; y  is the total number of the word’s occurences. Most popular words are “the”, “of” and “and”, as expected. Zipf's law corresponds to the upper linear portion of the curve, roughly following the green (1/x)  line.
A plot of word frequency in Wikipedia (November 27, 2006). The plot is in log-log coordinates. x  is rank of a word in the frequency table; y  is the total number of the word’s occurences. Most popular words are “the”, “of” and “and”, as expected. Zipf's law corresponds to the upper linear portion of the curve, roughly following the green (1/x)  line.

Zipf's law now refers more generally to frequency distributions of "rank data," in which the relative frequency of the nth-ranked item is given by the Zeta distribution, 1/(nsζ(s)), where the parameter s > 1 indexes the members of this family of probability distributions. Indeed, Zipf's law is sometimes synonymous with "zeta distribution," since probability distributions are sometimes called "laws". This distribution is sometimes called the Zipfian or Yule distribution.

A generalization of Zipf's law is the Zipf-Mandelbrot law, proposed by Benoît Mandelbrot, whose frequencies are:

f(k;N,q,s)=[\mbox{constant}]/(k+q)^s.\,

The "constant" is the reciprocal of the Hurwitz zeta function evaluated at s.

Zipfian distributions can be obtained from Pareto distributions by an exchange of variables.[3]

The tail frequencies of the Yule-Simon distribution are approximately

f(k;\rho) \approx [\mbox{constant}]/k^{\rho+1}

for any choice of ρ > 0.

If the natural log of some data are normally distributed, the data follow the log-normal distribution. This distribution is useful when random influences have an effect that is multiplicative rather than additive.

In the parabolic fractal distribution, the logarithm of the frequency is a quadratic polynomial of the logarithm of the rank. This can markedly improve the fit over a simple power-law relationship.[3] Like fractal dimension, it is possible to calculate Zipf dimension, which is a useful parameter in the analysis of texts.[4]

It has been argued that Benford's law is a special case of Zipf's law.[3]

[edit] See also

[edit] References

  1. ^ Christopher D. Manning, Hinrich Schütze Foundations of Statistical Natural Language Processing, MIT Press (1999), ISBN 978-0262133609, p. 24
  2. ^ Wentian Li (1992). "Random Texts Exhibit Zipf's-Law-Like Word Frequency Distribution". IEEE Transactions on Information Theory 38 (6): 1842–1845. 
  3. ^ a b c Johan Gerard van der Galien (2003-11-08). Factorial randomness: the Laws of Benford and Zipf with respect to the first digit distribution of the factor sequence from the natural numbers.
  4. ^ Ali Eftekhari (2006) Fractal geometry of texts. Journal of Quantitative Linguistic 13(2-3): 177 – 193.

[edit] Further reading

Primary:

Secondary:

[edit] External links


aa - ab - af - ak - als - am - an - ang - ar - arc - as - ast - av - ay - az - ba - bar - bat_smg - bcl - be - be_x_old - bg - bh - bi - bm - bn - bo - bpy - br - bs - bug - bxr - ca - cbk_zam - cdo - ce - ceb - ch - cho - chr - chy - co - cr - crh - cs - csb - cu - cv - cy - da - de - diq - dsb - dv - dz - ee - el - eml - en - eo - es - et - eu - ext - fa - ff - fi - fiu_vro - fj - fo - fr - frp - fur - fy - ga - gan - gd - gl - glk - gn - got - gu - gv - ha - hak - haw - he - hi - hif - ho - hr - hsb - ht - hu - hy - hz - ia - id - ie - ig - ii - ik - ilo - io - is - it - iu - ja - jbo - jv - ka - kaa - kab - kg - ki - kj - kk - kl - km - kn - ko - kr - ks - ksh - ku - kv - kw - ky - la - lad - lb - lbe - lg - li - lij - lmo - ln - lo - lt - lv - map_bms - mdf - mg - mh - mi - mk - ml - mn - mo - mr - mt - mus - my - myv - mzn - na - nah - nap - nds - nds_nl - ne - new - ng - nl - nn - no - nov - nrm - nv - ny - oc - om - or - os - pa - pag - pam - pap - pdc - pi - pih - pl - pms - ps - pt - qu - quality - rm - rmy - rn - ro - roa_rup - roa_tara - ru - rw - sa - sah - sc - scn - sco - sd - se - sg - sh - si - simple - sk - sl - sm - sn - so - sr - srn - ss - st - stq - su - sv - sw - szl - ta - te - tet - tg - th - ti - tk - tl - tlh - tn - to - tpi - tr - ts - tt - tum - tw - ty - udm - ug - uk - ur - uz - ve - vec - vi - vls - vo - wa - war - wo - wuu - xal - xh - yi - yo - za - zea - zh - zh_classical - zh_min_nan - zh_yue - zu -