POWER BI: Modeling

Statistical Functions


Poission function

Returns the poisson distrubtion used for predicting the number of events that will occur within a specified time interval. For example, the number of car accidents at a large intersection during rush hour or the number of calls recieved by a call center during lunch hour.

Syntax:
${POISSON.DIST(n, \lambda ,cumulative)}$
  • ${n}$ is the number of events of interest or being observed
  • ${\lambda}$ is the expected number of events
  • ${cumulative}$ is set to True or False.

If cummulative is set to False, it returns the probability that the actual number of events that will occur will be equal to x.
The formula used is:

$${\frac{e^{-\lambda}{\lambda^{n}}}{n!}}$$

If cummulative is set to True, it returns the probability that the number of events occuring will be less than or equal to n. The formula used is:

$${\sum_{k=0}^{n}\frac{e^{-\lambda}{\lambda^{n}}}{n!}}$$
Example 1:

The average number of accidents at a large intersection per month follows a poisson distribution with a mean of 5. Find the probability that next month there will be exactly 2 accidents.

Answer:

In the Power BI formula bar define the following measures:

                      Poisson2 = POISSON.DIST(2,5,False)
	             

Returns:

  • ${\dfrac{e^{-\lambda}{\lambda^{n}}}{n!}} = {\dfrac{e^{-5}{5^{2}}}{2!}} = 0.0842 $

Example 2:

The average number of accidents at a large intersection per month follows a poisson distribution with a mean of 5. Find the probability that next month there will be 2 accidents or less.

Answer:

In the Power BI formula bar define the following measures:

                        Poisson2 = POISSON.DIST(2,5,True)
	             

Returns:

  • ${\sum_{k=0}^{n}\dfrac{e^{-\lambda}{\lambda^{n}}}{n!}}$

  • $ = {\sum_{k=0}^{2}\dfrac{e^{-5}{5^{2}}}{2!}}$
  • $ = {\dfrac{e^{-5}{5^{0}}}{0!}} + {\dfrac{e^{-5}{5^{1}}}{1!}} + {\dfrac{e^{-5}{5^{2}}}{2!}}$

  • $ = {0.125}$

Power BI Demo:

Dash-Intel is a Power BI and Tableau resource site for data visualization and building BI dashboards.

Data Analyst & Consultant

Copyright 2015-2023 Dash-Intel.com Terms