Machine LearningLesson 72Free preview
Percentile
This lesson is part of Python · All levels
Summary
Percentals indicate the value below which a certain percentage of the data is; for example, the 70th percentile means 70 percent of the data is worth below. NumPy provides np.percentile() that can also receive a list of percentiles so that quarts 25, 50, and 75 are counted at once in a single call. The 50th percentile is identical to the median. This concept is widely used to understand data distribution and to define the limit of compression.
Key points
- The percentage places the value in the percentage position in the data sequence
- Np.percentile(data, k) counting the k percentile
- List [25, 50, 75] produces the first, median, and third quarts
- IQR (Q3 - Q1) is often used to detect scratches
Full lesson
Code examples and quizzes
Full lessons, code examples, and quizzes are available to subscribers. 5 questions.