# Probability density function

proton4ik

## Homework Statement

Hello! I'm trying to understand how to solve the following type of problems.

1) Random variables x and y are independent and uniformly distributed on the interval [0; a]. Find probability density function of a random variable z=x-y.

2) Exponentially distributed (p=exp(-x), x>=0) random variables x and y are independent. Find probability density function of a random variable z=x-y.

## Homework Equations

Can someone please check if my attempt to solve the problems is successful or not? I'd appreciate any help :)

## The Attempt at a Solution

(Attached file)

#### Attachments

• 20180520_111231-1.jpg
69.5 KB · Views: 486

Homework Helper
Just a comment:
From the exercise I read they want you to find the probability distribution itself, not the accumulated function. A slightly different beast.

And a question:
Do you know about convolution ? (you are more or less working it out on your own here). Understanding that concept makes things a lot easier.