CDF of
ZipfDistribution is an example of a right-continuous function:
The word count in a text follows Zipf distribution:
Fit a
ZipfDistribution to the word frequency data:
Compare the frequency histogram with the estimated distribution:
Find the probability that a word appears more than 10 times:
Find the average number of word occurrences:
Rank 15 web pages according to popularity. The access frequencies follow Zipf distribution with

. Find the distribution of access frequencies:
Find the probability of the top-ranked site request:
Find the probability of the request for one of the bottom five websites:
Simulate 30 independent requests:
An online movie rental website has 2000 titles, keeping the most popular ones in cache to provide faster service. Find the minimum number of titles that must be in cache, so that with probability 0.99, a requested movie is in the cache:
ZipfDistribution can be used to model the distribution of
GCD between random numbers:
Create a random sample:
Fit a Zipf distribution to the data:
Fit a Zipf distribution with a range to the data:
Compare the histogram of the sample with both estimated distributions:
Compare log-likelihoods:
The finite range condition significantly changes the distribution statistics:
And the standard deviations:
Medians are the same:
The number of dead and injured in a terrorist attack follows
ZipfDistribution:
Fit a Zipf distribution to the data:
Compare the histogram of the data with the PDF of the estimated distribution: