🏠 Home
Theory of Attributes
Unit V · Lecture 34

BDS113 — Introduction to Statistics

Introduction to Theory of Attributes

Attributes vs Variables · Dichotomous Classification · Classes · Class Frequencies · Notation · Contingency Tables


Unit V · Lecture 34 of 40 · B.Sc. Data Science, 1st Year, Semester II

Theory of Attributes
Unit V · Lecture 34

The Journey — Lecture 34


🔤
Attributes vs Variables
Qualitative vs quantitative · What are attributes? · Real-world examples
✂️
Dichotomous Classification
Two categories · Presence/absence · Complementary classes · Notation system
📋
Classes, Frequencies & Contingency Tables
Joint classification · 2×2 tables · Marginal and joint frequencies
✏️
Worked Examples & Quiz
Building tables from raw data · Computing frequencies · Practice quiz
Theory of Attributes
Unit V · Lecture 34

🔤 Attributes vs Variables


📖 Quantitative Variable

A characteristic that can be measured numerically.

Examples:
  • Height (in cm)
  • Weight (in kg)
  • Exam score (out of 100)
  • Age (in years)

Tools: Mean, variance, correlation, regression (Units I–IV)

📖 Qualitative Attribute

A characteristic that cannot be measured numerically but can only be classified into categories.

Examples:
  • Gender (Male / Female)
  • Blood group (A / B / AB / O)
  • Pass / Fail
  • Smoker / Non-smoker

Tools: Theory of Attributes (this unit!)


📖 Formal Definition

An attribute is a qualitative characteristic of a statistical unit that can be observed but not measured numerically. Each unit either possesses or does not possess the attribute. The Theory of Attributes deals with the classification and analysis of data based on such qualitative characteristics.

Theory of Attributes
Unit V · Lecture 34

✂️ Dichotomous Classification


📖 Definition

Dichotomous classification divides a population into two mutually exclusive and exhaustive groups based on the presence or absence of an attribute. Every member of the population belongs to exactly one of the two groups.


💡 Analogy: A Yes/No Question

Think of each attribute as a yes/no question asked to every member of the population: "Do you smoke?" → Yes (smoker) or No (non-smoker). Every person must answer either yes or no — there is no third option, and no one can answer both. This is dichotomous classification.


📖 Notation System

For any attribute A:

(A) = the class that possesses attribute A
(α) = the class that does not possess attribute A (complement of A)

α is read as "not-A" or "alpha".

Key rule: (A) and (α) are mutually exclusive (no overlap) and exhaustive (cover the entire population).

N = (A) + (α) where N = total population size.

📖 Examples

Attribute A = Literate
(A) = Literate people, (α) = Illiterate people

Attribute B = Employed
(B) = Employed people, (β) = Unemployed people

Attribute C = Vaccinated
(C) = Vaccinated, (γ) = Not vaccinated

Attribute D = Smoker
(D) = Smoker, (δ) = Non-smoker

Theory of Attributes
Unit V · Lecture 34

📋 Classes and Class Frequencies


📖 When Two Attributes Are Cross-Classified

When we classify a population simultaneously by two attributes A and B, we get four classes (called cross classes or dichotomies):


(B) — Has B(β) — Not BTotal
(A) — Has A(AB)(Aβ)(A)
(α) — Not A(αB)(αβ)(α)
Total(B)(β)N

📖 The Four Cross Classes

(AB) = has both A and B
(Aβ) = has A but not B
(αB) = has B but not A
(αβ) = has neither A nor B

Total frequencies:
(A) = (AB) + (Aβ)
(α) = (αB) + (αβ)
(B) = (AB) + (αB)
(β) = (Aβ) + (αβ)
N = (A) + (α) = (B) + (β)

📖 Concrete Example

A = Literate, B = Employed in a town of N = 1000:

(AB) = 400 — Literate AND Employed
(Aβ) = 200 — Literate AND Unemployed
(αB) = 150 — Illiterate AND Employed
(αβ) = 250 — Illiterate AND Unemployed

Check:
(A) = 400 + 200 = 600 ✓
(α) = 150 + 250 = 400 ✓
(B) = 400 + 150 = 550 ✓
(β) = 200 + 250 = 450 ✓
N = 600 + 400 = 1000 ✓

Theory of Attributes
Unit V · Lecture 34

📋 Three Attributes: Eight Classes


📖 Three Attributes A, B, C

With three dichotomous attributes, we get 2³ = 8 cross classes. Each class is denoted by a combination of the attribute letters (present) and Greek letters (absent).


