NumPy RandomLesson 31Free preview
Zipf Distribution
This lesson is part of NumPy · All levels
Summary
Zipf distribution describes a pattern in which the most popular elements appear much more frequently than other elements, such as the frequency of words in a language. This pattern also appears in the popularity of websites and product sales.
Key points
- Zipf(a, size) with a = distribution form parameter.
- The result is an integer >=1, not 0.
- The frequency decreases very sharply following the power law.
- Real examples: frequency of words, ranking, and popularity of content.
Full lesson
Code examples and quizzes
Full lessons, code examples, and quizzes are available to subscribers. 5 questions.