WLJS LogoWLJS Notebook

GeometricDistribution

GeometricDistribution[p] represents a geometric distribution with probability parameter p.

Examples

Generate random samples:

RandomVariate[GeometricDistribution[0.3], 5]
(* {1, 4, 0, 2, 1} *)

Mean of the distribution:

Mean[GeometricDistribution[p]]
(* (1 - p)/p *)

Please visit the official Wolfram Language Reference for more details.

On this page