Does $E(X-E(X))=0$? - Mathematics Stack Exchange

    1. Home
    2. Questions
    3. Tags
    4. Users
    5. Unanswered
  1. Teams

    Ask questions, find answers and collaborate at work with Stack Overflow for Teams.

    Try Teams for free Explore Teams
  2. Teams
  3. Ask questions, find answers and collaborate at work with Stack Overflow for Teams. Explore Teams

Teams

Q&A for work

Connect and share knowledge within a single location that is structured and easy to search.

Learn more about Teams Does $E(X-E(X))=0$? Ask Question Asked 10 years, 3 months ago Modified 10 years, 3 months ago Viewed 19k times 10 $\begingroup$

In a book I was reading, it seemed to imply that $E(X-E(X))=0$. My intuition tells me this is true, because if $E(X)$ is the "centre", then the average displacement from this centre should be 0. However, can someone show me a formal proof (assuming it is true)?

Share Cite Follow asked Sep 5, 2014 at 20:37 someguy's user avatar someguysomeguy 2431 gold badge3 silver badges9 bronze badges $\endgroup$ 1
  • 3 $\begingroup$ Yes, use aditivitty of the expected value and E(E(X)) = E(X) $\endgroup$ – PenasRaul Commented Sep 5, 2014 at 20:38
Add a comment |

5 Answers 5

Sorted by: Reset to default Highest score (default) Date modified (newest first) Date created (oldest first) 17 $\begingroup$

It is true by the linearity of expectation:

$$E(X - E(X)) = E(X) - E(E(X))$$

Since $E(X)$ is a constant $E(E(X))$ is just $E(X)$ and therefore $E(X) - E(E(X)) = 0$

Share Cite Follow answered Sep 5, 2014 at 20:40 Null's user avatar NullNull 1,3523 gold badges18 silver badges22 bronze badges $\endgroup$ 1
  • $\begingroup$ Thank you. What confused me when I was trying to derive this is E(E(X)). In my mind I was thinking E(X) is a function of X, but of course it's a constant. $\endgroup$ – someguy Commented Sep 5, 2014 at 20:43
Add a comment | 5 $\begingroup$

Expectations are additive: $$E(A+B) = E(A) + E(B)$$

So in particular, $$\begin{align}E(X-E(X)) &= E(X) - E(E(X))\\ & = E(X) - E(X)\\ &= 0.\end{align}$$ where the second line follows because $E(X)$ is a constant and $E(C) = C$ for constants.

Share Cite Follow answered Sep 5, 2014 at 20:39 community wiki MJD $\endgroup$ Add a comment | 2 $\begingroup$

$$ \mathbb{E}(X-\mathbb{E}(X)) = \mathbb{E}(X) - \mathbb{E}(\mathbb{E}(X)) = \mathbb{E}(X) - \mathbb{E}(X) = 0.$$

Or even $$ \mathbb{E}(X-\mathbb{E}(X))^2 = \mathbb{E}((X-\mathbb{E}(X)^2) - \mbox{Var}(X-\mathbb{E}(X)) = \mbox{Var}(X) - \mbox{Var}(X) = 0. $$

Share Cite Follow edited Sep 5, 2014 at 20:55 answered Sep 5, 2014 at 20:40 user133281's user avatar user133281user133281 16.2k2 gold badges37 silver badges64 bronze badges $\endgroup$ 1
  • $\begingroup$ The second option requires the assumption that $E[X^2]< \infty$, while the statement that $E[X-E[X]] = 0$ only requires $E[X]$ exist (i.e. $E[|X|] < \infty$) [$E[X^2]<\infty$ obviously implies $E[X]$ exists]. So if I were grading the question, I'd probably dock points for the second answer. $\endgroup$ – Batman Commented Sep 5, 2014 at 21:10
Add a comment | 2 $\begingroup$

Yes, it's true in general by linearity of expectations.

But as an illustration, consider the discrete, finite case with $n$ values: $X=\{x_1,x_2,\dots,x_n\}$ each occurring with equal probability.

Then

$$ E(X)=\dfrac{1}{n} \sum_{i=1}^{n} x_i $$

and

$$ E(X-E(X))=\dfrac{1}{n}\sum_{j=1}^{n}\left(x_j-\dfrac{1}{n}\sum_{i=1}^{n}x_i \right)=\dfrac{1}{n}\left(\sum_{j=1}^{n}x_j - \sum_{i=1}^n x_i\right)=0 $$

In the last step we have moved the sum over $i$ outside the sum over $j$, because the former does not depend on $j$. We need to multiply the $\sum_i$ term by $n$, however, as $\sum_j$ has $n$ terms. This $n$ cancels out with the $1/n$ associated with the $\sum_i$ term.

Share Cite Follow edited Sep 6, 2014 at 4:36 answered Sep 5, 2014 at 20:41 MGA's user avatar MGAMGA 9,6764 gold badges42 silver badges59 bronze badges $\endgroup$ 6
  • $\begingroup$ You implicitly assume each x has equal probability of being drawn. $\endgroup$ – candido Commented Sep 5, 2014 at 21:10
  • $\begingroup$ @candido I'm just talking about the average of a set of numbers. $\endgroup$ – MGA Commented Sep 5, 2014 at 21:56
  • $\begingroup$ Right, the average of a a set of numbers is as you defined it, but the expected value is not necessarily an average that gives each value the same weight. E(X) is not quite how you defined it. You are correct that E(X) is how you defined it ONLY IF each value of x has an equal probability of being drawn, since then Pr(xi)=1/n like you defined it. In other words, the way you used E(X) is a special case of the more general definition of E(X) with a general density f(x). en.wikipedia.org/wiki/Expected_value $\endgroup$ – candido Commented Sep 6, 2014 at 3:25
  • $\begingroup$ @candido Yes yes, I know, and I agree with everything you said. I just wanted to give the OP an illustration for the simplest possible case, that's all :) $\endgroup$ – MGA Commented Sep 6, 2014 at 4:31
  • $\begingroup$ Ah ok! Didn't mean to be picky, just thought I'd help just in case :) $\endgroup$ – candido Commented Sep 6, 2014 at 4:32
