$$H[X,Y] \equiv - \sum_{x \in \mathcal{X}} \sum_{y \in \mathcal{Y}} Pr(X=x,Y=y) \log_2 Pr(X=x,Y=y)$$