Data Mining Functionalities Explained: Eight Tasks with One Worked Dataset

Learn the eight data mining tasks through six customer records and five baskets. Follow each small calculation, then use question cues to identify the right functionality.

KnowledgeGate Team

Exam prep & CS education

Updated 24 Nov 20266 min read
Data Mining Functionalities Explained: Eight Tasks with One Worked Dataset

Association, classification, clustering and prediction are often memorised as a flat list. When a question gives the output but not the technique, the list stops helping. A continuous toy retail dataset connects six customer summaries, five shopping baskets and four monthly counts. These are teaching values, not live business statistics. Match each question to its requested output: describe, compare, find co-occurrence, label, estimate, group, flag an exception or track change within CS Fundamentals.

1. Data mining functionalities: the problem each one answers

A data-mining functionality names the expected pattern or knowledge, not an algorithm. Selection, cleaning and transformation are preparation steps. Visualisation and evaluation support interpretation.

Functionality

Question it answers

Output type

Characterisation

Profile one target class

Summary

Discrimination

Compare a target class with a contrasting class

Comparison

Frequent-pattern and association mining

What co-occurs?

Itemsets or rules

Classification

Which known class?

Label

Numeric prediction

What number?

Value

Clustering

What natural groups exist?

Unlabelled groups

Outlier analysis

What does not fit?

Exceptional records

Evolution analysis

What changes over time?

Trend or sequence

A useful teaching split calls classification and numeric prediction predictive because each uses a target. Clustering and frequent-pattern mining discover structure without a predefined class label. Data Warehousing and Data Mining in DBMS traces star schemas, OLAP, Apriori and k-means as one broad DBMS path. The narrower problem is identifying eight mining outputs and checking each with hand calculations.

2. Characterisation and discrimination on six customers

Start with customer summaries whose Repeat and One-time labels are already known.

Customer

Visits

Items per basket

Class

C1

8

5

Repeat

C2

7

4

Repeat

C3

2

2

One-time

C4

3

2

One-time

C5

6

4

Repeat

C6

20

5

Repeat

Characterisation profiles one class. For Repeat customers, mean visits are (8 + 7 + 6 + 20) / 4 = 10.25. Sorted visits are 6, 7, 8, 20, so the median is (7 + 8) / 2 = 7.5. Mean items are (5 + 4 + 4 + 5) / 4 = 4.5.

For One-time customers, mean and median visits are (2 + 3) / 2 = 2.5; mean items are (2 + 2) / 2 = 2.0. Discrimination compares the groups: medians are 7.5 versus 2.5, and mean items are 4.5 versus 2.0. These observations apply only to this toy dataset. C6 pulls the Repeat mean to 10.25, so the median matters.

3. Frequent patterns and association rules: support, confidence and lift

Five baskets feed support, confidence, and lift calculations for Soap and Shampoo association rules.

Use these five baskets: T1 {Rice, Tea}, T2 {Rice, Soap, Shampoo}, T3 {Tea, Soap, Toothpaste}, T4 {Rice, Tea, Soap, Shampoo}, and T5 {Rice, Tea, Soap, Toothpaste}.

Soap appears in T2, T3, T4 and T5, so support(Soap) = 4/5 = 0.80. Shampoo appears in T2 and T4, so support(Shampoo) = 2/5 = 0.40. The pair {Soap, Shampoo} appears in T2 and T4, giving support(Soap, Shampoo) = 2/5 = 0.40.

Now derive Soap -> Shampoo:

  1. confidence = support(Soap and Shampoo) / support(Soap) = 0.40 / 0.80 = 0.50.

  2. lift = confidence / support(Shampoo) = 0.50 / 0.40 = 1.25.

At a minimum support of 0.40, the pair qualifies as frequent. Lift above 1 means it occurs more often than an independence baseline suggests in this toy sample, not that either item causes the other. Support has no direction, while an association rule does. Counts must always be checked against all five baskets. Direction matters: confidence(Shampoo -> Soap) = 0.40 / 0.40 = 1.00, although pair support remains 0.40.

4. Classification and numeric prediction: labels are not numbers

Classification selects a known class. Use the simple rule visits >= 6 -> Repeat; otherwise -> One-time. C1, C2, C5 and C6 are predicted Repeat; C3 and C4 are predicted One-time. It gets 6/6 correct here. Perfect accuracy on six training rows is not evidence of real-world performance. A proper model needs unseen data.

