Day 53: One Function of Two Random Variables Example 1
Hopefully at this point we’ve demystified more than just a few concepts at this point. Today we are going to look at one function of two random variables. Originally I was going to break into a joint CDF example that involved dependent variables, but it turns out my book doesn’t cover that! Oops, guess I should’ve read ahead. In any case let’s talk functions!*
For the last couple of posts we’ve talked joint CDF and how to find a joint pdf. This has made solving our equations easier because we could solve for the probabilities of each individual random variable thanks to the property of independence that we originally introduced back in this post. That is handy, but since we don’t have any good examples of joint CDF that are dependent we need to jump topics.
Today we are going to introduce one function of two random variables. As you can guess by the way we phrase this, there are two functions of two random variables and you may guess that there are even n functions of n random variables and you would be correct! However, in the interest of making this easy(er) to learn, let’s look at a single function of two random variables for now.
Thankfully, this looks a lot like one function of one random variable and the way we solve is fairly similar. Let’s look at a easier example of this. Say we have our old friends, the random variables X and Y, which are jointly continuous with the joint pdf that looks like this
Now say we are interested in finding
which if you recall from our brief introduction to E, that is the expected value operator, so you would read that as wanting the expected value of X times Y squared.
Well let’s do the math and walk through the steps after, you’ll see that
At first glance you may wonder where the first set of variables came from, well our expected value operator needs to get included here, what you are looking at is the form we use to solve these types of problems, which says that
I could have introduced this first, but I think seeing it in action first (at least for me) makes it easier to see how it works. So we have our g and f functions, (step 1). Next, we swap out our f for the actual function x+y and set the limits to our integration to 0 and 1 since that is where our function lives (step 2). Now since everything is in terms of x and y we can distribute (don’t forget to foil) and you come out with what you see (step 3).
If you never worked with a double integral, it is the same as a single integral, except you do it twice, once for the first variable and then again for the second, so we do this for our x variable and we get our new equation (step 4). Lastly, we need to integrate this once more for y, and plug in out limits of integration to determine the final solution (step 5).
There you have it! We’ve introduced one function of two random variables. Don’t worry, we can go over another example tomorrow and I’ll double check my class notes this time so I don’t give any wrong spoilers away about the next post in the future. Again, oops, but in any case, I have an exam coming shortly so we’re going to cover everything on the exam prior to it happening. At that point we will be caught up to my class and it should be smooth sailing until December when class ends.
Until next time, don’t stop learning!
*My dear readers, please remember that I make no claim to the accuracy of this information; some of it might be wrong. I’m learning, which is why I’m writing these posts and if you’re reading this then I am assuming you are trying to learn too. My plea to you is this, if you see something that is not correct, or if you want to expand on something, do it. Let’s learn together!!