Exercises for understanding machine learning
These exercises use synthetic or public examples. They are intended to build a practical understanding of model behavior, not to claim that a specific product will work in a live business.
Exercise 1: Predict a numeric value
Use a small dataset with a numeric target, such as synthetic delivery duration based on distance and dispatch time. Separate training and test examples. Fit a simple regression model and compare predictions with actual test values. Inspect the largest errors and explain possible causes.
Exercise 2: Classify examples
Create a small labeled dataset with a few categories. Train or use a simple classifier, then build a confusion matrix. Compare precision and recall for each category. Notice how a single overall accuracy figure can hide a category with poor performance.
Exercise 3: Explore clustering
Use a small dataset with several numeric attributes. Apply a clustering method and inspect the groups. Ask whether the clusters are useful to a business decision or whether they are mathematical groupings without a clear operational meaning.
Exercise 4: Simulate drift
Change the distribution of the test inputs or introduce values outside the range seen during training. Observe whether model errors increase. Discuss which monitoring signal might reveal that real-world data has changed.
Convert an exercise into evidence
Record the dataset source, target definition, preprocessing steps, train/test method, model version, metrics and limitations. Use representative cases and avoid making claims about real customers from a toy dataset. If an exercise informs a business decision, repeat it with approved data and appropriate evaluation controls.
Further reading and primary references
- OECD: Updated definition of an AI system — context for machine learning within the wider AI system concept.
- NIST AI Risk Management Framework — voluntary framework for governing AI risk and trustworthiness.
- NIST AI RMF resources — official supporting publications and materials.
Verify libraries, model features, provider prices, API limits, laws and platform policies against current official documentation. Reference review date: 24 November 2026.
Need help applying this to your business?
KOV can assess your current process, systems and requirements, then help define a practical AI strategy, integration or implementation plan.
Discuss this with KOV ↗