Re: [R] statistics

From: peter dalgaard <pdalgd_at_gmail.com>
Date: Sat, 09 Apr 2011 08:55:36 +0200

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

______________________________________________
R-help_at_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.
Received on Sat 09 Apr 2011 - 06:58:23 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Sat 09 Apr 2011 - 07:40:28 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.

list of date sections of archive