[Math] Uniform Distribution / Normal Distribution

normal distributionprobabilityuniform distribution

Let the random variable X ~ U ( 0, k ) and Y is a second random variable such as
Y | X ~ N ( X , 1).
a) Determine the Y density function if k = A .
b) Determine the value of k if COV [X , Y ] = B.

a)
So I started with this:

The density function of a uniform distribution is f(x)=1/(b-a), which is here f(x)=1/(k-0).

So we have f(x)=1/A

The density function of a normal distribution ( because its hard to right here, the variables are associated like this …~N(µ,, σ^2) )

The thing that i don't understand is how can the random variable X be in the arguments of the normal distribution, I'm used to have just a number and fill the numbers in the equation. And second thing, I don't really get the conditional transformation.[

Best Answer

The pdf of $Y$ is obtained by taking the joint pdf of $(X,Y)$ and marginalizing $X$ out. That is:

$$f_Y(y)=\int_{-\infty}^\infty f_{X,Y}(x,y) dx.$$

The joint pdf of $(X,Y)$ is the product of the conditional pdf $f_{Y|X}(y|x)$ and the pdf of $X$, $f_X$. (If this seems weird to you, it is basically analogous to the familiar identity $P(A \cap B)=P(A \mid B) P(B)$.) That is:

$$f_{X,Y}(x,y)=f_{Y|X}(y|x) f_X(x).$$

You have these two pdfs, so with this and some calculus you can do part 1. Once you have the joint pdf you can compute the covariance with some more calculus, so you can do part 2.

The one thing you seem to be having trouble reading is the conditional pdf. The problem is trying to tell you that $f_{Y|X}(y|x)$, for each fixed $x$, is the pdf of a normal r.v. with mean $x$ and variance $1$.