stan-dev / stan-dev/math

Higher-order mixture distribution

Open
#3,254 1 comment 0 reactions 0 assignees View on GitHub

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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.