Loading...
Patterns can help a system make useful decisions, but a pattern is not automatically a cause or an exact guarantee. Explain what a mining result or heuristic estimates and how its usefulness will be tested.
What you'll be able to do
Data mining searches data for useful patterns, relationships or groups. A retailer might investigate which items often occur in the same basket, while a service might identify unusual usage patterns. Begin with a question and appropriate data access, then clean inconsistent identifiers, duplicates, missing values and incompatible units. More records do not automatically remove systematic bias.
Representations and chosen features affect what can be found. If records cover only one store or season, a pattern may not generalise elsewhere. Personal information also introduces privacy and access responsibilities. A meaningful explanation connects the data preparation to the intended analysis rather than describing mining as simply collecting as much information as possible.
In ten example baskets, six contain bread, four contain milk and three contain both. The support of the bread-and-milk pair is 3/10=0.3. The confidence of the rule bread→milk is 3/6=0.5, the proportion of bread baskets also containing milk. The reverse confidence is 3/4=0.75, so the directions differ.
These are descriptive measures for this sample, not proof that buying bread causes milk purchases. Base rates, sample size and selection can affect interpretation. Test a proposed rule on representative later or held-out data and assess the consequence of false conclusions. No single score establishes that a pattern is useful for every decision or user group.
A heuristic guides search or makes a practical choice using a rule of thumb or estimate. Choosing the nearest next location can produce a quick route, but need not minimise the complete journey. A heuristic can be valuable when an exact search is too expensive, provided its quality and failure cases are understood.
For directed edges S→A with cost 1, A→G with cost 100, S→B with cost 2 and B→G with cost 2, choosing the cheapest immediate edge selects A and reaches G at cost 101. The route through B costs 4. Evaluate the full objective, not merely the local choice. In A*, a heuristic has a specific mathematical role and suitable conditions can preserve an optimality guarantee; not all heuristic algorithms share that guarantee.
| Sample quantity | Count or value |
|---|---|
| All baskets | 10 |
| Bread baskets | 6 |
| Milk baskets | 4 |
| Both items | 3 |
| Support of pair | 0.3 |
| Confidence bread→milk | 0.5 |
| Confidence milk→bread | 0.75 |
Attempt the task before opening its worked response. Record each change of state, explain the rule used, and check the result against the original requirements. Code examples labelled Python 3 use that language’s conventions; pseudocode states its own assumptions.
Common mistakes to avoid
Key takeaways
Test yourself
Answer a few questions, then review anything you missed.
Start with the quiz above to check the key ideas. You can also choose another topic from the practice library.