Chi Square
The chi square function is used to calculate the chi-square statistic which is used for testing the goodness of fit of a distribution or model to observed data. In machine learning, it is used for feature selection, evaluating the independence of categorical variables, and implementing chi-square tests for model evaluation or hypothesis testing. The formal definition is defined below where O
is the observed value and E
is the expected value under the null hypothesis.
To implement the ChiSquare
function, see the method signature below. Precision represents the number of decimal places and can be set between 0 and 18. It is applied to cals, exps and output.
Under the hood, the following functions are utilized directly in the Neural client.
Last updated