Q: There are n vertices where every pair of vertices is connected by an edge independently with probability p. Find the Expectation and Variance of number of "V"s shape in Random Graph given that "V" is formed by 3 vertices {i,j,k} where there are exactly 2 edges between them.
I first let N=number of V shape is the random graph and found that ${E[N]}$ ${=}$ ${n \choose 3}$${3(p^2)(1-p)}$.
What is the Variance of N?
To compute the variance of $N$, the hardest part is to compute $\mathbb E[N^2]$, since $\text{Var}[N] = \mathbb E[N^2] - \mathbb E[N]^2$. We can think of $N^2$ as counting ordered pairs of "V" shapes in the random graph. This can be split up as a sum over indicator variables $I_{\{a,b,c\},\{d,e,f\}}$ where $\{a,b,c\}$ are distinct vertices and $\{d,e,f\}$ are distinct vertices: we define $I_{\{a,b,c\},\{d,e,f\}} =1$ if $\{a,b,c\}$ and $\{d,e,f\}$ both form Vs.
The expected value of $I_{\{a,b,c\},\{d,e,f\}}$ depends on the size of the intersection $\{a,b,c\} \cap \{d,e,f\}$.
Combine all these, subtract $\mathbb E[N]^2 = \left(\binom n3 3p^2(1-p)\right)^2$, and you have the variance.