# Thread: Mean and median for continuous random variable

1. ## Mean and median for continuous random variable

Hi,
I thought I could use two equations and solve them simultaneously but I am confused on what information to use.

Thanks

2. ## Re: Mean and median for continuous random variable

you have two integral conditions

$\displaystyle \int_0^B~f(y)~dy = 1$

$E[Y] = \displaystyle \int_0^B~yf(y)~dy = 2$

substituting in $f(y)$ we get

$\displaystyle \int_0^B~A y~dy = 1$

$E[Y]=\displaystyle \int_0^B~Ay^2~dy = 2$

I'm sure you can take it from here.