Post · 3 min read· pp. 160–161
Video Available 
In real life, we usually need to deal with more than one random variable. For example, if you study
physical characteristics of people in a certain area, you might pick a person at random and then
look at his/her weight, height, etc. The weight of the randomly chosen person is one random variable,
while his/her height is another one. Not only do we need to study each random variable separately,
but also we need to consider if there is dependence (i.e., correlation) between them. Is it
true that a taller person is more likely to be heavier or not? The issues of dependence between
several random variables will be studied in detail later on, but here we would like to talk about
a special scenario where two random variables are independent.
The concept of independent random variables is very similar to independent events. Remember, two
events A and B are independent if we have P(A,B)=P(A)P(B) (remember comma means and, i.e.,
P(A,B)=P(A and B)=P(A∩B)). Similarly, we have the following definition for independent
discrete random variables.
Definition
Consider two discrete random variables X and Y. We say that X and Y are independent if
P(X=x,Y=y)=P(X=x)P(Y=y), for all x,y.
In general, if two random variables are independent, then you can write
P(X∈A,Y∈B)=P(X∈A)P(Y∈B), for all sets A and B.
Intuitively, two random variables X and Y are independent if knowing the value of one of them
does not change the probabilities for the other one. In other words, if X and Y are independent,
we can write
P(Y=y∣X=x)=P(Y=y), for all x,y.
Similar to independent events, it is sometimes easy to argue that two random variables are independent
simply because they do not have any physical interactions with each other. Here is a simple example:
I toss a coin
2N times. Let
X be the number of heads that I observe in the first
N coin tosses
and let
Y be the number of heads that I observe in the second
N coin tosses. Since
X and
Y are
the result of independent coin tosses, the two random variables
X and
Y are independent. On the
other hand, in other scenarios, it might be more complicated to show whether two random variables are
independent.
Example
I toss a coin twice and define X to be the number of heads I observe. Then, I toss the coin two more
times and define Y to be the number of heads that I observe this time. Find
P((X<2) and (Y>1)).
- Solution
Since X and Y are the result of different independent coin tosses, the two random
variables X and Y are independent. Also, note that both random variables have the
distribution we found in
Example 3.3.
We can write
| |
|---|
| P((X<2) and (Y>1)) | $=P(X < 2)P(Y > 1) \hspace{20pt} \textrm{(because X and Y are independent)}$ |
| =(PX(0)+PX(1))PY(2) |
| =(41+21)41 |
| =163. |
We can extend the definition of independence to n random variables.
Definition
Consider n discrete random variables X1,X2,X3,...,Xn. We say that X1,X2,X3,...,Xn are
independent if
P(X1=x1,X2=x2,...,Xn=xn)
=P(X1=x1)P(X2=x2)...P(Xn=xn), for all x1,x2,...,xn.