SlideShare a Scribd company logo
www.edureka.in/data-science
Data Science Webinar Series:
Applications of Clustering in Real Life
View Data Science Courses at : www.edureka.in/data_science
*
Twitter @edurekaIN, Facebook /edurekaIN, use #AskEdureka for Questions
View Data Science Courses at : www.edureka.in/data_science
*
www.edureka.in/data-scienceSlide 2
Meet Your Instructor
Twitter @edurekaIN, Facebook /edurekaIN, use #AskEdureka for Questions
Mr. Kumaran Ponnambalam
• Director, Data Engineering & PS, Transera Inc,
San Francisco Bay Area
www.edureka.in/data-scienceSlide 3
Meet Your Instructor
 Understand Data Science Applications and Prospects
 Get an overview of Machine Learning
 Understand the difference between Supervised and Unsupervised Learning
 Learn Clustering and K-means Clustering
 Implement K-means clustering in R
At the end of this session, you will be able to
Twitter @edurekaIN, Facebook /edurekaIN, use #AskEdureka for Questions
www.edureka.in/data-scienceSlide 4
Objectives
 Understand Data Science Applications and Prospects
 Get an overview of Machine Learning
 Understand the difference between Supervised and Unsupervised Learning
 Learn Clustering and K-means Clustering
 Implement K-means clustering in R
At the end of this session, you will be able to
Twitter @edurekaIN, Facebook /edurekaIN, use #AskEdureka for Questions
www.edureka.in/data-scienceSlide 5
Data Science Applications: Wine Recommendation
Twitter @edurekaIN, Facebook /edurekaIN, use #AskEdureka for Questions
www.edureka.in/data-scienceSlide 6
Data Science Applications: Pizza Hut
Twitter @edurekaIN, Facebook /edurekaIN, use #AskEdureka for Questions
www.edureka.in/data-scienceSlide 7
Data Science Applications: NetFlix
Twitter @edurekaIN, Facebook /edurekaIN, use #AskEdureka for Questions
www.edureka.in/data-scienceSlide 8
Data Science Applications: Summarize News
www.edureka.in/data-scienceSlide 9
How about this?
Twitter @edurekaIN, Facebook /edurekaIN, use #AskEdureka for Questions
www.edureka.in/data-scienceSlide 10
What’s Common in these Applications?
According to Wikipedia: Data science is the study of the generalizable extraction of knowledge
from data, yet the key word is science.
These scenarios involve:
 Storing, organizing and integrating huge amount of unstructured data
 Processing and analyzing the data
 Extracting knowledge, insights and predict future from the data
Storage of big data is done in Hadoop. For more details on Hadoop please refer Big data and
Hadoop blog http://www.edureka.in/blog/category/big-data-and-hadoop/
Processing, Analyzing, extracting knowledge and insights are done through Machine Learning
Twitter @edurekaIN, Facebook /edurekaIN, use #AskEdureka for Questions
Slide 11 www.edureka.in/data-science
Data Science: Demand Supply Gap
Big Data Analyst
Big Data Architect
Big Data Engineer
Big Data Research Analyst
Big Data Visualizer
Data Scientist
50
43
44
31
23
18
50
57
56
69
77
82
Filled job vs unfilled jobs in big data
Filled Unfilled
Vacancy/Filled(%)
Gartner Says Big Data Creates Big Jobs: 4.4 Million IT
Jobs Globally to Support Big Data By
2015http://www.gartner.com/newsroom/id/2207915
Slide 12 www.edureka.in/data-science
Data Science: Job Trends
www.edureka.in/data-scienceSlide 13
Machine Learning Categories
Types of Learning
Supervised
Learning
Unsupervised
Learning
Inferring a function
from labelled
training data.
Trying to find hidden
structure in
unlabelled data.
Twitter @edurekaIN, Facebook /edurekaIN, use #AskEdureka for Questions
www.edureka.in/data-scienceSlide 14
Machine Learning Categories
What category do the applications below fall into?
Supervised Learning Supervised Learning
Unsupervised Learning Unsupervised Learning
Twitter @edurekaIN, Facebook /edurekaIN, use #AskEdureka for Questions
www.edureka.in/data-scienceSlide 15
Common Machine Learning Algorithms
Types of Learning
Supervised Learning
Unsupervised Learning
Algorithms
 Naïve Bayes
 Support Vector Machines
 Random Forests
 Decision Trees
