際際滷

際際滷Share a Scribd company logo
Rough K-Means DR. E. N. SATHISHKUMAR
Department of Computer Science, Periyar University, Salem - 11
ROUGH K-MEANS CLUSTERING ALGORITHM
Algorithm: Rough K-Means
Input: Dataset of n objects with d features, number of clusters K and values of
parameters Wlower, Wupper, and Epsilon.
Output: Lower approximation () and Upper approximation () of K
Clusters.
Step1: Randomly assign each data object one lower approximation(). By
definition (property 2) the data object also belongs to upper approximation
 of the same Cluster.
Step 2: Compute Cluster Centroids Cj
If ()   and () - () = 
Cj =
 
()モ ()
Else If () =  and () - ()  
Cj =
 
()  ()モ ()  ()
Else
Cj = Wlower 
 
()モ () + Wupper 
 
()  ()モ ()  ()
Step 3: Assign each object to the lower approximation   or upper
approximation () of cluster i respectively. For each object vector x, let
d(X, Cj) be the distance between itself and the centroid of cluster Cj.
d(X, Cj) = 1 j K d(X, Cj).
The ratio d(X, Ci) / d(X, Cj), 1 i, j  K is used to determine the membership
of x as follow: If d(X, Ci) / d(X, Cj)  epsilon, for any pair (i, j), the
  (駒) and   (駒 ) and x will not be a part of any lower
approximation. Otherwise,   (駒), such that d(X, Ci) is the minimum of
1  i  K. In addition   (駒).
Step 4: Repeat Steps 2 and 3 until convergence.
Rough K-Means DR. E. N. SATHISHKUMAR
Department of Computer Science, Periyar University, Salem - 11
Illustrative Example
Table 1 shows example information system with real-valued conditional attributes.
It consists of six objects/genes, and two features/samples. k = 2, which is the
number of clusters. Weight of the lower approximation Wlower=0.7, Weight of the
upper approximation Wupper = 0.3 and Relative threshold = 2.
Table 1 Example dataset for Rough K-Means
U X Y
1 0 3
2 1 3
3 3 1
4 3 0.5
5 5 0
6 6 0
Step1: Randomly assign each data objects to exactly one lower approximation
K1 = {(0, 3), (1, 3), (3, 1)}
K2 = {(3, 0.5), (5, 0), (6, 0)}
Step 2: In this case ()   and () - () = , so we compute the centroid
using Cj =
 
()モ () ,
C1 =
0+1+3
3
,
3+3+1
3
= (1.33, 2.33)
C2 =
3+5+6
3
,
0.5+0+0
3
= (4.67, 0.17)
Find the distance from centroid to each point using equlidean distance,
倹 = (2  1 )2 + (2  1 )2
Rough K-Means DR. E. N. SATHISHKUMAR
Department of Computer Science, Periyar University, Salem - 11
d1(X, C1):
(0, 3)(1.33, 2.33)  (1.33  0)2 + (2.33  3)2 = 1.49
(1, 3)(1.33, 2.33)  (1.33  1)2 + (2.33  3)2 = 0.75
(3, 1)(1.33, 2.33)  (1.33  3)2 + (2.33  1)2 = 2.13
(3, 0.5)(1.33, 2.33)  (1.33  3)2 + (2.33  0.5)2 = 2.48
(5, 0)(1.33, 2.33)  (1.33  5)2 + (2.33  0)2 = 4.45
(6, 0)(1.33, 2.33)  (1.33  6)2 + (2.33  0)2 = 5.22
d2(X, C2):
(0, 3)(4.67, 0.17)  (4.67  0)2 + (0.17  3)2 = 5.46
(1, 3)(4.67, 0.17)  (4.67  1)2 + (0.17  3)2 = 4.63
(3, 1)(4.67, 0.17)  (4.67  3)2 + (0.17  1)2 = 1.86
(3, 0.5)(4.67, 0.17)  (4.67  3)2 + (0.17  0.5)2 = 1.70
(5, 0)(4.67, 0.17)  (4.67  5)2 + (0.17  0)2 = 0.37
(6, 0)(4.67, 0.17)  (4.67  6)2 + (0.17  0)2 = 1.34
Step 3: Assign each object to the lower approximation   or upper
approximation () of cluster i respectively. Check If d(X, Ci) /d(X, Cj)  epsilon.
1. (0, 3)  d2 / d1 = 5.46/1.49 = 3.66443  2. So, x1 will be a part of 1
2. (1, 3)  4.63/0.75 = 6.173  2. So, x2 will be a part of 1
3. (3, 1)  2.13/1.86 = 1.145 < 2 , so x3 will not be a part of 1& 2
4. (3, 0.5)  2.48/1.70 = 1.458 < 2 , so x4 will not be a part of 1& 2
5. (5, 0)  4.35/0.37 = 11.756  2. So, x5 will be a part of 2
6. (6, 0)  5.22/1.34 = 3.895  2. So, x6 will be a part of 2
Rough K-Means DR. E. N. SATHISHKUMAR
Department of Computer Science, Periyar University, Salem - 11
Now, we have clusters
1= {(0, 3), (1, 3)} 1 = {(0, 3), (1, 3), (3, 1), (3, 0.5)}
2= {(5, 0), (6, 0)} 2 = {(5, 0), (6, 0), (3, 1), (3, 0.5)}
Here, ()   and () - ()   then find out the new centroid by using
below equation,
Cj = Wlower 
 
