Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.soft-sys.math.mathematica > #10527 > unrolled thread
| Started by | Bob Hanlon <hanlonr357@gmail.com> |
|---|---|
| First post | 2012-06-18 09:41 +0000 |
| Last post | 2012-06-19 07:18 +0000 |
| Articles | 2 — 2 participants |
Back to article view | Back to comp.soft-sys.math.mathematica
This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by
below is the oldest one visible, not the original post.
Re: power of logistic distribution Bob Hanlon <hanlonr357@gmail.com> - 2012-06-18 09:41 +0000
Re: power of logistic distribution paul <paulvonhippel@yahoo.com> - 2012-06-19 07:18 +0000
| From | Bob Hanlon <hanlonr357@gmail.com> |
|---|---|
| Date | 2012-06-18 09:41 +0000 |
| Subject | Re: power of logistic distribution |
| Message-ID | <jrmt45$h0d$1@smc.vnet.net> |
dist = LogisticDistribution[m, s];
Simplify[Moment[dist, n], n >= 0]
(2*Pi)^n*((-I)*s)^n*BernoulliB[n, 1/2 + (I*m)/(2*Pi*s)]
And@@Table[Moment[dist, n] == Mean[TransformedDistribution[z^n, z\[Distributed]dist]], {n, 0, 40}]//Simplify
True
Bob Hanlon
On Jun 17, 2012, at 3:58 AM, paul <paulvonhippel@yahoo.com> wrote:
> I would like an expression for the mean of a variable that is some integer power of a logistic variable. I have tried the following approach, which did not work. Many thanks for any suggestions.
>
> Here is what I've done so far. If I specify the power (e.g., power=2), Mathematica returns an answer rather quickly -- e.g.,
>
> In[66]:= Mean[TransformedDistribution[Z^2,
> Z \[Distributed] LogisticDistribution[\[Mu], \[Sigma]]]]
> Out[66]= 1/3 (3 \[Mu]^2 + \[Pi]^2 \[Sigma]^2)
>
> I get quick results if the power is 2, 3, 4, ..., 100. So it seems to me there must be some general solution for integer powers. But when I ask for that general solution, Mathematica simply echoes the input:
>
> In[64]:= Assuming[p \[Element] Integers,
> Mean[TransformedDistribution[Z^p,
> Z \[Distributed] LogisticDistribution[\[Mu], \[Sigma]]]]]
> Out[64]= Mean[
> TransformedDistribution[\[FormalX]^
> p, \[FormalX] \[Distributed] LogisticDistribution[\[Mu], \[Sigma]]]]
>
> Why isn't it giving me something more digested?
>
[toc] | [next] | [standalone]
| From | paul <paulvonhippel@yahoo.com> |
|---|---|
| Date | 2012-06-19 07:18 +0000 |
| Message-ID | <jrp93r$qbm$1@smc.vnet.net> |
| In reply to | #10527 |
On Monday, June 18, 2012 4:41:25 AM UTC-5, Bob Hanlon wrote:
> dist = LogisticDistribution[m, s];
>
> Simplify[Moment[dist, n], n >= 0]
>
> (2*Pi)^n*((-I)*s)^n*BernoulliB[n, 1/2 + (I*m)/(2*Pi*s)]
>
> And@@Table[Moment[dist, n] == Mean[TransformedDistribution[z^n, z\[Distributed]dist]], {n, 0, 40}]//Simplify
>
> True
>
>
> Bob Hanlon
>
>
> On Jun 17, 2012, at 3:58 AM, paul
> wrote:
>
> > I would like an expression for the mean of a variable that is some integer power of a logistic variable. I have tried the following approach, which did not work. Many thanks for any suggestions.
> >
> > Here is what I've done so far. If I specify the power (e.g., power=2), Mathematica returns an answer rather quickly -- e.g.,
> >
> > In[66]:= Mean[TransformedDistribution[Z^2,
> > Z \[Distributed] LogisticDistribution[\[Mu], \[Sigma]]]]
> > Out[66]= 1/3 (3 \[Mu]^2 + \[Pi]^2 \[Sigma]^2)
> >
> > I get quick results if the power is 2, 3, 4, ..., 100. So it seems to me there must be some general solution for integer powers. But when I ask for that general solution, Mathematica simply echoes the input:
> >
> > In[64]:= Assuming[p \[Element] Integers,
> > Mean[TransformedDistribution[Z^p,
> > Z \[Distributed] LogisticDistribution[\[Mu], \[Sigma]]]]]
> > Out[64]= Mean[
> > TransformedDistribution[\[FormalX]^
> > p, \[FormalX] \[Distributed] LogisticDistribution[\[Mu], \[Sigma]]]]
> >
> > Why isn't it giving me something more digested?
> >
Excellent -- thank you! Two further questions, if I may:
1. Why did the Moment function work where the Mean function did not?
2. As the moment is real, I wonder if there is an expression for it that does not involve complex numbers.
[toc] | [prev] | [standalone]
Back to top | Article view | comp.soft-sys.math.mathematica
csiph-web