SlideShare a Scribd company logo
OMega TechEd
9
Part-I
BUSINESS INTELLIGENCE
CLASSIFICATION ALGORITHMS
Mrs. Megha Sharma
M.Sc. Computer Science. B.Ed.
K-Nearest Neighbours
Decision trees
Naive Baye’s Classifier
Logistic Regression
Artificial Neural Network
Support Vector Machines
1. K-Nearest Neighbour
 K-Nearest algorithm classifies data sets based on their similarity with neighbours. It
works in a very simple way by taking into account the distance from known data point.
After we gather the ‘k’ neighbours , we simply take the majority and classify the
unknown data into that category.
Class A:
Class B:
Unknown data :
 When k=3
 Data point belongs to class B
2. Decision Trees
A decision tree represents classification. Decision trees predict the future based on the
previous learning and input data sets. It taken multiple input values and returns back the
probable output with the single value which is considered as a decision.
 A decision tree starts with a single node, which branches into possible outcomes. Each of
those outcomes lead to additional nodes, which branch off into other possibilities.
Algorithm:
1. Begin the tree with the root node
2. Split into subsets.
3. If subset is pure (all yes or all no) stop the process. Else go to step 1 and repeat the process
until we get pure subset.
E.g. We want to predict whether Amit will play cricket or not?
Weather : Rainy, Humidity : high, Wind : Strong.
Day Weather Humidity wind Play
1 Sunny high weak yes
2 Sunny high strong yes
3 Cloudy high weak yes
4 Cloudy high weak Yes
5 Rainy high weak Yes
6 Rainy normal weak Yes
7 Cloudy normal strong No
8 Cloudy normal weak No
9 Sunny normal normal Yes
10 rainy normal strong No
11 Cloudy high strong yes
Weather
Rainy
Cloudy Sunny
Day humidity wind play
3 high weak yes
4 high weak Yes
7 normal strong No
8 normal weak No
11 high strong yes
Day humidity wind play
1 high weak yes
2 high strong yes
9 normal normal Yes
Day humidity wind play
5 high weak Yes
6 normal weak Yes
10 normal strong No
All yes no need to divide further
Weather
Rainy
Cloudy Sunny
High
Humidity
Normal Strong
Weak
Wind
YES NO YES NO
Weather : Rainy,
Humidity : High,
Wind : Strong.
NO
Concept of Probability
Probability is a measure of the likelihood of an event to occur.
P(A) = Number of favorable outcomes to A
Total number of outcomes
Number of red balls= 6
Number of Blue balls= 4
Total no of balls= 10
P(R): The probability of selecting a red ball is = 6/10
P(B): The probability of selecting a blue ball is = 4/10
Box-A
Box-B
Conditional Probability
Box A 1 Red 4 Blue Total 5
Box B 3 Red 2 Blue Total 5
Total 4 Red 6 Blue 10
P(R) = 4/10 P (B)= 6/10
Probability of getting red ball if ball is drawn from Box A.
P(R|A) = 1/5
Similarly Probability of getting red ball if ball is drawn
compulsorily from box B.
P(R|B)= 3/5
Bayesian Methods
Thomas Bayes, a statistician had given a probabilistic theory known as Baye’s theorem
for probability , which describe the probability of an event or occurrence, based on
prior knowledge of events and expected outcome.
Baye’s Formula:
P(A|B) = P (B|A) P(A)
P(B)
• Where P(A) and P(B) , are prior probabilities or observed probabilities
independent of each other.
• P(A|B), is conditional probability (posterior probability), the likelihood of
event A occurring given that B is True.
• P(B|A), is conditional probability (posterior probability), the likelihood of
event B occurring given that A is True.
Example:
Finding out a patient probability of having cancer disease. Let say “smoking test” is the test
for diagnosing disease.
10% of Patients have cancer : P(A) = 0.1.
5% of Patient is a smoker: P(B) = 0.05.
Among those patients diagnosed with cancer , 7% are smokers i.e. P(B|A) .
Using Bayes theorem we can find the probability of having cancer if the patient is smoker.
P(A|B) = (0.07* 0.1)/ 0.05 = 0.14
If the patient is a smoker, their chances of having cancer is 14%
3. Naïve Baye’s Classifier
Naïve Baye’s classifier technique is particularly suited when the dimensionality of the
input is high. Naive Bayes classifiers are the family of simple “probabilistic classifiers”
based on applying Bayes’ theorem with strong (naïve) independence assumptions
between the features.
Total 60 objects. 40 Green and 20 Red.
Prior probability of Green=40/60
Prior probability of Red= 20/60
Continue…
Probability of X given Green = 1/40
Probability of X given Red=3/20
Posterior probability of X being Green : prior probability of Green * Likelihood of X given Green
4/6 x 1/40 =1/60
Posterior probability of X being Red : prior probability of Red * Likelihood of X given Red
2/6 x 3/20 = 1/20
Finally we classify X as ‘Red’ since its class membership
achieves the largest posterior probability.
Thanks For Watching.
Next Topic : Classification Algorithms Part-II.
About the Channel
This channel helps you to prepare for BSc IT and BSc computer science subjects.
In this channel we will learn Business Intelligence , A.I., Digital Electronics,
Internet OF Things Python programming , Data-Structure etc.
Which is useful for upcoming university exams.
Gmail: omega.teched@gmail.com
Social Media Handles:
omega.teched
megha_with
OMega TechEd

