Skip to main content
. 2019 Nov 20;2019:6314328. doi: 10.1155/2019/6314328

Table 2.

Table to compute χ2 test score.

Positive class Negative class Total
Feature fi occurs α β α+β=μ
Feature fi does not occur λ γ λ+γ=τμ
Total α+β=ω β+γ=τω τ

The sum of instances comprising feature fi is denoted by μ, the sum of instances without feature fi is denoted by τμ, the sum of instances that are positive is expressed as ω, and the sum of instances that are negative are represented by τω. Let the observed values be α, β, λ, and γ with the expected values Eα, Eβ, Eλ, and Eγ. Based on the hypothesis that the two events are independent, the expected value can be evaluated as follows: