I'm looking at a past homework solution and there is a part of it I don't understand. Specifically I'm talking about number 2 in this problem set:
Let $m=\lfloor(8/7)^{n/3}\rfloor$. Show that there exist distinct sets $A_1,A_2,\dots,A_m\subseteq[n]$ such that for all distinct $i,j,k\in[m]$ we have $A_i\cap A_j\nsubseteq A_k$.
Given $A_1, A_2, A_3,..., A_m$ which are subsets of $ [n] $. Can someone explain in detail why the probability of $A_i \cap A_j \subseteq A_k$ is equal to $(\frac7 8)^{n}$.
Suppose that $A_i\cap A_j\subseteq A_k$. Then for each $r\in[n]$ one of the following must be true:
Since each $r\in[m]$ is in any given $A_s$ with probability $\frac12$, the probability of (1) is $\frac12\cdot\frac12\cdot\frac12=\frac18$. The probability of (2) is $\frac12\cdot\frac12\cdot1=\frac14$, and exactly the same calculation gives the probability of (3) and the probability of (4). These four possibilities are mutually exclusive, so the probability that one of them is true is $\frac18+\frac14+\frac14+\frac14=\frac78$.
In other words, for each $r\in[n]$ the probability that $r$ behaves in one of the ways consistent with $A_i\cap A_j\subseteq A_k$ is $\frac78$. This is the case independently for each $r\in[n]$, so the probability that all of them behave properly is $\left(\frac78\right)^n$.