Open
Description
The idea would be to derive the logprob for the following type of graphs
y_rv = at.max(at.random.uniform(0, 1, size=3)) # or min
y_rv = at.sort(at.random.uniform(0, 1, size=3))
y_rv = at.sort(at.random.uniform(0, 1, size=3))[idx] # max / min correspond to idx==-1 or idx==0
https://en.wikipedia.org/wiki/Order_statistic#Probabilistic_analysis
This might be a bit far-fetched / difficult to find a good general solution that goes beyond a few simple cases (e.g, order statistics with non-i.i.d RVs):
y_rv = at.max(at.random.uniform([0, 1], [2, 3]))
y_rv = at.max(at.stack([at.random.uniform(0, 1), at.random.normal(0, 1)]))
Metadata
Metadata
Assignees
Labels
Type
Projects
Status
Graph