Algorithms
 K-means
 Fuzzy Clustering
 Hierarchical Clustering
Twitter @edurekaIN, Facebook /edurekaIN, use #AskEdureka for Questions
www.edureka.in/data-scienceSlide 16
Clustering
Twitter @edurekaIN, Facebook /edurekaIN, use #AskEdureka for Questions
www.edureka.in/data-scienceSlide 17
Clustering: Scenarios
The following scenarios implement Clustering:
 A telephone company needs to establish its network by putting its towers in a particular region it
has acquired. The location of putting these towers can be found by clustering algorithm so that
all its users receive optimum signal strength.
 The Miami DEA wants to make its law enforcement more stringent and hence have decided to
make their patrol vans stationed across the area so that the areas of high crime rates are in
vicinity to the patrol vans.
 A Hospital Care chain wants to open a series of Emergency-Care wards, keeping in mind the
factor of maximum accident prone areas in a region.
Twitter @edurekaIN, Facebook /edurekaIN, use #AskEdureka for Questions
www.edureka.in/data-scienceSlide 18
Some More Use-Cases of Clustering
Slide 18
 Organizing data into clusters shows internal structure of the data
Ex. Clusty and clustering genes
 Sometimes the partitioning is the goal
Ex. Market segmentation
 Prepare for other AI techniques
Ex. Summarize news (cluster and then find centroid)
 Discovery in data
Ex. Underlying rules, reoccurring patterns, topics, etc.
www.edureka.in/data-scienceSlide 19
What is Clustering?
Slide 19
Organizing data into clusters such that there is:
 High intra-cluster similarity
 Low inter-cluster similarity
 Informally, finding natural groupings among
objects
http://en.wikipedia.org/wiki/Cluster_analysis
Twitter @edurekaIN, Facebook /edurekaIN, use #AskEdureka for Questions
www.edureka.in/data-scienceSlide 20Slide 20
K-Means Clustering
Twitter @edurekaIN, Facebook /edurekaIN, use #AskEdureka for Questions
www.edureka.in/data-scienceSlide 21Slide 21
K-Means Clustering
The process by which objects are classified into
a number of groups so that they are as much
dissimilar as possible from one group to another
group, but as much similar as possible within
each group.
The objects in group 1 should be as similar as
possible.
But there should be much difference between an
object in group 1 and group 2.
The attributes of the objects are allowed to
determine which objects should be grouped
together.
Total population
Group 1
Group 2 Group 3
Group 4
Twitter @edurekaIN, Facebook /edurekaIN, use #AskEdureka for Questions
www.edureka.in/data-scienceSlide 22
K-Means: Pizza Hut Clustering Example
Twitter @edurekaIN, Facebook /edurekaIN, use #AskEdureka for Questions
www.edureka.in/data-scienceSlide 23
Let us suppose the following points are the delivery locations for Pizza.
K-Means: Pizza Hut Clustering Example
Twitter @edurekaIN, Facebook /edurekaIN, use #AskEdureka for Questions
www.edureka.in/data-scienceSlide 24
Lets locate three cluster centres randomly
C1
C3
C2
K-Means: Pizza Hut Clustering Example
Twitter @edurekaIN, Facebook /edurekaIN, use #AskEdureka for Questions
www.edureka.in/data-scienceSlide 25
Find the distance of the points as shown.
C1
C3
C2
K-Means: Pizza Hut Clustering Example
Twitter @edurekaIN, Facebook /edurekaIN, use #AskEdureka for Questions
www.edureka.in/data-scienceSlide 26
Assign the points to the nearest cluster centres based on the distance between each centre and the points.
C1
C2
C3
K-Means: Pizza Hut Clustering Example
Twitter @edurekaIN, Facebook /edurekaIN, use #AskEdureka for Questions
www.edureka.in/data-scienceSlide 27
Re-assign the cluster centres and locate nearest points.
C1
C2
C3
K-Means: Pizza Hut Clustering Example
Twitter @edurekaIN, Facebook /edurekaIN, use #AskEdureka for Questions
www.edureka.in/data-scienceSlide 28
Re-assign the cluster centres and locate nearest points, calculate the distance.
C1
C2
C3
K-Means: Pizza Hut Clustering Example
Twitter @edurekaIN, Facebook /edurekaIN, use #AskEdureka for Questions
www.edureka.in/data-scienceSlide 29
Form the three clusters.
C1
C2
C3
K-Means: Pizza Hut Clustering Example
www.edureka.in/data-scienceSlide 30
ObjectiveFunctionValue
i.e.,Distortion
Elbow method
The value of k should be such that even if we increase the value of k from here on, the distortion
remains constant. This is the ideal value of k, for the clusters created.
The Elbow Curve
Twitter @edurekaIN, Facebook /edurekaIN, use #AskEdureka for Questions
www.edureka.in/data-scienceSlide 31
Now let us consider the another scenario of clustering :
The data from “Google page rank”.
Notice, that the data given here are sentences and not vectors.
Can we apply K-means clustering to it?
We will take a deep dive into TF-IDF in module 3 of this course.
Let’s look at the Another Scenario
For analyzing this type of data we use “TF-IDF algorithm” which converts these attributes to vectors.
Twitter @edurekaIN, Facebook /edurekaIN, use #AskEdureka for Questions
Slide 32 www.edureka.in/data-science
Demo
Twitter @edurekaIN, Facebook /edurekaIN, use #AskEdureka for Questions
More Information on R setup and applications at:
http://www.edureka.in/blog/category/business-analytics-with-r/
Slide 33 www.edureka.in/data-science
 Module 1
