UPPAAL can estimate the probability of expression values statistically. There are four types of statistical properties: quantitative, qualitative, comparison and probable value estimation.
‘simulate’ ‘[’ SMCBounds ‘]’ ‘{’ List ‘}’ [ ‘:’ [ SATRUNS ‘:’ ] Expression ]
The simulation query collects the valuation of the specified list of expressions over the time, cost or action-transitions of the simulated run. The simulation runs can be filtered by a state expression after the colon (’:’) and the number of satisfying runs can be limited by positive integer using SMCBounds and SATRUNS. If the filtering expression is provided then the result also includes a probability confidence interval similar to Probability Estimation below.
‘Pr[’ SMCBounds ‘](’ (’<>’ | ‘[]’) Expression ‘)’
Quantitative query estimates the probability of a path expression being true given that the predicate in probability brackets is true. Intuitively the model exploration is bounded by an expression in the brackets: it can be limited by setting the bound on absolute model time, a clock value, or the number of steps (discrete transitions).
The result is an estimated probability confidence interval (CI), where the level of significance (probability that CI does not include the actual probability) is controlled by α and the width is controlled by ε in the statistical parameters. In addition the and a number of histograms over the values of the variable specified in the probability brackets. Note that histograms omit runs that do not satisfy the property.
The number of runs can be specified by the optional RUNS argument in the SMCBounds. If the argument is absent, then the number of runs is determined by a sequential CI estimation algorithm.
See also: CI Estimation
‘Pr[’ SMCBounds ‘](’ (’<>’ | ‘[]’) Expression ‘)’ (’<=’|’>=’) PROB
Hypothesis testing checks whether the probability of a property is less or greater than specified bound. The query is more efficient than probability estimation as it is one sided and requires fewer simulations to attain the same level of significance.
‘Pr[’ SMCBounds ‘](’ (’<>’ | ‘[]’) Expression ‘)’ ’>=’ ‘Pr[’ ( Variable | ‘#’ ) ‘<=’ CONST ‘](’ (’<>’ | ‘[]’) Expression ‘)’
Compares two probabilities indirectly without estimating them.
‘Pr’ MITLExpression
The exact evaluation of the probability that a run satisfies a given weighted MITL formula.
‘E[’ SMCBounds ‘]’ ‘(’ (‘min:’|‘max:’ Expression ‘)’
Estimates the value of an expression by running a given number of simulations.