More Related Content

What's hot

Supervised and unsupervised learning
Supervised and unsupervised learningSupervised and unsupervised learning
Supervised and unsupervised learning
Paras Kohli
 
Data mining: Concepts and Techniques, Chapter12 outlier Analysis
Data mining: Concepts and Techniques, Chapter12 outlier Analysis Data mining: Concepts and Techniques, Chapter12 outlier Analysis
Data mining: Concepts and Techniques, Chapter12 outlier Analysis
Salah Amean
 
Machine Learning with Decision trees
Machine Learning with Decision treesMachine Learning with Decision trees
Machine Learning with Decision trees
Knoldus Inc.
 
Support Vector Machine - How Support Vector Machine works | SVM in Machine Le...
Support Vector Machine - How Support Vector Machine works | SVM in Machine Le...Support Vector Machine - How Support Vector Machine works | SVM in Machine Le...
Support Vector Machine - How Support Vector Machine works | SVM in Machine Le...
Simplilearn
 
Logistic regression in Machine Learning
Logistic regression in Machine LearningLogistic regression in Machine Learning
Logistic regression in Machine Learning
Kuppusamy P
 
Decision Tree Learning
Decision Tree LearningDecision Tree Learning
Decision Tree Learning
Md. Ariful Hoque
 
Supervised and Unsupervised Learning In Machine Learning | Machine Learning T...
Supervised and Unsupervised Learning In Machine Learning | Machine Learning T...Supervised and Unsupervised Learning In Machine Learning | Machine Learning T...
Supervised and Unsupervised Learning In Machine Learning | Machine Learning T...
Simplilearn
 
Random forest algorithm
Random forest algorithmRandom forest algorithm
Random forest algorithm
Rashid Ansari
 
Decision tree
Decision treeDecision tree
Decision tree
Soujanya V
 
Hierarchical Clustering
Hierarchical ClusteringHierarchical Clustering
Hierarchical Clustering
Carlos Castillo (ChaTo)
 
Support Vector Machine ppt presentation
Support Vector Machine ppt presentationSupport Vector Machine ppt presentation
Support Vector Machine ppt presentation
AyanaRukasar
 
Decision tree
Decision treeDecision tree
Decision tree
SEMINARGROOT
 
Data cleaning-outlier-detection
Data cleaning-outlier-detectionData cleaning-outlier-detection
Data cleaning-outlier-detection
Chathurangi Shyalika
 
Decision tree
Decision treeDecision tree
Decision tree
ShraddhaPandey45
 
K means Clustering
K means ClusteringK means Clustering
K means ClusteringEdureka!
 
Classification and Regression
Classification and RegressionClassification and Regression
Classification and Regression
Megha Sharma
 
Classification
ClassificationClassification
Classification
CloudxLab
 

What's hot (20)

Supervised and unsupervised learning
Supervised and unsupervised learningSupervised and unsupervised learning
Supervised and unsupervised learning
 
Data mining: Concepts and Techniques, Chapter12 outlier Analysis
Data mining: Concepts and Techniques, Chapter12 outlier Analysis Data mining: Concepts and Techniques, Chapter12 outlier Analysis
Data mining: Concepts and Techniques, Chapter12 outlier Analysis
 
Machine Learning with Decision trees
Machine Learning with Decision treesMachine Learning with Decision trees
Machine Learning with Decision trees
 
Support Vector Machine - How Support Vector Machine works | SVM in Machine Le...
Support Vector Machine - How Support Vector Machine works | SVM in Machine Le...Support Vector Machine - How Support Vector Machine works | SVM in Machine Le...
Support Vector Machine - How Support Vector Machine works | SVM in Machine Le...
 
Logistic regression in Machine Learning
Logistic regression in Machine LearningLogistic regression in Machine Learning
Logistic regression in Machine Learning
 
Decision Tree Learning
Decision Tree LearningDecision Tree Learning
Decision Tree Learning
 
Supervised and Unsupervised Learning In Machine Learning | Machine Learning T...
Supervised and Unsupervised Learning In Machine Learning | Machine Learning T...Supervised and Unsupervised Learning In Machine Learning | Machine Learning T...
Supervised and Unsupervised Learning In Machine Learning | Machine Learning T...
 
Random forest algorithm
Random forest algorithmRandom forest algorithm
Random forest algorithm
 
Decision tree
Decision treeDecision tree
Decision tree
 
Random forest
Random forestRandom forest
Random forest
 
Hierarchical Clustering
Hierarchical ClusteringHierarchical Clustering
Hierarchical Clustering
 
Support Vector Machine ppt presentation
Support Vector Machine ppt presentationSupport Vector Machine ppt presentation
Support Vector Machine ppt presentation
 
Presentation on K-Means Clustering
Presentation on K-Means ClusteringPresentation on K-Means Clustering
Presentation on K-Means Clustering
 
