Lu
Lu
Another thing is about the p-value. Go back to the assumption, a
subgraph with 2 nodes in A and 2 nodes in B with 3 out of 4 arcs,
p-value here should be 1-binocdf(2,4,0.07) = binopdf(3,4,0.07) +
binopdf(4,4,0.07) because p-value is defined as the probability of
obtaining a test statistic at least as extreme as the one that was
actually observed, so 3-arc should be included.
Lu
1-binocdf(k,n,p) = binocdf(n-k-1,n,1-p)