The entropy $H[x]$ of a Bernoulli distributed binary random variable $x$ is given by : $$ H[x]=−θlnθ−(1−θ)ln(1−θ) $$
where $$ p(x=1∣θ)= \theta \\ p(x=0∣θ)=1−θ $$
Now, suppose I have a vector as so:
$$ \mathbf{x} = [1,0,1,1,0] $$
where all the elements are sampled according to the Bernoulli distribution.
Consider further now that I have a matrix, with these types of rows, where all the rows are exchangeable:
$$ \mathbf{X} \triangleq [\mathbf{x}_1,\ldots,\mathbf{x}_4]^{\mathsf{T}} = \begin{bmatrix} 1 & 0 & 0 & 1 & 1 \\ 0 & 0 & 0 & 1 & 1 \\ 1 & 1 & 0 & 1 & 1 \\ 0 & 1 & 0 & 1 & 0 \end{bmatrix} $$
Hence, given that the rows are independent from one another, and that their order does not change the overall, probability of this matrix (as an assumption); how do we calculate the entropy of this matrix?
EDIT: in general I am not considering square matrices.