SlideShare a Scribd company logo
1 of 10
 Bayes’ theorem gives the relationship between the probabilities of A and B, P(A) and
P(B), and the conditional probabilities of A given B and B given A, P(A|B) and P(B|A), in
its most common form P(A|B)=
𝑃 𝐵 𝐴 𝑃(𝐴)
𝑃(𝐵)
 In Bayesian interpretation, probability measures the degree of belief. Bayes theorem links
the belief in a proposition before and after accounting for an evidence.
 For proposition A and evidence B:
 P(A), the prior, is the initial degree of belief in A
 P(A|B), the posterior, is the degree of belief having accounted for B
 The quotient P(B|A)/P(B) represents the support B provides for A
 The probability model for a classifier is a conditional model p(C|F1, …., Fn), over a
dependent class variable C, with a small number of outcomes or classes conditioned on
several feature variables F1 through Fn .
 Problem – large number of features or features that can take large number of values
makes the probability tables infeasible
 Using Bayesian theorem p(C|F1, …., Fn) =
𝒑 𝑪 𝒑(𝑭 𝟏
,…….𝑭𝒏|𝑪)
𝒑(𝑭 𝟏
,…….𝑭𝒏)
 in plain English, posterior=
𝑝𝑟𝑖𝑜𝑟 ∗𝑙𝑖𝑘𝑒𝑙𝑖ℎ𝑜𝑜𝑑
𝑒𝑣𝑖𝑑𝑒𝑛𝑐𝑒
 Since the denominator is not dependent on C and the values of the features Fi are given,
so that the denominator is effectively constant. The numerator is equivalent to the joint
probability model p(C,F1, …., Fn ).
 Using the chain rule for repeated applications of definition of conditional probability
 Role of Naïve condition: assume that the feature Fi is conditionally independent of every
other feature Fj, for j≠i given the category C.
 The joint model can be represented as
 Under conditional distribution over the class variable
 Where z=p(F1, ….., Fn) is a scaling factor
 Naïve Bayes classifier combines this model with a decision rule.
 Most common rule is to pick hypothesis that is most probable, known as maximum a
posteriori
 The probability of a document F being in class c is computed as
 P(F|c) is the conditional probability of term F occurring in a document of class c.
 It is a measure of how much evidence F contributes that c is a correct class.
 P(c) is the prior probability of a document occurring in class c.
 Statistical classification model
 Predicts binary response from a binary predictor for predicting the outcome of a
categorical dependent variable
 Logistic regression measures the relationship between a categorical dependent variable
and one or more independent variable
 Applications:
 medical and social science field like Trauma and Injury Severity Score (TRISS), used to predict
mortality in injured patients
 used to predict whether a patient has diabetes based on observed characteristics like age,
gender, BMI
 Predict whether a person will vote for congress or BJP based on age, income, gender, race, state
of residency
 Classification
 Binomial or Binary logistic regression deals with variable in which the observed outcome have
two possible types ex dead or alive
 Outcome is coded as 0 or 1
 Straightforward interpretation
 Multinomial logistic regression deals with situation where there are three or more outcomes
 Logistic regression is used for predicting binary outcomes rather than continuous
 Takes the natural logarithm of odds of the logit transformation
 Selects a subset of terms occurring in the training set and uses this subset as features in
text classification
 Serves two main purposes:
 First, makes training and applying classifier more efficient by decreasing the size of effective
vocabulary
 Increases the accuracy by eliminating noise features
 A noise feature is one which when added to the document representation, increases the
classification error on new data.
 Feature selection replaces the complex classifier (using all features) with a simpler one
(using a subset of features)
 Mutual Information measures how much information the presence / absence of a term
contributes to making the correct classification decision on c
 X2 Feature Selection test’s the independence of two events
 Frequency-based feature selection selects terms that are most common in the class.
 frequency can be either defined as document frequency – documents in class c that contain the
terms t
 Collection frequency – tokens of t that occur in documents in c
 document frequency -> Bernoulli model
 Collection frequency -> multinomial model
 Feature selection for multiple classifiers selects single set of features instead of different
one for each classifier

More Related Content

What's hot

13 random forest
13 random forest13 random forest
13 random forestVishal Dutt
 
Statistics in linguistics 2014
Statistics in linguistics 2014Statistics in linguistics 2014
Statistics in linguistics 2014syelphie
 
