Judge how well a machine learning algorithm fits
The idea
A classification model is judged on a confusion matrix of true and false positives and negatives. Precision, TP ÷ (TP + FP), matters when false positives are costly. Recall, or sensitivity, TP ÷ (TP + FN), matters when missing a positive is costly. Accuracy, (TP + TN) ÷ all observations, can mislead when classes are unbalanced. The F1 score, 2 × precision × recall ÷ (precision + recall), balances the two and suits unbalanced data. A receiver operating characteristic curve plots the true positive rate against the false positive rate across thresholds; a larger area under the curve generally means a better model. For continuous targets, root mean squared error is the usual measure.
In the app: 2 practice questions on this outcome, a narrated walkthrough with diagrams, spaced review that brings it back before you forget it.
Take the free diagnostic →More in Big Data Projects
- Recognise the stages of a data analysis project and explain each one
- Set out the aims, stages and examples of data preparation and wrangling
- Set out the aims, techniques and examples of exploring data
- Explain techniques for extracting, choosing and engineering features from text data
- Set out the aims, stages and techniques of training a model
- Explain how text-based data is prepared, wrangled and explored for use in financial forecasting