Discrete Uniform Distribution |
(probability dist for equations) |
Usage: |
DiscUniformDist (k, a, b) |
Definition: |
1 / (b - a + 1) |
Required: |
b ³ a k, a, b are integers |
Support: |
a £ k £ b |
Moments: |
m = (a + b) / 2 s^2 = (b-a) (b–a+2) / 12 g1 = 0 b2 = (3/5) [3 – 4 / [(b-a) (b–a+2)]] |
This distribution represents the situation where k has an equal probability of taking on any of the integer values from a to b inclusive (where a and b are integers). If k were continuous, then it would be a continuous uniform distribution.