Higher-order mixture distribution
Open
Nobody has claimed this yet.
new function
- Dominant language
- C++
- Stars
- 839
- Forks
- 220
- Avg merge
- 2d 4h
- Merged PRs (30d)
- 14
Description
Discussed in https://github.com/stan-dev/design-docs/pull/53, but doesn't require any additional new syntax:
An M component mixture where each component uses the same distribution function could be written with a variadic function as follows:
vector[N] y;
simplex[M] p;
vector[M] mu;
vector[M] sigma;
// mixture with M components
y ~ mixture_?(p, normal, mu, sigma)
Name is up for debate
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with design-docs/pull/53 and the variadic mixture example in this issue; confirm the intended API, naming, and constraints for shared distribution functions. Done means an agreed interface plus the corresponding implementation and coverage, but this issue does not name source files or tests.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- cpp
- Domain
- backend
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100