On Apr 8, 2011, at 20:33 , vikas wrote:

> if X is a binomial variate with parameters n and p, find E[1/(X+1)]
> 

(A) This is not a list for helping people with their homework
(B) This is to be solved using pencil and paper. R can't help you there.
(C) Once you have a solution, you can check the result for any particular n and 
p with
    sum(dbinom(0:n,n,p)/(1:(n+1)))

-- 
Peter Dalgaard
Center for Statistics, Copenhagen Business School
Solbjerg Plads 3, 2000 Frederiksberg, Denmark
Phone: (+45)38153501
Email: pd....@cbs.dk  Priv: pda...@gmail.com

______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to