I'm new to statistics and I'm struggling to solve a question from an assignment. I have a probability density function and I need to calculate its median
Here is the function:
$$f(x) = 2xe^{-x^2}, x>= 0$$
The answer is $\sqrt{\log 2}$.
Can someone help? I'm trying to learn
Best Answer
A median by definition is a real number $m$ that satisfies $$P(X\leq m)=\frac{1}{2}.$$ So in your case, we have $$\int_0^m2xe^{-x^2}\,dx=\frac{1}{2}.$$ How do you solve for $m$ then? Hint: integration by substitution.