QSO 370 Module 5 Classification Assignment Example

Reviewed by Portia Lambrick, MBA

This QSO 370 Module 5 Classification Assignment sample builds a decision tree classifier, evaluates it with a confusion matrix and chooses a threshold by expected profit. SNHU QSO 370 (QSO-370) assigns classification in Module 5 of a predictive analytics course in the BS Operations Management. The outcome is customers leaving Ledgewood Fuel Company, an invented Massachusetts heating oil dealer that loses about 8.5 percent of its automatic customers a year. The paper reads the tree's splits, shows why its accuracy is worse than guessing that nobody leaves and still recommends it, because the threshold is set by what a saved customer is worth.

CourseQSO 370 Predictive Analytics
ModuleModule 5
Paper typeundergraduate assignment building a decision tree classifier, evaluating it with a confusion matrix and choosing a threshold by expected profit
LengthAbout 1,020 words, 6 pages
FormatAPA 7 student paper
SchoolSouthern New Hampshire University
ProgramBS Operations Management
UpdatedOctober 2026

Free sample paper for QSO 370 Module 5

1

Less Accurate Than Guessing, More Profitable Than Anything: A Churn Decision Tree for Ledgewood Fuel

[Student Name]

Southern New Hampshire University

QSO 370: Predictive Analytics

Classification Assignment

[Instructor Name]

[Date]

The organization, setting and figures below are a composite written as a model document. No real employer, client, colleague or patient is described.

What this page is doingThe customers, tree and profit figures for Ledgewood Fuel Company in this QSO 370 assignment are invented.
2

Less Accurate Than Guessing, More Profitable Than Anything: A Churn Decision Tree for Ledgewood Fuel

Introduction

Ledgewood Fuel Company lost 1,240 of its 14,600 automatic-delivery customers last year, 8.5 percent. Each lost customer took about $420 a year in gross margin with an expected remaining life of about two and a half years, so a lost customer is worth roughly $1,000 to the company. The office can offer a customer it fears losing a retention package, a free annual burner tune-up worth about $60 in labor and parts. The decision is which customers to offer it to. This assignment builds a decision tree to predict who will leave within the next year, evaluates it on test data and sets the threshold by expected profit.

What this page is doingStates the problem and the decision.
3

Data and Preparation

The data are all automatic customers at the start of the 2024-25 season, and the outcome is whether the customer canceled automatic delivery within twelve months. The predictors, all known at the start of the season, were tenure, tank size, oil-fired hot water, the number of calls to the office in the last year and whether any was a price complaint, whether the customer ran out in either of the last two winters, whether the customer is on a budget payment plan, whether the customer had asked about the state's heat pump rebate when calling and the customer's town. A random 70 percent of customers, 10,220, went to training and the remaining 4,380 to testing, with the share of leavers kept similar in each.

What this page is doingDescribes the data.
4

The Tree

Quinlan (1986) described decision trees as a way to induce classification rules by repeatedly choosing the attribute that best separates the classes, producing a model whose rules a person can read. The tree here was grown on the training set with a minimum of 100 customers in each final group and then pruned back to seven final groups to avoid fitting noise.

The first split is a price complaint call in the last year: 21 percent of customers who made one left, against 6 percent of those who did not. Among complainers, the next split is a run-out in the last two winters, which raises the leaving rate to 38 percent. Among non-complainers, the next splits are tenure under three years and a heat pump rebate inquiry. Customers with tenure under three years who had asked about heat pumps left at 31 percent. The budget plan, tank size and town did not appear in the pruned tree.

What this page is doingExplains its splits.
5

Confusion Matrix

The tree assigns each customer a probability of leaving, the share of leavers in that customer's final group. At a threshold of 0.25, it flags 520 of the 4,380 test customers.

Confusion matrix on 4,380 test customers, threshold 0.25

Predicted to leavePredicted to stayTotal
Actually left208 true positives164 false negatives372
Actually stayed312 false positives3,696 true negatives4,008
Total5203,8604,380

Precision is 208 of 520, or 40 percent: four in ten flagged customers would actually have left. Recall is 208 of 372, or 56 percent: the tree catches just over half the leavers. Accuracy, the share of all customers classified correctly, is 3,904 of 4,380, or 89.1 percent.

That accuracy is lower than the 91.5 percent achieved by predicting that nobody leaves, which classifies all 4,008 stayers correctly and all 372 leavers wrongly. The comparison shows why accuracy is the wrong measure here. A model that never flags anyone is accurate and worthless, because its value lies entirely in the leavers it finds.

What this page is doingEvaluates the tree on test data.
6

Profit-Based Threshold

Verbeke et al. (2012) argue that churn models should be evaluated by the profit of the retention campaign they drive, not by accuracy or other statistical measures, because what matters is how many saved customers a campaign gains for its cost. Ledgewood's retention offer costs $60. From a small trial last spring, about 30 percent of customers who were about to leave stayed after receiving it. So each true positive earns an expected 0.30 × $1,000 minus $60, or $240, and each false positive costs $60, the offer wasted on a customer who would have stayed anyway.

Expected profit on the test set at three thresholds

ThresholdFlaggedTrue positivesFalse positivesExpected profit
0.35, stricter260140120$26,400
0.25, chosen520208312$31,200
0.15, looser900260640$24,000

The 0.25 threshold earns the most. A stricter threshold misses too many leavers; a looser one wastes too many offers. On the whole customer base, about 3.3 times the test set, the chosen threshold would mean roughly 1,730 offers a year and an expected profit of about $103,000.

What this page is doingChooses the cut-off by money.
7

Preventable and Unpreventable Leavers