()モ () + Wupper 
 
()  ()モ ()  ()
C1 = 0.7 
0+1
2
,
3+3
2
+ 0.3 
3+3
2
,
1+0.5
2
= (1.25, 2.325)
C2 = 0.7 
5+6
2
,
0+0
2
+ 0.3 
3+3
2
,
1+0.5
2
= (4.75, 0.225)
Step 4: Repeat Steps 2 and 3 until convergence (Old Centroid = New Centroid).

More Related Content

What's hot (20)

Chapter 4 Classification
Chapter 4 ClassificationChapter 4 Classification
Chapter 4 Classification
Khalid Elshafie
Bayesian networks
Bayesian networksBayesian networks
Bayesian networks
Massimiliano Patacchiola
15 puzzle problem using branch and bound
15 puzzle problem using branch and bound15 puzzle problem using branch and bound
15 puzzle problem using branch and bound
Abhishek Singh
K-Nearest Neighbor Classifier
K-Nearest Neighbor ClassifierK-Nearest Neighbor Classifier
K-Nearest Neighbor Classifier
Neha Kulkarni
K Nearest Neighbors
K Nearest NeighborsK Nearest Neighbors
K Nearest Neighbors
Tilani Gunawardena PhD(UNIBAS), BSc(Pera), FHEA(UK), CEng, MIESL
Deep Feed Forward Neural Networks and Regularization
Deep Feed Forward Neural Networks and RegularizationDeep Feed Forward Neural Networks and Regularization
Deep Feed Forward Neural Networks and Regularization
Yan Xu
Cnn
CnnCnn
Cnn
Nirthika Rajendran
Perceptron
PerceptronPerceptron
Perceptron
Nagarajan
lazy learners and other classication methods
lazy learners and other classication methodslazy learners and other classication methods
lazy learners and other classication methods
rajshreemuthiah
Probabilistic Reasoning
Probabilistic ReasoningProbabilistic Reasoning
Probabilistic Reasoning
Junya Tanaka
Perceptron & Neural Networks
Perceptron & Neural NetworksPerceptron & Neural Networks
Perceptron & Neural Networks
NAGUR SHAREEF SHAIK
Ensemble learning
Ensemble learningEnsemble learning
Ensemble learning
Haris Jamil
Mc culloch pitts neuron
Mc culloch pitts neuronMc culloch pitts neuron
Mc culloch pitts neuron
Siksha 'O' Anusandhan (Deemed to be University )
Feedforward neural network
Feedforward neural networkFeedforward neural network
Feedforward neural network
Sopheaktra YONG
Convolutional Neural Networks (CNN)
Convolutional Neural Networks (CNN)Convolutional Neural Networks (CNN)
Convolutional Neural Networks (CNN)
Gaurav Mittal
sum of subset problem using Backtracking
sum of subset problem using Backtrackingsum of subset problem using Backtracking
sum of subset problem using Backtracking
Abhishek Singh
Activation functions
Activation functionsActivation functions
Activation functions
PRATEEK SAHU
Knapsack problem using fixed tuple
Knapsack problem using fixed tupleKnapsack problem using fixed tuple
Knapsack problem using fixed tuple
Mohanlal Sukhadia University (MLSU)
Introduction to Linear Discriminant Analysis
Introduction to Linear Discriminant AnalysisIntroduction to Linear Discriminant Analysis
Introduction to Linear Discriminant Analysis
Jaclyn Kokx
backpropagation in neural networks
backpropagation in neural networksbackpropagation in neural networks
backpropagation in neural networks
Akash Goel
Chapter 4 Classification
Chapter 4 ClassificationChapter 4 Classification
Chapter 4 Classification
Khalid Elshafie
15 puzzle problem using branch and bound
15 puzzle problem using branch and bound15 puzzle problem using branch and bound
15 puzzle problem using branch and bound
Abhishek Singh
K-Nearest Neighbor Classifier
K-Nearest Neighbor ClassifierK-Nearest Neighbor Classifier
K-Nearest Neighbor Classifier
Neha Kulkarni
Deep Feed Forward Neural Networks and Regularization
Deep Feed Forward Neural Networks and RegularizationDeep Feed Forward Neural Networks and Regularization
Deep Feed Forward Neural Networks and Regularization
Yan Xu
Perceptron
PerceptronPerceptron
Perceptron
Nagarajan
lazy learners and other classication methods
lazy learners and other classication methodslazy learners and other classication methods
lazy learners and other classication methods
rajshreemuthiah
Probabilistic Reasoning
Probabilistic ReasoningProbabilistic Reasoning
Probabilistic Reasoning
Junya Tanaka
Ensemble learning
Ensemble learningEnsemble learning
Ensemble learning
Haris Jamil
Feedforward neural network
Feedforward neural networkFeedforward neural network
Feedforward neural network
Sopheaktra YONG
Convolutional Neural Networks (CNN)
Convolutional Neural Networks (CNN)Convolutional Neural Networks (CNN)
Convolutional Neural Networks (CNN)
Gaurav Mittal
sum of subset problem using Backtracking
sum of subset problem using Backtrackingsum of subset problem using Backtracking
sum of subset problem using Backtracking
Abhishek Singh
Activation functions
Activation functionsActivation functions
Activation functions
PRATEEK SAHU
Introduction to Linear Discriminant Analysis
Introduction to Linear Discriminant AnalysisIntroduction to Linear Discriminant Analysis
Introduction to Linear Discriminant Analysis
Jaclyn Kokx
backpropagation in neural networks
backpropagation in neural networksbackpropagation in neural networks
backpropagation in neural networks
Akash Goel

