Skills
A skill is a package of structured files that teaches an AI coding agent how to work with a specific tool or framework. The skill below was generated by Great Docs from this project’s documentation. Install it in your agent and it will be able to run commands, edit configuration, write content, and troubleshoot problems without step-by-step guidance from you.
Any agent — install with npx:
npx skills add https://ekthesage.github.io/prospicio/Codex / OpenCode
Tell the agent:
Fetch the skill file at https://ekthesage.github.io/prospicio/skill.md and follow the instructions.Manual — download the skill file:
curl -O https://ekthesage.github.io/prospicio/skill.mdOr browse the SKILL.md file.
SKILL.md
--- name: prospicio description: > Actuarial and risk modeling on a Rust core: reserving, distributions, aggregate loss, reinsurance and pricing. Use when writing Python code that uses the prospicio package. license: MIT compatibility: Requires Python >=3.9. --- # prospicio Actuarial and risk modeling on a Rust core: reserving, distributions, aggregate loss, reinsurance and pricing. ## Installation ```bash pip install prospicio ``` ## API overview ### Distributions Parametric, discretized and sampled representations. - `distributions.Lognormal` - `distributions.Gamma` - `distributions.Tweedie` - `distributions.Weibull` - `distributions.Loglogistic` - `distributions.InverseGamma` - `distributions.InverseGaussian` - `distributions.Burr` - `distributions.Beta` - `distributions.Truncated` - `distributions.Affine` - `distributions.SizeOfLoss` - `distributions.Mixture` - `distributions.Custom` - `distributions.to_json` - `distributions.from_json` - `distributions.Grid` - `distributions.DiscretizationReport` - `distributions.Discrete` - `distributions.Normal` - `distributions.Ogive` - `distributions.invert_chf` - `distributions.NormalInverseGaussian` - `distributions.Stable` - `distributions.TemperedStable` - `distributions.TweediePower` - `distributions.VarianceGamma` - `distributions.ChfDistribution` - `distributions.Sampled` ### Large-loss severities The Pareto family for layer and treaty pricing, with maximum likelihood fits. - `distributions.Pareto` - `distributions.PiecewisePareto` - `distributions.LogAffinePareto` - `distributions.GeneralizedPareto` - `distributions.local_pareto_to_piecewise` ### Claim counts Frequency distributions for frequency-severity aggregation. - `distributions.Poisson` - `distributions.NegativeBinomial` - `distributions.Binomial` - `distributions.Count` - `distributions.claim_count` ### Predictive distributions The joint result every model returns. - `distributions.PredictiveDistribution` ### Aggregate loss Compound distributions on a grid, and simulated years of losses. - `aggregate.panjer` - `aggregate.fft` - `aggregate.fft_auto` - `aggregate.recommend_grid` - `aggregate.recommend_portfolio_grid` - `aggregate.round_bucket` - `aggregate.GridSize` - `aggregate.audit_grid` - `aggregate.audit_portfolio_grid` - `aggregate.GridAudit` - `aggregate.CompoundReport` - `aggregate.simulate_events` - `aggregate.EventSet` - `aggregate.EventLossTable` - `aggregate.read_ylt` - `aggregate.ylt_hash` - `aggregate.occurrence_exceedance` - `aggregate.occurrence_pml` - `aggregate.OccurrencePml` - `aggregate.compound_moments` - `aggregate.CompoundMoments` - `aggregate.Approximation` - `aggregate.eventual_ruin` - `aggregate.Ruin` - `aggregate.fft_bivariate` - `aggregate.JointGrid` - `aggregate.BivariateReport` - `aggregate.Clash` - `aggregate.wiener_hopf` - `aggregate.RenewalRuin` - `aggregate.Ledger` - `aggregate.Group` - `aggregate.Leg` - `aggregate.stack` - `aggregate.Book` - `aggregate.Expense` - `aggregate.derive_premium` - `aggregate.occurrence_source` - `aggregate.pnl_program` - `aggregate.pnl_program_stated` - `aggregate.size_premium` - `aggregate.round_premium` - `aggregate.layer_loss_picks` - `aggregate.Picks` ### Reinsurance Excess-of-loss layers and towers, applied to simulated losses or exactly on the grid. - `reinsurance.Layer` - `reinsurance.LossSensitivePremium` - `reinsurance.Tower` - `reinsurance.TowerGrids` - `reinsurance.AnnualGrids` - `reinsurance.TowerPrice` - `reinsurance.ViewPrice` - `reinsurance.occurrence_layer_statistics` - `reinsurance.LayerStatistics` - `reinsurance.occurrence_cession_statistics` - `reinsurance.CessionStatistics` - `reinsurance.aggregate_layer_statistics` - `reinsurance.AggregateLayerStatistics` ### Reinsurer default Reinsurers' default on a tower's recoveries, one Gaussian factor ranked on the gross loss. - `reinsurance.Panel` - `reinsurance.Reinsurer` ### Solvency II counterparty default The standard formula's counterparty default module for type 1 exposures, Delegated Regulation (EU) 2015/35 Arts 192, 199, 200 and 201. - `reinsurance.Solvency2Type1` - `reinsurance.solvency2_probability_by_ratio` - `reinsurance.solvency2_probability_by_step` - `reinsurance.solvency2_reinsurance_lgd` - `reinsurance.solvency2_type1` ### Economic scenarios Short rates (Vasicek, CIR, Hull-White), the Svensson curve, and economic and superimposed inflation with correlated shocks, simulated by path and step. - `esg.Cir` - `esg.Esg` - `esg.HullWhite` - `esg.Inflation` - `esg.Scenarios` - `esg.Superimposed` - `esg.Svensson` - `esg.Vasicek` ### Multi-year projection A company rolled forward along economic scenarios, with an underwriting cycle, tax, dividends and injections, the losses' dependence on inflation, and finite-time ruin and capital breach. - `esg.Cycle` - `esg.Projection` - `esg.ProjectionPaths` ### Models Terms and design matrices, GLMs and GAMs, neural networks, metrics, resampling and MCMC diagnostics. - `models.Terms` - `models.Coding` - `models.Design` - `models.Glm` - `models.GlmFit` - `models.TweedieGlm` - `models.TweedieFit` - `models.tweedie_profile` - `models.NegativeBinomialGlm` - `models.NegativeBinomialFit` - `models.DoubleGlm` - `models.DoubleGlmFit` - `models.ZeroInflated` - `models.Hurdle` - `models.TwoPartFit` - `models.vuong` - `models.count_log_likelihoods` - `models.QuantileRegression` - `models.QuantileFit` - `models.QuantileFits` - `models.ExpectileRegression` - `models.ExpectileFit` - `models.Glmm` - `models.GlmmFit` - `models.BayesGlm` - `models.BayesGlmFit` - `models.BayesGlmm` - `models.BayesGlmmFit` - `models.ElasticNet` - `models.ElasticNetFit` - `models.CvPath` - `models.RelaxedCv` - `models.Gam` - `models.GamFit` - `models.Cann` - `models.CannFit` - `models.AttentionCann` - `models.AttentionCannFit` - `models.TokenAttention` - `models.OnnxModel` - `models.OnnxPredictor` - `models.deviance` - `models.mean_deviance` - `models.pearson_terms` - `models.pearson_dispersion` - `models.f_test` - `models.likelihood_ratio_test` - `models.vif` - `models.gini` - `models.normalized_gini` - `models.lift` - `models.double_lift` - `models.loss_ratio_chart` - `models.roc` - `models.confusion_matrix` - `models.crps` - `models.log_score` - `models.pit` - `models.pit_from_draws` - `models.pit_histogram` - `models.quantile_residuals` - `models.ks_uniform` - `models.target_encode` - `models.TargetEncoding` - `models.mars` - `models.MarsFit` - `models.k_fold` - `models.group_k_fold` - `models.time_ordered` - `models.permutation` - `models.bootstrap_rows` - `models.mcmc_diagnostics` - `models.elpd_loo` - `models.ppc_check` - `models.loo_pit` - `models.stacking_weights` - `models.pseudo_bma_weights` - `models.BayesStacking` - `models.HierarchicalStacking` - `models.StackingFit` - `models.elpd_waic` - `models.lppd` - `models.Elpd` - `models.deviance_score` - `models.cross_validate` - `models.grid_search` - `models.random_search` - `models.log_uniform` - `models.SearchResult` - `models.compare` - `models.Comparison` - `models.permutation_importance` - `models.PermutationImportance` - `models.interaction_screen` - `models.InteractionScreen` - `models.partial_dependence` - `models.PartialDependence` - `models.ice` - `models.IceCurves` - `models.ale` - `models.AccumulatedLocalEffects` - `models.shap_values` - `models.ShapValues` - `models.actual_vs_expected` - `models.simulate_from_means` ### Gradient boosting LightGBM and XGBoost behind the model protocol, with joint predictive draws. - `boosting.Booster` - `models.base_score` - `models.monotone_violations` - `models.weighted_quantile` - `boosting.BoosterFit` ### Pricing The collective model, layer rating, reinsurance tower matching, and risk-loaded prices from simulated losses. - `pricing.CollectiveModel` - `pricing.ilf` - `pricing.loss_elimination_ratio` - `pricing.censored_las` - `pricing.pareto_extrapolation` - `pricing.alpha_between_layers` - `pricing.alpha_between_frequency_and_layer` - `pricing.alpha_between_frequencies` - `pricing.match_tower` - `pricing.fit_pml_curve` - `pricing.fit_references` - `pricing.TowerModel` - `pricing.price` - `pricing.price_portfolio` - `pricing.Price` - `pricing.PortfolioPrice` - `pricing.Mbbefd` - `pricing.TabulatedCurve` - `pricing.RiskProfile` - `pricing.severity_exposure_curve` - `pricing.Portfolio` - `pricing.NaturalPrice` - `pricing.StandAlone` - `pricing.Quote` - `pricing.Pentagon` - `pricing.classical_premium` - `pricing.calibrate_classical` - `pricing.PricingBounds` - `pricing.distortion_envelope` ### Time value of money Payment patterns, the expected loss discounted to inception, and capital held over the payout so the cost of capital accrues over years. - `pricing.PaymentPattern` - `pricing.price_over_payout` - `pricing.PayoutPrice` ### Experience rating Experience rating from individual large losses, trended to the prospective period, the as-if loss to each layer by accident year, and the burning cost (Clark's study note). - `pricing.LargeLossExperience` - `pricing.DevelopmentPattern` - `pricing.PreparedLosses` - `pricing.BurningCost` - `pricing.IndexClause` - `pricing.AsIf` ### Casualty exposure rating A per-policy casualty treaty rated over a table of policies, each on its own severity, ILF or ELF curve, in the ILF and frequency forms with an explicit ALAE treatment; the sweep over the Pareto alpha, its censored anchor and the count test (Clark's study note). - `pricing.CasualtyProfile` - `pricing.IlfTable` - `pricing.ElfTable` - `pricing.CasualtyRating` - `pricing.ParetoAnchor` - `pricing.poisson_tail` ### Credibility Classical credibility, the limited fluctuation standards and the Bühlmann–Straub model, and Bayesian hierarchical credibility sampled with NUTS. - `credibility.LimitedFluctuation` - `credibility.buhlmann_straub` - `credibility.BuhlmannStraubFit` - `credibility.hierarchical_credibility` - `credibility.HierarchicalCredibilityFit` - `credibility.credibility_premiums` ### Ratemaking Premium at the current rate level by the parallelogram method, trend fits, factors and lengths, and the overall indication by the loss ratio and pure premium methods (Werner and Modlin). - `pricing.year_fraction` - `pricing.Period` - `pricing.RateHistory` - `pricing.RateLevel` - `pricing.TrendFit` - `pricing.trend_factor` - `pricing.LossRatioExperience` - `pricing.PurePremiumExperience` - `pricing.Provisions` - `pricing.premium_based_expenses` - `pricing.credibility_weighted` - `pricing.trended_present_rates` ### Earned exposure Written, earned, unearned and in-force exposure or premium by calendar or policy period, from the policies' dates, with mid-term changes and cancellations. - `pricing.calendar_windows` - `pricing.earned_exposure` - `pricing.in_force` ### Retrospective rating The insurance charge and savings of an aggregate loss distribution or a sample (Table M), under a per-occurrence limit (Table L), and the basic premium that balances a retrospective plan. - `pricing.InsuranceCharge` - `pricing.RetroPlan` ### Experience modification The experience modifications of the workers compensation split plan, from the class rows' payrolls and the claims, and of the general liability experience ratio plan, from each year's subject loss cost and occurrences, with every sum of their worksheets. - `pricing.experience_ratio_modification` - `pricing.split_plan_modification` ### Reserving Loss triangles, the chain ladder with tail factors, Mack's model with its one-year view and its assumption tests, the Munich chain ladder, the expected-loss methods, the ODP bootstrap and Clark's growth curves. - `reserving.Triangle` - `reserving.schedule_p` - `reserving.ChainLadder` - `reserving.ChainLadderFit` - `reserving.TailConstant` - `reserving.TailCurve` - `reserving.TailBondy` - `reserving.TailLogLinear` - `reserving.UnderwritingBasis` - `reserving.Mack` - `reserving.MackFit` - `reserving.ClaimsDevelopmentResult` - `reserving.calendar_year_effect` - `reserving.CalendarIndex` - `reserving.CalendarYearTest` - `reserving.development_correlation` - `reserving.DevelopmentCorrelationTest` - `reserving.MunichChainLadder` - `reserving.MunichFit` - `reserving.ExpectedLoss` - `reserving.BornhuetterFerguson` - `reserving.Benktander` - `reserving.CapeCod` - `reserving.ExpectedLossFit` - `reserving.CapeCodFit` - `reserving.LatestDiagonal` - `reserving.OdpBootstrap` - `reserving.OdpBootstrapFit` - `reserving.MackBootstrap` - `reserving.MackBootstrapFit` - `reserving.OneYearFit` - `reserving.ClarkLdf` - `reserving.ClarkCapeCod` - `reserving.ClarkFit` - `reserving.DiscountCurve` - `reserving.DiscountedReserves` - `reserving.PaidIncurredChain` - `reserving.PaidIncurredFit` - `reserving.ExcessLayer` - `reserving.ScaleShift` - `reserving.ParetoShape` - `reserving.ExcessPattern` - `reserving.RatioDevelopment` - `reserving.RatioDevelopmentFit` - `reserving.Reinflated` - `reserving.RiskAdjustmentResult` - `reserving.SegmentRiskAdjustment` - `reserving.Separation` - `reserving.SeparationFit` - `reserving.ApcGlm` - `reserving.ApcGlmFit` - `reserving.UlaeEstimate` - `reserving.ulae_classical` - `reserving.ulae_kittel` - `reserving.ulae_conger_nolibos` - `reserving.FrequencySeverity` - `reserving.FrequencySeverityFit` - `reserving.FutureCells` - `reserving.IndexPaths` - `reserving.Indexation` - `reserving.Disposal` - `reserving.DisposalFit` - `reserving.CaseOutstanding` - `reserving.CaseOutstandingFit` - `reserving.Trended` - `reserving.case_development_factor` - `reserving.case_adequacy_adjust` - `reserving.settlement_rate_adjust` - `reserving.berquist_sherman_adjust` - `reserving.average_case` - `reserving.exponential_trend` - `reserving.trend_by_age` - `reserving.pooled_trend` - `reserving.ratio_column` - `reserving.layer_share` - `reserving.layer_exposure` - `reserving.layer_at_shift` ### IFRS 17 measurement A group of contracts under the general model or the premium allocation approach, and reinsurance contracts held, rolled forward period by period with a saved state. - `reserving.Ifrs17Group` - `reserving.PaaGroup` - `reserving.ReinsuranceHeld` ### Risk measures Distortion risk measures, and capital allocation to components. - `risk.Distortion` - `risk.calibrate` - `risk.allocate` - `risk.capital` - `risk.shapley` - `risk.haircut` - `risk.equal_risk` - `risk.rearrange` - `risk.worst_var` - `risk.entropic` - `risk.esscher` - `risk.marginal_expected_shortfall` - `risk.covar` - `risk.esscher_allocation` - `risk.statistics` - `risk.bootstrap_se` - `risk.Allocation` - `risk.LevelAllocation` ### Dependence Copulas, and reordering existing draws to a target correlation. - `risk.GaussianCopula` - `risk.StudentTCopula` - `risk.ArchimedeanCopula` - `risk.simulate` - `risk.iman_conover` ### Extreme value tails Generalized Pareto tails over a threshold, beyond the draws. - `risk.Gpd` - `risk.PotTail` - `risk.mean_excess` - `risk.hill` - `risk.threshold_diagnostics` ## Resources - [Full documentation](https://ekthesage.github.io/prospicio/) - [llms.txt](llms.txt) — Indexed API reference for LLMs - [llms-full.txt](llms-full.txt) — Comprehensive documentation for LLMs - [Source code](https://github.com/EKtheSage/prospicio)