SlideShare a Scribd company logo
1 of 22
CHAPTER 3:
COMMON PROBABILITY
DISTRIBUTIONS
COMPUTER VISION: MODELS, LEARNING AND
INFERENCE


Lukas Tencer
2




    Computer vision: models, learning and inference. ©2011
                                         Simon J.D. Prince
Why model these complicated
     quantities?
3

    Because we need probability distributions over model parameters as
    well as over data and world state. Hence, some of the distributions
    describe the parameters of the others:




                    Computer vision: models, learning and inference. ©2011
                                                         Simon J.D. Prince
Why model these complicated
       quantities?
4

     Because we need probability distributions over model parameters as
     well as over data and world state. Hence, some of the distributions
     describe the parameters of the others:

     Example:




    Parameters modelled by:




                                                                Models variance
                           Models mean
                      Computer vision: models, learning and inference. ©2011
                                                           Simon J.D. Prince
Bernoulli Distribution
5




                                                or




                                               For short we write:




Bernoulli distribution describes situation where only two
possible outcomes y=0/y=1 or failure/success

Takes a single parameter
               Computer vision: models, learning and inference. ©2011
                                                    Simon J.D. Prince
Beta Distribution
6
    Defined over data                              (i.e. parameter of Bernoulli)




    •   Two parameters     both > 0                               For short we write:
    •   Mean depends on relative values E[ ] =                .
    •   Concentration depends on magnitude
                       Computer vision: models, learning and inference. ©2011
                                                            Simon J.D. Prince
Categorical Distribution
7




                                            or can think of data as vector with all
                                            elements zero except kth e.g. e4 =
                                            [0,0,0,1,0]




                                             For short we write:



Categorical distribution describes situation where K possible
outcomes y=1… y=k.
Takes K parameters                    where
               Computer vision: models, learning and inference. ©2011
                                                    Simon J.D. Prince
Dirichlet Distribution
8
Defined over K values                                    where




    Or for short:                                                            Has k
                                                                             parameters   k>0




                    Computer vision: models, learning and inference. ©2011
                                                         Simon J.D. Prince
Univariate Normal Distribution
9




    For short we write:




                                             Univariate normal distribution
                                             describes single continuous
                                             variable.

                                                  Takes 2 parameters        and
                   Computer vision: models, learning2and inference. ©2011
                                                      >0Simon J.D. Prince
Normal Inverse Gamma
10
      Distribution
     Defined on 2 variables           and      2>0




     or for short

      Four parameters                     and




                    Computer vision: models, learning and inference. ©2011
                                                         Simon J.D. Prince
Multivariate Normal Distribution
11




     For short we write:




     Multivariate normal distribution describes multiple continuous
     variables. Takes 2 parameters
         •    a vector containing mean position,
         •    a symmetric “positive definite” covariance matrix

                                           Positive definite:                 is positive for any real
                           Computer vision: models, learning and inference. ©2011
                                                                Simon J.D. Prince
Types of covariance
12
     Covariance matrix has three forms, termed spherical, diagonal and full




                        Computer vision: models, learning and inference. ©2011
                                                             Simon J.D. Prince
Normal Inverse Wishart
13

     Defined on two variables: a mean vector         and a symmetric positive definite
     matrix, .




     or for short:




     Has four parameters

         •   a positive scalar,
         •   a positive definite matrix
         •   a positive scalar,
         •   a vector
                       Computer vision: models, learning and inference. ©2011
                                                            Simon J.D. Prince
Samples from
     Normal Inverse
14
     Wishart




       (dispersion)        (ave. Covar) (disper of means) (ave. of means)
                  Computer vision: models, learning and inference. ©2011
                                              Simon J.D. Prince
Conjugate Distributions
15


     The pairs of distributions discussed have a special
       relationship: they are conjugate distributions

        Beta is conjugate to Bernouilli
        Dirichlet is conjugate to categorical
        Normal inverse gamma is conjugate to univariate
         normal
        Normal inverse Wishart is conjugate to
         multivariate normal


                 Computer vision: models, learning and inference. ©2011
                                                      Simon J.D. Prince
