[R] statistics

peter dalgaard pdalgd at gmail.com
Sat Apr 9 08:55:36 CEST 2011


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.mes at cbs.dk  Priv: PDalgd at gmail.com



More information about the R-help mailing list