L2 flash cards quantitative methods - SS3
L2 flash cards quantitative methods - SS3L2 flash cards quantitative methods - SS3
L2 flash cards quantitative methods - SS3analystbuddy
 
Cluster analysis
Cluster analysisCluster analysis
Cluster analysis緯鈞 沈
 
Chapter 2 250110 083240
Chapter 2 250110 083240Chapter 2 250110 083240
Chapter 2 250110 083240guest25d353
 
1.4 Data Collection & Sampling
1.4 Data Collection & Sampling1.4 Data Collection & Sampling
1.4 Data Collection & Samplingmlong24
 
9 accuracyassessment
9 accuracyassessment9 accuracyassessment
9 accuracyassessmentImam Nugraha
 
Quantum generalized linear models
Quantum generalized linear modelsQuantum generalized linear models
Quantum generalized linear modelsColleen Farrelly
 
Describing categorical data one variable
Describing categorical data  one variableDescribing categorical data  one variable
Describing categorical data one variablePathlavath Venkatesh
 
Cannonical Correlation
Cannonical CorrelationCannonical Correlation
Cannonical Correlationdomsr
 
Frequency Tables, Frequency Distributions, and Graphic Presentation
Frequency Tables, Frequency Distributions, and Graphic PresentationFrequency Tables, Frequency Distributions, and Graphic Presentation
Frequency Tables, Frequency Distributions, and Graphic PresentationConflagratioNal Jahid
 
Comparison statisticalsignificancetestir
Comparison statisticalsignificancetestirComparison statisticalsignificancetestir
Comparison statisticalsignificancetestirClaudia Ribeiro
 
Strict intersection types for the lambda calculus
Strict intersection types for the lambda calculusStrict intersection types for the lambda calculus
Strict intersection types for the lambda calculusunyil96
 

What's hot (20)

13 random forest
13 random forest13 random forest
13 random forest
 
Lecture 03.
Lecture 03.Lecture 03.
Lecture 03.
 
Data Presenetation
Data PresenetationData Presenetation
Data Presenetation
 
Statistics in linguistics 2014
Statistics in linguistics 2014Statistics in linguistics 2014
Statistics in linguistics 2014
 
L2 flash cards quantitative methods - SS3
L2 flash cards quantitative methods - SS3L2 flash cards quantitative methods - SS3
L2 flash cards quantitative methods - SS3
 
Cluster analysis
Cluster analysisCluster analysis
Cluster analysis
 
Organizing-Qualitative-and-Quanti.-data
Organizing-Qualitative-and-Quanti.-dataOrganizing-Qualitative-and-Quanti.-data
Organizing-Qualitative-and-Quanti.-data
 
Chapter 2 250110 083240
Chapter 2 250110 083240Chapter 2 250110 083240
Chapter 2 250110 083240
 
1.4 Data Collection & Sampling
1.4 Data Collection & Sampling1.4 Data Collection & Sampling
1.4 Data Collection & Sampling
 
9 accuracyassessment
9 accuracyassessment9 accuracyassessment
9 accuracyassessment
 
Quantum generalized linear models
Quantum generalized linear modelsQuantum generalized linear models
Quantum generalized linear models
 
Experimental design
Experimental designExperimental design
Experimental design
 
Describing categorical data one variable
Describing categorical data  one variableDescribing categorical data  one variable
Describing categorical data one variable
 
Cannonical Correlation
Cannonical CorrelationCannonical Correlation
Cannonical Correlation
 
Frequency Tables, Frequency Distributions, and Graphic Presentation
Frequency Tables, Frequency Distributions, and Graphic PresentationFrequency Tables, Frequency Distributions, and Graphic Presentation
Frequency Tables, Frequency Distributions, and Graphic Presentation
 
Comparison statisticalsignificancetestir
Comparison statisticalsignificancetestirComparison statisticalsignificancetestir
Comparison statisticalsignificancetestir
 
Presenting Data
Presenting DataPresenting Data
Presenting Data
 
Naive bayes classifier
Naive bayes classifierNaive bayes classifier
Naive bayes classifier
 
Strict intersection types for the lambda calculus
Strict intersection types for the lambda calculusStrict intersection types for the lambda calculus
Strict intersection types for the lambda calculus
 
ma12012id536
ma12012id536ma12012id536
ma12012id536
 

Viewers also liked

Logistic Regression: Predicting The Chances Of Coronary Heart Disease
Logistic Regression: Predicting The Chances Of Coronary Heart DiseaseLogistic Regression: Predicting The Chances Of Coronary Heart Disease
Logistic Regression: Predicting The Chances Of Coronary Heart DiseaseMichael Lieberman
 
