Concept
When not to use AI
Skip AI when a fixed rule gives the exact answer, data is missing or the cost is not worth it.
Calculate sales tax
- Why not ML
- The rule gives the exact answer
- Instead
- Write the rule in code
Only 50 past examples
- Why not ML
- Too little data to learn from
- Instead
- Collect more data
Saves a few dollars a month
- Why not ML
- Cost is higher than the gain
- Instead
- Keep the manual process
Payments must be exact
- Why not ML
- A prediction can be wrong
- Instead
- Use fixed logic and checks
| Situation | Why not ML | Instead |
|---|---|---|
| Calculate sales tax | The rule gives the exact answer | Write the rule in code |
| Only 50 past examples | Too little data to learn from | Collect more data |
| Saves a few dollars a month | Cost is higher than the gain | Keep the manual process |
| Payments must be exact | A prediction can be wrong | Use fixed logic and checks |
1 / 2
Calculate sales tax
- Why not ML
- The rule gives the exact answer
- Instead
- Write the rule in code
Only 50 past examples
- Why not ML
- Too little data to learn from
- Instead
- Collect more data
Saves a few dollars a month
- Why not ML
- Cost is higher than the gain
- Instead
- Keep the manual process
| Situation | Why not ML | Instead |
|---|---|---|
| Calculate sales tax | The rule gives the exact answer | Write the rule in code |
| Only 50 past examples | Too little data to learn from | Collect more data |
| Saves a few dollars a month | Cost is higher than the gain | Keep the manual process |
2 / 2
Payments must be exact
- Why not ML
- A prediction can be wrong
- Instead
- Use fixed logic and checks
| Situation | Why not ML | Instead |
|---|---|---|
| Payments must be exact | A prediction can be wrong | Use fixed logic and checks |
What it is
ML gives a prediction, not a promise. When the answer must be exact every time, write a rule. A tax calculation or a price lookup needs the same result each time, so use plain code.
ML also needs enough good data. With no data, or only a few examples, the model will not learn well. Collect data first.
Finally, weigh cost against benefit. Training, running and checking a model costs money and time. If the saving is small, a simple solution wins. Also avoid ML when you cannot accept a wrong prediction and have no way to check it.
Remember
- A specific outcome needed, not a prediction: use a rule.
- No data or too little data: gather data before ML.
- Cost larger than benefit: do not build it.
- ML output can be wrong, so plan for errors.
- A simple solution that works is better than a complex model.
On the exam
- “Must produce the same exact result every time” points to rules, not ML.
- “Few records and a small expected saving” points to not using ML.