Okay the chi square test is used to compare the relationships between two categorical variables. So now hypothesis mean there are two categorical variables have no relationship. alternate hypothesis mean that two categorical variables have relationships so far ah the copy this data so variable one to the okay they're about to the variable tree okay na data and we will enter data. Okay, enter. So this is the data set Okay, I will Create a data table here. So data dot table two table data variable one data variable two.
So, data dot table two should be Table Table data data variable one data variable two okay I want to add a data table I guess typing data table here. So, data dot table so the something like this okay then I can use a tai chi square test here. Oh, chi squared, test, ah data dot table Okay, so, I have P value 0.51 a six okay so we can go into the result. So, for chi square test, this zero here is now hypotheses. So, now hypothesis is that two variables are independent. alternate hypothesis is that the two variables are not independent.
So P value is 0.5 and a six p value is more than 0.05. He saw how value has now hypotheses is filled to reject. So, we fail to reject a null hypothesis So, we can say that two variables are independent