Similar to Rough K Means - Numerical Example (20)

Dynamic Programing_LCS.ppt
Dynamic Programing_LCS.pptDynamic Programing_LCS.ppt
Dynamic Programing_LCS.ppt
manasgaming4
Rosser's theorem
Rosser's theoremRosser's theorem
Rosser's theorem
Wathna
On approximate bounds of zeros of polynomials within
On approximate bounds of zeros of polynomials withinOn approximate bounds of zeros of polynomials within
On approximate bounds of zeros of polynomials within
eSAT Publishing House
Response Surface in Tensor Train format for Uncertainty Quantification
Response Surface in Tensor Train format for Uncertainty QuantificationResponse Surface in Tensor Train format for Uncertainty Quantification
Response Surface in Tensor Train format for Uncertainty Quantification
Alexander Litvinenko
3.digital signal procseeingLTI System.pdf
3.digital signal procseeingLTI System.pdf3.digital signal procseeingLTI System.pdf
3.digital signal procseeingLTI System.pdf
yisentsai
Some properties of two-fuzzy Nor med spaces
Some properties of two-fuzzy Nor med spacesSome properties of two-fuzzy Nor med spaces
Some properties of two-fuzzy Nor med spaces
IOSR Journals
machinelearning project
machinelearning projectmachinelearning project
machinelearning project
Lianli Liu
Decoding BCH-Code.pdf
Decoding BCH-Code.pdfDecoding BCH-Code.pdf
Decoding BCH-Code.pdf
KundanSasi
Identification of the Mathematical Models of Complex Relaxation Processes in ...
Identification of the Mathematical Models of Complex Relaxation Processes in ...Identification of the Mathematical Models of Complex Relaxation Processes in ...
Identification of the Mathematical Models of Complex Relaxation Processes in ...
Vladimir Bakhrushin
1 illustrating limit of a function
1 illustrating limit of a function1 illustrating limit of a function
1 illustrating limit of a function
JRCatador
51554 0131469657 ism-13
51554 0131469657 ism-1351554 0131469657 ism-13
51554 0131469657 ism-13
Carlos Fuentes
Random variables.pptx
Random variables.pptxRandom variables.pptx
Random variables.pptx
SKalyani_cbe
Applied Mathematics Multiple Integration by Mrs. Geetanjali P.Kale.pdf
Applied Mathematics Multiple Integration by Mrs. Geetanjali P.Kale.pdfApplied Mathematics Multiple Integration by Mrs. Geetanjali P.Kale.pdf
Applied Mathematics Multiple Integration by Mrs. Geetanjali P.Kale.pdf
GeetanjaliRao6
Higher order derivatives for N -body simulations
Higher order derivatives for N -body simulationsHigher order derivatives for N -body simulations
Higher order derivatives for N -body simulations
Keigo Nitadori
Cluster
ClusterCluster
Cluster
Svetlana Slavnic
CBSE Mathematics sample question paper with marking scheme
CBSE Mathematics sample question paper with marking schemeCBSE Mathematics sample question paper with marking scheme
CBSE Mathematics sample question paper with marking scheme
Pratima Nayak ,Kendriya Vidyalaya Sangathan
lec33.ppt
lec33.pptlec33.ppt
lec33.ppt
Rai Saheb Bhanwar Singh College Nasrullaganj
A05330107
A05330107A05330107
A05330107
IOSR-JEN
A Probabilistic Algorithm for Computation of Polynomial Greatest Common with ...
A Probabilistic Algorithm for Computation of Polynomial Greatest Common with ...A Probabilistic Algorithm for Computation of Polynomial Greatest Common with ...
A Probabilistic Algorithm for Computation of Polynomial Greatest Common with ...
mathsjournal
A PROBABILISTIC ALGORITHM FOR COMPUTATION OF POLYNOMIAL GREATEST COMMON WITH ...
A PROBABILISTIC ALGORITHM FOR COMPUTATION OF POLYNOMIAL GREATEST COMMON WITH ...A PROBABILISTIC ALGORITHM FOR COMPUTATION OF POLYNOMIAL GREATEST COMMON WITH ...
A PROBABILISTIC ALGORITHM FOR COMPUTATION OF POLYNOMIAL GREATEST COMMON WITH ...
mathsjournal
Dynamic Programing_LCS.ppt
Dynamic Programing_LCS.pptDynamic Programing_LCS.ppt
Dynamic Programing_LCS.ppt
manasgaming4
Rosser's theorem
Rosser's theoremRosser's theorem
Rosser's theorem
Wathna
On approximate bounds of zeros of polynomials within
On approximate bounds of zeros of polynomials withinOn approximate bounds of zeros of polynomials within
On approximate bounds of zeros of polynomials within
eSAT Publishing House
Response Surface in Tensor Train format for Uncertainty Quantification
Response Surface in Tensor Train format for Uncertainty QuantificationResponse Surface in Tensor Train format for Uncertainty Quantification
Response Surface in Tensor Train format for Uncertainty Quantification
Alexander Litvinenko
3.digital signal procseeingLTI System.pdf
3.digital signal procseeingLTI System.pdf3.digital signal procseeingLTI System.pdf
3.digital signal procseeingLTI System.pdf
yisentsai
Some properties of two-fuzzy Nor med spaces
Some properties of two-fuzzy Nor med spacesSome properties of two-fuzzy Nor med spaces
Some properties of two-fuzzy Nor med spaces
IOSR Journals
machinelearning project
machinelearning projectmachinelearning project
machinelearning project
Lianli Liu
Decoding BCH-Code.pdf
Decoding BCH-Code.pdfDecoding BCH-Code.pdf
Decoding BCH-Code.pdf
KundanSasi
Identification of the Mathematical Models of Complex Relaxation Processes in ...
Identification of the Mathematical Models of Complex Relaxation Processes in ...Identification of the Mathematical Models of Complex Relaxation Processes in ...
Identification of the Mathematical Models of Complex Relaxation Processes in ...
Vladimir Bakhrushin
1 illustrating limit of a function
1 illustrating limit of a function1 illustrating limit of a function
1 illustrating limit of a function
JRCatador
51554 0131469657 ism-13
51554 0131469657 ism-1351554 0131469657 ism-13
51554 0131469657 ism-13
Carlos Fuentes
Random variables.pptx
Random variables.pptxRandom variables.pptx
Random variables.pptx
SKalyani_cbe
Applied Mathematics Multiple Integration by Mrs. Geetanjali P.Kale.pdf
Applied Mathematics Multiple Integration by Mrs. Geetanjali P.Kale.pdfApplied Mathematics Multiple Integration by Mrs. Geetanjali P.Kale.pdf
Applied Mathematics Multiple Integration by Mrs. Geetanjali P.Kale.pdf
GeetanjaliRao6
Higher order derivatives for N -body simulations
Higher order derivatives for N -body simulationsHigher order derivatives for N -body simulations
Higher order derivatives for N -body simulations
Keigo Nitadori
A05330107
A05330107A05330107
A05330107
IOSR-JEN
A Probabilistic Algorithm for Computation of Polynomial Greatest Common with ...
A Probabilistic Algorithm for Computation of Polynomial Greatest Common with ...A Probabilistic Algorithm for Computation of Polynomial Greatest Common with ...
A Probabilistic Algorithm for Computation of Polynomial Greatest Common with ...
mathsjournal
A PROBABILISTIC ALGORITHM FOR COMPUTATION OF POLYNOMIAL GREATEST COMMON WITH ...
A PROBABILISTIC ALGORITHM FOR COMPUTATION OF POLYNOMIAL GREATEST COMMON WITH ...A PROBABILISTIC ALGORITHM FOR COMPUTATION OF POLYNOMIAL GREATEST COMMON WITH ...
A PROBABILISTIC ALGORITHM FOR COMPUTATION OF POLYNOMIAL GREATEST COMMON WITH ...
mathsjournal