Not every leaver can be saved by a tune-up. Customers converting to heat pumps are leaving oil altogether, often with state rebates covering much of the cost, and a free tune-up will not change that decision. In the test set, about 30 percent of leavers in the heat pump branch said in their exit calls that they had installed a heat pump. Neslin et al. (2006) found that how a churn model is built and what it is asked to predict affect its accuracy and value considerably. A second lesson from the test set is that the tree's branches mean different things for the business. Separating the two kinds of leaving would improve the model: the price and run-out branches identify customers who might switch to a competitor and can be offered the tune-up, while the heat pump branch should instead be offered a hybrid service plan that keeps Ledgewood as the backup fuel and service provider.

What this page is doingSeparates what the offer can change.
8

Recommendation

Ledgewood should score every automatic customer each September and at each price complaint call, offer the tune-up to those above the 0.25 threshold in the price and run-out branches and offer the hybrid service plan to those in the heat pump branch. The office should log, for every offer, whether it was accepted and whether the customer stayed, so that next year's tree learns from the campaign's results as well as from the customers' history. The tree should be retrained each year on the latest season, and the save rate measured with a randomly held-back group of flagged customers who receive no offer, since the 30 percent figure comes from a small trial.

What this page is doingStates how to use the tree.
9

References

Neslin, S. A., Gupta, S., Kamakura, W., Lu, J., & Mason, C. H. (2006). Defection detection: Measuring and understanding the predictive accuracy of customer churn models. Journal of Marketing Research, 43(2), 204-211. https://doi.org/10.1509/jmkr.43.2.204

Quinlan, J. R. (1986). Induction of decision trees. Machine Learning, 1(1), 81-106. https://doi.org/10.1007/BF00116251

Verbeke, W., Dejaeger, K., Martens, D., Hur, J., & Baesens, B. (2012). New insights into churn prediction in the telecommunication sector: A profit driven data mining approach. European Journal of Operational Research, 218(1), 211-229. https://doi.org/10.1016/j.ejor.2011.09.031

What the QSO 370 Module 5 instructions ask for

The QSO 370 Module 5 assignment generally asks students to build and evaluate a classification model, often a decision tree or logistic regression, for a business outcome. Expect to prepare the data, split it into training and test sets, build and interpret the model, produce a confusion matrix on the test data, calculate accuracy, precision, recall and related measures and recommend how the model should be used. Strong assignments explain the model's splits or coefficients in business terms, compare performance with a simple baseline, recognize that accuracy misleads when one class is rare, connect false positives and false negatives to their costs, choose a threshold by expected value and separate outcomes the business can influence from those it cannot.

How this QSO 370 Module 5 classification assignment example is built

The assignment predicts which automatic customers will leave Ledgewood Fuel Company, a fictional Massachusetts heating oil dealer, within a year. Last year 1,240 of 14,600 left. A decision tree trained on 70 percent of customers splits first on a price complaint call, then on a run-out in the last two winters, tenure under three years and a heat pump rebate inquiry. On 4,380 test customers it flags 520, catching 208 of 372 leavers, with precision of 40 percent and recall of 56 percent. Its accuracy, 89.1 percent, is below the 91.5 percent of predicting nobody leaves. A profit calculation shows the threshold earns about $31,200 against $26,400 and $24,000 for others. Quinlan, Verbeke and colleagues and Neslin and colleagues support the method.

Where the QSO 370 Module 5 rubric puts the points

The QSO 370 classification assignment is commonly marked on sound data preparation and splitting, a correctly built and interpreted model, a confusion matrix and measures calculated on test data, comparison with a baseline, recognition of the limits of accuracy for imbalanced outcomes, a threshold chosen by the costs and benefits of each error and a recommendation that separates preventable from unpreventable outcomes. The strongest assignments explain why the most accurate model is not necessarily the most useful. Credit drops when measures come from training data, accuracy is the only measure, costs are ignored or the model is applied to customers no action could keep. Tables, clear writing and APA citations complete the grade.

QSO 370 Module 5 help: the mistakes that cost points

Start by defining the outcome and the action you would take for each predicted positive, such as a retention offer. Split the data, build the tree or model on the training set and describe its main splits or coefficients in plain business language. On the test set, build the confusion matrix: true positives, false positives, false negatives and true negatives. Calculate accuracy, but also precision, the share of flagged cases that are real, and recall, the share of real cases flagged, and compare with predicting the majority class for everyone. Then put money on each cell: what a correct flag earns and what a false alarm costs. Try several thresholds and choose the one with the highest expected profit. A common mistake is judging a churn model by accuracy.

Get QSO 370 Module 5 written to your instructions

Share the QSO 370 Module 5 instructions and your data. A writer builds the classifier, explains its splits or coefficients, evaluates it on test data with a confusion matrix, accuracy, precision and recall, compares it with a no-model baseline and chooses the threshold by expected profit or cost, with research behind each choice. Your first QSO 370 classification paper is free, ready within about two days. The paper above is an original model document written by our desk, not a submitted student paper and not an official Southern New Hampshire University document.

More QSO 370 papers and related BS Operations Management samples

QSO 370 Module 5 questions, answered

Where can I find a free QSO 370 Module 5 Classification Assignment sample?

The complete QSO 370 Module 5 assignment is on this page: a churn decision tree for an invented heating oil dealer, judged on profit.

What is a decision tree?

A model that predicts an outcome by splitting the data repeatedly on the predictor values that best separate the classes, producing rules that can be read as a tree.

What is a confusion matrix?

A table comparing predicted and actual classes, showing true positives, false positives, false negatives and true negatives for a classification model.

How do precision and recall differ?

Precision is the share of predicted positives that are truly positive; recall is the share of actual positives the model correctly identifies.

Why can accuracy mislead?

When one outcome is rare, a model that always predicts the common outcome scores high accuracy while identifying none of the cases that matter.