“Admits a density/distribution”¶
If a variable ‘admits a distribution’, that means it can be described by a probability density function. Contrast with
which cannot be described by a pdf, so we would say that does not admit a distribution.
The use of Bayes’ rule to update a probability distribution as the amount of evidence changes.
Chain rule of probability¶
Gives the joint probability for a set of variables as the product of conditionals and a prior.
For three variables this looks like:
Change of variables¶
In the context of probability densities the change of variables formula describes how one distribution can be given in terms of another, :
Where is an invertible function.
If the prior and the posterior are both from the same family of distributions (eg Beta) the likelihood is distributed according to the table below:
Distribution for a random variable which is 1 with probability and zero with probability .
Special case of the Binomial distribution, which generalizes the Bernoulli to multiple trials.
Family of distributions defined over . This makes them particularly useful for defining the distribution of probabilities.
Distribution for the number of successes in n trials, each with probability p of success and 1-p of failure. The probability density function is:
Is closely approximated by the Poisson distribution when n is large and p is small.
where is the energy of , is the temperature of the system and is a normalising constant.
Generalizes the Bernoulli distribution to more than two categories.
Multivariate version of the Beta distribution.
Conjugate prior of the categorical and multinomial distributions.
Can be used to model the amount of something a particular period, area or volume. For example, the amount of rainfall in an area in a month. This is as opposed to the Poisson which models the distribution for the number of discrete events.
Special case of the Negative Binomial distribution.
Used to model the distribution of the maximum (or the minimum) of a number of samples of various distributions.
Models the probability of k successes in n draws without replacement from a population of size N, where K of the objects in the population have the desired characteristic. Similar to the Binomial, except that the draws are made without replacement which means they are no longer independent.
The distribution for n trials, each with k possible outcomes.
When n and k take on specific values or ranges the Multinomial distribution has specific names.
This section summarises some univariate distributions and their multivariate versions:
Distribution of the number of successes before a given number of failures occur.
Used to model the number of events which occur within a particular period, area or volume.
A distribution that has been observed to be a good model for things like the frequency of words in a language, where there are a few very popular words and a long tail of lesser known ones.
For a population of size n, the frequency of the kth most frequent item is:
where is a hyperparameter
Probabilistic inference is the task of determining the probability of a particular outcome.
Law of total probability¶
The likelihood of the parameters given the observation data is equal to the probability of the data given the parameters.
The most basic sort of probability, . Contrast with the conditional distribution or the joint .
A likelihood function in which some variable has been marginalised out (removed by summation).
Maximum a posteriori estimation. A point estimate for the parameters , given the observations . Can be seen as a regularization of MLE since it also incorporates a prior distribution. Uses Bayes’ rule to incorporate a prior over the parameters and find the parameters that are most likely given the data (rather than the other way around). Unlike with MLE (which is a bit of a simplification), the most likely parameters given the data are exactly what we want to find.
Where is the prior for the parameters.
Note that in the equation above the denominator vanishes since it does not depend on .
Maximum likelihood estimation (MLE)¶
Finds the set of parameters that are most likely, given the data . Since priors over parameters are not taken into account unless MAP estimation is taking place, this is equivalent to finding the parameters that maximize the probability of the data given the parameters:
A function that can be used to transform one random variable into another. The function must be invertible and have a tractable Jacobian.
Extensively used for density estimation.
A probability distribution before any evidence is taken into account. For example the probability that it will rain where there are no observations such as cloud cover.
A prior whose probability distribution has infinitesimal density over an infinitely large range. For example, the distribution for picking an integer at random.
Informative and uninformative priors¶
Below are some examples for each:
- The temperature is normally distributed with mean 20 and variance 3.
- The temperature is positive.
- The temperature is less than 200.
- All temperatures are equally likely.
‘Uninformative’ can be a misnomer. ‘Not very informative’ would be more accurate.
A conditional probability distribution that takes evidence into account. For example, the probability that it will rain, given that it is cloudy.