Christofer Bogaso
2022-Jun-30 13:08 UTC
[R] Cumulative probability from binomial distribution
Hi, I have the below output.> pbinom(0.10, 1, 0.40)[1] 0.6 I am curious what it means to serve a fraction as the first argument in pbinom()? Thanks for your time
Jeff Newmiller
2022-Jun-30 13:48 UTC
[R] Cumulative probability from binomial distribution
Sounds uncomfortably close to a statistical or philosophical question. Does a reminder that the "p" in "pbinom" means "cumulative probability" help? q <- seq( -1, 2, 0.001 ) p <- pbinom( q, 1, 0.4 ) plot( q, p, type = "l" ) On June 30, 2022 6:08:42 AM PDT, Christofer Bogaso <bogaso.christofer at gmail.com> wrote:>Hi, > >I have the below output. > >> pbinom(0.10, 1, 0.40) > >[1] 0.6 > >I am curious what it means to serve a fraction as the first argument >in pbinom()? > >Thanks for your time > >______________________________________________ >R-help at r-project.org mailing list -- To UNSUBSCRIBE and more, see >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.-- Sent from my phone. Please excuse my brevity.
peter dalgaard
2022-Jul-11 07:28 UTC
[R] Cumulative probability from binomial distribution
It means that the probability of an outcome less than or equal to 0.10 is 0.6. 0 is the only possible such outcome but that is not a problem for the definition, and it is fairly common to use cumulative distribution functions for discrete outcomes defined as right-continuous step functions on the real line. -pd> On 30 Jun 2022, at 15:08 , Christofer Bogaso <bogaso.christofer at gmail.com> wrote: > > Hi, > > I have the below output. > >> pbinom(0.10, 1, 0.40) > > [1] 0.6 > > I am curious what it means to serve a fraction as the first argument > in pbinom()? > > Thanks for your time > > ______________________________________________ > R-help at r-project.org mailing list -- To UNSUBSCRIBE and more, see > 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.-- Peter Dalgaard, Professor, Center for Statistics, Copenhagen Business School Solbjerg Plads 3, 2000 Frederiksberg, Denmark Phone: (+45)38153501 Office: A 4.23 Email: pd.mes at cbs.dk Priv: PDalgd at gmail.com