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

2023-10-19 Thread Ben Bolker
Jeff: I think you might be misdiagnosing the OP's problem; I'm not sure that the R parameterization is primarily intended to avoid FP problems, but rather is *one* possible sensible choice of definition. Note that the Wikipedia page on the geometric distribution:

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

2023-10-19 Thread Jeff Newmiller via R-help
What makes sense in a math class is not necessarily the same as what makes sense in a floating point analysis environment. You lose a lot of significant digits when you add 1 to a floating point number that is close to zero, and this implementation allows the user to avoid that structural