Sosiaaliset suhteet järjestäytyvät uudelleen, Riitta Hanifi
Sosiaaliset suhteet järjestäytyvät uudelleen, Riitta HanifiSosiaaliset suhteet järjestäytyvät uudelleen, Riitta Hanifi
Sosiaaliset suhteet järjestäytyvät uudelleen, Riitta HanifiTilastokeskus
 
fMRI in machine learning
fMRI in machine learningfMRI in machine learning
fMRI in machine learningUjjawal
 
Neural network for machine learning
Neural network for machine learningNeural network for machine learning
Neural network for machine learningUjjawal
 
Random forest
Random forestRandom forest
Random forestUjjawal
 
Lessons from 2MM machine learning models
Lessons from 2MM machine learning modelsLessons from 2MM machine learning models
Lessons from 2MM machine learning modelsExtract Data Conference
 
Analysis of covariance
Analysis of covarianceAnalysis of covariance
Analysis of covariancemikko656
 

Viewers also liked (9)

Logistic Regression: Predicting The Chances Of Coronary Heart Disease
Logistic Regression: Predicting The Chances Of Coronary Heart DiseaseLogistic Regression: Predicting The Chances Of Coronary Heart Disease
Logistic Regression: Predicting The Chances Of Coronary Heart Disease
 
Bayes Theorem
Bayes TheoremBayes Theorem
Bayes Theorem
 
Sosiaaliset suhteet järjestäytyvät uudelleen, Riitta Hanifi
Sosiaaliset suhteet järjestäytyvät uudelleen, Riitta HanifiSosiaaliset suhteet järjestäytyvät uudelleen, Riitta Hanifi
Sosiaaliset suhteet järjestäytyvät uudelleen, Riitta Hanifi
 
fMRI in machine learning
fMRI in machine learningfMRI in machine learning
fMRI in machine learning
 
Neural network for machine learning
Neural network for machine learningNeural network for machine learning
Neural network for machine learning
 
Random forest
Random forestRandom forest
Random forest
 
Lessons from 2MM machine learning models
Lessons from 2MM machine learning modelsLessons from 2MM machine learning models
Lessons from 2MM machine learning models
 
Analysis of covariance
Analysis of covarianceAnalysis of covariance
Analysis of covariance
 
Logistic Regression Analysis
Logistic Regression AnalysisLogistic Regression Analysis
Logistic Regression Analysis
 

Similar to Bayes’ theorem and logistic regression

Elementary Probability and Information Theory
Elementary Probability and Information TheoryElementary Probability and Information Theory
Elementary Probability and Information TheoryKhalidSaghiri2
 
Tree net and_randomforests_2009
Tree net and_randomforests_2009Tree net and_randomforests_2009
Tree net and_randomforests_2009Matthew Magistrado
 
The chi square test of indep of categorical variables
The chi square test of indep of categorical variablesThe chi square test of indep of categorical variables
The chi square test of indep of categorical variablesRegent University
 
SPSS statistics - get help using SPSS
SPSS statistics - get help using SPSSSPSS statistics - get help using SPSS
SPSS statistics - get help using SPSScsula its training
 
Chap13 additional topics in regression analysis
Chap13 additional topics in regression analysisChap13 additional topics in regression analysis
Chap13 additional topics in regression analysisJudianto Nugroho
 
International Journal of Engineering and Science Invention (IJESI)
International Journal of Engineering and Science Invention (IJESI)International Journal of Engineering and Science Invention (IJESI)
International Journal of Engineering and Science Invention (IJESI)inventionjournals
 
Textmining Predictive Models
Textmining Predictive ModelsTextmining Predictive Models
Textmining Predictive ModelsDatamining Tools
 
Textmining Predictive Models
Textmining Predictive ModelsTextmining Predictive Models
Textmining Predictive Modelsguest0edcaf
 
2.3 bayesian classification
2.3 bayesian classification2.3 bayesian classification
2.3 bayesian classificationKrish_ver2
 
probabilistic ranking
probabilistic rankingprobabilistic ranking
probabilistic rankingFELIX75
 
Chap14 analysis of categorical data
Chap14 analysis of categorical dataChap14 analysis of categorical data
Chap14 analysis of categorical dataJudianto Nugroho
 
