
©2016 DeVry/Becker Educational Development Corp. All Rights Reserved.

1. Use your ruler to identify two possible places to make the first cut. Visually, is one of these cuts better than the other at separating the data?
2. For each potential cut, calculate the Gini impurity and the information gain. Based on these calculations, which cut should be used to form the first node of the decision tree? Is this consistent with your visual intuition from requirement 1?
3. How could Kevin use the decision tree analysis to help senior managers at Boehm and Sons improve profitability?

1. Are Rech and her team correct that the two cuts are equivalent? Which one would you choose to be the first node of the decision tree?
2. Why might Rech care about Gini impurities when making decisions?

The diagram shows three layers of the tree. The details of the diagram are as follows:
The credit score with a value less than or equal to 680 is at Cut 1. The 9 borrowers with credit scores higher than 680 are on the right leading to cut 2 with credit score less than or equal to 743. The 7 borrowers with credit scores less than 680 are on the left leading to cut 3 with income level less than or equal to 68,500 dollars.
The five borrowers with credit score more than 743 leads to repay. The four borrowers with credit score less than 743 leads to cut 4 with credit score less than or equal to 715. Of which, one borrower more than the score lead to default and three borrowers less than the score lead to repay.
Cut 3 with income less than or equal to 68,500-dollar branch into two. The two borrowers with more income lead to repay and five borrowers with less income lead to default.
1. Write out the rules dictated by this decision tree.
2. How would the decision tree classify the following loans?
a. Borrower has a credit score of 650 and income of $62,000
b. Borrower has a credit score of 670 and income of $75,500
c. Borrower has a credit score of 690 and income of $58,000
d. Borrower has a credit score of 725 and income of $62,000
3. Is Brown correct that something is wrong with the model? If so, what might explain this? Why is understanding the model important to Brown in his role as a management accountant?

The details of the tree depths are as follows:
Depth 1: Number of lines at cut 1 labeled less than or equal to 1.5 with branches 7 and 5.
Depth 2: 7 leads to cut 2 labeled less than or equal 3.5 and 5 leads to leave.
Depth 3: Number of lines at cut 2 branches into 4 and 3. 4 leads to stay and 3 leads to months cut 3 less than or equal to 21.5. Cut 3 further branches into 1 and 2 leading to leave and stay respectively.
| Observation | Number of Lines | Number of Months | Actual Outcome |
|---|---|---|---|
| (1) | (2) | (3) | (4) |
| 1 | 2 | 13 | Leave |
| 2 | 2 | 23 | Stay |
| 3 | 1 | 20 | Stay |
| 4 | 4 | 21 | Stay |
| 5 | 3 | 27 | Stay |
| 6 | 3 | 19 | Leave |
| 7 | 5 | 25 | Stay |
| 8 | 1 | 21 | Stay |
| 9 | 3 | 23 | Stay |
1. Write out the rules for this decision tree.
2. Using the full decision tree, classify each customer in the validation sample as leave or stay. Calculate the proportion of customers correctly classified as in Exhibit 11-13, column 5.
1. Using the pruned tree, classify each customer in the validation sample as leave or stay (if the probability of leave is greater than 0.5, classify the customer as leave). Calculate the proportion of customers correctly classified as in Exhibit 11-13, column 6.
2. Based on your answer to requirement 1 of this problem and Exercise 11-24, requirement 2, which tree should Sylvia use to identify customers who are likely to leave?
3. As the management accountant, what business recommendations could Sylvia make to management based on the decision tree model?
| Observation | Actual Outcome (y) | Probability of Fraud Predicted by the Pruned Decision Tree (p) |
|---|---|---|
| (1) | (2) | (3) |
| 1 | 1 (fraud) | 0.45 |
| 2 | 0 (clean) | 0.30 |
| 3 | 0 (clean) | 0.01 |
| 4 | 0 (clean) | 0.99 |
| 5 | 0 (clean) | 0.70 |
| 6 | 0 (clean) | 0.01 |
1. Calculate the likelihood value for each observation in the validation set as in Exhibit 11-14, column 8 using the following equation .
2. Calculate the overall likelihood value for this set of predictions by multiplying the likelihood values for each observation together.
3. As the management accountant, would you use this model for decision making? Explain.
4. After becoming more familiar with the data, London’s team returns with a second model. The table below lists the six observations in the model’s validation sample and the probability of fraud predicted by the (pruned) decision tree. How does this model compare to the previous one? Should London be satisfied with the accuracy of the new model? Explain.
| Observation | Actual Outcome (y) | Probability of Fraud Predicted by the Pruned Decision Tree (p) |
|---|---|---|
| (1) | (2) | (3) |
| 1 | 1 (fraud) | 0.99 |
| 2 | 0 (clean) | 0.20 |
| 3 | 0 (clean) | 0.33 |
| 4 | 0 (clean) | 0.01 |
| 5 | 0 (clean) | 0.01 |
| 6 | 0 (clean) | 0.01 |

