Suppose that i want to calculate the joint entropy $H(A,B)$ of two discrete random variables of the form:
$A=\{-1,1,1,-1,-1,-1,1,1\}$ and $B=\{1,-1,1,1,-1,-1,-1,1\}$.
If the goal was just the calculation of the entropy of A or B, then, for example, i would have: $H(A)=- \sum{p*\log_2 (p)}$ where the probability mass function $p$ would be calculated from the observed frequencies of $-1$ and $1$. This means that $H(A)=- [\frac{1}{2} \log_2(\frac{1}{2}) + \frac{1}{2} \log_2(\frac{1}{2})]$. But what about the joint entropy and what should i do if i had more than two dicrete random variables (of the same form, with elements $-1$ and $1$)?