P(X=i,Y=j) and P(X=i)P(Y=j) are different.
When they are equal,X and Y are independent.
P(Y=1|X=1)=P(X=1.Y=1)/P(Y=1)