Business Quantitative Lecture 3
Business Quantitative Lecture 3Business Quantitative Lecture 3
Business Quantitative Lecture 3saark
 
Genetic Programming for Generating Prototypes in Classification Problems
Genetic Programming for Generating Prototypes in Classification ProblemsGenetic Programming for Generating Prototypes in Classification Problems
Genetic Programming for Generating Prototypes in Classification ProblemsTarundeep Dhot
 
RuleML2015: Ontology-Based Multidimensional Contexts with Applications to Qua...
RuleML2015: Ontology-Based Multidimensional Contexts with Applications to Qua...RuleML2015: Ontology-Based Multidimensional Contexts with Applications to Qua...
RuleML2015: Ontology-Based Multidimensional Contexts with Applications to Qua...RuleML
 
Intro to Feature Selection
Intro to Feature SelectionIntro to Feature Selection
Intro to Feature Selectionchenhm
 
RuleML2015: Ontology-Based Multidimensional Contexts with Applications to Qua...
RuleML2015: Ontology-Based Multidimensional Contexts with Applications to Qua...RuleML2015: Ontology-Based Multidimensional Contexts with Applications to Qua...
RuleML2015: Ontology-Based Multidimensional Contexts with Applications to Qua...RuleML
 
lecture_mooney.ppt
lecture_mooney.pptlecture_mooney.ppt
lecture_mooney.pptbutest
 

Similar to Bayes’ theorem and logistic regression (20)

Elementary Probability and Information Theory
Elementary Probability and Information TheoryElementary Probability and Information Theory
Elementary Probability and Information Theory
 
Tree net and_randomforests_2009
Tree net and_randomforests_2009Tree net and_randomforests_2009
Tree net and_randomforests_2009
 
The chi square test of indep of categorical variables
The chi square test of indep of categorical variablesThe chi square test of indep of categorical variables
The chi square test of indep of categorical variables
 
SPSS statistics - get help using SPSS
SPSS statistics - get help using SPSSSPSS statistics - get help using SPSS
SPSS statistics - get help using SPSS
 
Chap13 additional topics in regression analysis
Chap13 additional topics in regression analysisChap13 additional topics in regression analysis
Chap13 additional topics in regression analysis
 
Basen Network
Basen NetworkBasen Network
Basen Network
 
International Journal of Engineering and Science Invention (IJESI)
International Journal of Engineering and Science Invention (IJESI)International Journal of Engineering and Science Invention (IJESI)
International Journal of Engineering and Science Invention (IJESI)
 
Textmining Predictive Models
Textmining Predictive ModelsTextmining Predictive Models
Textmining Predictive Models
 
Textmining Predictive Models
Textmining Predictive ModelsTextmining Predictive Models
Textmining Predictive Models
 
Textmining Predictive Models
Textmining Predictive ModelsTextmining Predictive Models
Textmining Predictive Models
 
2.3 bayesian classification
2.3 bayesian classification2.3 bayesian classification
2.3 bayesian classification
 
probabilistic ranking
probabilistic rankingprobabilistic ranking
probabilistic ranking
 
Chap14 analysis of categorical data
Chap14 analysis of categorical dataChap14 analysis of categorical data
Chap14 analysis of categorical data
 
Business Quantitative Lecture 3
Business Quantitative Lecture 3Business Quantitative Lecture 3
Business Quantitative Lecture 3
 
Genetic Programming for Generating Prototypes in Classification Problems
Genetic Programming for Generating Prototypes in Classification ProblemsGenetic Programming for Generating Prototypes in Classification Problems
Genetic Programming for Generating Prototypes in Classification Problems
 
Data science
Data scienceData science
Data science
 
RuleML2015: Ontology-Based Multidimensional Contexts with Applications to Qua...
RuleML2015: Ontology-Based Multidimensional Contexts with Applications to Qua...RuleML2015: Ontology-Based Multidimensional Contexts with Applications to Qua...
RuleML2015: Ontology-Based Multidimensional Contexts with Applications to Qua...
 
Intro to Feature Selection
Intro to Feature SelectionIntro to Feature Selection
Intro to Feature Selection
 
RuleML2015: Ontology-Based Multidimensional Contexts with Applications to Qua...
RuleML2015: Ontology-Based Multidimensional Contexts with Applications to Qua...RuleML2015: Ontology-Based Multidimensional Contexts with Applications to Qua...
RuleML2015: Ontology-Based Multidimensional Contexts with Applications to Qua...
 
