Rules of Probability

Understand the rules of probability and how they apply to discriminative and generative models.

At the simplest level, a model, be it for machine learning or a more classical method such as linear regression, is a mathematical description of how various kinds of data relate to one another.

In the task of modeling, we usually think about separating the variables of our dataset into two broad classes:

  1. Independent data: It primarily means inputs to a model are denoted by XX. These could be categorical features (such as a 00 or 11 in six columns indicating which of six schools a student attends), continuous (such as the heights or test scores of the same students), or ordinal (the rank of a student in the class).

  2. Dependent data: It refers to the outputs of our models and are denoted by YY. As with the independent variables, these can be continuous, categorical, or ordinal, and they can be an individual element or multidimensional matrix (tensor) for each element of the dataset.

In some cases, YY is a label that can be used to condition a generative output, such as in a conditional GAN.

So, how can we describe the data in our model using statistics? In other words, how can we quantitatively describe what values we are likely to see, how frequently, and which values are more likely to appear together? One way is by asking the likelihood of observing a particular value in the data or the probability of that value. For example, if we were to ask what the probability is of observing a roll of 44 on a six-sided die, the answer is that, on average, we would observe a 4 once every six rolls. We write this as follows:

where PP denotes the probability of.

What defines the allowed probability values for a particular dataset? If we imagine the set of all possible values of a dataset, such as all values of a die, then a probability maps each value to a number between 00 and 11. The minimum is 00 because we can’t have a negative chance of seeing a result; the most unlikely result is that we would never see a particular value, or 0% probability, such as rolling a 7 on a six-sided die. Similarly, we can’t have greater than 100% probability of observing a result, represented by the value 11; an outcome with probability 11 is absolutely certain.

Press + to interact

This set of probability values associated with a dataset belongs to discrete classes (such as the faces of a die) or an infinite set of potential values (such as variations in height or weight). In either case, however, these values have to follow certain rules, the probability axiomsUniversity of York. 2019. “University of York.” York.ac.uk. April 26, 2019. https://www.york.ac.uk/.‌:

  1. The probability of an observation (a die roll, a particular height, and so on) is a non-negative, finite number between 00 ...