# Multivariate Random Variable - Dependent and Independent Systems of Random Variables with Python

Part 20 of the series "Probability Theory and Statistics with Python"

In the article about distribution function, we came to the conclusion that it is possible to find the distribution functions of random variables of a vector by having the distribution function of the system.

Also, we can find probability density of random variable by knowing probability density of the vector.

By using this formulas we can find distribution function or probability density function of a single random variable. But is it possible by knowing distribution functions of separately taken random variables form distribution function of a system? It turns out that in general case this canâ€™t be done. In order to describe a system of random variables we also need to know relationships between variables. We can describe such relationships by using conditional probability distribution.

A conditional probability distribution of random variable *X* of a system *(X,Y) *is such distribution, where other random variable *Y *took specific value *y*.

In some cases, the dependence between variables can be so close that by knowing the value of one random variable you can find the value of other. In other cases dependence between variables so week that you can call them independent.

Random variable Y is independent of random variable X if the distribution of random variable Y independent from what value take X.

And if Y depends on X:

For independent continuous random variables we can find probability density by multiplying probability densities of separate random variables: