Welcome to another fascinating session! Today, we will delve into probability distributions and learn how Python expedites the exploration of data patterns. We will examine different types of probability distributions, specifically the Uniform and Normal distributions, and use Python libraries to visualize them.
Probability measures the likelihood that an event will occur from all possible outcomes. If we flip a coin, the probability of getting a head is 50% or 0.5. Essentially, probability distributions map out each outcome of a random variable and its corresponding probability.
We will use visualization with python's powerful module, matplotlib
, to have a glance at distributions we study. The whole visualization course is covered within the course path, but for now you may treat matplotlib as a magic black box that helps us. Remember that the focus of this lesson is exploring statistical distributions, so your focus should be on this part.
Consider a scenario in which all outcomes have an equal chance of occurring. This phenomenon is described by a Uniform Distribution. For instance, if we draw a card suit from a deck, the probabilities of drawing a heart, club, diamond, or spade are equal. Let's generate and plot a Uniform Distribution using numpy
and matplotlib
.
