1. Consider the following data set for a binary class problem:
Feature A Feature B Class Label TF+ TT+ TT+ TF- TT+ FF- FF- FF- TT- FF-
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
Copyright By PowCoder代写 加微信 powcoder
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.
程序代写 CS代考 加微信: powcoder QQ: 1823890830 Email: powcoder@163.com