Re: [R] Fwd: r-stats: Geometric Distribution

2023-10-19 Thread Sahil Sharma
Hi, today I came across the same problem. And, I'm able to explain it with an example as well. Suppose I want to PDF or P(X=5) in Geometric Distribution with P = 0.2. The theoretical formula is P * (1-P) ^ (x -1). But the R function dgeom(x, p) works like P * (1-P) ^ x, it does not reduce 1 from

Re: [R] Fwd: r-stats: Geometric Distribution

2023-10-18 Thread Jim Lemon
Please delete drjimle...@gmail.com from your mailing lists. He passed away a mknth ago. Regards, Juel Wife On Tue, 17 Oct 2023, 22:58 Sahil Sharma -- Forwarded message - > From: Sahil Sharma > Date: Tue, Oct 17, 2023 at 12:10 PM > Subject: r-stats: Geometric Distribution > To:

Re: [R] Fwd: r-stats: Geometric Distribution

2023-10-17 Thread Ivan Krylov
В Tue, 17 Oct 2023 12:12:05 +0530 Sahil Sharma пишет: > The original formula for Geometric Distribution PDF is > *((1-p)^x-1)*P*. However, the current r function *dgeom(x, p)* is > doing this: *((1-p)^x)*P, *it is not reducing 1 from x. Your definition is valid for integer 'x' starting from 1.

[R] Fwd: r-stats: Geometric Distribution

2023-10-17 Thread Sahil Sharma
-- Forwarded message - From: Sahil Sharma Date: Tue, Oct 17, 2023 at 12:10 PM Subject: r-stats: Geometric Distribution To: Hey I want to raise one issue in *r-stats **geometric distribution * function. I have found the dgeom(x,p) which denotes probability density function of