A tabla de contingencia is a statistical tool that organizes and displays the frequencies of different outcomes for two or more categorical variables. Typically represented in a matrix format, the rows and columns of the table correspond to the different categories of each variable, allowing for a clear comparison of their relationships.
Por ejemplo, en un estudio que analiza la relación entre género y preferencia por un producto, una tabla de contingencia mostraría el número de hombres y mujeres que prefieren o no prefieren el producto. Esto ayuda a identificar patrones o asociaciones entre las variables. Los valores dentro de las celdas de la tabla representan los conteos o frecuencias de observaciones que caen en las categorías respectivas.
Contingency tables are particularly useful for conducting tests of independence, such as the Chi-square test, which assesses whether the distribution of one variable is independent of the distribution of another. By analyzing the data in a contingency table, researchers can derive insights about the interactions between different categorical variables, making it a fundamental tool in fields such as ciencias sociales, marketing, and healthcare analytics.