In Polya's urn, we have $b$ black balls and $w$ white balls at time $t$. At time $t+1$, we have $b+1$ black balls with probability $\frac{b}{w+b}$ and $w+1$ white balls with probability $\frac{w}{w+b}$.
Is there a way to generalize the probability function? Can you construct a generalized Polya's urn such that the probability of $b+1$ black and $w+1$ white balls at $t+1$ is $f(b, w)$, where $f: \{\mathbb{N}^+\}^2 \rightarrow \{0, 1\}^2$?
It is possible to use any function $f:\mathbb N^+ \times \mathbb N^+ \to [0,1]$ to represent
and given the starting position, then to find the distribution of the number or proportion of black balls or of white balls a given number of steps later. With the original Polya urn you have $f(b,w)=\frac{b}{b+w}$ and $1-f(b,w)=\frac{w}{b+w}$, but any other function can be used instead
A further generalisation could be to allow transitions to other states, not just adding a single ball with each step, or to have more than two colours, though these might require a more complicated function or a switch to a Markov-chain type of analysis