Decision tree
Decision treeDecision tree
Decision tree
 
Data cleaning-outlier-detection
Data cleaning-outlier-detectionData cleaning-outlier-detection
Data cleaning-outlier-detection
 
Decision tree
Decision treeDecision tree
Decision tree
 
K means Clustering
K means ClusteringK means Clustering
K means Clustering
 
K means Clustering Algorithm
K means Clustering AlgorithmK means Clustering Algorithm
K means Clustering Algorithm
 
Classification and Regression
Classification and RegressionClassification and Regression
Classification and Regression
 
Classification
ClassificationClassification
Classification
 

Similar to Classification Algorithm.

Complements and Conditional Probability, and Bayes' Theorem
 Complements and Conditional Probability, and Bayes' Theorem Complements and Conditional Probability, and Bayes' Theorem
Complements and Conditional Probability, and Bayes' Theorem
Long Beach City College
 
2.statistical DEcision makig.pptx
2.statistical DEcision makig.pptx2.statistical DEcision makig.pptx
2.statistical DEcision makig.pptx
ImpanaR2
 
1 Probability Please read sections 3.1 – 3.3 in your .docx
 1 Probability   Please read sections 3.1 – 3.3 in your .docx 1 Probability   Please read sections 3.1 – 3.3 in your .docx
1 Probability Please read sections 3.1 – 3.3 in your .docx
aryan532920
 
Probability concepts for Data Analytics
Probability concepts for Data AnalyticsProbability concepts for Data Analytics
Probability concepts for Data Analytics
SSaudia
 
Introduction to Probability - NZ Level 2 2.12
Introduction to Probability - NZ Level 2  2.12Introduction to Probability - NZ Level 2  2.12
Introduction to Probability - NZ Level 2 2.12
Kate FLR
 
Basic concepts of probability
Basic concepts of probability Basic concepts of probability
Basic concepts of probability
Long Beach City College
 
probability_statistics_presentation.pptx
probability_statistics_presentation.pptxprobability_statistics_presentation.pptx
probability_statistics_presentation.pptx
vietnam5hayday
 
Statistics 1 (FPN) QP
Statistics 1 (FPN) QPStatistics 1 (FPN) QP
Statistics 1 (FPN) QP
Success Formula
 
Mncs 16-09-4주-변승규-introduction to the machine learning
Mncs 16-09-4주-변승규-introduction to the machine learningMncs 16-09-4주-변승규-introduction to the machine learning
Mncs 16-09-4주-변승규-introduction to the machine learning
Seung-gyu Byeon
 
Module 4 bayes classification
Module 4 bayes classificationModule 4 bayes classification
Module 4 bayes classification
SatishH5
 
Day 3.pptx
Day 3.pptxDay 3.pptx
Day 3.pptx
estelaabera
 
Mathematics Assignment Help
Mathematics Assignment Help Mathematics Assignment Help
Mathematics Assignment Help
Statistics Assignment Help
 
Probability unit2.pptx
Probability unit2.pptxProbability unit2.pptx
Probability unit2.pptx
SNIGDHABADIDA2127755
 
statistics assignment help
statistics assignment helpstatistics assignment help
statistics assignment help
Statistics Homework Helper
 
BASIC PROBABILITY distribution - Copy.pptx
BASIC PROBABILITY distribution - Copy.pptxBASIC PROBABILITY distribution - Copy.pptx
BASIC PROBABILITY distribution - Copy.pptx
MinilikDerseh1
 
Research Sample size by Dr Allah Yar Malik
Research Sample size by Dr Allah Yar MalikResearch Sample size by Dr Allah Yar Malik
Research Sample size by Dr Allah Yar Malik
huraismalik
 
Sign Test
Sign TestSign Test
Sign Test
AdrizaBera
 
Math 300 MM Project
Math 300 MM ProjectMath 300 MM Project
Math 300 MM Project
Amber Rodriguez
 
Probability
ProbabilityProbability
Probability
narutosasuke16
 

Similar to Classification Algorithm. (20)

Complements and Conditional Probability, and Bayes' Theorem
 Complements and Conditional Probability, and Bayes' Theorem Complements and Conditional Probability, and Bayes' Theorem
Complements and Conditional Probability, and Bayes' Theorem
 
2.statistical DEcision makig.pptx
2.statistical DEcision makig.pptx2.statistical DEcision makig.pptx
2.statistical DEcision makig.pptx
 
1 Probability Please read sections 3.1 – 3.3 in your .docx
 1 Probability   Please read sections 3.1 – 3.3 in your .docx 1 Probability   Please read sections 3.1 – 3.3 in your .docx
1 Probability Please read sections 3.1 – 3.3 in your .docx
 
Probability concepts for Data Analytics
Probability concepts for Data AnalyticsProbability concepts for Data Analytics
Probability concepts for Data Analytics
 
Introduction to Probability - NZ Level 2 2.12
Introduction to Probability - NZ Level 2  2.12Introduction to Probability - NZ Level 2  2.12
Introduction to Probability - NZ Level 2 2.12
 
Lecture3
Lecture3Lecture3
Lecture3
 
