2 Plotting probabilities using Matplotlib
This section covers
- Creating simple plots using Matplotlib
- Labeling plotted data
- What is a probability distribution?
- Plotting and comparing multiple probability distributions
Data plots are among the most valuable tools in any data scientist’s arsenal. Without good visualizations, we are effectively crippled in our ability to glean insights from our data. Fortunately, we have at our disposal the external Python Matplotlib library, which is fully optimized for outputting high-caliber plots and data visualizations. In this section, we use Matplotlib to better comprehend the coin-flip probabilities that we computed in section 1.
2.1 Basic Matplotlib plots
Let’s begin by installing the Matplotlib library. ...
Get Data Science Bookcamp now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.