» Introduction to Data Science
 Module 2
» Basic Data Manipulation using R
 Module 3
» Machine Learning Techniques using R Part -1
- Clustering
- TF-IDF and Cosine Similarity
- Association Rule Mining
 Module 4
» Machine Learning Techniques using R Part -2
- Supervised and Unsupervised Learning
- Decision Tree Classifier
Course Topics
 Module 5
» Machine Learning Techniques using R Part -3
- Random Forest Classifier
- Naïve Bayer’s Classifier
 Module 6
» Introduction to Hadoop Architecture
 Module 7
» Integrating R with Hadoop
 Module 8
» Mahout Introduction and Algorithm
Implementation
 Module 9
» Additional Mahout Algorithms and Parallel
Processing in R
 Module 10
» Project
Twitter @edurekaIN, Facebook /edurekaIN, use #AskEdureka for Questions
Slide 34
Questions?
Enroll for the Complete Course at : www.edureka.in/data_science
Twitter @edurekaIN, Facebook /edurekaIN, use #askEdureka for Questions
www.edureka.in/data_science
Please Don’t forget to fill in the survey report
Class Recording and Presentation will be available in 24 hours at:
http://www.edureka.in/blog/application-of-clustering-in-data-science-using-real-life-examples/

More Related Content

PDF
Naive Bayes
PPTX
Overfitting & Underfitting
PPT
2.4 rule based classification
PPTX
Feature Selection in Machine Learning
PDF
Reinforcement Learning
PDF
Machine Learning Model Deployment: Strategy to Implementation
PPTX
Introduction to Computational Intelligent
PPTX
AI - Introduction to Bellman Equations
Naive Bayes
Overfitting & Underfitting
2.4 rule based classification
Feature Selection in Machine Learning
Reinforcement Learning
Machine Learning Model Deployment: Strategy to Implementation
Introduction to Computational Intelligent
AI - Introduction to Bellman Equations

What's hot (20)