Basic concepts of probability
Basic concepts of probability Basic concepts of probability
Basic concepts of probability
 
probability_statistics_presentation.pptx
probability_statistics_presentation.pptxprobability_statistics_presentation.pptx
probability_statistics_presentation.pptx
 
Statistics 1 (FPN) QP
Statistics 1 (FPN) QPStatistics 1 (FPN) QP
Statistics 1 (FPN) QP
 
Mncs 16-09-4주-변승규-introduction to the machine learning
Mncs 16-09-4주-변승규-introduction to the machine learningMncs 16-09-4주-변승규-introduction to the machine learning
Mncs 16-09-4주-변승규-introduction to the machine learning
 
Module 4 bayes classification
Module 4 bayes classificationModule 4 bayes classification
Module 4 bayes classification
 
Day 3.pptx
Day 3.pptxDay 3.pptx
Day 3.pptx
 
Mathematics Assignment Help
Mathematics Assignment Help Mathematics Assignment Help
Mathematics Assignment Help
 
Probability unit2.pptx
Probability unit2.pptxProbability unit2.pptx
Probability unit2.pptx
 
statistics assignment help
statistics assignment helpstatistics assignment help
statistics assignment help
 
BASIC PROBABILITY distribution - Copy.pptx
BASIC PROBABILITY distribution - Copy.pptxBASIC PROBABILITY distribution - Copy.pptx
BASIC PROBABILITY distribution - Copy.pptx
 
Research Sample size by Dr Allah Yar Malik
Research Sample size by Dr Allah Yar MalikResearch Sample size by Dr Allah Yar Malik
Research Sample size by Dr Allah Yar Malik
 
Sign Test
Sign TestSign Test
Sign Test
 
Math 300 MM Project
Math 300 MM ProjectMath 300 MM Project
Math 300 MM Project
 
Probability
ProbabilityProbability
Probability
 

More from Megha Sharma

Data Management Activities, Extraction, Transformation and Loading (ETL)
Data Management Activities, Extraction, Transformation and Loading (ETL)Data Management Activities, Extraction, Transformation and Loading (ETL)
Data Management Activities, Extraction, Transformation and Loading (ETL)
Megha Sharma
 
Descriptive Statistics: Mean, Median Mode and Standard Deviation.
Descriptive Statistics: Mean, Median Mode and Standard Deviation.Descriptive Statistics: Mean, Median Mode and Standard Deviation.
Descriptive Statistics: Mean, Median Mode and Standard Deviation.
Megha Sharma
 
Model Evaluation Matrix: Confusion Matrix, F1 Score, ROC curve AUC
Model Evaluation Matrix: Confusion Matrix, F1 Score, ROC curve AUCModel Evaluation Matrix: Confusion Matrix, F1 Score, ROC curve AUC
Model Evaluation Matrix: Confusion Matrix, F1 Score, ROC curve AUC
Megha Sharma
 
Model Evaluation Matrix: Accuracy, precision and recall
Model Evaluation Matrix: Accuracy, precision and recallModel Evaluation Matrix: Accuracy, precision and recall
Model Evaluation Matrix: Accuracy, precision and recall
Megha Sharma
 
Visualization Techniques- Box plot, Line Chart, Scatter plot, Bar chart.
Visualization Techniques- Box plot, Line Chart, Scatter plot, Bar chart.Visualization Techniques- Box plot, Line Chart, Scatter plot, Bar chart.
Visualization Techniques- Box plot, Line Chart, Scatter plot, Bar chart.
Megha Sharma
 
Visualization Techniques ,Exploratory Data Analysis(EDA), Histogram
Visualization Techniques ,Exploratory Data Analysis(EDA), HistogramVisualization Techniques ,Exploratory Data Analysis(EDA), Histogram
Visualization Techniques ,Exploratory Data Analysis(EDA), Histogram
Megha Sharma
 
Data Preprocessing- Data transformation, Scaling, Normalization, Standardiza...
Data Preprocessing- Data transformation,  Scaling, Normalization, Standardiza...Data Preprocessing- Data transformation,  Scaling, Normalization, Standardiza...
Data Preprocessing- Data transformation, Scaling, Normalization, Standardiza...
Megha Sharma
 
Data Science- Data Preprocessing, Data Cleaning.
Data Science- Data Preprocessing, Data Cleaning.Data Science- Data Preprocessing, Data Cleaning.
Data Science- Data Preprocessing, Data Cleaning.
Megha Sharma
 
Data Preprocessing- Feature Selection and Merging.
Data Preprocessing- Feature Selection and Merging.Data Preprocessing- Feature Selection and Merging.
Data Preprocessing- Feature Selection and Merging.
Megha Sharma
 
Different types of data. Qualitative, Quantitative, Ordinal, Nominal, Discret...
Different types of data. Qualitative, Quantitative, Ordinal, Nominal, Discret...Different types of data. Qualitative, Quantitative, Ordinal, Nominal, Discret...
Different types of data. Qualitative, Quantitative, Ordinal, Nominal, Discret...
Megha Sharma
 
