Re: [R] binomial distribution

2010-08-28 Thread tamas barjak
Perfect! Thank You! 2010/8/28 Peter Dalgaard > On 08/28/2010 10:23 PM, tamas barjak wrote: > > Hello! > > > > I need some help. > > How I know it to draw the formula of the binomial distribution? > > > > expr<-expression(P(xi == k) == choose(n, k)* p^k*(1-p)^(n-k)) ---> not > good > > > > on th

Re: [R] binomial distribution

2010-08-28 Thread Peter Dalgaard
On 08/28/2010 10:23 PM, tamas barjak wrote: > Hello! > > I need some help. > How I know it to draw the formula of the binomial distribution? > > expr<-expression(P(xi == k) == choose(n, k)* p^k*(1-p)^(n-k)) ---> not good > > on the screen the "choose(n, k)" not the Binomial Formula, but "choose(

Re: [R] binomial distribution

2010-08-28 Thread Cuckovic Paik
try: ?pbinom -- View this message in context: http://r.789695.n4.nabble.com/binomial-distribution-tp2398568p2398705.html Sent from the R help mailing list archive at Nabble.com. __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listin

[R] binomial distribution

2010-08-28 Thread tamas barjak
Hello! I need some help. How I know it to draw the formula of the binomial distribution? expr<-expression(P(xi == k) == choose(n, k)* p^k*(1-p)^(n-k)) ---> not good on the screen the "choose(n, k)" not the Binomial Formula, but "choose(n, k)" Thanx! [[alternative HTML version deleted]]

Re: [R] binomial distribution

2008-06-27 Thread Peter Dalgaard
Peng Jiang wrote: > Hi, xiechao > i don't think that is a R specific problem. you mean u got two random > variables X,Y and both > of them binomial distributed and you want to find the distribution of > a new variable Z = X/Y. > That is a basic transformation problem. u can start with introducing

Re: [R] binomial distribution

2008-06-27 Thread Peng Jiang
Hi, xiechao i don't think that is a R specific problem. you mean u got two random variables X,Y and both of them binomial distributed and you want to find the distribution of a new variable Z = X/Y. That is a basic transformation problem. u can start with introducing a new r.v. namely W, by

[R] binomial distribution

2008-06-27 Thread Xie Chao
Hi all, I am a biological student and need your help in statistics. I have two sets of binomial distributed numbers: {a1, a2, ..., an} and {b1, b2, ..., bn}. How can I get the distribution of the ratios of the two sets of numbers {a1/b1, a2/b2, ..., an/bn}? Is there a formula to transform the di