Jump to content

Marginal distribution

From Wikipedia, the free encyclopedia
(Redirected fromMarginal probability)

Inprobability theoryandstatistics,themarginal distributionof asubsetof acollectionofrandom variablesis theprobability distributionof the variables contained in the subset. It gives the probabilities of various values of the variables in the subset without reference to the values of the other variables. This contrasts with aconditional distribution,which gives the probabilities contingent upon the values of the other variables.

Marginal variablesare those variables in the subset of variables being retained. These concepts are "marginal" because they can be found by summing values in a table along rows or columns, and writing the sum in the margins of the table.[1]The distribution of the marginal variables (the marginal distribution) is obtained bymarginalizing(that is, focusing on the sums in the margin) over the distribution of the variables being discarded, and the discarded variables are said to have beenmarginalized out.

The context here is that the theoretical studies being undertaken, or thedata analysisbeing done, involves a wider set of random variables but that attention is being limited to a reduced number of those variables. In many applications, an analysis may start with a given collection of random variables, then first extend the set by defining new ones (such as the sum of the original random variables) and finally reduce the number by placing interest in the marginal distribution of a subset (such as the sum). Several different analyses may be done, each treating a different subset of variables as the marginal distribution.

Definition

[edit]

Marginal probability mass function

[edit]

Given a knownjoint distributionof twodiscreterandom variables,say,XandY,the marginal distribution of either variable –Xfor example – is theprobability distributionofXwhen the values ofYare not taken into consideration. This can be calculated by summing thejoint probabilitydistribution over all values ofY.Naturally, the converse is also true: the marginal distribution can be obtained forYby summing over the separate values ofX.

,and
X
Y
x1 x2 x3 x4 pY(y) ↓
y1 4/32 2/32 1/32 1/32 8/32
y2 3/32 6/32 3/32 3/32 15/32
y3 9/32 0 0 0 9/32
pX(x) → 16/32 8/32 4/32 4/32 32/32
Joint and marginal distributions of a pair of discrete random variables,XandY,dependent, thus having nonzeromutual informationI(X;Y).The values of the joint distribution are in the 3×4 rectangle; the values of the marginal distributions are along the right and bottom margins.

Amarginal probabilitycan always be written as anexpected value:

Intuitively, the marginal probability ofXis computed by examining the conditional probability ofXgiven a particular value ofY,and then averaging this conditional probability over the distribution of all values ofY.

This follows from the definition ofexpected value(after applying thelaw of the unconscious statistician)

Therefore, marginalization provides the rule for the transformation of the probability distribution of a random variableYand another random variableX=g(Y):

Marginal probability density function

[edit]

Given twocontinuousrandom variablesXandYwhosejoint distributionis known, then the marginalprobability density functioncan be obtained by integrating thejoint probabilitydistribution,f,overY,and vice versa. That is

where,and.

Marginal cumulative distribution function

[edit]

Finding the marginalcumulative distribution functionfrom the joint cumulative distribution function is easy. Recall that:

  • Fordiscreterandom variables,
  • Forcontinuous random variables,

IfXandYjointly take values on [a,b] × [c,d] then

and

Ifdis ∞, then this becomes a limit.Likewise for.

Marginal distribution vs. conditional distribution

[edit]

Definition

[edit]

Themarginal probabilityis the probability of a single event occurring, independent of other events. Aconditional probability,on the other hand, is the probability that an event occurs given that another specific eventhas alreadyoccurred. This means that the calculation for one variable is dependent on another variable.[2]

The conditional distribution of a variable given another variable is the joint distribution of both variables divided by the marginal distribution of the other variable.[3]That is,

  • Fordiscreterandom variables,
  • Forcontinuous random variables,

Example

[edit]

Suppose there is data from a classroom of 200 students on the amount of time studied (X) and the percentage of correct answers (Y).[4]Assuming thatXandYare discrete random variables, the joint distribution ofXandYcan be described by listing all the possible values ofp(xi,yj), as shown in Table.3.

X
Y
Time studied (minutes)
% correct
x1(0-20) x2(21-40) x3(41-60) x4(>60) pY(y) ↓
y1(0-20) 2/200 0 0 8/200 10/200
y2(21-40) 10/200 2/200 8/200 0 20/200
y3(41-59) 2/200 4/200 32/200 32/200 70/200
y4(60-79) 0 20/200 30/200 10/200 60/200
y5(80-100) 0 4/200 16/200 20/200 40/200
pX(x) → 14/200 30/200 86/200 70/200 1
Two-way tableof dataset of the relationship in a classroom of 200 students between the amount of time studied and the percentage correct

