(3 intermediate revisions by 3 users not shown) | |||
Line 1: | Line 1: | ||
− | = [[:Category:Problem solving|Practice Problem]]: compute the | + | = [[:Category:Problem solving|Practice Problem]]: compute the first order moment of a Gaussian random variable = |
---- | ---- | ||
Line 28: | Line 28: | ||
<math>E[X^{1}]=\int_{-\infty }^{\infty }xf_{X}(x)dx=\frac{1}{3\sqrt{2\Pi }}\int_{-\infty }^{\infty }xe^{-\frac{(x-3)^{2}}{18}}dx=\frac{1}{3\sqrt{2\Pi }}9\sqrt{2\Pi }=3</math> | <math>E[X^{1}]=\int_{-\infty }^{\infty }xf_{X}(x)dx=\frac{1}{3\sqrt{2\Pi }}\int_{-\infty }^{\infty }xe^{-\frac{(x-3)^{2}}{18}}dx=\frac{1}{3\sqrt{2\Pi }}9\sqrt{2\Pi }=3</math> | ||
+ | ---- | ||
+ | ===Comment on Answer 1=== | ||
+ | <span style="color:blue">I have seen 'E(x^n) is defined as:'</span> | ||
− | < | + | <math>{\color{blue} E[X^{n}]=\int_{-\infty }^{\infty }x^{n}f_{X}(x)dx \;\;\; (1)}</math> |
− | < | + | <span style="color:blue">in a few of the hmwrk 5 answers. However, I think there's an important distinction between equivalency and definition. E(x^n) is not defined as (1); it is only E(x) that is defined as</span> |
− | < | + | <math>{\color{blue} E[X]=\int_{-\infty }^{\infty }xf_{X}(x)dx \;\;\; (2)}</math> |
− | < | + | <span style="color:blue">E(x^n) happens to equal (1) by way of the more general fact that</span> |
− | < | + | <math>{\color{blue} E[g(X)]=\int_{-\infty }^{\infty }g(X)f_{X}(x)dx \;\;\; (3)}</math> |
− | + | <span style="color:blue">See pgs 84-85 from Bertsekas and Tsitsiklis to see why. -ag</span> | |
− | + | ||
− | <span style="color: | + | |
+ | :<span style="color:green">Instructor's comment: You are correct ag, I couldn't have said it better. I appreciate your attention to details. -pm </span> | ||
+ | ---- | ||
+ | ===Another comment on Answer 1=== | ||
+ | <span style="color:green">Did you figure out the integral "by hand" or did you just plug it into a symbolic conputation software? You will need to be able to integrate by hand on the test. -pm </span> | ||
=== Answer 2 === | === Answer 2 === | ||
Latest revision as of 13:00, 25 March 2013
Contents
Practice Problem: compute the first order moment of a Gaussian random variable
A random variable X has the following probability density function:
$ f_X (x) = \frac{1}{\sqrt{2\pi} 3 } e^{\frac{-(x-3)^2}{18}} . $
Compute the moment of order one of that random variable. In other words, compute
$ E \left( X^1 \right) . $
You will receive feedback from your instructor and TA directly on this page. Other students are welcome to comment/discuss/point out mistakes/ask questions too!
Answer 1
The moment of n-th order moment is defined as: $ E[X^{n}]=\int_{-\infty }^{\infty }x^{n}f_{X}(x)dx $
Therefore,
$ E[X^{1}]=\int_{-\infty }^{\infty }xf_{X}(x)dx=\frac{1}{3\sqrt{2\Pi }}\int_{-\infty }^{\infty }xe^{-\frac{(x-3)^{2}}{18}}dx=\frac{1}{3\sqrt{2\Pi }}9\sqrt{2\Pi }=3 $
Comment on Answer 1
I have seen 'E(x^n) is defined as:'
$ {\color{blue} E[X^{n}]=\int_{-\infty }^{\infty }x^{n}f_{X}(x)dx \;\;\; (1)} $
in a few of the hmwrk 5 answers. However, I think there's an important distinction between equivalency and definition. E(x^n) is not defined as (1); it is only E(x) that is defined as
$ {\color{blue} E[X]=\int_{-\infty }^{\infty }xf_{X}(x)dx \;\;\; (2)} $
E(x^n) happens to equal (1) by way of the more general fact that
$ {\color{blue} E[g(X)]=\int_{-\infty }^{\infty }g(X)f_{X}(x)dx \;\;\; (3)} $
See pgs 84-85 from Bertsekas and Tsitsiklis to see why. -ag
- Instructor's comment: You are correct ag, I couldn't have said it better. I appreciate your attention to details. -pm
Another comment on Answer 1
Did you figure out the integral "by hand" or did you just plug it into a symbolic conputation software? You will need to be able to integrate by hand on the test. -pm
Answer 2
Write it here.
Answer 3
Write it here.