Recently uploaded (20)

2025 MSKMUN NEWS 1.pdf 2025 MSKMUN NEWS 1.pdf
2025 MSKMUN NEWS 1.pdf 2025 MSKMUN NEWS 1.pdf2025 MSKMUN NEWS 1.pdf 2025 MSKMUN NEWS 1.pdf
2025 MSKMUN NEWS 1.pdf 2025 MSKMUN NEWS 1.pdf
1mksmunathens
Dr. Ansari Khurshid Ahmed- Factors affecting Validity of a Test.pptx
Dr. Ansari Khurshid Ahmed- Factors affecting Validity of a Test.pptxDr. Ansari Khurshid Ahmed- Factors affecting Validity of a Test.pptx
Dr. Ansari Khurshid Ahmed- Factors affecting Validity of a Test.pptx
Khurshid Ahmed Ansari
teacher activies un classroom and students
teacher activies un classroom and studentsteacher activies un classroom and students
teacher activies un classroom and students
prabowoedy1
Year 10 The Senior Phase Session 3 Term 1.pptx
Year 10 The Senior Phase Session 3 Term 1.pptxYear 10 The Senior Phase Session 3 Term 1.pptx
Year 10 The Senior Phase Session 3 Term 1.pptx
mansk2
Azure Administrator Interview Questions By ScholarHat
Azure Administrator Interview Questions By ScholarHatAzure Administrator Interview Questions By ScholarHat
Azure Administrator Interview Questions By ScholarHat
Scholarhat
Hannah Borhan and Pietro Gagliardi OECD present 'From classroom to community ...
Hannah Borhan and Pietro Gagliardi OECD present 'From classroom to community ...Hannah Borhan and Pietro Gagliardi OECD present 'From classroom to community ...
Hannah Borhan and Pietro Gagliardi OECD present 'From classroom to community ...
EduSkills OECD
Admission Procedure and types in hospital pptx
Admission Procedure  and types in hospital pptxAdmission Procedure  and types in hospital pptx
Admission Procedure and types in hospital pptx
PoojaSen20
BISNIS BERKAH BERANGKAT KE MEKKAH ISTIKMAL SYARIAH
BISNIS BERKAH BERANGKAT KE MEKKAH ISTIKMAL SYARIAHBISNIS BERKAH BERANGKAT KE MEKKAH ISTIKMAL SYARIAH
BISNIS BERKAH BERANGKAT KE MEKKAH ISTIKMAL SYARIAH
coacharyasetiyaki
Chapter 2. Strategic Management: Corporate Governance.pdf
Chapter 2. Strategic Management: Corporate Governance.pdfChapter 2. Strategic Management: Corporate Governance.pdf
Chapter 2. Strategic Management: Corporate Governance.pdf
Rommel Regala
Intellectual Honesty & Research Integrity.pptx
Intellectual Honesty & Research Integrity.pptxIntellectual Honesty & Research Integrity.pptx
Intellectual Honesty & Research Integrity.pptx
NidhiSharma495177
Interim Guidelines for PMES-DM-17-2025-PPT.pptx
Interim Guidelines for PMES-DM-17-2025-PPT.pptxInterim Guidelines for PMES-DM-17-2025-PPT.pptx
Interim Guidelines for PMES-DM-17-2025-PPT.pptx
sirjeromemanansala
Effective Product Variant Management in Odoo 18
Effective Product Variant Management in Odoo 18Effective Product Variant Management in Odoo 18
Effective Product Variant Management in Odoo 18
Celine George
Annex-A_PMES-Tool-for-Proficient-Teachers-SY-2024-2025.ppt
Annex-A_PMES-Tool-for-Proficient-Teachers-SY-2024-2025.pptAnnex-A_PMES-Tool-for-Proficient-Teachers-SY-2024-2025.ppt
Annex-A_PMES-Tool-for-Proficient-Teachers-SY-2024-2025.ppt
joan dalilis
RRB ALP CBT 2 RAC Question Paper MCQ (Railway Assistant Loco Pilot)
RRB ALP CBT 2 RAC Question Paper MCQ (Railway Assistant Loco Pilot)RRB ALP CBT 2 RAC Question Paper MCQ (Railway Assistant Loco Pilot)
RRB ALP CBT 2 RAC Question Paper MCQ (Railway Assistant Loco Pilot)
SONU HEETSON
ASP.NET Interview Questions PDF By ScholarHat
ASP.NET  Interview Questions PDF By ScholarHatASP.NET  Interview Questions PDF By ScholarHat
ASP.NET Interview Questions PDF By ScholarHat
Scholarhat
Discharge procedure and its types in hospital .pptx
Discharge procedure and its types in hospital .pptxDischarge procedure and its types in hospital .pptx
Discharge procedure and its types in hospital .pptx
PoojaSen20
One Click RFQ Cancellation in Odoo 18 - Odoo 際際滷s
One Click RFQ Cancellation in Odoo 18 - Odoo 際際滷sOne Click RFQ Cancellation in Odoo 18 - Odoo 際際滷s
One Click RFQ Cancellation in Odoo 18 - Odoo 際際滷s
Celine George
ASP.NET Web API Interview Questions By Scholarhat
ASP.NET Web API Interview Questions By ScholarhatASP.NET Web API Interview Questions By Scholarhat
ASP.NET Web API Interview Questions By Scholarhat
Scholarhat
The basics of sentences session 5pptx.pptx
The basics of sentences session 5pptx.pptxThe basics of sentences session 5pptx.pptx
The basics of sentences session 5pptx.pptx
heathfieldcps1
PUBH1000 - Module 2: Public Health History
PUBH1000 - Module 2: Public Health HistoryPUBH1000 - Module 2: Public Health History
PUBH1000 - Module 2: Public Health History
Jonathan Hallett
2025 MSKMUN NEWS 1.pdf 2025 MSKMUN NEWS 1.pdf
2025 MSKMUN NEWS 1.pdf 2025 MSKMUN NEWS 1.pdf2025 MSKMUN NEWS 1.pdf 2025 MSKMUN NEWS 1.pdf
2025 MSKMUN NEWS 1.pdf 2025 MSKMUN NEWS 1.pdf
1mksmunathens
Dr. Ansari Khurshid Ahmed- Factors affecting Validity of a Test.pptx
Dr. Ansari Khurshid Ahmed- Factors affecting Validity of a Test.pptxDr. Ansari Khurshid Ahmed- Factors affecting Validity of a Test.pptx
Dr. Ansari Khurshid Ahmed- Factors affecting Validity of a Test.pptx
Khurshid Ahmed Ansari
teacher activies un classroom and students
teacher activies un classroom and studentsteacher activies un classroom and students
teacher activies un classroom and students
prabowoedy1
Year 10 The Senior Phase Session 3 Term 1.pptx
Year 10 The Senior Phase Session 3 Term 1.pptxYear 10 The Senior Phase Session 3 Term 1.pptx
Year 10 The Senior Phase Session 3 Term 1.pptx
mansk2
Azure Administrator Interview Questions By ScholarHat
Azure Administrator Interview Questions By ScholarHatAzure Administrator Interview Questions By ScholarHat
Azure Administrator Interview Questions By ScholarHat
Scholarhat
Hannah Borhan and Pietro Gagliardi OECD present 'From classroom to community ...
Hannah Borhan and Pietro Gagliardi OECD present 'From classroom to community ...Hannah Borhan and Pietro Gagliardi OECD present 'From classroom to community ...
Hannah Borhan and Pietro Gagliardi OECD present 'From classroom to community ...
EduSkills OECD
Admission Procedure and types in hospital pptx
Admission Procedure  and types in hospital pptxAdmission Procedure  and types in hospital pptx
Admission Procedure and types in hospital pptx
PoojaSen20
BISNIS BERKAH BERANGKAT KE MEKKAH ISTIKMAL SYARIAH
BISNIS BERKAH BERANGKAT KE MEKKAH ISTIKMAL SYARIAHBISNIS BERKAH BERANGKAT KE MEKKAH ISTIKMAL SYARIAH
BISNIS BERKAH BERANGKAT KE MEKKAH ISTIKMAL SYARIAH
coacharyasetiyaki
Chapter 2. Strategic Management: Corporate Governance.pdf
Chapter 2. Strategic Management: Corporate Governance.pdfChapter 2. Strategic Management: Corporate Governance.pdf
Chapter 2. Strategic Management: Corporate Governance.pdf
Rommel Regala
Intellectual Honesty & Research Integrity.pptx
Intellectual Honesty & Research Integrity.pptxIntellectual Honesty & Research Integrity.pptx
Intellectual Honesty & Research Integrity.pptx
NidhiSharma495177
Interim Guidelines for PMES-DM-17-2025-PPT.pptx
Interim Guidelines for PMES-DM-17-2025-PPT.pptxInterim Guidelines for PMES-DM-17-2025-PPT.pptx
Interim Guidelines for PMES-DM-17-2025-PPT.pptx
sirjeromemanansala
Effective Product Variant Management in Odoo 18
Effective Product Variant Management in Odoo 18Effective Product Variant Management in Odoo 18
Effective Product Variant Management in Odoo 18
Celine George
Annex-A_PMES-Tool-for-Proficient-Teachers-SY-2024-2025.ppt
Annex-A_PMES-Tool-for-Proficient-Teachers-SY-2024-2025.pptAnnex-A_PMES-Tool-for-Proficient-Teachers-SY-2024-2025.ppt
Annex-A_PMES-Tool-for-Proficient-Teachers-SY-2024-2025.ppt
joan dalilis
RRB ALP CBT 2 RAC Question Paper MCQ (Railway Assistant Loco Pilot)
RRB ALP CBT 2 RAC Question Paper MCQ (Railway Assistant Loco Pilot)RRB ALP CBT 2 RAC Question Paper MCQ (Railway Assistant Loco Pilot)
RRB ALP CBT 2 RAC Question Paper MCQ (Railway Assistant Loco Pilot)
SONU HEETSON
ASP.NET Interview Questions PDF By ScholarHat
ASP.NET  Interview Questions PDF By ScholarHatASP.NET  Interview Questions PDF By ScholarHat
ASP.NET Interview Questions PDF By ScholarHat
Scholarhat
Discharge procedure and its types in hospital .pptx
Discharge procedure and its types in hospital .pptxDischarge procedure and its types in hospital .pptx
Discharge procedure and its types in hospital .pptx
PoojaSen20
One Click RFQ Cancellation in Odoo 18 - Odoo 際際滷s
One Click RFQ Cancellation in Odoo 18 - Odoo 際際滷sOne Click RFQ Cancellation in Odoo 18 - Odoo 際際滷s
One Click RFQ Cancellation in Odoo 18 - Odoo 際際滷s
Celine George
ASP.NET Web API Interview Questions By Scholarhat
ASP.NET Web API Interview Questions By ScholarhatASP.NET Web API Interview Questions By Scholarhat
ASP.NET Web API Interview Questions By Scholarhat
Scholarhat
The basics of sentences session 5pptx.pptx
The basics of sentences session 5pptx.pptxThe basics of sentences session 5pptx.pptx
The basics of sentences session 5pptx.pptx
heathfieldcps1
PUBH1000 - Module 2: Public Health History
PUBH1000 - Module 2: Public Health HistoryPUBH1000 - Module 2: Public Health History
PUBH1000 - Module 2: Public Health History
Jonathan Hallett