Conjugate Distributions
16


     When we take product of distribution and it’s conjugate,
      the result has the same form as the conjugate.

     For example, consider the case where




     then



                              a constant                       A new Beta distribution
                 Computer vision: models, learning and inference. ©2011
                                                      Simon J.D. Prince
Example proof
17


     When we take product of distribution and it’s conjugate,
      the result has the same form as the conjugate.




               Computer vision: models, learning and inference. ©2011 Simon J.D.
                                                                                   17
                                             Prince
Bayes’ Rule Terminology
18

           Likelihood – propensity                  Prior – what we know
           for observing a certain                  about y before seeing
           value of x given a certain               x
           value of y




     Posterior – what we                           Evidence – a constant to
     know about y after                            ensure that the left hand
     seeing x                                      side is a valid distribution
                   Computer vision: models, learning and inference. ©2011
                                                    Simon J.D. Prince
Importance of the Conjugate
19
     Relation 1
                                                                1. Choose prior
        Learning parameters:                                      that is conjugate
                                                                   to likelihood




     2. Implies that posterior                     3. Posterior must be a distribution
     must have same form as                        which implies that evidence must
     conjugate prior                               equal constant from conjugate
     distribution                                  relation
                      Computer vision: models, learning and inference. ©2011
                                                       Simon J.D. Prince
Importance of the Conjugate
20
      Relation 2
         Marginalizing over parameters




2. Integral becomes easy --the product                                1. Chosen so
becomes a constant times a distribution                               conjugate to othe
                                                                      term
Integral of constant times probability
distribution
= constant times integral of probability
distribution = constant vision: models, learning and inference.
                  Computer x 1 = constant                        ©2011
                                                      Simon J.D. Prince
Conclusions
21



     • Presented four distributions which model useful
       quantities

     • Presented four other distributions which model
       the parameters of the first four

     • They are paired in a special way – the second set
       is conjugate to the other

     • In the following material we’ll see that this
       relationship is verymodels, learning and inference. ©2011
                  Computer vision:
                                   useful
                                               Simon J.D. Prince
22
            Thank You
            for you attention


Based on:
Computer vision: models, learning and inference. ©2011 Simon J.D. Prince
http://www.computervisionmodels.com/

More Related Content

Similar to Common Probability Distibution

10 cv mil_graphical_models
10 cv mil_graphical_models10 cv mil_graphical_models
10 cv mil_graphical_modelszukun
 
04 cv mil_fitting_probability_models
04 cv mil_fitting_probability_models04 cv mil_fitting_probability_models
04 cv mil_fitting_probability_modelszukun
 
15 cv mil_models_for_transformations
15 cv mil_models_for_transformations15 cv mil_models_for_transformations
15 cv mil_models_for_transformationszukun
 
09 cv mil_classification
09 cv mil_classification09 cv mil_classification
09 cv mil_classificationzukun
 
13 cv mil_preprocessing
13 cv mil_preprocessing13 cv mil_preprocessing
13 cv mil_preprocessingzukun
 
17 cv mil_models_for_shape
17 cv mil_models_for_shape17 cv mil_models_for_shape
17 cv mil_models_for_shapezukun
 
11 cv mil_models_for_chains_and_trees
11 cv mil_models_for_chains_and_trees11 cv mil_models_for_chains_and_trees
11 cv mil_models_for_chains_and_treeszukun
 
16 cv mil_multiple_cameras
16 cv mil_multiple_cameras16 cv mil_multiple_cameras
16 cv mil_multiple_cameraszukun
 
08 cv mil_regression
08 cv mil_regression08 cv mil_regression
08 cv mil_regressionzukun
 
06 cv mil_learning_and_inference
06 cv mil_learning_and_inference06 cv mil_learning_and_inference
06 cv mil_learning_and_inferencezukun
 
20 cv mil_models_for_words
20 cv mil_models_for_words20 cv mil_models_for_words
20 cv mil_models_for_wordszukun
 
18 cv mil_style_and_identity
18 cv mil_style_and_identity18 cv mil_style_and_identity
18 cv mil_style_and_identityzukun
 
14 cv mil_the_pinhole_camera
14 cv mil_the_pinhole_camera14 cv mil_the_pinhole_camera
14 cv mil_the_pinhole_camerazukun
 

Similar to Common Probability Distibution (13)

10 cv mil_graphical_models
10 cv mil_graphical_models10 cv mil_graphical_models
10 cv mil_graphical_models
 
04 cv mil_fitting_probability_models
04 cv mil_fitting_probability_models04 cv mil_fitting_probability_models
04 cv mil_fitting_probability_models
 
15 cv mil_models_for_transformations
15 cv mil_models_for_transformations15 cv mil_models_for_transformations
15 cv mil_models_for_transformations
 
09 cv mil_classification
09 cv mil_classification09 cv mil_classification
09 cv mil_classification
 
13 cv mil_preprocessing
13 cv mil_preprocessing13 cv mil_preprocessing
13 cv mil_preprocessing
 
17 cv mil_models_for_shape
17 cv mil_models_for_shape17 cv mil_models_for_shape
17 cv mil_models_for_shape
 
11 cv mil_models_for_chains_and_trees
11 cv mil_models_for_chains_and_trees11 cv mil_models_for_chains_and_trees
11 cv mil_models_for_chains_and_trees
 
16 cv mil_multiple_cameras
16 cv mil_multiple_cameras16 cv mil_multiple_cameras
16 cv mil_multiple_cameras
 
08 cv mil_regression
08 cv mil_regression08 cv mil_regression
08 cv mil_regression
 
06 cv mil_learning_and_inference
06 cv mil_learning_and_inference06 cv mil_learning_and_inference
06 cv mil_learning_and_inference
 
20 cv mil_models_for_words
20 cv mil_models_for_words20 cv mil_models_for_words
20 cv mil_models_for_words
 
18 cv mil_style_and_identity
18 cv mil_style_and_identity18 cv mil_style_and_identity
18 cv mil_style_and_identity
 
14 cv mil_the_pinhole_camera
14 cv mil_the_pinhole_camera14 cv mil_the_pinhole_camera
14 cv mil_the_pinhole_camera
 

More from Lukas Tencer

Semi-Supervised Learning
Semi-Supervised LearningSemi-Supervised Learning
Semi-Supervised LearningLukas Tencer
 
ICRA: Intelligent Platform for Collaboration and Interaction
ICRA: Intelligent Platform for Collaboration and InteractionICRA: Intelligent Platform for Collaboration and Interaction
ICRA: Intelligent Platform for Collaboration and InteractionLukas Tencer
 
Large Scale Online Learning of Image Similarity Through Ranking
Large Scale Online Learning of Image Similarity Through RankingLarge Scale Online Learning of Image Similarity Through Ranking
Large Scale Online Learning of Image Similarity Through RankingLukas Tencer
 
Slovakia Presentation at Day of Cultures
Slovakia Presentation at Day of CulturesSlovakia Presentation at Day of Cultures
Slovakia Presentation at Day of CulturesLukas Tencer
 
Web-based framework for online sketch-based image retrieval
Web-based framework for online sketch-based image retrievalWeb-based framework for online sketch-based image retrieval
Web-based framework for online sketch-based image retrievalLukas Tencer
 
Supervised Learning of Semantic Classes for Image Annotation and Retrieval
Supervised Learning of Semantic Classes for Image Annotation and RetrievalSupervised Learning of Semantic Classes for Image Annotation and Retrieval
Supervised Learning of Semantic Classes for Image Annotation and RetrievalLukas Tencer
 
Personal Career,Education and skills presentation, 2011
Personal Career,Education and skills presentation, 2011Personal Career,Education and skills presentation, 2011
Personal Career,Education and skills presentation, 2011Lukas Tencer
 
Introduction to Computer Graphics, lesson 1
Introduction to Computer Graphics, lesson 1Introduction to Computer Graphics, lesson 1
Introduction to Computer Graphics, lesson 1Lukas Tencer
 
Computer graphics on web and in mobile devices
Computer graphics on web and in mobile devicesComputer graphics on web and in mobile devices
Computer graphics on web and in mobile devicesLukas Tencer
 
Tracking of objects with known color signature - ELITECH 20
Tracking of objects with known color signature - ELITECH 20Tracking of objects with known color signature - ELITECH 20
Tracking of objects with known color signature - ELITECH 20Lukas Tencer
 

More from Lukas Tencer (11)

Semi-Supervised Learning
Semi-Supervised LearningSemi-Supervised Learning
Semi-Supervised Learning
 
ICRA: Intelligent Platform for Collaboration and Interaction
ICRA: Intelligent Platform for Collaboration and InteractionICRA: Intelligent Platform for Collaboration and Interaction
ICRA: Intelligent Platform for Collaboration and Interaction
 
Large Scale Online Learning of Image Similarity Through Ranking
Large Scale Online Learning of Image Similarity Through RankingLarge Scale Online Learning of Image Similarity Through Ranking
Large Scale Online Learning of Image Similarity Through Ranking
 
Slovakia Presentation at Day of Cultures
Slovakia Presentation at Day of CulturesSlovakia Presentation at Day of Cultures
Slovakia Presentation at Day of Cultures
 
Web-based framework for online sketch-based image retrieval
Web-based framework for online sketch-based image retrievalWeb-based framework for online sketch-based image retrieval
Web-based framework for online sketch-based image retrieval
 
Supervised Learning of Semantic Classes for Image Annotation and Retrieval
Supervised Learning of Semantic Classes for Image Annotation and RetrievalSupervised Learning of Semantic Classes for Image Annotation and Retrieval
Supervised Learning of Semantic Classes for Image Annotation and Retrieval
 
Personal Career,Education and skills presentation, 2011
Personal Career,Education and skills presentation, 2011Personal Career,Education and skills presentation, 2011
Personal Career,Education and skills presentation, 2011
 
Introduction to Computer Graphics, lesson 1
Introduction to Computer Graphics, lesson 1Introduction to Computer Graphics, lesson 1
Introduction to Computer Graphics, lesson 1
 
Computer graphics on web and in mobile devices
Computer graphics on web and in mobile devicesComputer graphics on web and in mobile devices
Computer graphics on web and in mobile devices
 
Telnet and SSH
Telnet and SSHTelnet and SSH
Telnet and SSH
 
Tracking of objects with known color signature - ELITECH 20
Tracking of objects with known color signature - ELITECH 20Tracking of objects with known color signature - ELITECH 20
Tracking of objects with known color signature - ELITECH 20
 

Recently uploaded

Designing IA for AI - Information Architecture Conference 2024
Designing IA for AI - Information Architecture Conference 2024Designing IA for AI - Information Architecture Conference 2024
Designing IA for AI - Information Architecture Conference 2024Enterprise Knowledge
 
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
 
Vertex AI Gemini Prompt Engineering Tips
Vertex AI Gemini Prompt Engineering TipsVertex AI Gemini Prompt Engineering Tips
Vertex AI Gemini Prompt Engineering TipsMiki Katsuragi
 
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
 
Commit 2024 - Secret Management made easy
Commit 2024 - Secret Management made easyCommit 2024 - Secret Management made easy
Commit 2024 - Secret Management made easyAlfredo García Lavilla
 
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
 
How to write a Business Continuity Plan
How to write a Business Continuity PlanHow to write a Business Continuity Plan
How to write a Business Continuity PlanDatabarracks
 
"Debugging python applications inside k8s environment", Andrii Soldatenko
"Debugging python applications inside k8s environment", Andrii Soldatenko"Debugging python applications inside k8s environment", Andrii Soldatenko
"Debugging python applications inside k8s environment", Andrii SoldatenkoFwdays
 
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024BookNet Canada
 
Dev Dives: Streamline document processing with UiPath Studio Web
Dev Dives: Streamline document processing with UiPath Studio WebDev Dives: Streamline document processing with UiPath Studio Web
Dev Dives: Streamline document processing with UiPath Studio WebUiPathCommunity
 
Artificial intelligence in cctv survelliance.pptx
Artificial intelligence in cctv survelliance.pptxArtificial intelligence in cctv survelliance.pptx
Artificial intelligence in cctv survelliance.pptxhariprasad279825
 
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks..."LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...Fwdays
 
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
 
DSPy a system for AI to Write Prompts and Do Fine Tuning
DSPy a system for AI to Write Prompts and Do Fine TuningDSPy a system for AI to Write Prompts and Do Fine Tuning
DSPy a system for AI to Write Prompts and Do Fine TuningLars Bell
 
CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):comworks
 
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
 
Search Engine Optimization SEO PDF for 2024.pdf
Search Engine Optimization SEO PDF for 2024.pdfSearch Engine Optimization SEO PDF for 2024.pdf
Search Engine Optimization SEO PDF for 2024.pdfRankYa
 
Connect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck PresentationConnect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck PresentationSlibray Presentation
 
Powerpoint exploring the locations used in television show Time Clash
Powerpoint exploring the locations used in television show Time ClashPowerpoint exploring the locations used in television show Time Clash
Powerpoint exploring the locations used in television show Time Clashcharlottematthew16
 
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
 

Recently uploaded (20)

Designing IA for AI - Information Architecture Conference 2024
Designing IA for AI - Information Architecture Conference 2024Designing IA for AI - Information Architecture Conference 2024
Designing IA for AI - Information Architecture Conference 2024
 
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
 
Vertex AI Gemini Prompt Engineering Tips
Vertex AI Gemini Prompt Engineering TipsVertex AI Gemini Prompt Engineering Tips
Vertex AI Gemini Prompt Engineering Tips
 
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
 
Commit 2024 - Secret Management made easy
Commit 2024 - Secret Management made easyCommit 2024 - Secret Management made easy
Commit 2024 - Secret Management made easy
 
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
 
How to write a Business Continuity Plan
How to write a Business Continuity PlanHow to write a Business Continuity Plan
How to write a Business Continuity Plan
 
"Debugging python applications inside k8s environment", Andrii Soldatenko
"Debugging python applications inside k8s environment", Andrii Soldatenko"Debugging python applications inside k8s environment", Andrii Soldatenko
"Debugging python applications inside k8s environment", Andrii Soldatenko
 
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
 
Dev Dives: Streamline document processing with UiPath Studio Web
Dev Dives: Streamline document processing with UiPath Studio WebDev Dives: Streamline document processing with UiPath Studio Web
Dev Dives: Streamline document processing with UiPath Studio Web
 
Artificial intelligence in cctv survelliance.pptx
Artificial intelligence in cctv survelliance.pptxArtificial intelligence in cctv survelliance.pptx
Artificial intelligence in cctv survelliance.pptx
 
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks..."LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
 
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
 
DSPy a system for AI to Write Prompts and Do Fine Tuning
DSPy a system for AI to Write Prompts and Do Fine TuningDSPy a system for AI to Write Prompts and Do Fine Tuning
DSPy a system for AI to Write Prompts and Do Fine Tuning
 
CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):
 
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
 
Search Engine Optimization SEO PDF for 2024.pdf
Search Engine Optimization SEO PDF for 2024.pdfSearch Engine Optimization SEO PDF for 2024.pdf
Search Engine Optimization SEO PDF for 2024.pdf
 
Connect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck PresentationConnect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck Presentation
 
Powerpoint exploring the locations used in television show Time Clash
Powerpoint exploring the locations used in television show Time ClashPowerpoint exploring the locations used in television show Time Clash
Powerpoint exploring the locations used in television show Time Clash
 
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
 

Common Probability Distibution

  • 1. CHAPTER 3: COMMON PROBABILITY DISTRIBUTIONS COMPUTER VISION: MODELS, LEARNING AND INFERENCE Lukas Tencer
  • 2. 2 Computer vision: models, learning and inference. ©2011 Simon J.D. Prince
  • 3. Why model these complicated quantities? 3 Because we need probability distributions over model parameters as well as over data and world state. Hence, some of the distributions describe the parameters of the others: Computer vision: models, learning and inference. ©2011 Simon J.D. Prince
  • 4. Why model these complicated quantities? 4 Because we need probability distributions over model parameters as well as over data and world state. Hence, some of the distributions describe the parameters of the others: Example: Parameters modelled by: Models variance Models mean Computer vision: models, learning and inference. ©2011 Simon J.D. Prince
  • 5. Bernoulli Distribution 5 or For short we write: Bernoulli distribution describes situation where only two possible outcomes y=0/y=1 or failure/success Takes a single parameter Computer vision: models, learning and inference. ©2011 Simon J.D. Prince
  • 6. Beta Distribution 6 Defined over data (i.e. parameter of Bernoulli) • Two parameters both > 0 For short we write: • Mean depends on relative values E[ ] = . • Concentration depends on magnitude Computer vision: models, learning and inference. ©2011 Simon J.D. Prince
  • 7. Categorical Distribution 7 or can think of data as vector with all elements zero except kth e.g. e4 = [0,0,0,1,0] For short we write: Categorical distribution describes situation where K possible outcomes y=1… y=k. Takes K parameters where Computer vision: models, learning and inference. ©2011 Simon J.D. Prince
  • 8. Dirichlet Distribution 8 Defined over K values where Or for short: Has k parameters k>0 Computer vision: models, learning and inference. ©2011 Simon J.D. Prince
  • 9. Univariate Normal Distribution 9 For short we write: Univariate normal distribution describes single continuous variable. Takes 2 parameters and Computer vision: models, learning2and inference. ©2011 >0Simon J.D. Prince
  • 10. Normal Inverse Gamma 10 Distribution Defined on 2 variables and 2>0 or for short Four parameters and Computer vision: models, learning and inference. ©2011 Simon J.D. Prince
  • 11. Multivariate Normal Distribution 11 For short we write: Multivariate normal distribution describes multiple continuous variables. Takes 2 parameters • a vector containing mean position, • a symmetric “positive definite” covariance matrix Positive definite: is positive for any real Computer vision: models, learning and inference. ©2011 Simon J.D. Prince
  • 12. Types of covariance 12 Covariance matrix has three forms, termed spherical, diagonal and full Computer vision: models, learning and inference. ©2011 Simon J.D. Prince
  • 13. Normal Inverse Wishart 13 Defined on two variables: a mean vector and a symmetric positive definite matrix, . or for short: Has four parameters • a positive scalar, • a positive definite matrix • a positive scalar, • a vector Computer vision: models, learning and inference. ©2011 Simon J.D. Prince
  • 14. Samples from Normal Inverse 14 Wishart (dispersion) (ave. Covar) (disper of means) (ave. of means) Computer vision: models, learning and inference. ©2011 Simon J.D. Prince
  • 15. Conjugate Distributions 15 The pairs of distributions discussed have a special relationship: they are conjugate distributions  Beta is conjugate to Bernouilli  Dirichlet is conjugate to categorical  Normal inverse gamma is conjugate to univariate normal  Normal inverse Wishart is conjugate to multivariate normal Computer vision: models, learning and inference. ©2011 Simon J.D. Prince
  • 16. Conjugate Distributions 16 When we take product of distribution and it’s conjugate, the result has the same form as the conjugate. For example, consider the case where then a constant A new Beta distribution Computer vision: models, learning and inference. ©2011 Simon J.D. Prince
  • 17. Example proof 17 When we take product of distribution and it’s conjugate, the result has the same form as the conjugate. Computer vision: models, learning and inference. ©2011 Simon J.D. 17 Prince
  • 18. Bayes’ Rule Terminology 18 Likelihood – propensity Prior – what we know for observing a certain about y before seeing value of x given a certain x value of y Posterior – what we Evidence – a constant to know about y after ensure that the left hand seeing x side is a valid distribution Computer vision: models, learning and inference. ©2011 Simon J.D. Prince
  • 19. Importance of the Conjugate 19 Relation 1 1. Choose prior  Learning parameters: that is conjugate to likelihood 2. Implies that posterior 3. Posterior must be a distribution must have same form as which implies that evidence must conjugate prior equal constant from conjugate distribution relation Computer vision: models, learning and inference. ©2011 Simon J.D. Prince
  • 20. Importance of the Conjugate 20 Relation 2  Marginalizing over parameters 2. Integral becomes easy --the product 1. Chosen so becomes a constant times a distribution conjugate to othe term Integral of constant times probability distribution = constant times integral of probability distribution = constant vision: models, learning and inference. Computer x 1 = constant ©2011 Simon J.D. Prince
  • 21. Conclusions 21 • Presented four distributions which model useful quantities • Presented four other distributions which model the parameters of the first four • They are paired in a special way – the second set is conjugate to the other • In the following material we’ll see that this relationship is verymodels, learning and inference. ©2011 Computer vision: useful Simon J.D. Prince
  • 22. 22 Thank You for you attention Based on: Computer vision: models, learning and inference. ©2011 Simon J.D. Prince http://www.computervisionmodels.com/