Data Science comparison with AI, ML, BI, and data warehousing, data mining.
Data Science comparison with AI, ML, BI, and data warehousing, data mining.Data Science comparison with AI, ML, BI, and data warehousing, data mining.
Data Science comparison with AI, ML, BI, and data warehousing, data mining.
Megha Sharma
 
Data Science Introduction, Application of Data Science.
Data Science Introduction, Application of Data Science.Data Science Introduction, Application of Data Science.
Data Science Introduction, Application of Data Science.
Megha Sharma
 
Ensemble learning
Ensemble learningEnsemble learning
Ensemble learning
Megha Sharma
 
Association Rule mining
Association Rule miningAssociation Rule mining
Association Rule mining
Megha Sharma
 
Bellman's equation Reinforcement learning - II
Bellman's equation Reinforcement learning - IIBellman's equation Reinforcement learning - II
Bellman's equation Reinforcement learning - II
Megha Sharma
 
Reinforcement learning in Machine learning
 Reinforcement learning in Machine learning Reinforcement learning in Machine learning
Reinforcement learning in Machine learning
Megha Sharma
 
E-M Algorithm
E-M AlgorithmE-M Algorithm
E-M Algorithm
Megha Sharma
 
Entropy and information gain in decision tree.
Entropy and information gain in decision tree.Entropy and information gain in decision tree.
Entropy and information gain in decision tree.
Megha Sharma
 
Types of Machine Learning. & Decision Tree.
Types of Machine Learning. & Decision Tree.Types of Machine Learning. & Decision Tree.
Types of Machine Learning. & Decision Tree.
Megha Sharma
 
If statements in C
If statements in CIf statements in C
If statements in C
Megha Sharma
 

More from Megha Sharma (20)

Data Management Activities, Extraction, Transformation and Loading (ETL)
Data Management Activities, Extraction, Transformation and Loading (ETL)Data Management Activities, Extraction, Transformation and Loading (ETL)
Data Management Activities, Extraction, Transformation and Loading (ETL)
 
Descriptive Statistics: Mean, Median Mode and Standard Deviation.
Descriptive Statistics: Mean, Median Mode and Standard Deviation.Descriptive Statistics: Mean, Median Mode and Standard Deviation.
Descriptive Statistics: Mean, Median Mode and Standard Deviation.
 
Model Evaluation Matrix: Confusion Matrix, F1 Score, ROC curve AUC
Model Evaluation Matrix: Confusion Matrix, F1 Score, ROC curve AUCModel Evaluation Matrix: Confusion Matrix, F1 Score, ROC curve AUC
Model Evaluation Matrix: Confusion Matrix, F1 Score, ROC curve AUC
 
Model Evaluation Matrix: Accuracy, precision and recall
Model Evaluation Matrix: Accuracy, precision and recallModel Evaluation Matrix: Accuracy, precision and recall
Model Evaluation Matrix: Accuracy, precision and recall
 
Visualization Techniques- Box plot, Line Chart, Scatter plot, Bar chart.
Visualization Techniques- Box plot, Line Chart, Scatter plot, Bar chart.Visualization Techniques- Box plot, Line Chart, Scatter plot, Bar chart.
Visualization Techniques- Box plot, Line Chart, Scatter plot, Bar chart.
 
Visualization Techniques ,Exploratory Data Analysis(EDA), Histogram
Visualization Techniques ,Exploratory Data Analysis(EDA), HistogramVisualization Techniques ,Exploratory Data Analysis(EDA), Histogram
Visualization Techniques ,Exploratory Data Analysis(EDA), Histogram
 
Data Preprocessing- Data transformation, Scaling, Normalization, Standardiza...
Data Preprocessing- Data transformation,  Scaling, Normalization, Standardiza...Data Preprocessing- Data transformation,  Scaling, Normalization, Standardiza...
Data Preprocessing- Data transformation, Scaling, Normalization, Standardiza...
 
Data Science- Data Preprocessing, Data Cleaning.
Data Science- Data Preprocessing, Data Cleaning.Data Science- Data Preprocessing, Data Cleaning.
Data Science- Data Preprocessing, Data Cleaning.
 
Data Preprocessing- Feature Selection and Merging.
Data Preprocessing- Feature Selection and Merging.Data Preprocessing- Feature Selection and Merging.
Data Preprocessing- Feature Selection and Merging.
 
Different types of data. Qualitative, Quantitative, Ordinal, Nominal, Discret...
Different types of data. Qualitative, Quantitative, Ordinal, Nominal, Discret...Different types of data. Qualitative, Quantitative, Ordinal, Nominal, Discret...
Different types of data. Qualitative, Quantitative, Ordinal, Nominal, Discret...
 
Data Science comparison with AI, ML, BI, and data warehousing, data mining.
Data Science comparison with AI, ML, BI, and data warehousing, data mining.Data Science comparison with AI, ML, BI, and data warehousing, data mining.
Data Science comparison with AI, ML, BI, and data warehousing, data mining.
 
Data Science Introduction, Application of Data Science.
Data Science Introduction, Application of Data Science.Data Science Introduction, Application of Data Science.
Data Science Introduction, Application of Data Science.
 
Ensemble learning
Ensemble learningEnsemble learning
Ensemble learning
 
Association Rule mining
Association Rule miningAssociation Rule mining
Association Rule mining
 
Bellman's equation Reinforcement learning - II
Bellman's equation Reinforcement learning - IIBellman's equation Reinforcement learning - II
Bellman's equation Reinforcement learning - II
 
Reinforcement learning in Machine learning
 Reinforcement learning in Machine learning Reinforcement learning in Machine learning
Reinforcement learning in Machine learning
 
E-M Algorithm
E-M AlgorithmE-M Algorithm
E-M Algorithm
 
Entropy and information gain in decision tree.
Entropy and information gain in decision tree.Entropy and information gain in decision tree.
Entropy and information gain in decision tree.
 
Types of Machine Learning. & Decision Tree.
Types of Machine Learning. & Decision Tree.Types of Machine Learning. & Decision Tree.
Types of Machine Learning. & Decision Tree.
 
If statements in C
If statements in CIf statements in C
If statements in C
 

Recently uploaded

Best Digital Marketing Institute In NOIDA
Best Digital Marketing Institute In NOIDABest Digital Marketing Institute In NOIDA
Best Digital Marketing Institute In NOIDA
deeptiverma2406
 
Pride Month Slides 2024 David Douglas School District
Pride Month Slides 2024 David Douglas School DistrictPride Month Slides 2024 David Douglas School District
Pride Month Slides 2024 David Douglas School District
David Douglas School District
 
"Protectable subject matters, Protection in biotechnology, Protection of othe...
"Protectable subject matters, Protection in biotechnology, Protection of othe..."Protectable subject matters, Protection in biotechnology, Protection of othe...
"Protectable subject matters, Protection in biotechnology, Protection of othe...
SACHIN R KONDAGURI
 
The Diamonds of 2023-2024 in the IGRA collection
The Diamonds of 2023-2024 in the IGRA collectionThe Diamonds of 2023-2024 in the IGRA collection
The Diamonds of 2023-2024 in the IGRA collection
Israel Genealogy Research Association
 
Acetabularia Information For Class 9 .docx
Acetabularia Information For Class 9  .docxAcetabularia Information For Class 9  .docx
Acetabularia Information For Class 9 .docx
vaibhavrinwa19
 
June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...
June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...
June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...
Levi Shapiro
 
S1-Introduction-Biopesticides in ICM.pptx
S1-Introduction-Biopesticides in ICM.pptxS1-Introduction-Biopesticides in ICM.pptx
S1-Introduction-Biopesticides in ICM.pptx
tarandeep35
 
Model Attribute Check Company Auto Property
Model Attribute  Check Company Auto PropertyModel Attribute  Check Company Auto Property
Model Attribute Check Company Auto Property
Celine George
 
A Strategic Approach: GenAI in Education
A Strategic Approach: GenAI in EducationA Strategic Approach: GenAI in Education
A Strategic Approach: GenAI in Education
Peter Windle
 
STRAND 3 HYGIENIC PRACTICES.pptx GRADE 7 CBC
STRAND 3 HYGIENIC PRACTICES.pptx GRADE 7 CBCSTRAND 3 HYGIENIC PRACTICES.pptx GRADE 7 CBC
STRAND 3 HYGIENIC PRACTICES.pptx GRADE 7 CBC
kimdan468
 
The Challenger.pdf DNHS Official Publication
The Challenger.pdf DNHS Official PublicationThe Challenger.pdf DNHS Official Publication
The Challenger.pdf DNHS Official Publication
Delapenabediema
 
Azure Interview Questions and Answers PDF By ScholarHat
Azure Interview Questions and Answers PDF By ScholarHatAzure Interview Questions and Answers PDF By ScholarHat
Azure Interview Questions and Answers PDF By ScholarHat
Scholarhat
 
Thesis Statement for students diagnonsed withADHD.ppt
Thesis Statement for students diagnonsed withADHD.pptThesis Statement for students diagnonsed withADHD.ppt
Thesis Statement for students diagnonsed withADHD.ppt
EverAndrsGuerraGuerr
 
Advantages and Disadvantages of CMS from an SEO Perspective
Advantages and Disadvantages of CMS from an SEO PerspectiveAdvantages and Disadvantages of CMS from an SEO Perspective
Advantages and Disadvantages of CMS from an SEO Perspective
Krisztián Száraz
 
2024.06.01 Introducing a competency framework for languag learning materials ...
2024.06.01 Introducing a competency framework for languag learning materials ...2024.06.01 Introducing a competency framework for languag learning materials ...
2024.06.01 Introducing a competency framework for languag learning materials ...
Sandy Millin
 
Overview on Edible Vaccine: Pros & Cons with Mechanism
Overview on Edible Vaccine: Pros & Cons with MechanismOverview on Edible Vaccine: Pros & Cons with Mechanism
Overview on Edible Vaccine: Pros & Cons with Mechanism
DeeptiGupta154
 
JEE1_This_section_contains_FOUR_ questions
JEE1_This_section_contains_FOUR_ questionsJEE1_This_section_contains_FOUR_ questions
JEE1_This_section_contains_FOUR_ questions
ShivajiThube2
 
Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46
Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46
Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46
MysoreMuleSoftMeetup
 