lecture_mooney.ppt
lecture_mooney.pptlecture_mooney.ppt
lecture_mooney.ppt
 

More from Ujjawal

Information retrieval
Information retrievalInformation retrieval
Information retrievalUjjawal
 
Genetic algorithm
Genetic algorithmGenetic algorithm
Genetic algorithmUjjawal
 
K nearest neighbor
K nearest neighborK nearest neighbor
K nearest neighborUjjawal
 
Support vector machines
Support vector machinesSupport vector machines
Support vector machinesUjjawal
 
Vector space classification
Vector space classificationVector space classification
Vector space classificationUjjawal
 
Scoring, term weighting and the vector space
Scoring, term weighting and the vector spaceScoring, term weighting and the vector space
Scoring, term weighting and the vector spaceUjjawal
 
Introduction to data mining
Introduction to data miningIntroduction to data mining
Introduction to data miningUjjawal
 

More from Ujjawal (7)

Information retrieval
Information retrievalInformation retrieval
Information retrieval
 
Genetic algorithm
Genetic algorithmGenetic algorithm
Genetic algorithm
 
K nearest neighbor
K nearest neighborK nearest neighbor
K nearest neighbor
 
Support vector machines
Support vector machinesSupport vector machines
Support vector machines
 
Vector space classification
Vector space classificationVector space classification
Vector space classification
 
Scoring, term weighting and the vector space
Scoring, term weighting and the vector spaceScoring, term weighting and the vector space
Scoring, term weighting and the vector space
 
Introduction to data mining
Introduction to data miningIntroduction to data mining
Introduction to data mining
 

Recently uploaded

VIP Call Girls in Amravati Aarohi 8250192130 Independent Escort Service Amravati
VIP Call Girls in Amravati Aarohi 8250192130 Independent Escort Service AmravatiVIP Call Girls in Amravati Aarohi 8250192130 Independent Escort Service Amravati
VIP Call Girls in Amravati Aarohi 8250192130 Independent Escort Service AmravatiSuhani Kapoor
 
CebaBaby dropshipping via API with DroFX.pptx
CebaBaby dropshipping via API with DroFX.pptxCebaBaby dropshipping via API with DroFX.pptx
CebaBaby dropshipping via API with DroFX.pptxolyaivanovalion
 
BPAC WITH UFSBI GENERAL PRESENTATION 18_05_2017-1.pptx
BPAC WITH UFSBI GENERAL PRESENTATION 18_05_2017-1.pptxBPAC WITH UFSBI GENERAL PRESENTATION 18_05_2017-1.pptx
BPAC WITH UFSBI GENERAL PRESENTATION 18_05_2017-1.pptxMohammedJunaid861692
 
Invezz.com - Grow your wealth with trading signals
Invezz.com - Grow your wealth with trading signalsInvezz.com - Grow your wealth with trading signals
Invezz.com - Grow your wealth with trading signalsInvezz1
 
Midocean dropshipping via API with DroFx
Midocean dropshipping via API with DroFxMidocean dropshipping via API with DroFx
Midocean dropshipping via API with DroFxolyaivanovalion
 
Delhi Call Girls Punjabi Bagh 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip Call
Delhi Call Girls Punjabi Bagh 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip CallDelhi Call Girls Punjabi Bagh 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip Call
Delhi Call Girls Punjabi Bagh 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip Callshivangimorya083
 
Low Rate Call Girls Bhilai Anika 8250192130 Independent Escort Service Bhilai
Low Rate Call Girls Bhilai Anika 8250192130 Independent Escort Service BhilaiLow Rate Call Girls Bhilai Anika 8250192130 Independent Escort Service Bhilai
Low Rate Call Girls Bhilai Anika 8250192130 Independent Escort Service BhilaiSuhani Kapoor
 
Log Analysis using OSSEC sasoasasasas.pptx
Log Analysis using OSSEC sasoasasasas.pptxLog Analysis using OSSEC sasoasasasas.pptx
Log Analysis using OSSEC sasoasasasas.pptxJohnnyPlasten
 
VIP High Class Call Girls Jamshedpur Anushka 8250192130 Independent Escort Se...
VIP High Class Call Girls Jamshedpur Anushka 8250192130 Independent Escort Se...VIP High Class Call Girls Jamshedpur Anushka 8250192130 Independent Escort Se...
VIP High Class Call Girls Jamshedpur Anushka 8250192130 Independent Escort Se...Suhani Kapoor
 
