You are on page 1of 8

@letthedataconfess

Do you want to know


everything about the

-letthedataconfess

Ace your next data science interview


Practice Now: https://www.letthedataconfess.com/mock-interview/
Where is it used?
Test of independence:
A chi-square test for independence compares
two variables in a contingency table to see if
they are related. It tests to see whether
distributions of categorical variables differ from
each another.

@letthedataconfess

Ace your next data science interview


Practice Now: https://www.letthedataconfess.com/mock-interview/
The Chi-Square Test of Independence determines
whether there is an association between
categorical variables (i.e., whether the variables
are independent or related). It is a nonparametric
test. This test utilizes a contingency table to
analyze the data.
@letthedataconfess
A contingency table (also known as a cross-
tabulation, crosstab, or two-way table) is an
arrangement in which data is classified according
to two categorical variables. The categories for
one variable appear in the rows, and the
categories for the other variable appear in
columns.

Ace your next data science interview


Practice Now: https://www.letthedataconfess.com/mock-interview/
Null Hypothesis:
“Variable 1” is independent of “Variable 2”
@letthedataconfess
Alternative Hypothesis:
"Variable 1” is not independent of “Variable 2"

Ace your next data science interview


Practice Now: https://www.letthedataconfess.com/mock-interview/
@letthedataconfess

Ace your next data science interview


Practice Now: https://www.letthedataconfess.com/mock-interview/
The calculated Χ2 value is then compared to the
critical value from the Χ2 distribution table with
degrees of freedom df = (R - 1)(C - 1) and chosen
confidence level. If the calculated Χ2 value >
critical Χ2 value, then we reject the null
hypothesis.

We can also calculate the p-value using the test


statistic and if p-value < chosen confidence level,
we reject the null hypothesis.

@letthedataconfess

Ace your next data science interview


Practice Now: https://www.letthedataconfess.com/mock-interview/
#BOOTCAMP
Hands On Experience On

End To End
Machine
Learning Project
With live experience
Let's learn how to make the data confess!

10th & 11th July, 2021


11 AM - 5 PM IST

Fee:

599/- ₹
1499/- ₹
BOOK NOW!
https://www.letthedataconfess.com/blog/ts-events/end-to-end-machine-leaning/
www.letthedataconfess.com

@letthedataconfess

Ace your next data science interview


Follow | Support
Practice Now: https://www.letthedataconfess.com/mock-interview/

You might also like