deltaprob function

Mean difference of a discrete random variable

Mean difference of a discrete random variable

Compute the Gini mean difference of a discrete distribution

deltaprob(prob)

Arguments

  • prob: Vector of the probability distribution

Returns

Numeric value of the Gini mean difference of the input probability distribution, computed according to the de Finetti-Paciello formulation.

Examples

prob<-c(0.04,0.04,0.05,0.10,0.21,0.32,0.24) deltaprob(prob)
  • Maintainer: Rosaria Simone
  • License: GPL-2 | GPL-3
  • Last published: 2024-02-23

Useful links