Numeric prediction estimates a value. Suppose an illustrative model says predicted items in the next basket = 1 + 0.5 x visits. For C5, it gives 1 + 0.5 x 6 = 4.0 items. The coefficients are teaching assumptions, not fitted values.

This boundary matters in model-building: a finite target such as Repeat or One-time points to classification. A numeric target such as basket size points to numeric prediction, often handled through regression. This target-type distinction remains fundamental when DBMS ideas lead into practical model-building work.

5. Outlier analysis and clustering: exceptions can distort groups

Ignore the known labels and sort visits as 2, 3, 6, 7, 8, 20. Under the median-of-halves convention, the lower half gives Q1 = 3 and the upper half gives Q3 = 8. Thus IQR = 8 - 3 = 5, and the upper fence is 8 + 1.5 x 5 = 15.5. C6 at 20 is flagged. Quartile software can differ, so state the convention. Outlier means unusual under this rule, not erroneous or fraudulent.

For clustering, hold C6 aside and use unlabelled coordinates C1 (8,5), C2 (7,4), C3 (2,2), C4 (3,2) and C5 (6,4). Start centroids at (2,2) and (8,5). By Euclidean distance, C3 and C4 join A; C1, C2 and C5 join B.

Recompute the centres. A is ((2 + 3) / 2, (2 + 2) / 2) = (2.5, 2). B is ((8 + 7 + 6) / 3, (5 + 4 + 4) / 3) = (7, 4.33), with two-decimal rounding. Cluster numbers have no built-in meaning; names follow inspection. Holding C6 aside is explicitly a teaching choice, not a rule. Including it could pull a mean-based centroid towards 20.

Number line of visits 2 to 20 marking Q1 3, Q3 8 and the 15.5 upper fence, beside a scatter plot of clusters A and B with C6 held aside.

6. Evolution analysis: trend, change and sequence are time-aware outputs

Now add monthly basket counts for the same toy store: M1 80, M2 92, M3 88 and M4 110. Consecutive changes are 92 - 80 = +12, 88 - 92 = -4 and 110 - 88 = +22. Net change from M1 to M4 is 110 - 80 = +30. The last-three-month moving average is (92 + 88 + 110) / 3 = 290 / 3 = 96.67, rounded to two decimals.

M4 at 110 is a snapshot. Describing 80 -> 92 -> 88 -> 110 is evolution or trend analysis. Predicting M5 needs a chosen forecasting model; a net rise alone is insufficient.

Four observations cannot establish seasonality, stable growth or causation. Sequential-pattern mining preserves event order, unlike the unordered basket {Soap, Shampoo}.

7. How exams test data mining functionalities

Question wording usually supplies a strong cue:

Cue in the question

Functionality

Summarise Repeat customers

Characterisation

Compare Repeat with One-time

Discrimination

Find Soap and Shampoo together

Frequent-pattern mining

Produce Soap -> Shampoo with 0.50 confidence

Association rule

Assign Repeat to a new customer

Classification

Estimate 4.0 items

Numeric prediction

Form groups without labels

Clustering

Flag C6 at 20 visits

Outlier analysis

Analyse 80, 92, 88, 110 over time

Evolution analysis

Remember the traps. Classification uses predefined classes; clustering discovers groups. High confidence does not establish causation. An outlier is not automatically bad data. Characterisation describes one class; discrimination compares classes. Prediction and trend analysis are not interchangeable merely because both can mention future values.

Weightage for this exact subtopic is not officially published, so treat the cues above as the practical takeaway. Use DBMS MCQs for surrounding subject practice and GATE Guidance by Sanchit Sir for a broader preparation sequence.

8. Data mining functionalities: the short version and next step

Keep this eight-verb chain: describe -> characterisation, compare -> discrimination, co-occur -> association, label -> classification, estimate -> prediction, group -> clustering, deviate -> outlier analysis, change over time -> evolution analysis.

In five minutes, recompute 0.40 pair support, 0.50 confidence and 1.25 lift. Then explain why C6 can resemble Cluster B and still be an outlier. Use Zero to Hero, Complete CS Course for a broader fundamentals path, or rebuild the basket counts, redraw the clustering diagram and solve the linked DBMS practice if this is your only weak topic.