The x-axis shows false positive rate from 0 to 1 in increments of 0.25. The y-axis shows true positive rate from 0 to 1 in increments of 0.25. Three different curves labeled as 1, 2, and 3 are plotted.
Curve 1 forms a diagonal line from the origin. Curve 2 has a gradual rise up to 0.75 in the true positive rate and gradually reaches the peak of false positive rate. Curve 3 follows the left-hand border reaching the top border of the ROC space.
1. Compare the curves labeled 1, 2, and 3 in the chart above. Which curve represents the model that would be most useful for a management accountant? Explain.
2. Explain what a “straight line” ROC curve actually represents.

The exhibit depicts a confusion matrix at cutoff value of 0.7. The details of the table are as follows:
Actual outcome of buyers and predicted outcome of buyers: 20
Actual outcome of buyers and predicted outcome of non-buyers: Blank
Total actual outcomes of buyers: 100
Actual outcome of non-buyers and predicted outcome of buyers: Blank
Actual outcome of non-buyers and predicted outcome of non-buyers: Blank
Total actual outcomes of non-buyers: 900
Total predicted outcomes of buyers: 120
Total predicted outcomes of non-buyers: Blank
Total: 1,000

The exhibit depicts a confusion matrix at cutoff value of 0.3. The details of the table are as follows:
Actual outcome of buyers and predicted outcome of buyers: 90
Actual outcome of buyers and predicted outcome of non-buyers: Blank
Total actual outcomes of buyers: 100
Actual outcome of non-buyers and predicted outcome of buyers: Blank
Actual outcome of non-buyers and predicted outcome of non-buyers: Blank
Total actual outcomes of non-buyers: 900
Total predicted outcomes of buyers: 750
Total predicted outcomes of non-buyers: Blank
Total: 1,000
1. Complete the confusion matrices for the validation set as in Exhibits 11-19 and 11-20.
2. A team of management accountants at SunTV estimates the payoffs from their actions. For every customer it targets, SunTV will spend $20 to market to that customer. For every smart TV it sells, SunTV makes a profit of $200 after taking into account the $20 it spends on that customer. Construct the payoff matrix as in Exhibit 11-21 and determine which cut off value SunTV should use.
3. Are there any other factors SunTV should consider before building such a model?

The exhibit depicts a confusion matrix at cutoff value of 0.3. The details of the table are as follows:
Actual outcome of low quality and predicted outcome of low quality: 130
Actual outcome of low quality and predicted outcome of acceptable quality: 20
Actual outcome of acceptable quality and predicted outcome of low quality: 230
Actual outcome of acceptable quality and predicted outcome of acceptable quality: 620

The exhibit depicts a confusion matrix at cutoff value of 0.5. The details of the table are as follows:
Actual outcome of low quality and predicted outcome of low quality: 100
Actual outcome of low quality and predicted outcome of acceptable quality: 50
Actual outcome of acceptable quality and predicted outcome of low quality: 120
Actual outcome of acceptable quality and predicted outcome of acceptable quality: 730
1. Cindy estimates that apples of acceptable quality result in a profit of $0.30 per apple. She also knows that low-quality apples can be sold to juice companies at a profit of $0.04. Finally, she estimates that the cost to Blanda of selling a low-quality apple to the grocery store as an acceptable-quality apple is $1.05 for each low-quality apple. Use this information to construct a payoff matrix as in Exhibit 11-21.
2. Using Cindy’s knowledge about the payoff of each outcome, which threshold should the team choose?
1. Cindy realizes that the change in the cost of selling a low-quality apple to the grocery store as an acceptable-quality apple may change the optimal model cutoff. Re-evaluate the two cutoffs based on the new payoff matrix. How does this compare to the decision in Problem 11-29, requirement 2?
2. Why is it important for Cindy as the management accountant and the data science team to partner with each other?
1. James wonders whether he should use new data to train a new model in December 2019, just prior to his planned investment on January 1, 2020. What should he do with the older data?
2. How much of the actual performance of the loans (such as repayments, loan restructuring, delayed repayments, hardship plans, etc.) should James use in classifying loans as default or repay when building his prediction model?

