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


Groups > comp.soft-sys.math.mathematica > #1988 > unrolled thread

Re: Expected value of the Geometric distribution

Started byBob Hanlon <hanlonr@cox.net>
First post2011-04-29 11:32 +0000
Last post2011-04-29 11:32 +0000
Articles 1 — 1 participant

Back to article view | Back to comp.soft-sys.math.mathematica


Contents

  Re: Expected value of the Geometric distribution Bob Hanlon <hanlonr@cox.net> - 2011-04-29 11:32 +0000

#1988 — Re: Expected value of the Geometric distribution

FromBob Hanlon <hanlonr@cox.net>
Date2011-04-29 11:32 +0000
SubjectRe: Expected value of the Geometric distribution
Message-ID<ipe7k8$qvo$1@smc.vnet.net>
GeometricDistribution is a discrete distribution

dist = GeometricDistribution[p];

Mean[dist]

-1 + 1/p

Sum[k*PDF[dist, k], {k, 0, Infinity}]

(1 - p)/p

% == %% // Simplify

True


Bob Hanlon

---- Tonja Krueger <tonja.krueger@web.de> wrote: 

=============
Hi all,
I want to calculate expected value of diverse distributions like the Geometric distribution (for example).
As I understand this, the expected value is the integral of the density function *x.
But when I try to calculate this:
Integrate[(1-p)^k*p*k,k]
I get this as the answer:
((1 - p)^k p (-1 + k Log[1 - p]))/Log[1 - p]^2
Instead of: (1-p)/p.
I would be so grateful if someone could explain to me what I'm doing wrong.
Tonja
___________________________________________________________
Empfehlen Sie WEB.DE DSL Ihren Freunden und Bekannten und wir  
belohnen Sie mit bis zu 50,- Euro! https://freundschaftswerbung.web.de


[toc] | [standalone]


Back to top | Article view | comp.soft-sys.math.mathematica


csiph-web