geopdf

Statistics

Geometric probability mass function. MATLAB convention: P(X=k) = p*(1-p)^k for k=0,1,2,... (number of failures before first success).

Syntax

geopdf(k, p)

Examples

geopdf(3, 0.5)
▶ Run
geopdf(0, 0.3)
▶ Run

See Also

Try SimLab — Free MATLAB® Alternative

466 functions. Runs in your browser. No install.

Open SimLab

Stay Updated

Get notified about new simulations and tools. We send 1-2 emails per month.