Skip to content

Conversation

@fkiraly
Copy link
Collaborator

@fkiraly fkiraly commented Oct 14, 2025

WIP PR to discuss how to support multivariate distributions.

Currently contains one additional method pdfj which would explain how we distinguish the current variable-marginal pdf, and the joint pdf.
The default for pdfj would be the row-wise product of the pdf output, but can be overridden for multivariate distributions.

Questions about API:

  • is this a reasonable design?
  • this would directly generalize to log_pdfj, cdfj etc - it feels a bit duplicative.
  • another option would be to include an argument marginal to all the methods, and it could be "entry" (default and current behaviour), "row", or "none"?

@fkiraly fkiraly requested a review from SaiRevanth25 as a code owner October 14, 2025 15:33
@fkiraly fkiraly added the module:probability&simulation probability distributions and simulators label Oct 14, 2025
@fkiraly
Copy link
Collaborator Author

fkiraly commented Oct 14, 2025

@joshdunnlime, I turned this branch into a PR for discussion - your opinions would be appreciated.

@fkiraly fkiraly marked this pull request as draft October 14, 2025 15:33
@fkiraly
Copy link
Collaborator Author

fkiraly commented Oct 14, 2025

FYI, I opened an issue to collect API discussion for multivariate distributions here:
#622

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement module:probability&simulation probability distributions and simulators

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants