It should be found from Example 3.5.5 that X and Y will be independent if and only if the rows of the table specifying their joint p.f. are proportional to one another, or equivalently, if and only if the columns of the table are proportional to one another.