Rules of Probability
Understand the rules of probability and how they apply to discriminative and generative models.
We'll cover the following...
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:
Independent data: It primarily means inputs to a model are denoted by
. These could be categorical features (such as a or 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). Dependent data: It refers to the outputs of our models and are denoted by
. 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.
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
where
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
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 p
The probability of an observation (a die roll, a particular height, and so on) is a non-negative, finite number between
...