| Show 1 more comment 0 $\begingroup$

More Generally, note that for a random variable (r.v.) X can have a discrete distribution with probabilities that X can take a certain value x is P(X=x) (the probability mass function), a continuous distribution, where X has a continuous probability density function f(x) (or a mixture for a set of domains). If X is wholly discrete f(x) is zero for all x, likewise a fully continuous r.v. means P(X=x) = 0 for all x.

$$E(X) = \sum_{x=0}^\infty xP(X=x) + \int_0^\infty xf(x) \;\mathrm{dx}$$

Which means

$$E(X-E(X)) = \sum_{x=0}^\infty \left(x- \left[\sum_{x=0}^\infty xP(X=x) + \int_0^\infty xf(x) \;\mathrm{dx}\right]\right)P(X=x) + \int_0^\infty \left(x-\left[\sum_{x=0}^\infty xP(X=x) + \int_0^\infty xf(x) \;\mathrm{dx}\right]\right)f(x) \;\mathrm{dx}$$

This may seems like overkill BUT you can then just follow the algebra without quoting presumed theorems (linearity of Expectation etc) - which can easily be derived anyway...

Share Cite Follow edited Sep 5, 2014 at 22:53 Michael Hardy's user avatar Michael Hardy 1 answered Sep 5, 2014 at 21:34 Weibull's user avatar WeibullWeibull 113 bronze badges $\endgroup$ 3
  • $\begingroup$ Why do you exclude "$+$" and "$=$" from your MathJax code?? (I corrected it.) $\endgroup$ – Michael Hardy Commented Sep 5, 2014 at 22:55
  • $\begingroup$ Thanks, I'm new to the code; didn't realise it made a difference haha $\endgroup$ – Weibull Commented Sep 6, 2014 at 12:05
  • $\begingroup$ The difference is huge if you do it with a minus sign: $\displaystyle\int f(x)\,dx-\int g(x)\,dx$ versus $\displaystyle\int f(x)\,dx$-$\int g(x)\,dx$ ${}\qquad{}$ $\endgroup$ – Michael Hardy Commented Sep 6, 2014 at 16:11
Add a comment |

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .

  • Featured on Meta
  • The December 2024 Community Asks Sprint has been moved to to March 2025 (and...
  • Stack Overflow Jobs is expanding to more countries
3 Does a second moment of zero imply a mean of zero? 1 Calculation of the $n$-th moment of the normal distribution 2 What allows us to divide a random variable into multiple ones? 1 The expected steps of two probabilistic events until a "success" 2 Expected score from threshold 0 Find expectation of $X_1$ given $\sum_{k=1}^n X_k=j$ 0 Group of 3 friends and books, Variance Problem 5 Does $\mathbb{E}(X-a)^2$ finite imply $\mathbb{E}(X^2)$ finite? 2 On Average, How Many Attempts to generate a hash with two zeros's as prefix

Hot Network Questions

  • Why won't my White Chocolate Ganache set in the freezer?
  • Interval Placement
  • How services such as FlightAware know ground speed of a GA airplane
  • Where do the te'amim variants in Bereishit 48:20-22 in Simanim come from?
  • closed form for an alternating cosecant sum
  • Why is there no strong contrast between inside and outside the tunnel in my Blender animation?
  • How related are imaginability and coherence?
  • Is there a classical Lagrangian system with essentially no cyclic coordinates?
  • What is a כרום?
  • What has this figure to do with the Pythagorean theorem?
  • 70s or 80s sci-fi book, boy has secateur hand
  • Fundamentals of pricing theory, Arrow security pricing
  • Can the Pythagorean theorem be proved using imaginary numbers?
  • PHP7.4 ldap broken on focal after 13 dec 2024
  • Isomorphism-invariance and categorical properties in Set
  • How does physicalism interpret mathematical theorems in physicalist terms?
  • What are the disadvantages of using an endurance gravel bike (with smooth tires) as an endurance road bike?
  • What if a potential employer knows that you are working on a stealth startup on the side?
  • Use public CA wildcard certificate for initial ssh connection
  • Expectations of estimators
  • Can you identify a cartoon in which Flash became fat?
  • Limit the difference between two sliders in Manipulate
  • Does a boxplot assume interval data?
  • Having trouble understanding saturation mode in an npn BJT transistor
more hot questions Question feed Subscribe to RSS Question feed

To subscribe to this RSS feed, copy and paste this URL into your RSS reader.

Từ khóa » Xe^x=0