cds2.distributions
Deprecated since 4.3.0
Importing this module emits a DeprecationWarning. Use
scipy.stats directly instead. See
Deprecated modules for the migration guide.
Probability distribution helpers: pdf/cdf/ppf for twenty-plus families.
Probability distribution helpers built on scipy.stats.
student_t_pdf(x, df)
Student's t density with df degrees of freedom.
Source code in src/cds2/distributions.py
90 91 92 | |
student_t_cdf(x, df)
Student's t cumulative distribution function.
Source code in src/cds2/distributions.py
95 96 97 | |
student_t_ppf(q, df)
Student's t quantile function.
Source code in src/cds2/distributions.py
100 101 102 | |
chi2_pdf(x, df)
Chi-squared density.
Source code in src/cds2/distributions.py
106 107 108 | |
chi2_cdf(x, df)
Chi-squared cumulative distribution function.
Source code in src/cds2/distributions.py
111 112 113 | |
chi2_ppf(q, df)
Chi-squared quantile function.
Source code in src/cds2/distributions.py
116 117 118 | |
f_pdf(x, dfn, dfd)
F distribution density.
Source code in src/cds2/distributions.py
122 123 124 | |
f_cdf(x, dfn, dfd)
F cumulative distribution function.
Source code in src/cds2/distributions.py
127 128 129 | |
f_ppf(q, dfn, dfd)
F quantile function.
Source code in src/cds2/distributions.py
132 133 134 | |
exponential_pdf(x, scale=1.0)
Exponential density with mean scale.
Source code in src/cds2/distributions.py
138 139 140 | |
exponential_cdf(x, scale=1.0)
Exponential cumulative distribution function.
Source code in src/cds2/distributions.py
143 144 145 | |
exponential_ppf(q, scale=1.0)
Exponential quantile function.
Source code in src/cds2/distributions.py
148 149 150 | |
uniform_pdf(x, loc=0.0, scale=1.0)
Continuous uniform density on [loc, loc + scale].
Source code in src/cds2/distributions.py
154 155 156 | |
uniform_cdf(x, loc=0.0, scale=1.0)
Uniform cumulative distribution function.
Source code in src/cds2/distributions.py
159 160 161 | |
uniform_ppf(q, loc=0.0, scale=1.0)
Uniform quantile function.
Source code in src/cds2/distributions.py
164 165 166 | |
lognormal_pdf(x, sigma=1.0, scale=1.0)
Lognormal density of exp(N(0, sigma^2)) scaled by scale.
Source code in src/cds2/distributions.py
170 171 172 | |
lognormal_cdf(x, sigma=1.0, scale=1.0)
Lognormal cumulative distribution function.
Source code in src/cds2/distributions.py
175 176 177 | |
lognormal_ppf(q, sigma=1.0, scale=1.0)
Lognormal quantile function.
Source code in src/cds2/distributions.py
180 181 182 | |
poisson_pmf(k, mu)
Poisson probability mass at integer counts k.
Source code in src/cds2/distributions.py
186 187 188 | |
poisson_cdf(k, mu)
Poisson cumulative mass up to k.
Source code in src/cds2/distributions.py
191 192 193 | |
poisson_ppf(q, mu)
Poisson quantile (smallest count with CDF >= q).
Source code in src/cds2/distributions.py
196 197 198 | |
binomial_pmf(k, n, p)
Binomial probability mass for n trials with success odds p.
Source code in src/cds2/distributions.py
202 203 204 | |
binomial_cdf(k, n, p)
Binomial cumulative mass up to k.
Source code in src/cds2/distributions.py
207 208 209 | |
binomial_ppf(q, n, p)
Binomial quantile function.
Source code in src/cds2/distributions.py
212 213 214 | |
gamma_pdf(x, a, scale=1.0)
Gamma density with shape a and scale.
Source code in src/cds2/distributions.py
218 219 220 | |
gamma_cdf(x, a, scale=1.0)
Gamma cumulative distribution function.
Source code in src/cds2/distributions.py
223 224 225 | |
gamma_ppf(q, a, scale=1.0)
Gamma quantile function.
Source code in src/cds2/distributions.py
228 229 230 | |
beta_pdf(x, a, b)
Beta density on [0, 1] with shape parameters a, b.
Source code in src/cds2/distributions.py
234 235 236 | |
beta_cdf(x, a, b)
Beta cumulative distribution function.
Source code in src/cds2/distributions.py
239 240 241 | |
beta_ppf(q, a, b)
Beta quantile function.
Source code in src/cds2/distributions.py
244 245 246 | |
weibull_pdf(x, c, scale=1.0)
Weibull density with shape c.
Source code in src/cds2/distributions.py
250 251 252 | |
weibull_cdf(x, c, scale=1.0)
Weibull cumulative distribution function.
Source code in src/cds2/distributions.py
255 256 257 | |
weibull_ppf(q, c, scale=1.0)
Weibull quantile function.
Source code in src/cds2/distributions.py
260 261 262 | |
cauchy_pdf(x, loc=0.0, scale=1.0)
Cauchy density - heavy-tailed, no finite moments.
Source code in src/cds2/distributions.py
266 267 268 | |
cauchy_cdf(x, loc=0.0, scale=1.0)
Cauchy cumulative distribution function.
Source code in src/cds2/distributions.py
271 272 273 | |
cauchy_ppf(q, loc=0.0, scale=1.0)
Cauchy quantile function.
Source code in src/cds2/distributions.py
276 277 278 | |
laplace_pdf(x, loc=0.0, scale=1.0)
Laplace (double exponential) density.
Source code in src/cds2/distributions.py
282 283 284 | |
laplace_cdf(x, loc=0.0, scale=1.0)
Laplace cumulative distribution function.
Source code in src/cds2/distributions.py
287 288 289 | |
laplace_ppf(q, loc=0.0, scale=1.0)
Laplace quantile function.
Source code in src/cds2/distributions.py
292 293 294 | |
gumbel_pdf(x, loc=0.0, scale=1.0)
Gumbel extreme-value density for maxima.
Source code in src/cds2/distributions.py
298 299 300 | |
gumbel_cdf(x, loc=0.0, scale=1.0)
Gumbel cumulative distribution function.
Source code in src/cds2/distributions.py
303 304 305 | |
gumbel_ppf(q, loc=0.0, scale=1.0)
Gumbel quantile function.
Source code in src/cds2/distributions.py
308 309 310 | |
pareto_pdf(x, b, scale=1.0)
Pareto power-law density with tail index b.
Source code in src/cds2/distributions.py
314 315 316 | |
pareto_cdf(x, b, scale=1.0)
Pareto cumulative distribution function.
Source code in src/cds2/distributions.py
319 320 321 | |
pareto_ppf(q, b, scale=1.0)
Pareto quantile function.
Source code in src/cds2/distributions.py
324 325 326 | |
rayleigh_pdf(x, scale=1.0)
Rayleigh density - magnitude of 2-D Gaussian noise.
Source code in src/cds2/distributions.py
330 331 332 | |
rayleigh_cdf(x, scale=1.0)
Rayleigh cumulative distribution function.
Source code in src/cds2/distributions.py
335 336 337 | |
rayleigh_ppf(q, scale=1.0)
Rayleigh quantile function.
Source code in src/cds2/distributions.py
340 341 342 | |
geometric_pmf(k, p)
Geometric mass - trials until first success.
Source code in src/cds2/distributions.py
346 347 348 | |
geometric_cdf(k, p)
Geometric cumulative mass.
Source code in src/cds2/distributions.py
351 352 353 | |
geometric_ppf(q, p)
Geometric quantile function.
Source code in src/cds2/distributions.py
356 357 358 | |
negative_binomial_pmf(k, n_failures, p)
Negative-binomial mass - successes before n_failures failures.
Source code in src/cds2/distributions.py
362 363 364 | |
negative_binomial_cdf(k, n_failures, p)
Negative-binomial cumulative mass.
Source code in src/cds2/distributions.py
367 368 369 | |
negative_binomial_ppf(q, n_failures, p)
Negative-binomial quantile function.
Source code in src/cds2/distributions.py
372 373 374 | |
hypergeometric_pmf(k, ngood, nbad, nsample)
Hypergeometric mass - draws without replacement.
Source code in src/cds2/distributions.py
378 379 380 381 | |
hypergeometric_cdf(k, ngood, nbad, nsample)
Hypergeometric cumulative mass.
Source code in src/cds2/distributions.py
384 385 386 387 | |