PDF
Training Neural Networks
PPTX
K Nearest Neighbor Algorithm
PPTX
Support Vector Machine ppt presentation
PPTX
An introduction to reinforcement learning
PDF
Decision tree
PDF
Machine Learning and its Applications
PPT
Machine Learning 3 - Decision Tree Learning
PPTX
Concept learning and candidate elimination algorithm
PDF
Artificial Intelligence Game Search by Examples
PDF
Hyperparameter Optimization for Machine Learning
PDF
K Means Clustering Algorithm | K Means Example in Python | Machine Learning A...
PDF
An introduction to Machine Learning
PDF
Installing Anaconda Distribution of Python
PPTX
Python PPT
PPSX
Perceptron (neural network)
ODP
Computational Intelligence and Applications
PDF
Query trees
PPT
4.2 spatial data mining
PDF
Intelligent Agent PPT ON SLIDESHARE IN ARTIFICIAL INTELLIGENCE
PPTX
Parametric and nonparametric
Training Neural Networks
K Nearest Neighbor Algorithm
Support Vector Machine ppt presentation
An introduction to reinforcement learning
Decision tree
Machine Learning and its Applications
Machine Learning 3 - Decision Tree Learning
Concept learning and candidate elimination algorithm
Artificial Intelligence Game Search by Examples
Hyperparameter Optimization for Machine Learning
K Means Clustering Algorithm | K Means Example in Python | Machine Learning A...
An introduction to Machine Learning
Installing Anaconda Distribution of Python
Python PPT
Perceptron (neural network)
Computational Intelligence and Applications
Query trees
4.2 spatial data mining
Intelligent Agent PPT ON SLIDESHARE IN ARTIFICIAL INTELLIGENCE
Parametric and nonparametric
Ad

Similar to Application of Clustering in Data Science using Real-life Examples (20)

PPTX
K-Means Clustering Algorithm - Cluster Analysis | Machine Learning Algorithm ...
PDF
Data Science : Make Smarter Business Decisions
PDF
K means Clustering
PDF
Sentiment Analysis In Retail Domain
PPTX
Introduction to Apache Mahout
PDF
Webinar : Introduction to R Programming and Machine Learning
PDF
"Introduction to R Programming and Machine Learning"
PDF
Data Science Tutorial | What is Data Science? | Data Science For Beginners | ...
PDF
Business Analytics with R
PPTX
Top 5 algorithms used in Data Science
PDF
Data Science in Industry - Applying Machine Learning to Real-world Challenges
PDF
Data Clustering Algorithms and Applications First Edition Charu C. Aggarwal
PDF
Data Clustering Theory Algorithms And Applications Guojun Gan
PDF
Data Clustering Algorithms and Applications First Edition Charu C. Aggarwal
PPTX
ML basic & clustering
PPTX
big data analytics unit 2 notes for study
PDF
Unsupervised Machine Learning PPT Adi.pdf
PPTX
Unsupervised Learning: Clustering
PPT
Chapter 11 cluster advanced, Han & Kamber
PDF
Introduction to data mining and machine learning
K-Means Clustering Algorithm - Cluster Analysis | Machine Learning Algorithm ...
Data Science : Make Smarter Business Decisions
K means Clustering
Sentiment Analysis In Retail Domain
Introduction to Apache Mahout
Webinar : Introduction to R Programming and Machine Learning
"Introduction to R Programming and Machine Learning"
Data Science Tutorial | What is Data Science? | Data Science For Beginners | ...
Business Analytics with R
Top 5 algorithms used in Data Science
Data Science in Industry - Applying Machine Learning to Real-world Challenges
Data Clustering Algorithms and Applications First Edition Charu C. Aggarwal
Data Clustering Theory Algorithms And Applications Guojun Gan
Data Clustering Algorithms and Applications First Edition Charu C. Aggarwal
ML basic & clustering
big data analytics unit 2 notes for study
Unsupervised Machine Learning PPT Adi.pdf
Unsupervised Learning: Clustering
Chapter 11 cluster advanced, Han & Kamber
Introduction to data mining and machine learning
Ad

More from Edureka! (20)

