Expected Waiting Time from activity A to activity B

View in library docs
eWTAB×(g,a,b)\mathit{e}\mathit{WTAB}\mathit{^{\times}}(g, \mathit{a}, \mathit{b})
×{s,c,sc,w}\mathit{\times} \in \{\mathit{s}, \mathit{c}, \mathit{sc}, \mathit{w}\}
Dimension:
Time
Granularity:
Group of cases

Description

Expected sum of elapsed time between the start event of an activity instance and the complete event of the activity instance that precedes it, for all activity instances in a case that occurs between the earliest instantiation of a specific activity and the earliest instantiation of another specific activity that occurs after the former one, including both, for all cases belonging to a group of cases.

Potential use

Event log in which the time spent between every activity instance of a specific subprocess is of relevance.

Assumptions

Minimizing waiting time is desirable.

Desired Value:

MINIMIZE

Required attributes

act
actinst
case
time
type

Equations

Formula for practitioners

cg{WTAB(c,a,b)if fi(c,a,b)0if fi(c,a,b)=cg{1if fi(c,a,b)0otherwise\displaystyle \frac{\sum _{c \in g} \begin{cases} \mathit{WTAB}(c, \mathit{a}, \mathit{b}) & \mathit{if \ } \mathit{fi}(c, \mathit{a}, \mathit{b}) \neq \emptyset \\ 0 & \mathit{if \ } \mathit{fi}(c, \mathit{a}, \mathit{b}) = \emptyset \end{cases}}{ \sum_{c \in g} \begin{cases} 1 & \text{if } \mathit{fi}(c, \mathit{a}, \mathit{b}) \neq \emptyset \\ 0 & \text{otherwise} \end{cases} }

WTAB\mathit{WTAB} returns the waiting time from activity a\mathit{a} to activity b\mathit{b} in case cc.
fi\mathit{fi} returns the set of first instances of activity b\mathit{b} that occur after the first instance of a\mathit{a} in case cc.

Formal Definition

cg{WTAB×(c,a,b)if fisc(c,a,b)0if fisc(c,a,b)={cgfisc(c,a,b)}\frac{\sum _{c \in g} \begin{cases} \mathit{WTAB}\mathit{^{\times}}(c, \mathit{a}, \mathit{b}) & \mathit{if \ } \mathit{fi}\mathit{^{sc}}(c, \mathit{a}, \mathit{b}) \neq \emptyset \\ 0 & \mathit{if \ } \mathit{fi}\mathit{^{sc}}(c, \mathit{a}, \mathit{b}) = \emptyset \end{cases}}{|\{c \in g \mid \mathit{fi}\mathit{^{sc}}(c, \mathit{a}, \mathit{b}) \neq \emptyset\}|}
The ×\mathit{\times} indicates that the PPI can take multiple forms, in this case, ×{s,c,sc,w}\mathit{\times} \in \{\mathit{s}, \mathit{c}, \mathit{sc}, \mathit{w}\}. If ×=s\mathit{\times} = \mathit{s}, then the function considers activity instances that were started within the start and end activity instances, i.e., it uses WTABs\mathit{WTAB}\mathit{^{s}}; if ×=c\mathit{\times} = \mathit{c}, then the function considers activity instances that were completed within the start and end activity instances, i.e., it uses WTABc\mathit{WTAB}\mathit{^{c}}; if ×=sc\mathit{\times} = \mathit{sc}, then the function considers activity instances that were either started or completed within the start and end activity instances, i.e., it uses WTABsc\mathit{WTAB}\mathit{^{sc}}; if ×=w\mathit{\times} = \mathit{^{w}}, then the function considers all activity instances that were active within the start and end activity instances, i.e., it uses WTABw\mathit{WTAB}\mathit{^{w}}.

Tags

act
actinst
case
time
type

Python implementation

This indicator is implemented in the process_performance_indicators Python library.

process_performance_indicators.indicators.time.groups.expected_waiting_time_from_activity_a_to_b