# OpenStax-CNX

You are here: Home » Content » Sums of Random Variables

### Recently Viewed

This feature requires Javascript to be enabled.

# Sums of Random Variables

Module by: Nick Kingsbury. E-mail the author

Summary: This module introduces sums of random variables.

Note: You are viewing an old version of this document. The latest version is available here.

Consider the random variable YY formed as the sum of two independent random variables X1X1 and X2X2 :

Y= X1 + X2 Y X1 X2
(1)
where X1X1 has pdf f1 x1 f1 x1 and X2X2 has pdf f2 x2 f2 x2 .

We can write the joint pdf for yy and x1x1 by rewriting the conditional probability formula:

fy x1 =fy| x1 f1 x1 f y x1 f | y x1 f1 x1
(2)
It is clear that the event 'YY takes the value yy conditional upon X1 = x1 X1 x1 ' is equivalent to X2X2 taking a value y x1 y x1 (since X2 =Y X1 X2 Y X1 ). Hence
fy| x1 = f2 y x1 f | y x1 f2 y x1
(3)
Now fy f y may be obtained using the Marginal Probability formula ((Reference) from (Reference)). Hence
fy=fy| x1 f1 x1 d x1 = f2 y x1 f1 x1 d x1 = f2 * f1 f y x1 f | y x1 f1 x1 x1 f2 y x1 f1 x1 f2 f1
(4)
This result may be extended to sums of three or more random variables by repeated application of the above arguments for each new variable in turn. Since convolution is a commutative operation, for n independent variables we get:
fy= fn * f n - 1 ** f2 * f1 = fn * f n - 1 ** f2 * f1 f y fn f n - 1 f2 f1 fn f n - 1 f2 f1
(5)
An example of this effect occurs when multiple dice are thrown and the scores are added together. In the 2-dice example of a,b,c subfigure of (Reference) we saw how the pmf approximated a triangular shape. This is just the convolution of two uniform 6-point pmfs for each of the two dice.

Similarly if two variables with Gaussian pdfs are added together, we shall show in (Reference) that this produces another Gaussian pdf whose variance is the sum of the two input variances.

## Content actions

### Give feedback:

My Favorites (?)

'My Favorites' is a special kind of lens which you can use to bookmark modules and collections. 'My Favorites' can only be seen by you, and collections saved in 'My Favorites' can remember the last module you were on. You need an account to use 'My Favorites'.

| A lens I own (?)

#### Definition of a lens

##### Lenses

A lens is a custom view of the content in the repository. You can think of it as a fancy kind of list that will let you see content through the eyes of organizations and people you trust.

##### What is in a lens?

Lens makers point to materials (modules and collections), creating a guide that includes their own comments and descriptive tags about the content.

##### Who can create a lens?

Any individual member, a community, or a respected organization.

##### What are tags?

Tags are descriptors added by lens makers to help label content, attaching a vocabulary that is meaningful in the context of the lens.

| External bookmarks