April 2024 - Crypto Market Report's Analysis
April 2024 - Crypto Market Report's AnalysisApril 2024 - Crypto Market Report's Analysis
April 2024 - Crypto Market Report's Analysismanisha194592
 
Halmar dropshipping via API with DroFx
Halmar  dropshipping  via API with DroFxHalmar  dropshipping  via API with DroFx
Halmar dropshipping via API with DroFxolyaivanovalion
 
Schema on read is obsolete. Welcome metaprogramming..pdf
Schema on read is obsolete. Welcome metaprogramming..pdfSchema on read is obsolete. Welcome metaprogramming..pdf
Schema on read is obsolete. Welcome metaprogramming..pdfLars Albertsson
 
Smarteg dropshipping via API with DroFx.pptx
Smarteg dropshipping via API with DroFx.pptxSmarteg dropshipping via API with DroFx.pptx
Smarteg dropshipping via API with DroFx.pptxolyaivanovalion
 
代办国外大学文凭《原版美国UCLA文凭证书》加州大学洛杉矶分校毕业证制作成绩单修改
代办国外大学文凭《原版美国UCLA文凭证书》加州大学洛杉矶分校毕业证制作成绩单修改代办国外大学文凭《原版美国UCLA文凭证书》加州大学洛杉矶分校毕业证制作成绩单修改
代办国外大学文凭《原版美国UCLA文凭证书》加州大学洛杉矶分校毕业证制作成绩单修改atducpo
 
(PARI) Call Girls Wanowrie ( 7001035870 ) HI-Fi Pune Escorts Service
(PARI) Call Girls Wanowrie ( 7001035870 ) HI-Fi Pune Escorts Service(PARI) Call Girls Wanowrie ( 7001035870 ) HI-Fi Pune Escorts Service
(PARI) Call Girls Wanowrie ( 7001035870 ) HI-Fi Pune Escorts Serviceranjana rawat
 
VIP Call Girls Service Miyapur Hyderabad Call +91-8250192130
VIP Call Girls Service Miyapur Hyderabad Call +91-8250192130VIP Call Girls Service Miyapur Hyderabad Call +91-8250192130
VIP Call Girls Service Miyapur Hyderabad Call +91-8250192130Suhani Kapoor
 
Edukaciniai dropshipping via API with DroFx
Edukaciniai dropshipping via API with DroFxEdukaciniai dropshipping via API with DroFx
Edukaciniai dropshipping via API with DroFxolyaivanovalion
 
Data-Analysis for Chicago Crime Data 2023
Data-Analysis for Chicago Crime Data  2023Data-Analysis for Chicago Crime Data  2023
Data-Analysis for Chicago Crime Data 2023ymrp368
 
Delhi Call Girls CP 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip Call
Delhi Call Girls CP 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip CallDelhi Call Girls CP 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip Call
Delhi Call Girls CP 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip Callshivangimorya083
 

Recently uploaded (20)

VIP Call Girls in Amravati Aarohi 8250192130 Independent Escort Service Amravati
VIP Call Girls in Amravati Aarohi 8250192130 Independent Escort Service AmravatiVIP Call Girls in Amravati Aarohi 8250192130 Independent Escort Service Amravati
VIP Call Girls in Amravati Aarohi 8250192130 Independent Escort Service Amravati
 
CebaBaby dropshipping via API with DroFX.pptx
CebaBaby dropshipping via API with DroFX.pptxCebaBaby dropshipping via API with DroFX.pptx
CebaBaby dropshipping via API with DroFX.pptx
 
BPAC WITH UFSBI GENERAL PRESENTATION 18_05_2017-1.pptx
BPAC WITH UFSBI GENERAL PRESENTATION 18_05_2017-1.pptxBPAC WITH UFSBI GENERAL PRESENTATION 18_05_2017-1.pptx
BPAC WITH UFSBI GENERAL PRESENTATION 18_05_2017-1.pptx
 
Invezz.com - Grow your wealth with trading signals
Invezz.com - Grow your wealth with trading signalsInvezz.com - Grow your wealth with trading signals
Invezz.com - Grow your wealth with trading signals
 
Midocean dropshipping via API with DroFx
Midocean dropshipping via API with DroFxMidocean dropshipping via API with DroFx
Midocean dropshipping via API with DroFx
 
Delhi Call Girls Punjabi Bagh 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip Call
Delhi Call Girls Punjabi Bagh 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip CallDelhi Call Girls Punjabi Bagh 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip Call
Delhi Call Girls Punjabi Bagh 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip Call
 
Low Rate Call Girls Bhilai Anika 8250192130 Independent Escort Service Bhilai
Low Rate Call Girls Bhilai Anika 8250192130 Independent Escort Service BhilaiLow Rate Call Girls Bhilai Anika 8250192130 Independent Escort Service Bhilai
Low Rate Call Girls Bhilai Anika 8250192130 Independent Escort Service Bhilai
 
꧁❤ Aerocity Call Girls Service Aerocity Delhi ❤꧂ 9999965857 ☎️ Hard And Sexy ...
꧁❤ Aerocity Call Girls Service Aerocity Delhi ❤꧂ 9999965857 ☎️ Hard And Sexy ...꧁❤ Aerocity Call Girls Service Aerocity Delhi ❤꧂ 9999965857 ☎️ Hard And Sexy ...
꧁❤ Aerocity Call Girls Service Aerocity Delhi ❤꧂ 9999965857 ☎️ Hard And Sexy ...
 
Log Analysis using OSSEC sasoasasasas.pptx
Log Analysis using OSSEC sasoasasasas.pptxLog Analysis using OSSEC sasoasasasas.pptx
Log Analysis using OSSEC sasoasasasas.pptx
 
VIP High Class Call Girls Jamshedpur Anushka 8250192130 Independent Escort Se...
VIP High Class Call Girls Jamshedpur Anushka 8250192130 Independent Escort Se...VIP High Class Call Girls Jamshedpur Anushka 8250192130 Independent Escort Se...
VIP High Class Call Girls Jamshedpur Anushka 8250192130 Independent Escort Se...
 
April 2024 - Crypto Market Report's Analysis
April 2024 - Crypto Market Report's AnalysisApril 2024 - Crypto Market Report's Analysis
April 2024 - Crypto Market Report's Analysis
 
Halmar dropshipping via API with DroFx
Halmar  dropshipping  via API with DroFxHalmar  dropshipping  via API with DroFx
Halmar dropshipping via API with DroFx
 
Schema on read is obsolete. Welcome metaprogramming..pdf
Schema on read is obsolete. Welcome metaprogramming..pdfSchema on read is obsolete. Welcome metaprogramming..pdf
Schema on read is obsolete. Welcome metaprogramming..pdf
 
Smarteg dropshipping via API with DroFx.pptx
Smarteg dropshipping via API with DroFx.pptxSmarteg dropshipping via API with DroFx.pptx
Smarteg dropshipping via API with DroFx.pptx
 
代办国外大学文凭《原版美国UCLA文凭证书》加州大学洛杉矶分校毕业证制作成绩单修改
代办国外大学文凭《原版美国UCLA文凭证书》加州大学洛杉矶分校毕业证制作成绩单修改代办国外大学文凭《原版美国UCLA文凭证书》加州大学洛杉矶分校毕业证制作成绩单修改
代办国外大学文凭《原版美国UCLA文凭证书》加州大学洛杉矶分校毕业证制作成绩单修改
 
(PARI) Call Girls Wanowrie ( 7001035870 ) HI-Fi Pune Escorts Service
(PARI) Call Girls Wanowrie ( 7001035870 ) HI-Fi Pune Escorts Service(PARI) Call Girls Wanowrie ( 7001035870 ) HI-Fi Pune Escorts Service
(PARI) Call Girls Wanowrie ( 7001035870 ) HI-Fi Pune Escorts Service
 
VIP Call Girls Service Miyapur Hyderabad Call +91-8250192130
VIP Call Girls Service Miyapur Hyderabad Call +91-8250192130VIP Call Girls Service Miyapur Hyderabad Call +91-8250192130
VIP Call Girls Service Miyapur Hyderabad Call +91-8250192130
 
Edukaciniai dropshipping via API with DroFx
Edukaciniai dropshipping via API with DroFxEdukaciniai dropshipping via API with DroFx
Edukaciniai dropshipping via API with DroFx
 
Data-Analysis for Chicago Crime Data 2023
Data-Analysis for Chicago Crime Data  2023Data-Analysis for Chicago Crime Data  2023
Data-Analysis for Chicago Crime Data 2023
 
Delhi Call Girls CP 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip Call
Delhi Call Girls CP 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip CallDelhi Call Girls CP 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip Call
Delhi Call Girls CP 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip Call
 

Bayes’ theorem and logistic regression

  • 1.
  • 2.  Bayes’ theorem gives the relationship between the probabilities of A and B, P(A) and P(B), and the conditional probabilities of A given B and B given A, P(A|B) and P(B|A), in its most common form P(A|B)= 𝑃 𝐵 𝐴 𝑃(𝐴) 𝑃(𝐵)  In Bayesian interpretation, probability measures the degree of belief. Bayes theorem links the belief in a proposition before and after accounting for an evidence.  For proposition A and evidence B:  P(A), the prior, is the initial degree of belief in A  P(A|B), the posterior, is the degree of belief having accounted for B  The quotient P(B|A)/P(B) represents the support B provides for A
  • 3.  The probability model for a classifier is a conditional model p(C|F1, …., Fn), over a dependent class variable C, with a small number of outcomes or classes conditioned on several feature variables F1 through Fn .  Problem – large number of features or features that can take large number of values makes the probability tables infeasible  Using Bayesian theorem p(C|F1, …., Fn) = 𝒑 𝑪 𝒑(𝑭 𝟏 ,…….𝑭𝒏|𝑪) 𝒑(𝑭 𝟏 ,…….𝑭𝒏)  in plain English, posterior= 𝑝𝑟𝑖𝑜𝑟 ∗𝑙𝑖𝑘𝑒𝑙𝑖ℎ𝑜𝑜𝑑 𝑒𝑣𝑖𝑑𝑒𝑛𝑐𝑒
  • 4.  Since the denominator is not dependent on C and the values of the features Fi are given, so that the denominator is effectively constant. The numerator is equivalent to the joint probability model p(C,F1, …., Fn ).  Using the chain rule for repeated applications of definition of conditional probability  Role of Naïve condition: assume that the feature Fi is conditionally independent of every other feature Fj, for j≠i given the category C.
  • 5.  The joint model can be represented as  Under conditional distribution over the class variable  Where z=p(F1, ….., Fn) is a scaling factor
  • 6.  Naïve Bayes classifier combines this model with a decision rule.  Most common rule is to pick hypothesis that is most probable, known as maximum a posteriori  The probability of a document F being in class c is computed as  P(F|c) is the conditional probability of term F occurring in a document of class c.  It is a measure of how much evidence F contributes that c is a correct class.  P(c) is the prior probability of a document occurring in class c.
  • 7.  Statistical classification model  Predicts binary response from a binary predictor for predicting the outcome of a categorical dependent variable  Logistic regression measures the relationship between a categorical dependent variable and one or more independent variable  Applications:  medical and social science field like Trauma and Injury Severity Score (TRISS), used to predict mortality in injured patients  used to predict whether a patient has diabetes based on observed characteristics like age, gender, BMI  Predict whether a person will vote for congress or BJP based on age, income, gender, race, state of residency
  • 8.  Classification  Binomial or Binary logistic regression deals with variable in which the observed outcome have two possible types ex dead or alive  Outcome is coded as 0 or 1  Straightforward interpretation  Multinomial logistic regression deals with situation where there are three or more outcomes  Logistic regression is used for predicting binary outcomes rather than continuous  Takes the natural logarithm of odds of the logit transformation
  • 9.  Selects a subset of terms occurring in the training set and uses this subset as features in text classification  Serves two main purposes:  First, makes training and applying classifier more efficient by decreasing the size of effective vocabulary  Increases the accuracy by eliminating noise features  A noise feature is one which when added to the document representation, increases the classification error on new data.  Feature selection replaces the complex classifier (using all features) with a simpler one (using a subset of features)
  • 10.  Mutual Information measures how much information the presence / absence of a term contributes to making the correct classification decision on c  X2 Feature Selection test’s the independence of two events  Frequency-based feature selection selects terms that are most common in the class.  frequency can be either defined as document frequency – documents in class c that contain the terms t  Collection frequency – tokens of t that occur in documents in c  document frequency -> Bernoulli model  Collection frequency -> multinomial model  Feature selection for multiple classifiers selects single set of features instead of different one for each classifier

Editor's Notes

  1. Maximum a Posteriori probability estimate is a mode of the posterior distribution. Posteriori probability of a random event or an uncertain proposition is the conditional probability assigned after the relevant evidence is taken into account. ‘Posteriori’ means taking into account the relevant evidence related to the particular case being examined.