Take the joint probability of a complex algebraic expression consisting of a sequence of $n$ variables $P(x_i, x_2, \dots, x_n)$. My goal is to calculate the product of the probabilities of all possible subsequences of these $n$ variables.
For example, take the sequence $S = x_1, x_2, x_3, x_4$, which occurs with the joint probability $P_S = P(x_1, x_2, x_3, x_4)$. The set of probabilities of all possible order-preserving subsequences of $S$ is as follows:
slider size = 1: $P(x_1)$, $P(x_2)$, $P(x_3)$, $P(x_4)$
slider size = 2: $P(x_1, x_2)$, $P(x_2, x_3)$, $P(x_3, x_4)$
slider size = 3: $P(x_1, x_2, x_3)$, $P(x_2, x_3, x_4)$
The slider can be thought of as a unit of a certain size sliding through the sequence and "cutting out" subsequences of that size until it slides all the way to the end. In general, we can say that if we have a sequence of $n$ elements, the set of all its order-preserving subsequences will have the following properties:
- there will be $n-1$ slider sizes
- the smallest slider size will have $n$ subsequences
- the largest slider size will have $n-(n-2) = 2$ subsequences
As I mentioned earlier my goal is to calculate the product of all these probabilities. In the above example the product would be:
$P(x_1)$ $P(x_2)$ $P(x_3)$ $P(x_4)$ $P(x_1, x_2)$ $P(x_2, x_3)$ $P(x_3, x_4)$ $P(x_1, x_2, x_3)$ $P(x_2, x_3, x_4)$
Put into a matrix-like format where the vertical axis is the grain size and the horizontal axis is the slider i.e. the specific subsequence within the larger sequence at a given grain size, we would get the following representation:
$P(x_1)$ $P(x_2)$ $P(x_3)$ $P(x_4)$
$P(x_1, x_2)$ $P(x_2, x_3)$ $P(x_3, x_4)$
$P(x_1, x_2, x_3)$ $P(x_2, x_3, x_4)$
I am trying to come up with a succinct formal generalization of this example for sequences of length $n$. The best solution I could come up with so far is the rather illegible expression below, which - it has been suggested to me - can be simplified to the form $\prod\prod P(x)$, but I don't know how.
$\prod_{i=1}^{n} P(x_i) \prod_{j=1}^{n-1} P(x_j, x_{j+1}) \dots \prod_{z=1}^{2} P(x_z, x_{z+1}. \dots, x_{z+{n-1}})$
where $n$ represents the number of elements in the sequence, $i$ is the index of the initial element of the subchunk of the smallest slider size, $j$ is index of the initial element of the subchunk of the next smallest slider size etc.
Is there a way to simplify this expression further? I would really appreciate some help with this from those who read math like their morning newspaper.