1.4 modern child centered education - mahatma gandhi-2.pptx
1.4 modern child centered education - mahatma gandhi-2.pptx1.4 modern child centered education - mahatma gandhi-2.pptx
1.4 modern child centered education - mahatma gandhi-2.pptx
JosvitaDsouza2
 
Introduction to AI for Nonprofits with Tapp Network
Introduction to AI for Nonprofits with Tapp NetworkIntroduction to AI for Nonprofits with Tapp Network
Introduction to AI for Nonprofits with Tapp Network
TechSoup
 

Recently uploaded (20)

Best Digital Marketing Institute In NOIDA
Best Digital Marketing Institute In NOIDABest Digital Marketing Institute In NOIDA
Best Digital Marketing Institute In NOIDA
 
Pride Month Slides 2024 David Douglas School District
Pride Month Slides 2024 David Douglas School DistrictPride Month Slides 2024 David Douglas School District
Pride Month Slides 2024 David Douglas School District
 
"Protectable subject matters, Protection in biotechnology, Protection of othe...
"Protectable subject matters, Protection in biotechnology, Protection of othe..."Protectable subject matters, Protection in biotechnology, Protection of othe...
"Protectable subject matters, Protection in biotechnology, Protection of othe...
 
The Diamonds of 2023-2024 in the IGRA collection
The Diamonds of 2023-2024 in the IGRA collectionThe Diamonds of 2023-2024 in the IGRA collection
The Diamonds of 2023-2024 in the IGRA collection
 
Acetabularia Information For Class 9 .docx
Acetabularia Information For Class 9  .docxAcetabularia Information For Class 9  .docx
Acetabularia Information For Class 9 .docx
 
June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...
June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...
June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...
 
S1-Introduction-Biopesticides in ICM.pptx
S1-Introduction-Biopesticides in ICM.pptxS1-Introduction-Biopesticides in ICM.pptx
S1-Introduction-Biopesticides in ICM.pptx
 
Model Attribute Check Company Auto Property
Model Attribute  Check Company Auto PropertyModel Attribute  Check Company Auto Property
Model Attribute Check Company Auto Property
 
A Strategic Approach: GenAI in Education
A Strategic Approach: GenAI in EducationA Strategic Approach: GenAI in Education
A Strategic Approach: GenAI in Education
 
STRAND 3 HYGIENIC PRACTICES.pptx GRADE 7 CBC
STRAND 3 HYGIENIC PRACTICES.pptx GRADE 7 CBCSTRAND 3 HYGIENIC PRACTICES.pptx GRADE 7 CBC
STRAND 3 HYGIENIC PRACTICES.pptx GRADE 7 CBC
 
The Challenger.pdf DNHS Official Publication
The Challenger.pdf DNHS Official PublicationThe Challenger.pdf DNHS Official Publication
The Challenger.pdf DNHS Official Publication
 
Azure Interview Questions and Answers PDF By ScholarHat
Azure Interview Questions and Answers PDF By ScholarHatAzure Interview Questions and Answers PDF By ScholarHat
Azure Interview Questions and Answers PDF By ScholarHat
 
Thesis Statement for students diagnonsed withADHD.ppt
Thesis Statement for students diagnonsed withADHD.pptThesis Statement for students diagnonsed withADHD.ppt
Thesis Statement for students diagnonsed withADHD.ppt
 
Advantages and Disadvantages of CMS from an SEO Perspective
Advantages and Disadvantages of CMS from an SEO PerspectiveAdvantages and Disadvantages of CMS from an SEO Perspective
Advantages and Disadvantages of CMS from an SEO Perspective
 
2024.06.01 Introducing a competency framework for languag learning materials ...
2024.06.01 Introducing a competency framework for languag learning materials ...2024.06.01 Introducing a competency framework for languag learning materials ...
2024.06.01 Introducing a competency framework for languag learning materials ...
 
Overview on Edible Vaccine: Pros & Cons with Mechanism
Overview on Edible Vaccine: Pros & Cons with MechanismOverview on Edible Vaccine: Pros & Cons with Mechanism
Overview on Edible Vaccine: Pros & Cons with Mechanism
 
JEE1_This_section_contains_FOUR_ questions
JEE1_This_section_contains_FOUR_ questionsJEE1_This_section_contains_FOUR_ questions
JEE1_This_section_contains_FOUR_ questions
 
Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46
Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46
Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46
 
1.4 modern child centered education - mahatma gandhi-2.pptx
1.4 modern child centered education - mahatma gandhi-2.pptx1.4 modern child centered education - mahatma gandhi-2.pptx
1.4 modern child centered education - mahatma gandhi-2.pptx
 
Introduction to AI for Nonprofits with Tapp Network
Introduction to AI for Nonprofits with Tapp NetworkIntroduction to AI for Nonprofits with Tapp Network
Introduction to AI for Nonprofits with Tapp Network
 

Classification Algorithm.

  • 2. BUSINESS INTELLIGENCE CLASSIFICATION ALGORITHMS Mrs. Megha Sharma M.Sc. Computer Science. B.Ed.
  • 3. K-Nearest Neighbours Decision trees Naive Baye’s Classifier Logistic Regression Artificial Neural Network Support Vector Machines
  • 4. 1. K-Nearest Neighbour  K-Nearest algorithm classifies data sets based on their similarity with neighbours. It works in a very simple way by taking into account the distance from known data point. After we gather the ‘k’ neighbours , we simply take the majority and classify the unknown data into that category. Class A: Class B: Unknown data :  When k=3  Data point belongs to class B
  • 5. 2. Decision Trees A decision tree represents classification. Decision trees predict the future based on the previous learning and input data sets. It taken multiple input values and returns back the probable output with the single value which is considered as a decision.  A decision tree starts with a single node, which branches into possible outcomes. Each of those outcomes lead to additional nodes, which branch off into other possibilities. Algorithm: 1. Begin the tree with the root node 2. Split into subsets. 3. If subset is pure (all yes or all no) stop the process. Else go to step 1 and repeat the process until we get pure subset.
  • 6. E.g. We want to predict whether Amit will play cricket or not? Weather : Rainy, Humidity : high, Wind : Strong. Day Weather Humidity wind Play 1 Sunny high weak yes 2 Sunny high strong yes 3 Cloudy high weak yes 4 Cloudy high weak Yes 5 Rainy high weak Yes 6 Rainy normal weak Yes 7 Cloudy normal strong No 8 Cloudy normal weak No 9 Sunny normal normal Yes 10 rainy normal strong No 11 Cloudy high strong yes
  • 7. Weather Rainy Cloudy Sunny Day humidity wind play 3 high weak yes 4 high weak Yes 7 normal strong No 8 normal weak No 11 high strong yes Day humidity wind play 1 high weak yes 2 high strong yes 9 normal normal Yes Day humidity wind play 5 high weak Yes 6 normal weak Yes 10 normal strong No All yes no need to divide further
  • 8. Weather Rainy Cloudy Sunny High Humidity Normal Strong Weak Wind YES NO YES NO Weather : Rainy, Humidity : High, Wind : Strong. NO
  • 9. Concept of Probability Probability is a measure of the likelihood of an event to occur. P(A) = Number of favorable outcomes to A Total number of outcomes Number of red balls= 6 Number of Blue balls= 4 Total no of balls= 10 P(R): The probability of selecting a red ball is = 6/10 P(B): The probability of selecting a blue ball is = 4/10
  • 10. Box-A Box-B Conditional Probability Box A 1 Red 4 Blue Total 5 Box B 3 Red 2 Blue Total 5 Total 4 Red 6 Blue 10 P(R) = 4/10 P (B)= 6/10 Probability of getting red ball if ball is drawn from Box A. P(R|A) = 1/5 Similarly Probability of getting red ball if ball is drawn compulsorily from box B. P(R|B)= 3/5
  • 11. Bayesian Methods Thomas Bayes, a statistician had given a probabilistic theory known as Baye’s theorem for probability , which describe the probability of an event or occurrence, based on prior knowledge of events and expected outcome. Baye’s Formula: P(A|B) = P (B|A) P(A) P(B) • Where P(A) and P(B) , are prior probabilities or observed probabilities independent of each other. • P(A|B), is conditional probability (posterior probability), the likelihood of event A occurring given that B is True. • P(B|A), is conditional probability (posterior probability), the likelihood of event B occurring given that A is True.
  • 12. Example: Finding out a patient probability of having cancer disease. Let say “smoking test” is the test for diagnosing disease. 10% of Patients have cancer : P(A) = 0.1. 5% of Patient is a smoker: P(B) = 0.05. Among those patients diagnosed with cancer , 7% are smokers i.e. P(B|A) . Using Bayes theorem we can find the probability of having cancer if the patient is smoker. P(A|B) = (0.07* 0.1)/ 0.05 = 0.14 If the patient is a smoker, their chances of having cancer is 14%
  • 13. 3. Naïve Baye’s Classifier Naïve Baye’s classifier technique is particularly suited when the dimensionality of the input is high. Naive Bayes classifiers are the family of simple “probabilistic classifiers” based on applying Bayes’ theorem with strong (naïve) independence assumptions between the features. Total 60 objects. 40 Green and 20 Red. Prior probability of Green=40/60 Prior probability of Red= 20/60
  • 14. Continue… Probability of X given Green = 1/40 Probability of X given Red=3/20 Posterior probability of X being Green : prior probability of Green * Likelihood of X given Green 4/6 x 1/40 =1/60 Posterior probability of X being Red : prior probability of Red * Likelihood of X given Red 2/6 x 3/20 = 1/20 Finally we classify X as ‘Red’ since its class membership achieves the largest posterior probability.
  • 15. Thanks For Watching. Next Topic : Classification Algorithms Part-II.
  • 16. About the Channel This channel helps you to prepare for BSc IT and BSc computer science subjects. In this channel we will learn Business Intelligence , A.I., Digital Electronics, Internet OF Things Python programming , Data-Structure etc. Which is useful for upcoming university exams. Gmail: omega.teched@gmail.com Social Media Handles: omega.teched megha_with OMega TechEd