The chi-square test is appropriate for use when:

you have one categorical independent variable and one numerical scaled dependent variable.

you have the dependent and independent variables need to be measured on an interval or ratio scale.

you have data from two numerical variables.

you have data from two categorial variables.

you have one categorical independent variable and one numerical scaled dependent variable.

you have the dependent and independent variables need to be measured on an interval or ratio scale.

you have data from two numerical variables.

you have data from two categorial variables.