PDF
What to learn during the 21 days Lockdown | Edureka
PDF
Top 10 Dying Programming Languages in 2020 | Edureka
PDF
Top 5 Trending Business Intelligence Tools | Edureka
PDF
Tableau Tutorial for Data Science | Edureka
PDF
Python Programming Tutorial | Edureka
PDF
Top 5 PMP Certifications | Edureka
PDF
Top Maven Interview Questions in 2020 | Edureka
PDF
Linux Mint Tutorial | Edureka
PDF
How to Deploy Java Web App in AWS| Edureka
PDF
Importance of Digital Marketing | Edureka
PDF
RPA in 2020 | Edureka
PDF
Email Notifications in Jenkins | Edureka
PDF
EA Algorithm in Machine Learning | Edureka
PDF
Cognitive AI Tutorial | Edureka
PDF
AWS Cloud Practitioner Tutorial | Edureka
PDF
Blue Prism Top Interview Questions | Edureka
PDF
Big Data on AWS Tutorial | Edureka
PDF
A star algorithm | A* Algorithm in Artificial Intelligence | Edureka
PDF
Kubernetes Installation on Ubuntu | Edureka
PDF
Introduction to DevOps | Edureka
What to learn during the 21 days Lockdown | Edureka
Top 10 Dying Programming Languages in 2020 | Edureka
Top 5 Trending Business Intelligence Tools | Edureka
Tableau Tutorial for Data Science | Edureka
Python Programming Tutorial | Edureka
Top 5 PMP Certifications | Edureka
Top Maven Interview Questions in 2020 | Edureka
Linux Mint Tutorial | Edureka
How to Deploy Java Web App in AWS| Edureka
Importance of Digital Marketing | Edureka
RPA in 2020 | Edureka
Email Notifications in Jenkins | Edureka
EA Algorithm in Machine Learning | Edureka
Cognitive AI Tutorial | Edureka
AWS Cloud Practitioner Tutorial | Edureka
Blue Prism Top Interview Questions | Edureka
Big Data on AWS Tutorial | Edureka
A star algorithm | A* Algorithm in Artificial Intelligence | Edureka
Kubernetes Installation on Ubuntu | Edureka
Introduction to DevOps | Edureka

Recently uploaded (20)

PDF
Complications of Minimal Access Surgery at WLH
PDF
TR - Agricultural Crops Production NC III.pdf
PDF
The Lost Whites of Pakistan by Jahanzaib Mughal.pdf
PPTX
Institutional Correction lecture only . . .
PDF
RMMM.pdf make it easy to upload and study
PPTX
school management -TNTEU- B.Ed., Semester II Unit 1.pptx
PPTX
Cell Types and Its function , kingdom of life
PDF
Chapter 2 Heredity, Prenatal Development, and Birth.pdf
PDF
FourierSeries-QuestionsWithAnswers(Part-A).pdf
PDF
Saundersa Comprehensive Review for the NCLEX-RN Examination.pdf
PDF
VCE English Exam - Section C Student Revision Booklet
PDF
Abdominal Access Techniques with Prof. Dr. R K Mishra
PDF
Classroom Observation Tools for Teachers
PDF
2.FourierTransform-ShortQuestionswithAnswers.pdf
PDF
Sports Quiz easy sports quiz sports quiz
PDF
grade 11-chemistry_fetena_net_5883.pdf teacher guide for all student
PPTX
Final Presentation General Medicine 03-08-2024.pptx
PPTX
GDM (1) (1).pptx small presentation for students
PDF
O7-L3 Supply Chain Operations - ICLT Program
PPTX
Microbial diseases, their pathogenesis and prophylaxis
Complications of Minimal Access Surgery at WLH
TR - Agricultural Crops Production NC III.pdf
The Lost Whites of Pakistan by Jahanzaib Mughal.pdf
Institutional Correction lecture only . . .
RMMM.pdf make it easy to upload and study
school management -TNTEU- B.Ed., Semester II Unit 1.pptx
Cell Types and Its function , kingdom of life
Chapter 2 Heredity, Prenatal Development, and Birth.pdf
FourierSeries-QuestionsWithAnswers(Part-A).pdf
Saundersa Comprehensive Review for the NCLEX-RN Examination.pdf
VCE English Exam - Section C Student Revision Booklet
Abdominal Access Techniques with Prof. Dr. R K Mishra
Classroom Observation Tools for Teachers
2.FourierTransform-ShortQuestionswithAnswers.pdf
Sports Quiz easy sports quiz sports quiz
grade 11-chemistry_fetena_net_5883.pdf teacher guide for all student
Final Presentation General Medicine 03-08-2024.pptx
GDM (1) (1).pptx small presentation for students
O7-L3 Supply Chain Operations - ICLT Program
Microbial diseases, their pathogenesis and prophylaxis

