Skip to content

Add Pareto (Type I) distribution - #5

Open
sidsri14 wants to merge 1 commit into
nitrotap:mainfrom
sidsri14:feat/pareto-distribution
Open

Add Pareto (Type I) distribution#5
sidsri14 wants to merge 1 commit into
nitrotap:mainfrom
sidsri14:feat/pareto-distribution

Conversation

@sidsri14

Copy link
Copy Markdown

Implements ParetoDistribution in distributions::positive with the Pdf, Cdf,
Quantile, Moments, and Sample traits, matching scipy.stats.pareto.

  • Closed-form pdf/cdf/ppf; inverse-CDF sampling.
  • Mean defined for alpha > 1, variance for alpha > 2 (None otherwise,
    matching scipy's NaN).
  • scipy-validated golden fixture dist_pareto.json plus equivalence,
    moment-convergence, tail-stress, and parameter-sweep coverage.
  • Updates README (15 families) and CHANGELOG.

Note: src/distributions/types.rs is normally produced by the carve tool; the
ParetoDistribution struct was added directly here so the change is self-contained.

Implements ParetoDistribution in distributions::positive with the Pdf, Cdf,
Quantile, Moments, and Sample traits, matching scipy.stats.pareto.

- Closed-form pdf/cdf/ppf; inverse-CDF sampling.
- Mean defined for alpha > 1, variance for alpha > 2 (None otherwise,
  matching scipy's NaN).
- scipy-validated golden fixture dist_pareto.json plus equivalence,
  moment-convergence, tail-stress, and parameter-sweep coverage.
- Updates README (15 families) and CHANGELOG.

Note: src/distributions/types.rs is normally produced by the carve tool; the
ParetoDistribution struct was added directly here so the change is self-contained.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant