SlideShare ist ein Scribd-Unternehmen logo
1 von 17
Pattern
       Classification


All materials in these slides were taken from
   Pattern Classification (2nd ed) by R. O.
Duda, P. E. Hart and D. G. Stork, John Wiley
                 & Sons, 2000
 with the permission of the authors and the
                   publisher
Chapter 2 (part 3)
      Bayesian Decision Theory
         (Sections 2-6,2-9)


• Discriminant Functions for the Normal Density
• Bayes Decision Theory – Discrete Features
3
        Discriminant Functions for the
               Normal Density
 • We saw that the minimum error-rate
    classification can be achieved by the
    discriminant function

    gi(x) = ln P(x | ωi) + ln P(ωi)

 • Case of multivariate normal
                           −1
             1                           d       1
g i ( x ) = − ( x − µ i ) ∑ ( x − µ i ) − ln 2π − ln Σ i + ln P ( ω i )
                         t

             2              i            2       2


                                                       Pattern Classification, Chapter 2 (Part 3)
4




•   Case Σi = σ2.I    (I stands for the identity matrix)



g i ( x ) = w it x + w i 0 (linear discrimina nt function)
where :
              µi            1
       wi = 2 ; wi 0 = −        µ it µ i + ln P ( ω i )
             σ             2σ 2
( ω i 0 is called the threshold for the ith category! )


                                               Pattern Classification, Chapter 2 (Part 3)
5




• A classifier that uses linear discriminant functions
  is called “a linear machine”


• The decision surfaces for a linear machine are
  pieces of hyperplanes defined by:

                    gi(x) = gj(x)




                                      Pattern Classification, Chapter 2 (Part 3)
6




Pattern Classification, Chapter 2 (Part 3)
7



• The hyperplane separating R and R
                                  i         j


      1                   σ2             P( ωi )
  x0 = ( µ i + µ j ) −                ln          ( µi − µ j )
      2                µi − µ j
                                  2
                                         P( ω j )


always orthogonal to the line linking the means!


                                   1
 if P ( ω i ) = P ( ω j ) then x0 = ( µ i + µ j )
                                   2

                                            Pattern Classification, Chapter 2 (Part 3)
8




Pattern Classification, Chapter 2 (Part 3)
9




Pattern Classification, Chapter 2 (Part 3)
10


• Case Σ = Σ (covariance of all classes are
             i
  identical but arbitrary!)

   • Hyperplane separating R and R    i           j




    1
x0 = ( µ i + µ j ) −
                           [                  ]
                        ln P ( ω i ) / P ( ω j )
                                                 .( µ i − µ j )
    2                ( µi − µ j ) Σ ( µi − µ j )
                                 t   −1




      (the hyperplane separating Ri and Rj is generally
      not orthogonal to the line between the means!)


                                                      Pattern Classification, Chapter 2 (Part 3)
11




Pattern Classification, Chapter 2 (Part 3)
12




Pattern Classification, Chapter 2 (Part 3)
13

• Case Σ = arbitrary
            i


  •   The covariance matrices are different for each category

                       g i ( x ) = x tW i x + w it x = w i 0
           where :
                         1 −1
                Wi = − Σ i
                         2
                w i = Σ i−1 µ i
                          1 t −1        1
                 w i 0 = − µ i Σ i µ i − ln Σ i + ln P ( ω i )
                          2             2

      (Hyperquadrics which are: hyperplanes, pairs of
      hyperplanes, hyperspheres, hyperellipsoids,
      hyperparaboloids, hyperhyperboloids)
                                                  Pattern Classification, Chapter 2 (Part 3)
14




Pattern Classification, Chapter 2 (Part 3)
15




Pattern Classification, Chapter 2 (Part 3)
16

        Bayes Decision Theory – Discrete
                   Features

•   Components of x are binary or integer valued, x can
    take only one of m discrete values
                      v1, v2, …, vm


•   Case of independent binary features in 2 category
    problem
    Let x = [x1, x2, …, xd ]t where each xi is either 0 or 1, with
    probabilities:

                pi = P(xi = 1 | ω1)
                qi = P(xi = 1 | ω2)
                                               Pattern Classification, Chapter 2 (Part 3)
17


• The discriminant function in this case is:
              d
   g ( x ) = ∑ w i x i + w0
             i =1

   where :
                 pi ( 1 − q i )
        w i = ln                  i = 1 ,..., d
                 q i ( 1 − pi )
   and :
                  1 − pi
                    d
                              P( ω1 )
        w0 = ∑ ln        + ln
             i =1 1 − qi      P( ω 2 )
   decide ω 1 if g(x) > 0 and ω 2 if g(x) ≤ 0
                                         Pattern Classification, Chapter 2 (Part 3)

Weitere ähnliche Inhalte

Was ist angesagt?

Generalization of Compositons of Cellular Automata on Groups
Generalization of Compositons of Cellular Automata on GroupsGeneralization of Compositons of Cellular Automata on Groups
Generalization of Compositons of Cellular Automata on GroupsYoshihiro Mizoguchi
 
Structural VAR: the AB model
Structural VAR: the AB modelStructural VAR: the AB model
Structural VAR: the AB modelAnissa ATMANI
 
Univariate Financial Time Series Analysis
Univariate Financial Time Series AnalysisUnivariate Financial Time Series Analysis
Univariate Financial Time Series AnalysisAnissa ATMANI
 
Lesson 16: Inverse Trigonometric Functions
Lesson 16: Inverse Trigonometric FunctionsLesson 16: Inverse Trigonometric Functions
Lesson 16: Inverse Trigonometric FunctionsMatthew Leingang
 
Introduction to modern time series analysis
Introduction to modern time series analysisIntroduction to modern time series analysis
Introduction to modern time series analysisSpringer
 
Different Quantum Spectra For The Same Classical System
Different Quantum Spectra For The Same Classical SystemDifferent Quantum Spectra For The Same Classical System
Different Quantum Spectra For The Same Classical Systemvcuesta
 
Complex form fourier series
Complex form fourier seriesComplex form fourier series
Complex form fourier seriesderry92
 
[Vvedensky d.] group_theory,_problems_and_solution(book_fi.org)
[Vvedensky d.] group_theory,_problems_and_solution(book_fi.org)[Vvedensky d.] group_theory,_problems_and_solution(book_fi.org)
[Vvedensky d.] group_theory,_problems_and_solution(book_fi.org)Dabe Milli
 
Neural network Algos formulas
Neural network Algos formulasNeural network Algos formulas
Neural network Algos formulasZarnigar Altaf
 
Optimal Finite Difference Grids for Elliptic and Parabolic PDEs with Applicat...
Optimal Finite Difference Grids for Elliptic and Parabolic PDEs with Applicat...Optimal Finite Difference Grids for Elliptic and Parabolic PDEs with Applicat...
Optimal Finite Difference Grids for Elliptic and Parabolic PDEs with Applicat...Alex (Oleksiy) Varfolomiyev
 
On Convergence of Jungck Type Iteration for Certain Contractive Conditions
On Convergence of Jungck Type Iteration for Certain Contractive ConditionsOn Convergence of Jungck Type Iteration for Certain Contractive Conditions
On Convergence of Jungck Type Iteration for Certain Contractive Conditionsresearchinventy
 
Lecture on solving1
Lecture on solving1Lecture on solving1
Lecture on solving1NBER
 

Was ist angesagt? (18)

Generalization of Compositons of Cellular Automata on Groups
Generalization of Compositons of Cellular Automata on GroupsGeneralization of Compositons of Cellular Automata on Groups
Generalization of Compositons of Cellular Automata on Groups
 
Structural VAR: the AB model
Structural VAR: the AB modelStructural VAR: the AB model
Structural VAR: the AB model
 
Univariate Financial Time Series Analysis
Univariate Financial Time Series AnalysisUnivariate Financial Time Series Analysis
Univariate Financial Time Series Analysis
 
Lesson 16: Inverse Trigonometric Functions
Lesson 16: Inverse Trigonometric FunctionsLesson 16: Inverse Trigonometric Functions
Lesson 16: Inverse Trigonometric Functions
 
Gz3113501354
Gz3113501354Gz3113501354
Gz3113501354
 
Lesson 10: The Chain Rule
Lesson 10: The Chain RuleLesson 10: The Chain Rule
Lesson 10: The Chain Rule
 
Introduction to modern time series analysis
Introduction to modern time series analysisIntroduction to modern time series analysis
Introduction to modern time series analysis
 
Chapter 5 (maths 3)
Chapter 5 (maths 3)Chapter 5 (maths 3)
Chapter 5 (maths 3)
 
Different Quantum Spectra For The Same Classical System
Different Quantum Spectra For The Same Classical SystemDifferent Quantum Spectra For The Same Classical System
Different Quantum Spectra For The Same Classical System
 
Complex form fourier series
Complex form fourier seriesComplex form fourier series
Complex form fourier series
 
Momentum sudut total
Momentum sudut totalMomentum sudut total
Momentum sudut total
 
Gm2511821187
Gm2511821187Gm2511821187
Gm2511821187
 
[Vvedensky d.] group_theory,_problems_and_solution(book_fi.org)
[Vvedensky d.] group_theory,_problems_and_solution(book_fi.org)[Vvedensky d.] group_theory,_problems_and_solution(book_fi.org)
[Vvedensky d.] group_theory,_problems_and_solution(book_fi.org)
 
Neural network Algos formulas
Neural network Algos formulasNeural network Algos formulas
Neural network Algos formulas
 
Krishna
KrishnaKrishna
Krishna
 
Optimal Finite Difference Grids for Elliptic and Parabolic PDEs with Applicat...
Optimal Finite Difference Grids for Elliptic and Parabolic PDEs with Applicat...Optimal Finite Difference Grids for Elliptic and Parabolic PDEs with Applicat...
Optimal Finite Difference Grids for Elliptic and Parabolic PDEs with Applicat...
 
On Convergence of Jungck Type Iteration for Certain Contractive Conditions
On Convergence of Jungck Type Iteration for Certain Contractive ConditionsOn Convergence of Jungck Type Iteration for Certain Contractive Conditions
On Convergence of Jungck Type Iteration for Certain Contractive Conditions
 
Lecture on solving1
Lecture on solving1Lecture on solving1
Lecture on solving1
 

Ähnlich wie Pr1

Ann chapter-3-single layerperceptron20021031
Ann chapter-3-single layerperceptron20021031Ann chapter-3-single layerperceptron20021031
Ann chapter-3-single layerperceptron20021031frdos
 
11.0001www.iiste.org call for paper.differential approach to cardioid distrib...
11.0001www.iiste.org call for paper.differential approach to cardioid distrib...11.0001www.iiste.org call for paper.differential approach to cardioid distrib...
11.0001www.iiste.org call for paper.differential approach to cardioid distrib...Alexander Decker
 
1.differential approach to cardioid distribution -1-6
1.differential approach to cardioid distribution -1-61.differential approach to cardioid distribution -1-6
1.differential approach to cardioid distribution -1-6Alexander Decker
 
02 2d systems matrix
02 2d systems matrix02 2d systems matrix
02 2d systems matrixRumah Belajar
 
A new class of a stable implicit schemes for treatment of stiff
A new class of a stable implicit schemes for treatment of stiffA new class of a stable implicit schemes for treatment of stiff
A new class of a stable implicit schemes for treatment of stiffAlexander Decker
 
Normal density and discreminant analysis
Normal density and discreminant analysisNormal density and discreminant analysis
Normal density and discreminant analysisVARUN KUMAR
 
The width of an ideal chain
The width of an ideal chainThe width of an ideal chain
The width of an ideal chaincypztm
 
Presentation cm2011
Presentation cm2011Presentation cm2011
Presentation cm2011antigonon
 
Presentation cm2011
Presentation cm2011Presentation cm2011
Presentation cm2011antigonon
 
Maths assignment
Maths assignmentMaths assignment
Maths assignmentNtshima
 

Ähnlich wie Pr1 (20)

YSC 2013
YSC 2013YSC 2013
YSC 2013
 
Gz3113501354
Gz3113501354Gz3113501354
Gz3113501354
 
Gz3113501354
Gz3113501354Gz3113501354
Gz3113501354
 
Ann chapter-3-single layerperceptron20021031
Ann chapter-3-single layerperceptron20021031Ann chapter-3-single layerperceptron20021031
Ann chapter-3-single layerperceptron20021031
 
Cluster analysis
Cluster analysisCluster analysis
Cluster analysis
 
11.0001www.iiste.org call for paper.differential approach to cardioid distrib...
11.0001www.iiste.org call for paper.differential approach to cardioid distrib...11.0001www.iiste.org call for paper.differential approach to cardioid distrib...
11.0001www.iiste.org call for paper.differential approach to cardioid distrib...
 
1.differential approach to cardioid distribution -1-6
1.differential approach to cardioid distribution -1-61.differential approach to cardioid distribution -1-6
1.differential approach to cardioid distribution -1-6
 
02 2d systems matrix
02 2d systems matrix02 2d systems matrix
02 2d systems matrix
 
A new class of a stable implicit schemes for treatment of stiff
A new class of a stable implicit schemes for treatment of stiffA new class of a stable implicit schemes for treatment of stiff
A new class of a stable implicit schemes for treatment of stiff
 
Normal density and discreminant analysis
Normal density and discreminant analysisNormal density and discreminant analysis
Normal density and discreminant analysis
 
The width of an ideal chain
The width of an ideal chainThe width of an ideal chain
The width of an ideal chain
 
Holographic Cotton Tensor
Holographic Cotton TensorHolographic Cotton Tensor
Holographic Cotton Tensor
 
17.04.2012 m.petrov
17.04.2012 m.petrov17.04.2012 m.petrov
17.04.2012 m.petrov
 
Presentation cm2011
Presentation cm2011Presentation cm2011
Presentation cm2011
 
Presentation cm2011
Presentation cm2011Presentation cm2011
Presentation cm2011
 
Metric Embeddings and Expanders
Metric Embeddings and ExpandersMetric Embeddings and Expanders
Metric Embeddings and Expanders
 
Maths assignment
Maths assignmentMaths assignment
Maths assignment
 
Demo
DemoDemo
Demo
 
Demo
DemoDemo
Demo
 
Demo
DemoDemo
Demo
 

Kürzlich hochgeladen

New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024BookNet Canada
 
Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024BookNet Canada
 
Use of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptx
Use of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptxUse of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptx
Use of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptxLoriGlavin3
 
Take control of your SAP testing with UiPath Test Suite
Take control of your SAP testing with UiPath Test SuiteTake control of your SAP testing with UiPath Test Suite
Take control of your SAP testing with UiPath Test SuiteDianaGray10
 
Gen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdfGen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdfAddepto
 
The Fit for Passkeys for Employee and Consumer Sign-ins: FIDO Paris Seminar.pptx
The Fit for Passkeys for Employee and Consumer Sign-ins: FIDO Paris Seminar.pptxThe Fit for Passkeys for Employee and Consumer Sign-ins: FIDO Paris Seminar.pptx
The Fit for Passkeys for Employee and Consumer Sign-ins: FIDO Paris Seminar.pptxLoriGlavin3
 
The Ultimate Guide to Choosing WordPress Pros and Cons
The Ultimate Guide to Choosing WordPress Pros and ConsThe Ultimate Guide to Choosing WordPress Pros and Cons
The Ultimate Guide to Choosing WordPress Pros and ConsPixlogix Infotech
 
SALESFORCE EDUCATION CLOUD | FEXLE SERVICES
SALESFORCE EDUCATION CLOUD | FEXLE SERVICESSALESFORCE EDUCATION CLOUD | FEXLE SERVICES
SALESFORCE EDUCATION CLOUD | FEXLE SERVICESmohitsingh558521
 
The State of Passkeys with FIDO Alliance.pptx
The State of Passkeys with FIDO Alliance.pptxThe State of Passkeys with FIDO Alliance.pptx
The State of Passkeys with FIDO Alliance.pptxLoriGlavin3
 
Unleash Your Potential - Namagunga Girls Coding Club
Unleash Your Potential - Namagunga Girls Coding ClubUnleash Your Potential - Namagunga Girls Coding Club
Unleash Your Potential - Namagunga Girls Coding ClubKalema Edgar
 
"ML in Production",Oleksandr Bagan
"ML in Production",Oleksandr Bagan"ML in Production",Oleksandr Bagan
"ML in Production",Oleksandr BaganFwdays
 
What is DBT - The Ultimate Data Build Tool.pdf
What is DBT - The Ultimate Data Build Tool.pdfWhat is DBT - The Ultimate Data Build Tool.pdf
What is DBT - The Ultimate Data Build Tool.pdfMounikaPolabathina
 
New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024BookNet Canada
 
From Family Reminiscence to Scholarly Archive .
From Family Reminiscence to Scholarly Archive .From Family Reminiscence to Scholarly Archive .
From Family Reminiscence to Scholarly Archive .Alan Dix
 
DevoxxFR 2024 Reproducible Builds with Apache Maven
DevoxxFR 2024 Reproducible Builds with Apache MavenDevoxxFR 2024 Reproducible Builds with Apache Maven
DevoxxFR 2024 Reproducible Builds with Apache MavenHervé Boutemy
 
TeamStation AI System Report LATAM IT Salaries 2024
TeamStation AI System Report LATAM IT Salaries 2024TeamStation AI System Report LATAM IT Salaries 2024
TeamStation AI System Report LATAM IT Salaries 2024Lonnie McRorey
 
Advanced Computer Architecture – An Introduction
Advanced Computer Architecture – An IntroductionAdvanced Computer Architecture – An Introduction
Advanced Computer Architecture – An IntroductionDilum Bandara
 
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptx
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptxMerck Moving Beyond Passwords: FIDO Paris Seminar.pptx
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptxLoriGlavin3
 
DevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platformsDevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platformsSergiu Bodiu
 
SAP Build Work Zone - Overview L2-L3.pptx
SAP Build Work Zone - Overview L2-L3.pptxSAP Build Work Zone - Overview L2-L3.pptx
SAP Build Work Zone - Overview L2-L3.pptxNavinnSomaal
 

Kürzlich hochgeladen (20)

New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
 
Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
 
Use of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptx
Use of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptxUse of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptx
Use of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptx
 
Take control of your SAP testing with UiPath Test Suite
Take control of your SAP testing with UiPath Test SuiteTake control of your SAP testing with UiPath Test Suite
Take control of your SAP testing with UiPath Test Suite
 
Gen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdfGen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdf
 
The Fit for Passkeys for Employee and Consumer Sign-ins: FIDO Paris Seminar.pptx
The Fit for Passkeys for Employee and Consumer Sign-ins: FIDO Paris Seminar.pptxThe Fit for Passkeys for Employee and Consumer Sign-ins: FIDO Paris Seminar.pptx
The Fit for Passkeys for Employee and Consumer Sign-ins: FIDO Paris Seminar.pptx
 
The Ultimate Guide to Choosing WordPress Pros and Cons
The Ultimate Guide to Choosing WordPress Pros and ConsThe Ultimate Guide to Choosing WordPress Pros and Cons
The Ultimate Guide to Choosing WordPress Pros and Cons
 
SALESFORCE EDUCATION CLOUD | FEXLE SERVICES
SALESFORCE EDUCATION CLOUD | FEXLE SERVICESSALESFORCE EDUCATION CLOUD | FEXLE SERVICES
SALESFORCE EDUCATION CLOUD | FEXLE SERVICES
 
The State of Passkeys with FIDO Alliance.pptx
The State of Passkeys with FIDO Alliance.pptxThe State of Passkeys with FIDO Alliance.pptx
The State of Passkeys with FIDO Alliance.pptx
 
Unleash Your Potential - Namagunga Girls Coding Club
Unleash Your Potential - Namagunga Girls Coding ClubUnleash Your Potential - Namagunga Girls Coding Club
Unleash Your Potential - Namagunga Girls Coding Club
 
"ML in Production",Oleksandr Bagan
"ML in Production",Oleksandr Bagan"ML in Production",Oleksandr Bagan
"ML in Production",Oleksandr Bagan
 
What is DBT - The Ultimate Data Build Tool.pdf
What is DBT - The Ultimate Data Build Tool.pdfWhat is DBT - The Ultimate Data Build Tool.pdf
What is DBT - The Ultimate Data Build Tool.pdf
 
New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
 
From Family Reminiscence to Scholarly Archive .
From Family Reminiscence to Scholarly Archive .From Family Reminiscence to Scholarly Archive .
From Family Reminiscence to Scholarly Archive .
 
DevoxxFR 2024 Reproducible Builds with Apache Maven
DevoxxFR 2024 Reproducible Builds with Apache MavenDevoxxFR 2024 Reproducible Builds with Apache Maven
DevoxxFR 2024 Reproducible Builds with Apache Maven
 
TeamStation AI System Report LATAM IT Salaries 2024
TeamStation AI System Report LATAM IT Salaries 2024TeamStation AI System Report LATAM IT Salaries 2024
TeamStation AI System Report LATAM IT Salaries 2024
 
Advanced Computer Architecture – An Introduction
Advanced Computer Architecture – An IntroductionAdvanced Computer Architecture – An Introduction
Advanced Computer Architecture – An Introduction
 
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptx
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptxMerck Moving Beyond Passwords: FIDO Paris Seminar.pptx
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptx
 
DevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platformsDevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platforms
 
SAP Build Work Zone - Overview L2-L3.pptx
SAP Build Work Zone - Overview L2-L3.pptxSAP Build Work Zone - Overview L2-L3.pptx
SAP Build Work Zone - Overview L2-L3.pptx
 

Pr1

  • 1. Pattern Classification All materials in these slides were taken from Pattern Classification (2nd ed) by R. O. Duda, P. E. Hart and D. G. Stork, John Wiley & Sons, 2000 with the permission of the authors and the publisher
  • 2. Chapter 2 (part 3) Bayesian Decision Theory (Sections 2-6,2-9) • Discriminant Functions for the Normal Density • Bayes Decision Theory – Discrete Features
  • 3. 3 Discriminant Functions for the Normal Density • We saw that the minimum error-rate classification can be achieved by the discriminant function gi(x) = ln P(x | ωi) + ln P(ωi) • Case of multivariate normal −1 1 d 1 g i ( x ) = − ( x − µ i ) ∑ ( x − µ i ) − ln 2π − ln Σ i + ln P ( ω i ) t 2 i 2 2 Pattern Classification, Chapter 2 (Part 3)
  • 4. 4 • Case Σi = σ2.I (I stands for the identity matrix) g i ( x ) = w it x + w i 0 (linear discrimina nt function) where : µi 1 wi = 2 ; wi 0 = − µ it µ i + ln P ( ω i ) σ 2σ 2 ( ω i 0 is called the threshold for the ith category! ) Pattern Classification, Chapter 2 (Part 3)
  • 5. 5 • A classifier that uses linear discriminant functions is called “a linear machine” • The decision surfaces for a linear machine are pieces of hyperplanes defined by: gi(x) = gj(x) Pattern Classification, Chapter 2 (Part 3)
  • 7. 7 • The hyperplane separating R and R i j 1 σ2 P( ωi ) x0 = ( µ i + µ j ) − ln ( µi − µ j ) 2 µi − µ j 2 P( ω j ) always orthogonal to the line linking the means! 1 if P ( ω i ) = P ( ω j ) then x0 = ( µ i + µ j ) 2 Pattern Classification, Chapter 2 (Part 3)
  • 10. 10 • Case Σ = Σ (covariance of all classes are i identical but arbitrary!) • Hyperplane separating R and R i j 1 x0 = ( µ i + µ j ) − [ ] ln P ( ω i ) / P ( ω j ) .( µ i − µ j ) 2 ( µi − µ j ) Σ ( µi − µ j ) t −1 (the hyperplane separating Ri and Rj is generally not orthogonal to the line between the means!) Pattern Classification, Chapter 2 (Part 3)
  • 13. 13 • Case Σ = arbitrary i • The covariance matrices are different for each category g i ( x ) = x tW i x + w it x = w i 0 where : 1 −1 Wi = − Σ i 2 w i = Σ i−1 µ i 1 t −1 1 w i 0 = − µ i Σ i µ i − ln Σ i + ln P ( ω i ) 2 2 (Hyperquadrics which are: hyperplanes, pairs of hyperplanes, hyperspheres, hyperellipsoids, hyperparaboloids, hyperhyperboloids) Pattern Classification, Chapter 2 (Part 3)
  • 16. 16 Bayes Decision Theory – Discrete Features • Components of x are binary or integer valued, x can take only one of m discrete values v1, v2, …, vm • Case of independent binary features in 2 category problem Let x = [x1, x2, …, xd ]t where each xi is either 0 or 1, with probabilities: pi = P(xi = 1 | ω1) qi = P(xi = 1 | ω2) Pattern Classification, Chapter 2 (Part 3)
  • 17. 17 • The discriminant function in this case is: d g ( x ) = ∑ w i x i + w0 i =1 where : pi ( 1 − q i ) w i = ln i = 1 ,..., d q i ( 1 − pi ) and : 1 − pi d P( ω1 ) w0 = ∑ ln + ln i =1 1 − qi P( ω 2 ) decide ω 1 if g(x) > 0 and ω 2 if g(x) ≤ 0 Pattern Classification, Chapter 2 (Part 3)