Please help me out I have an exam coming and I am a newbie

so I used sum(dbinom) to calculate the p(x<5)
but I am getting 5 different values instead of the sum adding all the prob together to get one answer ,What is the error?

:wave: @vishva!

  • This forum is not the most appropriate one for general R questions like this one. You might have more luck with such questions on the R for Data Science Slack or the RStudio community forum for instance.
  • In general it’s not good practice to post screenshots of code as it’s not accessible for screen-reader users and as one cannot copy-paste code from there.
  • It’d be easier for folks to help if your example was fully reproducible. In particular, one would also need the code creating n and p.

Further resources about getting help

Good luck with your exam & further learning!

1 Like