Application of Clustering in Data Science using Real-life Examples

  • 1. www.edureka.in/data-science Data Science Webinar Series: Applications of Clustering in Real Life View Data Science Courses at : www.edureka.in/data_science * Twitter @edurekaIN, Facebook /edurekaIN, use #AskEdureka for Questions View Data Science Courses at : www.edureka.in/data_science *
  • 2. www.edureka.in/data-scienceSlide 2 Meet Your Instructor Twitter @edurekaIN, Facebook /edurekaIN, use #AskEdureka for Questions Mr. Kumaran Ponnambalam • Director, Data Engineering & PS, Transera Inc, San Francisco Bay Area
  • 3. www.edureka.in/data-scienceSlide 3 Meet Your Instructor  Understand Data Science Applications and Prospects  Get an overview of Machine Learning  Understand the difference between Supervised and Unsupervised Learning  Learn Clustering and K-means Clustering  Implement K-means clustering in R At the end of this session, you will be able to Twitter @edurekaIN, Facebook /edurekaIN, use #AskEdureka for Questions
  • 4. www.edureka.in/data-scienceSlide 4 Objectives  Understand Data Science Applications and Prospects  Get an overview of Machine Learning  Understand the difference between Supervised and Unsupervised Learning  Learn Clustering and K-means Clustering  Implement K-means clustering in R At the end of this session, you will be able to Twitter @edurekaIN, Facebook /edurekaIN, use #AskEdureka for Questions
  • 5. www.edureka.in/data-scienceSlide 5 Data Science Applications: Wine Recommendation Twitter @edurekaIN, Facebook /edurekaIN, use #AskEdureka for Questions
  • 6. www.edureka.in/data-scienceSlide 6 Data Science Applications: Pizza Hut Twitter @edurekaIN, Facebook /edurekaIN, use #AskEdureka for Questions
  • 7. www.edureka.in/data-scienceSlide 7 Data Science Applications: NetFlix Twitter @edurekaIN, Facebook /edurekaIN, use #AskEdureka for Questions
  • 8. www.edureka.in/data-scienceSlide 8 Data Science Applications: Summarize News
  • 9. www.edureka.in/data-scienceSlide 9 How about this? Twitter @edurekaIN, Facebook /edurekaIN, use #AskEdureka for Questions
  • 10. www.edureka.in/data-scienceSlide 10 What’s Common in these Applications? According to Wikipedia: Data science is the study of the generalizable extraction of knowledge from data, yet the key word is science. These scenarios involve:  Storing, organizing and integrating huge amount of unstructured data  Processing and analyzing the data  Extracting knowledge, insights and predict future from the data Storage of big data is done in Hadoop. For more details on Hadoop please refer Big data and Hadoop blog http://www.edureka.in/blog/category/big-data-and-hadoop/ Processing, Analyzing, extracting knowledge and insights are done through Machine Learning Twitter @edurekaIN, Facebook /edurekaIN, use #AskEdureka for Questions
  • 11. Slide 11 www.edureka.in/data-science Data Science: Demand Supply Gap Big Data Analyst Big Data Architect Big Data Engineer Big Data Research Analyst Big Data Visualizer Data Scientist 50 43 44 31 23 18 50 57 56 69 77 82 Filled job vs unfilled jobs in big data Filled Unfilled Vacancy/Filled(%) Gartner Says Big Data Creates Big Jobs: 4.4 Million IT Jobs Globally to Support Big Data By 2015http://www.gartner.com/newsroom/id/2207915
  • 13. www.edureka.in/data-scienceSlide 13 Machine Learning Categories Types of Learning Supervised Learning Unsupervised Learning Inferring a function from labelled training data. Trying to find hidden structure in unlabelled data. Twitter @edurekaIN, Facebook /edurekaIN, use #AskEdureka for Questions
  • 14. www.edureka.in/data-scienceSlide 14 Machine Learning Categories What category do the applications below fall into? Supervised Learning Supervised Learning Unsupervised Learning Unsupervised Learning Twitter @edurekaIN, Facebook /edurekaIN, use #AskEdureka for Questions
  • 15. www.edureka.in/data-scienceSlide 15 Common Machine Learning Algorithms Types of Learning Supervised Learning Unsupervised Learning Algorithms  Naïve Bayes  Support Vector Machines  Random Forests  Decision Trees Algorithms  K-means  Fuzzy Clustering  Hierarchical Clustering Twitter @edurekaIN, Facebook /edurekaIN, use #AskEdureka for Questions
  • 16. www.edureka.in/data-scienceSlide 16 Clustering Twitter @edurekaIN, Facebook /edurekaIN, use #AskEdureka for Questions
  • 17. www.edureka.in/data-scienceSlide 17 Clustering: Scenarios The following scenarios implement Clustering:  A telephone company needs to establish its network by putting its towers in a particular region it has acquired. The location of putting these towers can be found by clustering algorithm so that all its users receive optimum signal strength.  The Miami DEA wants to make its law enforcement more stringent and hence have decided to make their patrol vans stationed across the area so that the areas of high crime rates are in vicinity to the patrol vans.  A Hospital Care chain wants to open a series of Emergency-Care wards, keeping in mind the factor of maximum accident prone areas in a region. Twitter @edurekaIN, Facebook /edurekaIN, use #AskEdureka for Questions
  • 18. www.edureka.in/data-scienceSlide 18 Some More Use-Cases of Clustering Slide 18  Organizing data into clusters shows internal structure of the data Ex. Clusty and clustering genes  Sometimes the partitioning is the goal Ex. Market segmentation  Prepare for other AI techniques Ex. Summarize news (cluster and then find centroid)  Discovery in data Ex. Underlying rules, reoccurring patterns, topics, etc.
  • 19. www.edureka.in/data-scienceSlide 19 What is Clustering? Slide 19 Organizing data into clusters such that there is:  High intra-cluster similarity  Low inter-cluster similarity  Informally, finding natural groupings among objects http://en.wikipedia.org/wiki/Cluster_analysis Twitter @edurekaIN, Facebook /edurekaIN, use #AskEdureka for Questions
  • 20. www.edureka.in/data-scienceSlide 20Slide 20 K-Means Clustering Twitter @edurekaIN, Facebook /edurekaIN, use #AskEdureka for Questions
  • 21. www.edureka.in/data-scienceSlide 21Slide 21 K-Means Clustering The process by which objects are classified into a number of groups so that they are as much dissimilar as possible from one group to another group, but as much similar as possible within each group. The objects in group 1 should be as similar as possible. But there should be much difference between an object in group 1 and group 2. The attributes of the objects are allowed to determine which objects should be grouped together. Total population Group 1 Group 2 Group 3 Group 4 Twitter @edurekaIN, Facebook /edurekaIN, use #AskEdureka for Questions
  • 22. www.edureka.in/data-scienceSlide 22 K-Means: Pizza Hut Clustering Example Twitter @edurekaIN, Facebook /edurekaIN, use #AskEdureka for Questions
  • 23. www.edureka.in/data-scienceSlide 23 Let us suppose the following points are the delivery locations for Pizza. K-Means: Pizza Hut Clustering Example Twitter @edurekaIN, Facebook /edurekaIN, use #AskEdureka for Questions
  • 24. www.edureka.in/data-scienceSlide 24 Lets locate three cluster centres randomly C1 C3 C2 K-Means: Pizza Hut Clustering Example Twitter @edurekaIN, Facebook /edurekaIN, use #AskEdureka for Questions
  • 25. www.edureka.in/data-scienceSlide 25 Find the distance of the points as shown. C1 C3 C2 K-Means: Pizza Hut Clustering Example Twitter @edurekaIN, Facebook /edurekaIN, use #AskEdureka for Questions
  • 26. www.edureka.in/data-scienceSlide 26 Assign the points to the nearest cluster centres based on the distance between each centre and the points. C1 C2 C3 K-Means: Pizza Hut Clustering Example Twitter @edurekaIN, Facebook /edurekaIN, use #AskEdureka for Questions
  • 27. www.edureka.in/data-scienceSlide 27 Re-assign the cluster centres and locate nearest points. C1 C2 C3 K-Means: Pizza Hut Clustering Example Twitter @edurekaIN, Facebook /edurekaIN, use #AskEdureka for Questions
  • 28. www.edureka.in/data-scienceSlide 28 Re-assign the cluster centres and locate nearest points, calculate the distance. C1 C2 C3 K-Means: Pizza Hut Clustering Example Twitter @edurekaIN, Facebook /edurekaIN, use #AskEdureka for Questions
  • 29. www.edureka.in/data-scienceSlide 29 Form the three clusters. C1 C2 C3 K-Means: Pizza Hut Clustering Example
  • 30. www.edureka.in/data-scienceSlide 30 ObjectiveFunctionValue i.e.,Distortion Elbow method The value of k should be such that even if we increase the value of k from here on, the distortion remains constant. This is the ideal value of k, for the clusters created. The Elbow Curve Twitter @edurekaIN, Facebook /edurekaIN, use #AskEdureka for Questions
  • 31. www.edureka.in/data-scienceSlide 31 Now let us consider the another scenario of clustering : The data from “Google page rank”. Notice, that the data given here are sentences and not vectors. Can we apply K-means clustering to it? We will take a deep dive into TF-IDF in module 3 of this course. Let’s look at the Another Scenario For analyzing this type of data we use “TF-IDF algorithm” which converts these attributes to vectors. Twitter @edurekaIN, Facebook /edurekaIN, use #AskEdureka for Questions
  • 32. Slide 32 www.edureka.in/data-science Demo Twitter @edurekaIN, Facebook /edurekaIN, use #AskEdureka for Questions More Information on R setup and applications at: http://www.edureka.in/blog/category/business-analytics-with-r/
  • 33. Slide 33 www.edureka.in/data-science  Module 1 » Introduction to Data Science  Module 2 » Basic Data Manipulation using R  Module 3 » Machine Learning Techniques using R Part -1 - Clustering - TF-IDF and Cosine Similarity - Association Rule Mining  Module 4 » Machine Learning Techniques using R Part -2 - Supervised and Unsupervised Learning - Decision Tree Classifier Course Topics  Module 5 » Machine Learning Techniques using R Part -3 - Random Forest Classifier - Naïve Bayer’s Classifier  Module 6 » Introduction to Hadoop Architecture  Module 7 » Integrating R with Hadoop  Module 8 » Mahout Introduction and Algorithm Implementation  Module 9 » Additional Mahout Algorithms and Parallel Processing in R  Module 10 » Project Twitter @edurekaIN, Facebook /edurekaIN, use #AskEdureka for Questions
  • 34. Slide 34 Questions? Enroll for the Complete Course at : www.edureka.in/data_science Twitter @edurekaIN, Facebook /edurekaIN, use #askEdureka for Questions www.edureka.in/data_science Please Don’t forget to fill in the survey report Class Recording and Presentation will be available in 24 hours at: http://www.edureka.in/blog/application-of-clustering-in-data-science-using-real-life-examples/

Editor's Notes

  • #8: Netflix uses 1 petabyte to store the videos for streaming. BitTorrent Sync has transferred over 30 petabytes of data since its pre-alpha release in January 2013. The 2009 movie Avatar is reported to have taken over 1 petabyte of local storage at Weta Digital for the rendering of the 3D CGI effects. One petabyte of average MP3-encoded songs (for mobile, roughly one megabyte per minute), would require 2000 years to play.
  • #9: News groups as clusters