In addition to what Christian has mentioned , a hypothesis test called the chi-square test of independence is made to determine whether two bivariate tables of nominal and ordinal variables contain any statistically significant relationships. It informs us, in other words, if two variables are independent of one another. Apart from this visualization of the relationship can be done using Scatter Plot.