Rough K Means - Numerical Example

  • 1. Rough K-Means DR. E. N. SATHISHKUMAR Department of Computer Science, Periyar University, Salem - 11 ROUGH K-MEANS CLUSTERING ALGORITHM Algorithm: Rough K-Means Input: Dataset of n objects with d features, number of clusters K and values of parameters Wlower, Wupper, and Epsilon. Output: Lower approximation () and Upper approximation () of K Clusters. Step1: Randomly assign each data object one lower approximation(). By definition (property 2) the data object also belongs to upper approximation of the same Cluster. Step 2: Compute Cluster Centroids Cj If () and () - () = Cj = ()モ () Else If () = and () - () Cj = () ()モ () () Else Cj = Wlower ()モ () + Wupper () ()モ () () Step 3: Assign each object to the lower approximation or upper approximation () of cluster i respectively. For each object vector x, let d(X, Cj) be the distance between itself and the centroid of cluster Cj. d(X, Cj) = 1 j K d(X, Cj). The ratio d(X, Ci) / d(X, Cj), 1 i, j K is used to determine the membership of x as follow: If d(X, Ci) / d(X, Cj) epsilon, for any pair (i, j), the (駒) and (駒 ) and x will not be a part of any lower approximation. Otherwise, (駒), such that d(X, Ci) is the minimum of 1 i K. In addition (駒). Step 4: Repeat Steps 2 and 3 until convergence.
  • 2. Rough K-Means DR. E. N. SATHISHKUMAR Department of Computer Science, Periyar University, Salem - 11 Illustrative Example Table 1 shows example information system with real-valued conditional attributes. It consists of six objects/genes, and two features/samples. k = 2, which is the number of clusters. Weight of the lower approximation Wlower=0.7, Weight of the upper approximation Wupper = 0.3 and Relative threshold = 2. Table 1 Example dataset for Rough K-Means U X Y 1 0 3 2 1 3 3 3 1 4 3 0.5 5 5 0 6 6 0 Step1: Randomly assign each data objects to exactly one lower approximation K1 = {(0, 3), (1, 3), (3, 1)} K2 = {(3, 0.5), (5, 0), (6, 0)} Step 2: In this case () and () - () = , so we compute the centroid using Cj = ()モ () , C1 = 0+1+3 3 , 3+3+1 3 = (1.33, 2.33) C2 = 3+5+6 3 , 0.5+0+0 3 = (4.67, 0.17) Find the distance from centroid to each point using equlidean distance, 倹 = (2 1 )2 + (2 1 )2
  • 3. Rough K-Means DR. E. N. SATHISHKUMAR Department of Computer Science, Periyar University, Salem - 11 d1(X, C1): (0, 3)(1.33, 2.33) (1.33 0)2 + (2.33 3)2 = 1.49 (1, 3)(1.33, 2.33) (1.33 1)2 + (2.33 3)2 = 0.75 (3, 1)(1.33, 2.33) (1.33 3)2 + (2.33 1)2 = 2.13 (3, 0.5)(1.33, 2.33) (1.33 3)2 + (2.33 0.5)2 = 2.48 (5, 0)(1.33, 2.33) (1.33 5)2 + (2.33 0)2 = 4.45 (6, 0)(1.33, 2.33) (1.33 6)2 + (2.33 0)2 = 5.22 d2(X, C2): (0, 3)(4.67, 0.17) (4.67 0)2 + (0.17 3)2 = 5.46 (1, 3)(4.67, 0.17) (4.67 1)2 + (0.17 3)2 = 4.63 (3, 1)(4.67, 0.17) (4.67 3)2 + (0.17 1)2 = 1.86 (3, 0.5)(4.67, 0.17) (4.67 3)2 + (0.17 0.5)2 = 1.70 (5, 0)(4.67, 0.17) (4.67 5)2 + (0.17 0)2 = 0.37 (6, 0)(4.67, 0.17) (4.67 6)2 + (0.17 0)2 = 1.34 Step 3: Assign each object to the lower approximation or upper approximation () of cluster i respectively. Check If d(X, Ci) /d(X, Cj) epsilon. 1. (0, 3) d2 / d1 = 5.46/1.49 = 3.66443 2. So, x1 will be a part of 1 2. (1, 3) 4.63/0.75 = 6.173 2. So, x2 will be a part of 1 3. (3, 1) 2.13/1.86 = 1.145 < 2 , so x3 will not be a part of 1& 2 4. (3, 0.5) 2.48/1.70 = 1.458 < 2 , so x4 will not be a part of 1& 2 5. (5, 0) 4.35/0.37 = 11.756 2. So, x5 will be a part of 2 6. (6, 0) 5.22/1.34 = 3.895 2. So, x6 will be a part of 2
  • 4. Rough K-Means DR. E. N. SATHISHKUMAR Department of Computer Science, Periyar University, Salem - 11 Now, we have clusters 1= {(0, 3), (1, 3)} 1 = {(0, 3), (1, 3), (3, 1), (3, 0.5)} 2= {(5, 0), (6, 0)} 2 = {(5, 0), (6, 0), (3, 1), (3, 0.5)} Here, () and () - () then find out the new centroid by using below equation, Cj = Wlower ()モ () + Wupper () ()モ () () C1 = 0.7 0+1 2 , 3+3 2 + 0.3 3+3 2 , 1+0.5 2 = (1.25, 2.325) C2 = 0.7 5+6 2 , 0+0 2 + 0.3 3+3 2 , 1+0.5 2 = (4.75, 0.225) Step 4: Repeat Steps 2 and 3 until convergence (Old Centroid = New Centroid).