ClassHas A?Has B?Has C?Description
(ABC)YesYesYesHas all three
(ABγ)YesYesNoHas A and B, not C
(AβC)YesNoYesHas A and C, not B
(Aβγ)YesNoNoHas only A
(αBC)NoYesYesHas B and C, not A
(αBγ)NoYesNoHas only B
(αβC)NoNoYesHas only C
(αβγ)NoNoNoHas none

💡 Naming Convention: Uppercase Latin letters (A, B, C) mean the attribute is present. Lowercase Greek letters (α, β, γ) mean the attribute is absent. The class notation lists all present attributes in uppercase and all absent ones in Greek. For example, (AβC) means A is present, B is absent, C is present.
Theory of Attributes
Unit V · Lecture 34

✏️ Example: Building a 2×2 Table from Data


📝 Problem

In a survey of 200 students:
  • 120 are male (M), 80 are female (F)
  • 90 passed (P), 110 failed (Q)
  • 70 are male AND passed

Construct the 2×2 contingency table.


📖 Solution

Let A = Male, B = Pass. Then α = Female, β = Fail.

Given: (A) = 120, (α) = 80, (B) = 90, (β) = 110, (AB) = 70

Step 1: (Aβ) = (A) − (AB) = 120 − 70 = 50
Step 2: (αB) = (B) − (AB) = 90 − 70 = 20
Step 3: (αβ) = (α) − (αB) = 80 − 20 = 60
Check: (αβ) = (β) − (Aβ) = 110 − 50 = 60 ✓


Pass (B)Fail (β)Total
Male (A)7050120
Female (α)206080
Total90110200

💡 Reading the Table: (AB) = 70 means 70 students are male AND passed. (Aβ) = 50 means 50 students are male AND failed. The row totals give (A) and (α); the column totals give (B) and (β).
Theory of Attributes
Unit V · Lecture 34

📝 Notation Summary


SymbolMeaning
A, B, CAttributes (qualitative characteristics)
α, β, γComplementary classes (absence of A, B, C respectively)
(A)Frequency (number of individuals) possessing attribute A
(α)Frequency NOT possessing attribute A
(AB)Frequency possessing BOTH A and B
(Aβ)Frequency possessing A but NOT B
(αB)Frequency possessing B but NOT A
(αβ)Frequency possessing NEITHER A nor B
NTotal population size = (A) + (α) = (B) + (β)
(A) + (α)Always equals N (exhaustive classification)
(AB) + (Aβ)Always equals (A) (row total)

📖 Key Relationships (Always True)

(A) = (AB) + (Aβ)    — Row total for A
(α) = (αB) + (αβ)    — Row total for α
(B) = (AB) + (αB)    — Column total for B
(β) = (Aβ) + (αβ)    — Column total for β
N = (A) + (α) = (B) + (β) = (AB) + (Aβ) + (αB) + (αβ)

Theory of Attributes
Unit V · Lecture 34

🔑 Summary & Quiz — Lecture 34



Q1: An attribute is:

A) A numerical measurement
B) A qualitative characteristic that classifies into categories
C) Always continuous
D) The same as a variable

Q2: If A is an attribute, (α) represents:

A) The frequency of A
B) The class of individuals NOT possessing A
C) The total population
D) The probability of A

Q3: With two dichotomous attributes, how many cross classes exist?

A) 2
B) 4
C) 6
D) 8

Q4: (AB) + (Aβ) always equals:

A) N
B) (A)
C) (B)
D) (α)

Q5: In the notation (AβC), which attributes are present?

A) A only
B) A and B only
C) A and C only
D) All three
Theory of Attributes
Unit V · Lecture 34

📝 Homework & Next Lecture


📝 Practice Tasks

1. In a group of 500 people: 300 are vaccinated (V), 200 are not. 250 are above 40 years (O), 250 are not. 180 are vaccinated AND above 40. Construct the 2×2 table for attributes V and O.

2. Given (A) = 200, (B) = 150, (AB) = 80, N = 400. Find (Aβ), (αB), (αβ), (α).

3. List all 8 cross classes for three attributes A = Literate, B = Employed, C = Male. Describe what each class represents.

4. Explain why (A) + (α) = N always holds, but (AB) + (αβ) does NOT necessarily equal N.

5. In a class of 60 students, 35 study Maths (M), 28 study Physics (P), and 15 study both. Find (MP), (Mρ), (μP), (μρ) and verify N = 60.


Next: Lecture 35

Consistency of Data — Checking whether a given set of frequencies is logically consistent