add Bell distribution

未关闭
#3,172 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 1 天内回复

还没有人认领这个 Issue。

评估

难度
5/5
预计耗时
一周以上
新手友好度
35/100
Issue 类型
功能
描述清晰度
基本清楚
活跃度
停滞
技术栈
cpp
领域
data

调研方向

首先检查 Stan Math Library 中现有概率分布的组织方式,然后将所请求的公式与 fndemarqui/bellreg 中的 Stan 实现进行比较。完成的标准是:针对所述参数和计数域添加 Bell distribution 支持,并且其行为与给定的概率质量函数一致。

由索引模型根据 Issue 内容生成。

描述

This feature request would add support for the Bell distribution. The Bell distribution is suitable for count data, has a single parameter, and can model overdispersed counts.

The PDF is:

$$\Pr (Y = k)=\frac{\alpha^ke^{-e^\alpha+1}B_k}{k!},\quad k = 0, 1, 2, \dots$$

where $\alpha>0$, and $B_k$ are the Bell numbers (i.e., unique partitions of a set).

The R package fndemarqui/bellreg has a Stan implementation.

主要语言
C++
星标
845
派生
225
平均合并
4 天 21 小时
30 天内合并 PR
13

环境准备

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

stan-dev/math 的其他 Issue

查看 stan-dev/math 的全部 Issue

相似的 Issue

更多 C++ Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。