You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Given an i.i.d. sample of univariate random variable $X_1, \dots, X_n$ with probability density function $f_X(x)$ and cumulative prob $F_X(x)$, the jth order statistic is denoted by $X_{(j)}$ and its probability density function is the following:
With the maximum and minimum statistics represented by $X_{(1)}$ and $X_{(n)}$, PyMC is capable of deriving their log-probability densities (#6790, #6846) and this issue directly extends that line of work for arbitrary $1 \leq k \leq n$.
The challenge is to represent this with PyTensor. Max and min is easy, because there are Ops for it.
Then one could do sort(x)[idx], with idx == 0 or idx == -1 corresponding to max and min, but intermediate results would depend on the length of x. We need a pytensor.quantile anyway, and that would be a good candidate for how to represent orders in PyTensor: pymc-devs/pytensor#53
Description
Given an i.i.d. sample of univariate random variable$X_1, \dots, X_n$ with probability density function $f_X(x)$ and cumulative prob $F_X(x)$ , the jth order statistic is denoted by $X_{(j)}$ and its probability density function is the following:
With the maximum and minimum statistics represented by$X_{(1)}$ and $X_{(n)}$ , PyMC is capable of deriving their log-probability densities (#6790, #6846) and this issue directly extends that line of work for arbitrary $1 \leq k \leq n$ .
Wikipedia reference: https://en.wikipedia.org/wiki/Order_statistic
CC @ricardoV94 @Dhruvanshu-Joshi
The text was updated successfully, but these errors were encountered: