Types of Attributes in Data Mining

Su Subhalakshmi Chandran Updated 03 Nov 2026
4 min read

An attribute (also called a feature or variable) describes one property of a data record — a customer's age, a product's category, a patient's test result. Correctly identifying an attribute's type isn't a formality: it directly determines which preprocessing techniques (covered in the lesson on data preprocessing techniques) and which distance or similarity measures (used throughout the clustering algorithms covered elsewhere in this series) can validly be applied to it. It's worth correcting a common oversimplification first: categorical, numerical, and binary are often presented as three separate, parallel types, but binary is actually a special case that falls under categorical — not a third category alongside it.

Qualitative (Categorical) Attributes

Nominal attributes have no inherent order — colors, product categories, city names. Comparing two nominal values only tells you whether they're equal or different, nothing more; this is exactly why nominal attributes require one-hot rather than ordinal encoding, per the encoding correction covered in the lesson on data preprocessing techniques.

Ordinal attributes do have a meaningful order — customer satisfaction rated low, medium, high — which makes comparisons like "greater than" meaningful in a way they aren't for nominal data. It's worth being precise about a real limitation here, though: order does not imply that the gaps between values are equal or numerically meaningful. Treating low = 1, medium = 2, high = 3 and averaging them assumes the distance from "low" to "medium" equals the distance from "medium" to "high," which is an assumption about the data, not a fact guaranteed by the ordering itself.

Binary attributes are a nominal attribute restricted to exactly two values (0/1, Yes/No), and they split further into two kinds worth distinguishing precisely. A symmetric binary attribute has two outcomes of equal importance — Gender: Male/Female — where neither value carries more information than the other. An asymmetric binary attribute has outcomes of unequal importance — a medical test result of Positive/Negative, where a shared Positive result between two patients is meaningful (both have a rare condition), while a shared Negative result is comparatively uninformative (both simply don't have it, which is true of most people). This distinction has a direct, computable consequence for similarity measures. Take two patients' symptom records (Fever, Cough, Fatigue, Rash), each 1 if present:

Patient A: Fever=1, Cough=1, Fatigue=0, Rash=0
Patient B: Fever=1, Cough=0, Fatigue=0, Rash=1

q (both 1)         = 1   (Fever)
r (A=1, B=0)       = 1   (Cough)
s (A=0, B=1)       = 1   (Rash)
t (both 0)         = 1   (Fatigue)

Treating these as ordinary (symmetric) binary attributes and using the simple matching coefficient, which counts every agreement including shared absences:

Simple matching = (q + t) / (q + r + s + t) = (1 + 1) / 4 = 0.50

But since symptom presence is asymmetric — two patients both not having a rash says almost nothing about how similar their conditions are — the Jaccard coefficient deliberately excludes the shared-absence count (t) from consideration entirely:

Jaccard = q / (q + r + s) = 1 / (1 + 1 + 1) ≈ 0.333

The Jaccard score (0.333) is the more meaningful of the two here: it reflects that these patients share only one actual symptom out of the three total symptoms present between them, without inflating that similarity using a shared absence that carries no real diagnostic information. This is exactly the kind of distance-measure decision that clustering algorithms like K-Medoids, covered in the lesson on partition algorithms, depend on getting right before any clustering even begins.

Quantitative (Numeric) Attributes

Discrete attributes take specific, separate values, typically whole numbers with no meaningful values in between — the number of items in an order, a count of website visits. Continuous attributes can take any value within a range, including decimals — height, temperature, income.

A second, less commonly taught distinction matters just as much: interval-scaled attributes have equal, meaningful gaps between values but no true zero point — temperature in Celsius, where 0°C doesn't mean "the absence of temperature," it's simply a point on an arbitrary scale, which is exactly why saying 20°C is "twice as hot" as 10°C is not a meaningful statement. Ratio-scaled attributes have a genuine zero point representing the total absence of the quantity — weight, height, income, where $0 means literally no money, which makes ratio statements meaningful: $20 genuinely is twice $10. This distinction determines which mathematical operations are valid: ratios are meaningful for ratio-scaled data and not for interval-scaled data, even though both support ordinary addition and subtraction.

Why Getting This Right Matters in Practice

Every attribute-type distinction in this lesson traces directly to a decision made somewhere else in this series: nominal versus ordinal determines the correct encoding strategy (covered in the lesson on data preprocessing techniques); symmetric versus asymmetric binary determines the correct similarity measure (Jaccard versus simple matching, as computed above); and discrete versus continuous, along with interval versus ratio, determines which statistical operations — means, ratios, correlations (covered in the lesson on correlation analysis) — are mathematically defensible to compute at all. Misidentifying an attribute's type doesn't just produce an inelegant analysis; it can produce a technically invalid one, computed with operations the data's actual scale never supported in the first place.

0 Comments

Reviewed before they appear

No comments yet.

Data Mining
Introduction to Data Mining Data Mining Implementation Process Data Mining Architecture Data Mining Techniques KDD: Knowledge Discovery in Databases History of Data Mining Data Mining Tools Data Mining vs Machine Learning Facebook Data Mining Social Media Data Mining Methods Clustering in Data Mining Text Data Mining Bagging vs Boosting Data Mining vs Data Warehousing Social Media Data Mining Data Mining: Bayesian Classifiers Data Mining: World Wide Web Different Types of Clustering Bitcoin Mining and Blockchain Data Mining Orange Data Mining Data Mining vs Big Data Decision Tree Induction Educational Data Mining Data Mining in Healthcare Apriori Algorithm Data Integration in Data Mining Difference Between Data Mining and Text Mining Discretization in Data Mining Redundancy and Correlation in Data Mining Classification of Data Mining Systems Classification Algorithms in Data Mining Data Generalization in Data Mining Classification and Prediction in Data Mining Regression in Data Mining What Is an Outlier in Data Mining Data Cleaning in Data Mining Data Processing in Data Mining Data Mining Task Primitives Web Content Mining, Web Structure Mining, and Web Usage Mini Binning in Data Mining KDD vs. Data Mining Noise in Data Mining BIRCH in Data Mining Stemming in Data Mining Feature Transformation in Data Mining Visual and Audio Data Mining Class Comparison Methods in Data Mining Data Selection in Data Mining Tasks and Functionalities of Data Mining Ubiquitous and Invisible Data Mining Importance of Data Mining Data Quality in Data Mining Mining Frequent Patterns in Data Mining Data Warehouse and OLAP Technology for Data Mining Need for Data Mining Pattern Evaluation Methods in Data Mining Logarithms and Exponents in Complexity Analysis Time Series Clustering What is the C4.5 Algorithm and How Does It Work? Expanding Contractions in Text Mining Cosine Similarity in Data Mining Lazy Learning in Data Mining Neural Networks in Data Mining Building a Text Normalizer Shallow Parsing Data Pipeline Orchestration Big Data vs Small Data Myths of Data Mining Data Reduction in Data Mining Data Mining Models Difference Between Data Mining and Data Science Difference Between Data Mining and Statistics Difference Between Data Mining and Web Mining Difference Between Data Mining and Data Analysis Difference Between Business Intelligence and Data Mining Difference Between Data Mining and Data Visualization Data Mining vs Data Analytics Types of Data Mining Difference Between Data Profiling and Data Mining Predictive Analytics vs Data Mining Difference Between Data Mining and OLAP Descriptive and Predictive Data Mining Difference Between Spatial and Temporal Data Mining Difference Between Classification and Clustering in Data Min Hierarchical Clustering in Data Mining Density-Based Clustering in Data Mining What Is Aggregation in Data Mining?
Ask about this post
AI Ask about this post

Ask questions about Types of Attributes in Data Mining and get answers drawn from it.

Signed-in readers only.