Question: 2 . Consider the training dataset shown in the table. The last attribute Cheat is the class attribute. For a binary split of these data

2. Consider the training dataset shown in the table. The last attribute Cheat is the class attribute. For a binary split of these data using attribute Refund, compute the gain in purity using Gini index.
\begin{tabular}{|l|l|l|l|l|}
\hline Tid & Refund & Marital & \multicolumn{2}{|c|}{ Taxable }\\
\hline & & Status & Income & Cheat \\
\hline 1 & Yes & Single & 125 K & No \\
2 & No & Married & 100 K & No \\
3 & No & Single & 70 K & No \\
4 & Yes & Married & 120 K & No \\
5 & No & Divorced & 95 K & Yes \\
6 & No & Married & 60 K & No \\
7 & Yes & Divorced & 220 K & No \\
8 & No & Single & 85 K & Yes \\
9 & No & Married & 75 K & No \\
10 & No & Single & 90 K & Yes \\
\hline
\end{tabular}
Training Data
2 . Consider the training dataset shown in the

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!