Let $X$ be a Random Variable with a Probability Density Function (PDF) $f(x)$. The Expected Value of $X$, denoted as $\mathbb{E}[X]$ is defined as:
\begin{equation} \mathbb{E}[X] = \int_{-\infty}^{\infty} x \cdot f(x) \, dx \end{equation}
To me, the above integral seems to represent the 'area under the curve' for some mathematical function $x \cdot f(x)$ between $-\infty$ and $+\infty$.
My Question: Why does the answer of this integral "magically" correspond to the "mean value" of $x$?
The answer to this integral will cover an entire area (i.e. sum) - therefore, why does $\mathbb{E}[X] = \int_{-\infty}^{\infty} x \cdot f(x) \, dx$ correspond to the mean value of $x$?
To me, this logic seems somewhat "arbitrary" - why is the average not equal to something like $\mathbb{E}[X] = \int_{-\infty}^{\infty} x^2 \cdot f(x) \, dx$ or $\mathbb{E}[X] = \int_{-\infty}^{\infty} x^3 \cdot f^{-1}(x) \, dx$?
Thanks!
- Note: As a final note, my understanding of the "Average" is that of the "Expected Value". Suppose I have a 6-sided die - if I roll this die an infinite number of time, what would I "expect" the outcome of the die (i.e. "value of the die") to be? That is, on average - what would I expect to see in the die?
- Assuming its a fair die - I can expect that each number on the die has a 1/6 probability of appearing.
- Therefore, if I multiply each possible number the die can take by the probability of that number appearing - then, I take the average(by taking a sum) of this, I would get the Expected Value of the die
- Since discrete sums are equivalent to continuous integrals - the Expected Value of a continuous Random Variable would correspond to $\mathbb{E}[X] = \int_{-\infty}^{\infty} x \cdot f(x) \, dx$