The details of the tree depths are as follows:
Depth 1: Credit score at cut 1 labeled less than or equal to 675 with two branches with 8 on both sides.
Depth 2: 8 on the left leads to cut 2 labeled less than or equal to income 70,000 dollars which further branches into 7 leading to default and 1 leading to repay. The 8 on the right leads to cut 2 labeled less than or equal to income 60,000 dollars which further branches into 3 and 5. 3 leads to cut 3, where as5 leads to repay.
Depth 3: Cut 3 labeled as income less than or equal to 55,000 branches into 2 and 1 leading to repay and default respectively.
| Observation | Income | Credit Score | Actual Outcome |
|---|---|---|---|
| (1) | (2) | (3) | (4) |
| 1 | $85,000 | 710 | (0) Repay |
| 2 | $62,000 | 650 | (1) Default |
| 3 | $72,000 | 660 | (0) Repay |
| 4 | $75,000 | 640 | (0) Repay |
| 5 | $71,000 | 680 | (0) Repay |
| 6 | $59,000 | 705 | (0) Repay |
| 7 | $48,000 | 690 | (1) Default |
| 8 | $57,000 | 685 | (0) Repay |
1. Write out the rules for this full decision tree.
2. Classify each loan in the validation sample as repay or default. Calculate the proportion of loans correctly classified as in Exhibit 11-13, column 5.
3. Based on his experience in management accounting, James reviews the model and notes that something appears to be wrong with the tree at a depth of 3. What problem did James observe? What should James propose?
1. Prune the tree at depth 3. Using the pruned tree, classify each loan in the validation sample as repay or default (if the probability of default is greater than 0.5 classify the loan as default). Calculate the proportion of loans correctly classified as in Exhibit 11-13, column 6.
2. Based on your answer to requirement 1 of this problem and Problem 11-32, requirement 2, which decision tree should James use to identify default and repay loans?
3. James has to present both models and the conclusions to the president of Keebler-Olson. He knows that in the past the president has preferred using models based on full decision trees because they seem to fit the training data more closely. How should James explain the pruned decision tree model?
1. For the full and pruned trees, calculate likelihood values for the validation set in Problem 11-32 as in Exhibit 11-14, columns 6 and 8.
2. Calculate the overall likelihood value for the full and pruned trees.
3. As the management accountant, which model would you use for decision making based on the likelihood values? Does this differ from your answer to Problem 11-33, requirement 2? Explain.
1. Fill in the payoff matrix below as in Exhibit 11-21.

The exhibit depicts a payoff matrix. The details of the table are as follows:
Actual outcome of default and predicted outcome of default (do not invest in loan)
Actual outcome of default and predicted outcome of repay (invest in loan)
Actual outcome of repay and predicted outcome of default (do not invest in loan)
Actual outcome of repay and predicted outcome of repay (invest in loan)
2. James is deciding whether to use a cutoff of 0.25 or 0.5. Complete the confusion matrices below using the pruned tree for each cutoff as in Exhibits 11-19 and 11-20.

The exhibit depicts a confusion matrix at cutoff value of 0.5. The details of the table are as follows:
Actual outcome of default and predicted outcome of default (do not invest in loan)
Actual outcome of default and predicted outcome of repay (invest in loan)
Actual outcome of repay and predicted outcome of default (do not invest in loan)
Actual outcome of repay and predicted outcome of repay (invest in loan)

The exhibit depicts a confusion matrix at cutoff value of 0.25. The details of the table are as follows:
Actual outcome of default and predicted outcome of default (do not invest in loan)
Actual outcome of default and predicted outcome of repay (invest in loan)
Actual outcome of repay and predicted outcome of default (do not invest in loan)
Actual outcome of repay and predicted outcome of repay (invest in loan)
3. What cutoff value should James use? Explain.
| Observation number | 1 | 2 | 3 | 4 | 5 | 6 | 7 |
|---|---|---|---|---|---|---|---|
| Model probability (p) | 0.99 | 0.01 | 0.33 | 0.20 | 0.01 | 0.33 | 0.33 |
| Actual outcome (y) | 1 | 0 | 1 | 0 | 0 | 0 | 0 |
1. Calculate the likelihood value for each observation in the validation set using the following equation: (remember and )
2. Calculate the overall likelihood value for the validation set.
3. As the management accountant, what should Sarah do with this information?
1. Fill in the payoff matrix below as in Exhibit 11-21.

The exhibit depicts a payoff matrix. The details of the table are as follows:
Actual outcome of defective and predicted outcome of defective
Actual outcome of defective and predicted outcome of working
Actual outcome of working and predicted outcome of defective
Actual outcome of working and predicted outcome of working
2. Sarah is debating two different model cutoffs of 0.50 and 0.30. Using the table below, fill in the confusion matrices as in Exhibits 11-19 and 11-20 based on the validation set presented in Problem 11-36.

The exhibit depicts a confusion matrix at cutoff value of 0.5. The details of the table are as follows:
Actual outcome of defective and predicted outcome of defective
Actual outcome of defective and predicted outcome of working
Actual outcome of working and predicted outcome of defective
Actual outcome of working and predicted outcome of working

