Description
1. Consider the following data set for a binary class problem:
Feature A Feature B Class Label
T F +
T T +
T T +
T F –
T T +
F F –
F F –
F F –
T T –
F F –
We wish to select the feature that best predicts the class label using the χ2 method.
Write down the observed and expected contingency tables for feature A Calculate the χ2(A,Class) value.
Using the table below, conclude whether feature A is independent of the class label for p = 0.05.
Repeat the process for feature B and decide which feature could be best used for predicting the class label.
2. Open Jupyter Notebook and complete the activities.
1
Reviews
There are no reviews yet.