Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.soft-sys.math.mathematica > #2106

Re: Expected value of the Geometric distribution

Path csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!news.dougwise.org!nntpfeed.proxad.net!proxad.net!feeder1-1.proxad.net!198.186.194.247.MISMATCH!news-out.readnews.com!transit3.readnews.com!newspump.sol.net!posts.news.twtelecom.net!nnrp3.twtelecom.net!not-for-mail
From Peter Breitfeld <phbrf@t-online.de>
Newsgroups comp.soft-sys.math.mathematica
Subject Re: Expected value of the Geometric distribution
Date Wed, 4 May 2011 23:48:22 +0000 (UTC)
Organization Steven M. Christensen and Associates, Inc and MathTensor, Inc.
Sender steve@smc.vnet.net
Approved Steven M. Christensen <steve@smc.vnet.net>, Moderator
Message-ID <ipsok6$8cb$1@smc.vnet.net> (permalink)
References <ipos29$i2t$1@smc.vnet.net>
Lines 53
NNTP-Posting-Date 04 May 2011 22:49:12 GMT
NNTP-Posting-Host dd96ef00.news.twtelecom.net
X-Trace DXC=Nk^[:^i[676k9S[AF=UEb5C_A=>8kQj6=Y;@_o827nG3^01nm;E34A0EFiONJ7[Go6`CIkOAeUBH=
X-Complaints-To abuse@twtelecom.net
Xref x330-a1.tempe.blueboxinc.net comp.soft-sys.math.mathematica:2106

Show key headers only | View raw


"Tonja Krueger" wrote:

> Dear everybody,
> Thank you all for your kind help. But I'm still stuck trying to find
> the expected value for a continuous distribution like the Gumbel
> distribution or GEV, Weibull.
> Moment[GumbelDistribution[\[Alpha], \[Beta]], 1]
> gives this as result:
> \[Alpha] - EulerGamma \[Beta]
> But when I try using
> Integrate[ E^(-E^(-((x - \[Mu])/\[Beta])) - (x -
> \[Mu])/\[Beta])/\[Beta]* x, {x, -\[Infinity], \[Infinity]}]
> This is what I get:
> ConditionalExpression[\[Beta] (EulerGamma + Log[E^(\[Mu]/\[Beta])] -
> E^-E^((\[Mu]/\[Beta])) Log[E^(-(\[Mu]/\[Beta]))] +
> Log[E^(\[Mu]/\[Beta])])), Re[\[Beta]] > 0]
> I am stumped.
> Tonja

Because GumpelDistribution ist defined for real mu and positive beta you
should take these Assumptions in Integrate:

Integrate[
 E^(-E^(-((x - mu)/beta)) - (x - mu)/beta)/beta* x,
 {x, -Infinity, Infinity},
 Assumptions -> {mu] \[Element] Reals, beta > 0}]

Out= EulerGamma beta + mu

Alternatively, you can Simplify your ConditionalExpression (I'll name it
int)

simpbeta=Simplify[int,beta>0]
Out

beta (EulerGamma + Log[E^(mu/beta)] - 
   E^-E^((mu/beta)) (Log[E^(-(mu/beta))] + Log[E^(mu/beta)]))

Mathematica assumes all variables to be potentially complex, so Log[E^x]
is not automatically simplified to x because Log is a multivalued
function. You can in this case either use

PowerExpand[simpbeta]

or declare mu to be real

Simplify[int,beta>0 && Element[mu,Reals]]

This will give you the desired result.
-- 
_________________________________________________________________
Peter Breitfeld, Bad Saulgau, Germany -- http://www.pBreitfeld.de

Back to comp.soft-sys.math.mathematica | Previous | NextPrevious in thread | Find similar | Unroll thread


Thread

Expected value of the Geometric distribution "Tonja Krueger" <tonja.krueger@web.de> - 2011-05-03 12:22 +0000
  Re: Expected value of the Geometric distribution Peter Breitfeld <phbrf@t-online.de> - 2011-05-04 23:48 +0000

csiph-web