The exhibit depicts a confusion matrix at cutoff value of 0.3. The details of the table are as follows:
1. Actual outcome of defective and predicted outcome of defective
2. Actual outcome of defective and predicted outcome of working
3. Actual outcome of working and predicted outcome of defective
4. Actual outcome of working and predicted outcome of working
3. What cutoff value should Sarah choose? Explain.
4. Sarah is uncertain about the $50 net loss if a defective brake pad is shipped to customers. At what loss would Sarah prefer to use the other cutoff value (i.e., the cutoff value Sarah did not choose in requirement 3)?
Predicted Probability of Household With Kids Ranked From Highest to Lowest (1) | Cumulative Number of Households With No Kids (0s) (2) | Cumulative Number of Households With Kids (1s) (3) |
|---|---|---|
| 0.99 | 0 | 30 |
| 0.55 | 135 | 50 |
| 0.33 | 585 | 90 |
| 0.01 | 900 | 100 |
1. Calculate the false positive rate and true positive rate for the above table as in Exhibit 11-16, columns 6 and 7.
2. Draw the ROC curve. Would you recommend using this ROC curve to make predictions about households with kids entering school for the first time?
3. Use the preceding table to determine how many true positives and false positives the model identifies at a cutoff of 0.25 and 0.50. Fill in the confusion matrices below as in Exhibits 11-19 and 11-20.

The exhibit depicts a confusion matrix at cutoff value of 0.5. The details of the table are as follows:
1. Actual outcome of kids and predicted outcome of kids
2. Actual outcome of kids and predicted outcome of no kids
3. Actual outcome of no kids and predicted outcome of kids
4. Actual outcome of no kids and predicted outcome of no kids

The exhibit depicts a confusion matrix at cutoff value of 0.25. The details of the table are as follows:
1. Actual outcome of kids and predicted outcome of kids
2. Actual outcome of kids and predicted outcome of no kids
3. Actual outcome of no kids and predicted outcome of kids
4. Actual outcome of no kids and predicted outcome of no kids
4. For those households predicted to have kids going to school for the first time, Stapleton will spend $2 promoting products to each household. Stapleton expects to make $25 (after taking into account the $2 spent on promotion) from those households that it correctly identifies as having kids. Without doing promotion, Stapleton will earn an average of $10 from every household with a kid entering school for the first time. Using this information, create a payoff matrix as in Exhibit 11-21 and determine whether Caitlin should use a cutoff probability of 0.5 or 0.25.
5. When might a large increase in false positives be acceptable to Stapleton if the number of true positives also increases?
1. Help the data scientist complete the confusion matrixes below for different model thresholds as in Exhibits 11-19 and 11-20.

The exhibit depicts a confusion matrix at cutoff value of 0.4. The details of the table are as follows:
1. Actual outcome of default and predicted outcome of default: Blank
2. Actual outcome of default and predicted outcome of repay: Blank
3. Total actual outcomes of default: Blank
4. Actual outcome of repay and predicted outcome of default: 200
5. Actual outcome of repay and predicted outcome of repay: 140
6. Total actual outcomes of repay: 340
7. Total predicted outcomes of default: 250
8. Total predicted outcomes of repay: Blank
9. Total: 400

The exhibit depicts a confusion matrix at cutoff value of 0.55. The details of the table are as follows:
1. Actual outcome of default and predicted outcome of default: 40
2. Actual outcome of default and predicted outcome of repay: Blank
3. Total actual outcomes of default: 60
4. Actual outcome of repay and predicted outcome of default: Blank
5. Actual outcome of repay and predicted outcome of repay: Blank
6. Total actual outcomes of repay: 340
7. Total predicted outcomes of default: Blank
8. Total predicted outcomes of repay: 240
9. Total: Blank
2. Assume that Spruce Bank has $1,000 to invest in each loan of the validation sample. If Spruce Bank does not invest in a loan, it keeps the money in a risk-free investment at 3% a year for 3 years (ignore the time value of money). If Spruce invests in a loan that eventually repays, it receives 10% a year for 3 years. If Spruce invests in a loan that eventually defaults, Spruce loses 65% of the amount of the loan. Fill in the payoff matrix below as in Exhibit 11-21. Which model threshold should David and the data scientist use?

The exhibit depicts a payoff matrix. The details of the table are as follows:
1. Actual outcome of default and predicted outcome of default (do not invest in loan)
2. Actual outcome of default and predicted outcome of repay (invest in loan)
3. Actual outcome of repay and predicted outcome of default (do not invest in loan)
4. Actual outcome of repay and predicted outcome of repay (invest in loan)
1. Calculate the model payoffs for both the worst- and best-case scenarios for each cutoff.
2. If you were David, how would this analysis impact your decision making?