when to use a chi square 2 test
a chi square test is used to help determine if observed results are in line with expected results and to rule out that observations are due to chance a chi square test is appropriate for this when the data being analyzed is from a random sample and when the variable in question is a categorical variable a categorical variable consists of selections such as type of car race educational attainment male or female or how much somebody likes a political candidate from very much to very little these types of data are often collected via survey responses or questionnaires therefore chi square analysis is often most useful in analyzing this type of data 