-
Book Overview & Buying
-
Table Of Contents
AWS Certified Machine Learning Specialty: MLS-C01 Certification Guide
By :
Exploring the distribution of your feature is very important to understand some key characteristics of it, such as its skewness, mean, median, and quantiles. You can easily visualize skewness by plotting a histogram. This type of chart groups your data into bins or buckets and performs counts on top of them. For example, the following chart shows a histogram for the age variable:
Figure 4.7 – Plotting distributions with a histogram
Looking at the histogram, we can conclude that most of the people are between 20 and 50 years old. We can also see a few people more than 60 years old. Another example of a histogram is shown in the following chart, where we are plotting the distribution of payments from a particular event that has different ticket prices. We want to see how much money people are paying per ticket:
Figure 4.8 – Checking skewness with a histogram
Here, we can see that the...