Themarginal distributioncan be used to determine how many students scored 20 or below:,meaning 10 students or 5%.

Theconditional distributioncan be used to determine the probability that a student that studied 60 minutes or more obtains a scored of 20 or below:,meaning there is about a 11% probability of scoring 20 after having studied for at least 60 minutes.

Real-world example

[edit]

Suppose that the probability that a pedestrian will be hit by a car, while crossing the road at a pedestrian crossing, without paying attention to the traffic light, is to be computed. Let H be adiscrete random variabletaking one value from {Hit, Not Hit}. Let L (for traffic light) be a discrete random variable taking one value from {Red, Yellow, Green}.

Realistically, H will be dependent on L. That is, P(H = Hit) will take different values depending on whether L is red, yellow or green (and likewise for P(H = Not Hit)). A person is, for example, far more likely to be hit by a car when trying to cross while the lights for perpendicular traffic are green than if they are red. In other words, for any given possible pair of values for H and L, one must consider thejoint probability distributionof H and L to find the probability of that pair of events occurring together if the pedestrian ignores the state of the light.

However, in trying to calculate themarginal probabilityP(H = Hit), what is being sought is the probability that H = Hit in the situation in which the particular value of L is unknown and in which the pedestrian ignores the state of the light. In general, a pedestrian can be hit if the lights are red OR if the lights are yellow OR if the lights are green. So, the answer for the marginal probability can be found by summing P(H | L) for all possible values of L, with each value of L weighted by its probability of occurring.

Here is a table showing the conditional probabilities of being hit, depending on the state of the lights. (Note that the columns in this table must add up to 1 because the probability of being hit or not hit is 1 regardless of the state of the light.)

Conditional distribution:
L
H
Red Yellow Green
Not Hit 0.99 0.9 0.2
Hit 0.01 0.1 0.8

To find the joint probability distribution, more data is required. For example, suppose P(L = red) = 0.2, P(L = yellow) = 0.1, and P(L = green) = 0.7. Multiplying each column in the conditional distribution by the probability of that column occurring results in the joint probability distribution of H and L, given in the central 2×3 block of entries. (Note that the cells in this 2×3 block add up to 1).

Joint distribution:
L
H
Red Yellow Green Marginal probability P(H)
Not Hit 0.198 0.09 0.14 0.428
Hit 0.002 0.01 0.56 0.572
Total 0.2 0.1 0.7 1

The marginal probability P(H = Hit) is the sum 0.572 along the H = Hit row of this joint distribution table, as this is the probability of being hit when the lights are red OR yellow OR green. Similarly, the marginal probability that P(H = Not Hit) is the sum along the H = Not Hit row.

Multivariate distributions

[edit]
Many samples from a bivariate normal distribution. The marginal distributions are shown in red and blue. The marginal distribution of X is also approximated by creating a histogram of the X coordinates without consideration of the Y coordinates.

Formultivariate distributions,formulae similar to those above apply with the symbolsXand/orYbeing interpreted as vectors. In particular, each summation or integration would be over all variables except those contained inX.[5]

That means, IfX1,X2,…,Xnarediscreterandom variables,then the marginalprobability mass functionshould be ifX1,X2,…,Xnarecontinuous random variables,then the marginalprobability density functionshould be

See also

[edit]

References

[edit]
  1. ^Trumpler, Robert J. & Harold F. Weaver (1962).Statistical Astronomy.Dover Publications. pp. 32–33.
  2. ^"Marginal & Conditional Probability Distributions: Definition & Examples".Study.com.Retrieved2019-11-16.
  3. ^"Exam P [FSU Math]".www.math.fsu.edu.Retrieved2019-11-16.
  4. ^Marginal and conditional distributions,retrieved2019-11-16
  5. ^A modern introduction to probability and statistics: understanding why and how.Dekking, Michel, 1946-. London: Springer. 2005.ISBN9781852338961.OCLC262680588.{{cite book}}:CS1 maint: others (link)

Bibliography

[edit]
  • Everitt, B. S.; Skrondal, A. (2010).Cambridge Dictionary of Statistics.Cambridge University Press.
  • Dekking, F. M.; Kraaikamp, C.; Lopuhaä, H. P.; Meester, L. E. (2005).A modern introduction to probability and statistics.London: Springer.ISBN9781852338961.