Probability (probability)
Table of Contents
The probability function calculates the probability that a value drawn from a numeric field will fall within specific range. The probability function takes four parameters:
-
The numeric field to compute the probability from
-
The numeric start range
-
The numeric end range
-
The sample size
Sample syntax
select probability(sepal_length_d, 5.1, 7.7, 150) as prob
from iris
Result set
The result set for the probability function contains a single record with the calculated probability. The probability function returns the probability calculation.
Sample result set in Apache Zeppelin

Visualization
Sample visualization of the probability function using the Apache Zeppelin number visualization:
