Handy Poisson Probability Calculator

Vincent Gombe

10 January 2018

Introduction

The Poisson Distribution

  1. Number of customers arriving at a checkout point in an hour (time)
  2. Number of defects in a km of a pipeline (distance)
  3. Number of patches in a square meter (area)
  1. What is the probability that on a given weekday there would be 11 calls?
  2. What is the probability that on a given weekday there would be 11 or less calls?
  3. What is the probability of getting 11 calls in half a day?

Answering the Questions

\[p(x|\lambda) = \frac{\lambda^xe^{-\lambda}}{x!}\] where x = 0,1,2,3,….

dpois(11,8)
## [1] 0.07219021

\[p(0<= x <= 11|\lambda) =\sum_{x=0}^{11} \frac{\lambda^xe^{-\lambda}}{x!}\]

sum(dpois(0:11,8))
## [1] 0.888076

The App

  1. Enter lambda (the average number of occurances per given interval)
  2. Enter the number of occurances the probability of which you would like to compute
  3. Enter proprtion of interval you would like to investigate. For example if your lambda is x occurances per day and you want to investigate half a day, then enter 0.5. If you want to investigate 2 days, then enter 2. Note that this will adjust your lambda accordingly.
  4. Submit…Probabilities are displayed on the caculator tab and the visualisation is dispalyed on the plot tab.
  5. You can adjust your visualisation by by adjusting the number of points to plot to suit your investigation, and press submit.
browseURL("https://gombevincent.shinyapps.io/poissondistribution/")