Start from the task, not the algorithm
The first question is what the model is for. Supervised learning predicts a known outcome from labelled examples: classification for categories, regression for numbers. Unsupervised learning finds structure in unlabelled data, for example clusters or lower-dimensional representations. Reinforcement learning learns a policy from rewards in sequential decisions. Each family contains many algorithms, so the task narrows the field but does not choose for you.

A second question matters as much in a thesis: is the aim prediction or explanation? Machine learning is built to predict well, and its fitted coefficients or feature importances are not estimates of causal effects (Mullainathan & Spiess, 2017). If your research question is causal, an accurate predictor does not answer it.
Let the data shortlist the candidates
Once the task is clear, the properties of the data do most of the shortlisting. The table gives starting points, not rules.
| Data situation | Reasonable candidates to compare | Caution |
|---|---|---|
| Small labelled sample (hundreds of cases) | Regularised linear or logistic regression, small tree ensembles, k-nearest neighbours | High-variance models overfit; validation estimates are noisy |
| Tabular features, medium to large sample | Random forests, gradient-boosted trees, regularised regression | Tree ensembles are strong baselines on tabular data (Breiman, 2001) |
| Many features relative to cases | Regularised regression, support vector machines, dimensionality reduction first | Feature selection must happen inside the validation loop |
| Images, audio or text | Neural networks, often pre-trained and fine-tuned | Data, compute and labelling costs are high |
| No labels | Clustering (k-means, hierarchical, density-based), topic models | Results depend on distance measures and settings; validate against external criteria |
| Very small data with physical knowledge | Models that include domain features or physical estimates as inputs | Domain inputs can help but do not replace data from the regime of interest (Zhang & Ling, 2018) |
Two pieces of evidence put the table in perspective. In a manufacturing study, Wu et al. (2017) compared neural networks, support vector regression and random forests for predicting tool wear and found random forests the most accurate on their data. In credit scoring, a large benchmark of classifiers showed that rankings depend on the data sets and evaluation design used (Lessmann et al., 2015). The no free lunch theorems for optimisation make the general point formally: averaged over all possible problems, no algorithm outperforms any other (Wolpert & Macready, 1997), and the practical lesson carries over to model selection.
In applied fields, frameworks for algorithm selection make the same recommendation: tie the choice to the data available and the decision the model supports (Arena et al., 2024).
Decide what accuracy you need and how to measure it
The required accuracy depends on the use. A screening model that flags cases for human review has different needs from one that makes automatic decisions. Choose the metric before you compare models.
- Imbalanced classes. Accuracy can look high when the model ignores the rare class. Precision-recall analysis is more informative than the ROC curve in this situation (Saito & Rehmsmeier, 2015).
- Probabilities used for decisions. Report calibration, whether predicted risks match observed frequencies, as well as discrimination (Van Calster et al., 2019).
- Regression. Report an error measure in the outcome's units (mean absolute error or root mean squared error) alongside any relative measure.
An approximate model that is slightly less accurate but faster and easier to explain is often the right choice, provided the loss is measured and stated.
Weigh speed, resources and interpretability
Training time, prediction time and memory matter when data are large or predictions are needed in real time. Naive Bayes and logistic regression are usually fast to train; kernel support vector machines scale poorly to very large samples; deep networks need substantial compute. These are tendencies that depend on implementation and data size.
Interpretability is a design choice too. For high-stakes decisions, an inherently interpretable model that performs comparably is preferable to a black box explained after the fact (Rudin, 2019). Record compute time and hardware so that others can judge the cost of your results.
Consider also who will maintain the model after your thesis. A model that needs a graphics card, a large retraining pipeline or specialist knowledge to update may never be used by the organisation that supplied your data. If deployment is part of your contribution, include these practical constraints in your selection criteria from the start.
Parameters, hyperparameters and tuning
"Parameters" is often used for two different things. Model parameters, such as regression weights, are learned from data. Hyperparameters, such as the number of trees, the depth of a tree or a regularisation strength, are set before training and control flexibility. More flexibility can fit complex patterns but also noise.
Tuning hyperparameters is part of model selection, so it must not see the data used to estimate final performance. Choosing settings by cross-validation and then reporting that same cross-validated error gives an optimistic estimate; nested cross-validation, with tuning inside an inner loop, avoids this bias (Varma & Simon, 2006).
Putting the criteria together
The criteria interact, so it helps to apply them in a fixed order and to write the reasoning down as you go. The record becomes the justification in your methods chapter.
- Fix the question and the use. Prediction or explanation; who will use the output and how.
- Fix the evaluation design first. Decide the split (random, grouped by participant or site, or by time), the metric and the baseline before training anything. Grouped and time-ordered splits matter whenever records from the same person, place or period could appear on both sides of the split.
- Shortlist two to four candidate families from the task and the data (Table 1), including at least one simple, interpretable model.
- Set a comparable tuning budget for every candidate, so that the comparison is fair.
- Compare with uncertainty. Report the spread across folds or repeated runs, not a single number.
- Choose and explain. Prefer the simplest model whose performance is not meaningfully worse, and state the trade-off you accepted in speed, accuracy or interpretability.
Unsupervised and reinforcement learning follow the same logic with different checks. For clustering, compare solutions across algorithms and settings and test whether clusters relate to external variables they should predict. For reinforcement learning, report the environment, the reward definition and performance across several random seeds, because results can vary widely between runs.
Validate the choice so that it can be trusted
Most failures in applied machine learning are failures of validation rather than of algorithm choice. Data leakage, where information from the test data reaches training through preprocessing, feature selection, duplicated records or time order, has inflated results across many fields (Kapoor & Narayanan, 2023). Security research shows the same pitfalls, including sampling bias and inappropriate baselines (Arp et al., 2022).
Worked example (illustrative)
A doctoral researcher wants to predict which first-year students will withdraw, using 1,200 records with 30 tabular features and a 12 per cent withdrawal rate. A sensible plan is to: (1) hold out the most recent cohort as a test set, because the model will be used on future students; (2) compare a logistic regression baseline, a random forest and a gradient-boosted model; (3) tune each inside the training data with nested cross-validation; (4) report precision-recall and calibration rather than accuracy alone; and (5) prefer the simpler model if the gain from the complex one is within the uncertainty of the estimate. The numbers are hypothetical and show the reasoning only.
| Report | Why |
|---|---|
| Candidate models and why they were chosen | Shows the choice was principled, not post hoc |
| A simple baseline | Shows how much the complex model adds |
| Data splits and how leakage was prevented | Lets readers trust the performance estimate (Kapoor & Narayanan, 2023) |
| Hyperparameter search space and procedure | Supports reproducibility (Pineau et al., 2021) |
| Metrics with uncertainty | Shows whether differences between models are meaningful |
| Code, versions and compute | Allows the work to be repeated |
Common mistakes
- Choosing an algorithm because it is fashionable, then searching for a problem it suits.
- Comparing a tuned new model with untuned baselines, a pattern criticised in machine learning scholarship (Lipton & Steinhardt, 2019).
- Selecting features or scaling data on the full data set before splitting (Kapoor & Narayanan, 2023).
- Reporting accuracy alone on imbalanced data (Saito & Rehmsmeier, 2015).
- Interpreting feature importance as causal effect (Mullainathan & Spiess, 2017).
For metrics in more depth, see choosing and reporting evaluation metrics in a machine learning dissertation; for the business version of this question, see how to choose and justify a machine learning algorithm in business research; and for optimisation algorithms, see how to choose and benchmark a metaheuristic.
Key takeaways
- No algorithm is best for every problem, so compare candidates on your own data (Wolpert & Macready, 1997; Lessmann et al., 2015).
- Decide first whether your aim is prediction or causal explanation (Mullainathan & Spiess, 2017).
- Pick metrics that fit the task, including precision-recall and calibration where they matter (Saito & Rehmsmeier, 2015; Van Calster et al., 2019).
- Tune hyperparameters inside nested validation and guard against leakage (Varma & Simon, 2006; Kapoor & Narayanan, 2023).
- Prefer an interpretable model when it performs comparably, especially for high-stakes uses (Rudin, 2019).
