I have the following issue: Lets say I have a 2x2 contingency table of left and right handed men and women and the outer sums (marginal distribution)
$$ \begin{matrix} & Left & Rigth & \\ Men & a & b & M = a+b\\ Women & c &d & W = 1-M = c+d\\ & L = a+c & R = 1-L = b+d & 1 \end{matrix} $$
I have the full table once (say for one classroom). And a bunch of Row and Column sums for say the other classes in the school.
Now if handedness and gender are independent I can easily construct a to d with just the row and columns sums.
Is some kind of information or measure of dependence i can gather from the one full matrix (that I have for one classroom) and use that information to construct a to d (joint distribution) using just the outer sums (marginal) from the other classrooms. Under the assumption that whatever piece of information I extracted is the same?
Just to showcase what I am looking for (if it even exists): My first thought was to use the determinant, but this does not restrict the cells between 0 and 1.
$$ det = ad - bc = a (1-L-M+a) - [(M-a)(L-a)] =\\ a(1-L-M+a) - [ML -Ma -La +a^2] = a -La-Ma +a^2 - ML +Ma +La -a^2 = \\ det =a - ML $$ So given the determinant, L and M I can calculate a and therefore all the others as well. And two tables with different row and column sums but the same determinant are in some way "similar".
I found some other questions that mention "copula", but I am not sure if and how I can apply this here (Constructing a joint distribution from pairwise bivariate marginal distributions?).
Thank you in advance, and sorry for my lackluster terminology.
chisq.test(matrix(c(60,540,80,430), nrow=2, byrow=T))$p.valwould return P-value 0.0059. Then you'd be using one school to see what is going on in the whole population of students that age. Whether the 2nd school is typical of the population is a separate matter. – BruceET Aug 20 '19 at 18:35