Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.soft-sys.math.mathematica > #10559 > unrolled thread
| Started by | paul <paulvonhippel@yahoo.com> |
|---|---|
| First post | 2012-06-20 07:50 +0000 |
| Last post | 2012-06-20 07:50 +0000 |
| Articles | 1 — 1 participant |
Back to article view | Back to comp.soft-sys.math.mathematica
Moment function paul <paulvonhippel@yahoo.com> - 2012-06-20 07:50 +0000
| From | paul <paulvonhippel@yahoo.com> |
|---|---|
| Date | 2012-06-20 07:50 +0000 |
| Subject | Moment function |
| Message-ID | <jrrvc5$4r8$1@smc.vnet.net> |
I would like a formula for the mth moment of Z^p, where Z~Normal(mu,sigma) and p is a positive integer. With m=p=1, the answer should be mu -- i.e., the first moment of a normal variable is the mean mu. But that's not what I get when I do it this way:
momentPN =
FullSimplify[
Moment[TransformedDistribution[Z^p,
Z \[Distributed] NormalDistribution[\[Mu], \[Sigma]]], m], {m > 0,
p > 0, Element[p, Integers], Element[m, Integers]}]
FullSimplify[
momentPN /. {p -> 1, m -> 1}, {\[Sigma] > 0, Element[\[Mu], Reals]}]
I know other ways to get the right answer, but why doesn't this method work?
Back to top | Article view | comp.soft-sys.math.mathematica
csiph-web