SlideShare a Scribd company logo
1 of 49
Pattern Classification, Chapter 1
1
Basic Probability
Pattern Classification, Chapter 1
2
Introduction
• Probability is the study of randomness and uncertainty.
• In the early days, probability was associated with games
of chance (gambling).
Pattern Classification, Chapter 1
3
Simple Games Involving Probability
Game: A fair die is rolled. If the result is 2, 3, or 4, you win
$1; if it is 5, you win $2; but if it is 1 or 6, you lose $3.
Should you play this game?
Pattern Classification, Chapter 1
4
Random Experiment
• a random experiment is a process whose outcome is uncertain.
Examples:
• Tossing a coin once or several times
• Picking a card or cards from a deck
• Measuring temperature of patients
• ...
Pattern Classification, Chapter 1
5
Sample Space
The sample space is the set of all possible outcomes.
Simple Events
The individual outcomes are called simple events.
Event
An event is any collection
of one or more simple events
Events & Sample Spaces
Pattern Classification, Chapter 1
6
Example
Experiment: Toss a coin 3 times.
• Sample space Ω
∀ Ω = {HHH, HHT, HTH, HTT, THH, THT, TTH, TTT}.
• Examples of events include
• A = {HHH, HHT,HTH, THH}
= {at least two heads}
• B = {HTT, THT,TTH}
= {exactly two tails.}
Pattern Classification, Chapter 1
7
Basic Concepts (from Set Theory)
• The union of two events A and B, A ∪ B, is the event consisting of
all outcomes that are either in A or in B or in both events.
• The complement of an event A, Ac
, is the set of all outcomes in Ω that
are not in A.
• The intersection of two events A and B, A ∩ B, is the event
consisting of all outcomes that are in both events.
• When two events A and B have no outcomes in common, they are
said to be mutually exclusive, or disjoint, events.
Pattern Classification, Chapter 1
8
Example
Experiment: toss a coin 10 times and the number of heads is observed.
• Let A = { 0, 2, 4, 6, 8, 10}.
• B = { 1, 3, 5, 7, 9}, C = {0, 1, 2, 3, 4, 5}.
• A ∪ B= {0, 1, …, 10} = Ω.
• A ∩ B contains no outcomes. So A and B are mutually exclusive.
• Cc
= {6, 7, 8, 9, 10}, A ∩ C = {0, 2, 4}.
Pattern Classification, Chapter 1
9
Rules
• Commutative Laws:
• A ∪ B = B ∪ A, A ∩ B = B ∩ A
• Associative Laws:
• (A ∪ B) ∪ C = A ∪ (B ∪ C )
• (A ∩ B) ∩ C = A ∩ (B ∩ C) .
• Distributive Laws:
• (A ∪ B) ∩ C = (A ∩ C) ∪ (B ∩ C)
• (A ∩ B) ∪ C = (A ∪ C) ∩ (B ∪ C)
• DeMorgan’s Laws:
.,
1111
c
i
n
i
c
i
n
i
c
i
n
i
c
i
n
i
AAAA ∪∩∩∪ ====
=





=





Pattern Classification, Chapter 1
10
Venn Diagram
Ω
A BA∩B
Pattern Classification, Chapter 1
11
Probability
• A Probability is a number assigned to each subset (events) of a sample
space Ω.
• Probability distributions satisfy the following rules:
Pattern Classification, Chapter 1
12
Axioms of Probability
• For any event A, 0 ≤ P(A) ≤ 1.
• P(Ω) =1.
• If A1, A2, … An is a partition of A, then
P(A) = P(A1) + P(A2)+...+ P(An)
(A1, A2, … An is called a partition of A if A1 ∪ A2 ∪…∪An = A and A1, A2, …
An are mutually exclusive.)
Pattern Classification, Chapter 1
13
Properties of Probability
• For any event A, P(Ac
) = 1 - P(A).
• If A ⊂ B, then P(A) ≤ P(B).
• For any two events A and B,
P(A ∪ B) = P(A) + P(B) - P(A ∩ B).
For three events, A, B, and C,
P(A∪B∪C) = P(A) + P(B) + P(C) -
P(A∩B) - P(A∩C) - P(B∩C) + P(A∩B ∩C).
Pattern Classification, Chapter 1
14
Example
• In a certain population, 10% of the people are rich, 5% are famous,
and 3% are both rich and famous. A person is randomly selected
from this population. What is the chance that the person is
• not rich?
• rich but not famous?
• either rich or famous?
Pattern Classification, Chapter 1
15
Intuitive Development (agrees with axioms)
• Intuitively, the probability of an event a could be
defined as:
Where N(a) is the number that event a happens in n trialsWhere N(a) is the number that event a happens in n trials
Here We Go Again: Not So Basic
Probability
Pattern Classification, Chapter 1
17
More Formal:
• Ω is the Sample Space:
• Contains all possible outcomes of an experiment
• ω in Ω is a single outcome
• A in Ω is a set of outcomes of interest
Pattern Classification, Chapter 1
18
Independence
• The probability of independent events A, B and C is
given by:
P(A,B,C) = P(A)P(B)P(C)
A and B are independent, if knowing that A has happenedA and B are independent, if knowing that A has happened
does not say anything about B happeningdoes not say anything about B happening
Pattern Classification, Chapter 1
19
Bayes Theorem
• Provides a way to convert a-priori probabilities to a-
posteriori probabilities:
Pattern Classification, Chapter 1
20
Conditional Probability
• One of the most useful concepts!
AA
BB
ΩΩ
Pattern Classification, Chapter 1
21
Bayes Theorem
• Provides a way to convert a-priori probabilities to a-
posteriori probabilities:
Pattern Classification, Chapter 1
22
Using Partitions:
• If events Ai are mutually exclusive and partition Ω
Pattern Classification, Chapter 1
23
Random Variables
• A (scalar) random variable X is a function that maps
the outcome of a random event into real scalar
values
ωω
ΩΩ X(X(ωω))
Pattern Classification, Chapter 1
24
Random Variables Distributions
• Cumulative Probability Distribution (CDF):
• Probability Density Function (PDF):Probability Density Function (PDF):
Pattern Classification, Chapter 1
25
Random Distributions:
• From the two previous equations:
Pattern Classification, Chapter 1
26
Uniform Distribution
• A R.V. X that is uniformly distributed between x1 and
x2 has density function:
XX11 XX22
Pattern Classification, Chapter 1
27
Gaussian (Normal) Distribution
• A R.V. X that is normally distributed has density
function:
µµ
Pattern Classification, Chapter 1
28
Statistical Characterizations
• Expectation (Mean Value, First Moment):
•Second Moment:Second Moment:
Pattern Classification, Chapter 1
29
Statistical Characterizations
• Variance of X:
• Standard Deviation of X:
Pattern Classification, Chapter 1
30
Mean Estimation from Samples
• Given a set of N samples from a distribution, we can
estimate the mean of the distribution by:
Pattern Classification, Chapter 1
31
Variance Estimation from Samples
• Given a set of N samples from a distribution, we can
estimate the variance of the distribution by:
Pattern
Classification
Chapter 1: Introduction to Pattern
Recognition (Sections 1.1-1.6)
• Machine Perception
• An Example
• Pattern Recognition Systems
• The Design Cycle
• Learning and Adaptation
• Conclusion
Pattern Classification, Chapter 1
34
Machine Perception
• Build a machine that can recognize patterns:
• Speech recognition
• Fingerprint identification
• OCR (Optical Character Recognition)
• DNA sequence identification
Pattern Classification, Chapter 1
35
An Example
• “Sorting incoming Fish on a conveyor according to
species using optical sensing”
Sea bass
Species
Salmon
Pattern Classification, Chapter 1
36
• Problem Analysis
• Set up a camera and take some sample images to extract
features
• Length
• Lightness
• Width
• Number and shape of fins
• Position of the mouth, etc…
• This is the set of all suggested features to explore for use in our
classifier!
Pattern Classification, Chapter 1
37
• Preprocessing
• Use a segmentation operation to isolate fishes from one
another and from the background
• Information from a single fish is sent to a feature
extractor whose purpose is to reduce the data by
measuring certain features
• The features are passed to a classifier
Pattern Classification, Chapter 1
38
Pattern Classification, Chapter 1
39
• Classification
• Select the length of the fish as a possible feature for
discrimination
Pattern Classification, Chapter 1
40
Pattern Classification, Chapter 1
41
The length is a poor feature alone!
Select the lightness as a possible feature.
Pattern Classification, Chapter 1
42
Pattern Classification, Chapter 1
43
• Threshold decision boundary and cost relationship
• Move our decision boundary toward smaller values of
lightness in order to minimize the cost (reduce the number
of sea bass that are classified salmon!)
Task of decision theory
Pattern Classification, Chapter 1
44
• Adopt the lightness and add the width of the fish
Fish xT
= [x1, x2]
Lightness Width
Pattern Classification, Chapter 1
45
Pattern Classification, Chapter 1
46
• We might add other features that are not correlated
with the ones we already have. A precaution should
be taken not to reduce the performance by adding
“noisy features”
• Ideally, the best decision boundary should be the one
which provides an optimal performance such as in the
following figure:
Pattern Classification, Chapter 1
47
Pattern Classification, Chapter 1
48
• However, our satisfaction is premature because
the central aim of designing a classifier is to
correctly classify novel input
Issue of generalization!
Pattern Classification, Chapter 1
49

More Related Content

Similar to Lecture 3

Basic statistics for algorithmic trading
Basic statistics for algorithmic tradingBasic statistics for algorithmic trading
Basic statistics for algorithmic tradingQuantInsti
 
03_UninformedSearch.pdf
03_UninformedSearch.pdf03_UninformedSearch.pdf
03_UninformedSearch.pdfkaxeca4096
 
Market Basket Analysis in SQL Server Machine Learning Services
Market Basket Analysis in SQL Server Machine Learning ServicesMarket Basket Analysis in SQL Server Machine Learning Services
Market Basket Analysis in SQL Server Machine Learning ServicesLuca Zavarella
 
Probability and statistics
Probability and statisticsProbability and statistics
Probability and statisticsNeil MacIntosh
 
Data Mining Lecture_10(b).pptx
Data Mining Lecture_10(b).pptxData Mining Lecture_10(b).pptx
Data Mining Lecture_10(b).pptxSubrata Kumer Paul
 
Lecture 2-cs648
Lecture 2-cs648Lecture 2-cs648
Lecture 2-cs648Rajiv Omar
 
Linear algebra and probability (Deep Learning chapter 2&3)
Linear algebra and probability (Deep Learning chapter 2&3)Linear algebra and probability (Deep Learning chapter 2&3)
Linear algebra and probability (Deep Learning chapter 2&3)Yan Xu
 
ObjRecog2-17 (1).pptx
ObjRecog2-17 (1).pptxObjRecog2-17 (1).pptx
ObjRecog2-17 (1).pptxssuserc074dd
 
UninformedSearch (2).pptx
UninformedSearch (2).pptxUninformedSearch (2).pptx
UninformedSearch (2).pptxSankarTerli
 
probability.pptx
probability.pptxprobability.pptx
probability.pptxbisan3
 
Decision tree induction
Decision tree inductionDecision tree induction
Decision tree inductionthamizh arasi
 
Coordinate Descent method
Coordinate Descent methodCoordinate Descent method
Coordinate Descent methodSanghyuk Chun
 
SPIE Conference V3.0
SPIE Conference V3.0SPIE Conference V3.0
SPIE Conference V3.0Robert Fry
 
Artificial Neural Network Lect4 : Single Layer Perceptron Classifiers
Artificial Neural Network Lect4 : Single Layer Perceptron ClassifiersArtificial Neural Network Lect4 : Single Layer Perceptron Classifiers
Artificial Neural Network Lect4 : Single Layer Perceptron ClassifiersMohammed Bennamoun
 

Similar to Lecture 3 (20)

Basic statistics for algorithmic trading
Basic statistics for algorithmic tradingBasic statistics for algorithmic trading
Basic statistics for algorithmic trading
 
Probability
ProbabilityProbability
Probability
 
03_UninformedSearch.pdf
03_UninformedSearch.pdf03_UninformedSearch.pdf
03_UninformedSearch.pdf
 
Market Basket Analysis in SQL Server Machine Learning Services
Market Basket Analysis in SQL Server Machine Learning ServicesMarket Basket Analysis in SQL Server Machine Learning Services
Market Basket Analysis in SQL Server Machine Learning Services
 
Chapter7ppt.pdf
Chapter7ppt.pdfChapter7ppt.pdf
Chapter7ppt.pdf
 
Probability and statistics
Probability and statisticsProbability and statistics
Probability and statistics
 
Data Mining Lecture_10(b).pptx
Data Mining Lecture_10(b).pptxData Mining Lecture_10(b).pptx
Data Mining Lecture_10(b).pptx
 
Lecture 2-cs648
Lecture 2-cs648Lecture 2-cs648
Lecture 2-cs648
 
4646150.ppt
4646150.ppt4646150.ppt
4646150.ppt
 
Chi square test
Chi square test Chi square test
Chi square test
 
Linear algebra and probability (Deep Learning chapter 2&3)
Linear algebra and probability (Deep Learning chapter 2&3)Linear algebra and probability (Deep Learning chapter 2&3)
Linear algebra and probability (Deep Learning chapter 2&3)
 
Chapter 5.pptx
Chapter 5.pptxChapter 5.pptx
Chapter 5.pptx
 
ObjRecog2-17 (1).pptx
ObjRecog2-17 (1).pptxObjRecog2-17 (1).pptx
ObjRecog2-17 (1).pptx
 
Probability Theory for Data Scientists
Probability Theory for Data ScientistsProbability Theory for Data Scientists
Probability Theory for Data Scientists
 
UninformedSearch (2).pptx
UninformedSearch (2).pptxUninformedSearch (2).pptx
UninformedSearch (2).pptx
 
probability.pptx
probability.pptxprobability.pptx
probability.pptx
 
Decision tree induction
Decision tree inductionDecision tree induction
Decision tree induction
 
Coordinate Descent method
Coordinate Descent methodCoordinate Descent method
Coordinate Descent method
 
SPIE Conference V3.0
SPIE Conference V3.0SPIE Conference V3.0
SPIE Conference V3.0
 
Artificial Neural Network Lect4 : Single Layer Perceptron Classifiers
Artificial Neural Network Lect4 : Single Layer Perceptron ClassifiersArtificial Neural Network Lect4 : Single Layer Perceptron Classifiers
Artificial Neural Network Lect4 : Single Layer Perceptron Classifiers
 

Recently uploaded

Call Girls Electronic City Just Call 👗 7737669865 👗 Top Class Call Girl Servi...
Call Girls Electronic City Just Call 👗 7737669865 👗 Top Class Call Girl Servi...Call Girls Electronic City Just Call 👗 7737669865 👗 Top Class Call Girl Servi...
Call Girls Electronic City Just Call 👗 7737669865 👗 Top Class Call Girl Servi...amitlee9823
 
Russian Call Girls In Gurgaon ❤️8448577510 ⊹Best Escorts Service In 24/7 Delh...
Russian Call Girls In Gurgaon ❤️8448577510 ⊹Best Escorts Service In 24/7 Delh...Russian Call Girls In Gurgaon ❤️8448577510 ⊹Best Escorts Service In 24/7 Delh...
Russian Call Girls In Gurgaon ❤️8448577510 ⊹Best Escorts Service In 24/7 Delh...lizamodels9
 
Call Girls In Panjim North Goa 9971646499 Genuine Service
Call Girls In Panjim North Goa 9971646499 Genuine ServiceCall Girls In Panjim North Goa 9971646499 Genuine Service
Call Girls In Panjim North Goa 9971646499 Genuine Serviceritikaroy0888
 
Mondelez State of Snacking and Future Trends 2023
Mondelez State of Snacking and Future Trends 2023Mondelez State of Snacking and Future Trends 2023
Mondelez State of Snacking and Future Trends 2023Neil Kimberley
 
Enhancing and Restoring Safety & Quality Cultures - Dave Litwiller - May 2024...
Enhancing and Restoring Safety & Quality Cultures - Dave Litwiller - May 2024...Enhancing and Restoring Safety & Quality Cultures - Dave Litwiller - May 2024...
Enhancing and Restoring Safety & Quality Cultures - Dave Litwiller - May 2024...Dave Litwiller
 
MONA 98765-12871 CALL GIRLS IN LUDHIANA LUDHIANA CALL GIRL
MONA 98765-12871 CALL GIRLS IN LUDHIANA LUDHIANA CALL GIRLMONA 98765-12871 CALL GIRLS IN LUDHIANA LUDHIANA CALL GIRL
MONA 98765-12871 CALL GIRLS IN LUDHIANA LUDHIANA CALL GIRLSeo
 
FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756
FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756
FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756dollysharma2066
 
FULL ENJOY Call Girls In Majnu Ka Tilla, Delhi Contact Us 8377877756
FULL ENJOY Call Girls In Majnu Ka Tilla, Delhi Contact Us 8377877756FULL ENJOY Call Girls In Majnu Ka Tilla, Delhi Contact Us 8377877756
FULL ENJOY Call Girls In Majnu Ka Tilla, Delhi Contact Us 8377877756dollysharma2066
 
Call Girls Ludhiana Just Call 98765-12871 Top Class Call Girl Service Available
Call Girls Ludhiana Just Call 98765-12871 Top Class Call Girl Service AvailableCall Girls Ludhiana Just Call 98765-12871 Top Class Call Girl Service Available
Call Girls Ludhiana Just Call 98765-12871 Top Class Call Girl Service AvailableSeo
 
Cracking the Cultural Competence Code.pptx
Cracking the Cultural Competence Code.pptxCracking the Cultural Competence Code.pptx
Cracking the Cultural Competence Code.pptxWorkforce Group
 
Uneak White's Personal Brand Exploration Presentation
Uneak White's Personal Brand Exploration PresentationUneak White's Personal Brand Exploration Presentation
Uneak White's Personal Brand Exploration Presentationuneakwhite
 
Insurers' journeys to build a mastery in the IoT usage
Insurers' journeys to build a mastery in the IoT usageInsurers' journeys to build a mastery in the IoT usage
Insurers' journeys to build a mastery in the IoT usageMatteo Carbone
 
BAGALUR CALL GIRL IN 98274*61493 ❤CALL GIRLS IN ESCORT SERVICE❤CALL GIRL
BAGALUR CALL GIRL IN 98274*61493 ❤CALL GIRLS IN ESCORT SERVICE❤CALL GIRLBAGALUR CALL GIRL IN 98274*61493 ❤CALL GIRLS IN ESCORT SERVICE❤CALL GIRL
BAGALUR CALL GIRL IN 98274*61493 ❤CALL GIRLS IN ESCORT SERVICE❤CALL GIRLkapoorjyoti4444
 
Call Girls In DLf Gurgaon ➥99902@11544 ( Best price)100% Genuine Escort In 24...
Call Girls In DLf Gurgaon ➥99902@11544 ( Best price)100% Genuine Escort In 24...Call Girls In DLf Gurgaon ➥99902@11544 ( Best price)100% Genuine Escort In 24...
Call Girls In DLf Gurgaon ➥99902@11544 ( Best price)100% Genuine Escort In 24...lizamodels9
 
👉Chandigarh Call Girls 👉9878799926👉Just Call👉Chandigarh Call Girl In Chandiga...
👉Chandigarh Call Girls 👉9878799926👉Just Call👉Chandigarh Call Girl In Chandiga...👉Chandigarh Call Girls 👉9878799926👉Just Call👉Chandigarh Call Girl In Chandiga...
👉Chandigarh Call Girls 👉9878799926👉Just Call👉Chandigarh Call Girl In Chandiga...rajveerescorts2022
 
Call Girls In Noida 959961⊹3876 Independent Escort Service Noida
Call Girls In Noida 959961⊹3876 Independent Escort Service NoidaCall Girls In Noida 959961⊹3876 Independent Escort Service Noida
Call Girls In Noida 959961⊹3876 Independent Escort Service Noidadlhescort
 
Call Girls From Pari Chowk Greater Noida ❤️8448577510 ⊹Best Escorts Service I...
Call Girls From Pari Chowk Greater Noida ❤️8448577510 ⊹Best Escorts Service I...Call Girls From Pari Chowk Greater Noida ❤️8448577510 ⊹Best Escorts Service I...
Call Girls From Pari Chowk Greater Noida ❤️8448577510 ⊹Best Escorts Service I...lizamodels9
 
Ensure the security of your HCL environment by applying the Zero Trust princi...
Ensure the security of your HCL environment by applying the Zero Trust princi...Ensure the security of your HCL environment by applying the Zero Trust princi...
Ensure the security of your HCL environment by applying the Zero Trust princi...Roland Driesen
 
John Halpern sued for sexual assault.pdf
John Halpern sued for sexual assault.pdfJohn Halpern sued for sexual assault.pdf
John Halpern sued for sexual assault.pdfAmzadHosen3
 
How to Get Started in Social Media for Art League City
How to Get Started in Social Media for Art League CityHow to Get Started in Social Media for Art League City
How to Get Started in Social Media for Art League CityEric T. Tung
 

Recently uploaded (20)

Call Girls Electronic City Just Call 👗 7737669865 👗 Top Class Call Girl Servi...
Call Girls Electronic City Just Call 👗 7737669865 👗 Top Class Call Girl Servi...Call Girls Electronic City Just Call 👗 7737669865 👗 Top Class Call Girl Servi...
Call Girls Electronic City Just Call 👗 7737669865 👗 Top Class Call Girl Servi...
 
Russian Call Girls In Gurgaon ❤️8448577510 ⊹Best Escorts Service In 24/7 Delh...
Russian Call Girls In Gurgaon ❤️8448577510 ⊹Best Escorts Service In 24/7 Delh...Russian Call Girls In Gurgaon ❤️8448577510 ⊹Best Escorts Service In 24/7 Delh...
Russian Call Girls In Gurgaon ❤️8448577510 ⊹Best Escorts Service In 24/7 Delh...
 
Call Girls In Panjim North Goa 9971646499 Genuine Service
Call Girls In Panjim North Goa 9971646499 Genuine ServiceCall Girls In Panjim North Goa 9971646499 Genuine Service
Call Girls In Panjim North Goa 9971646499 Genuine Service
 
Mondelez State of Snacking and Future Trends 2023
Mondelez State of Snacking and Future Trends 2023Mondelez State of Snacking and Future Trends 2023
Mondelez State of Snacking and Future Trends 2023
 
Enhancing and Restoring Safety & Quality Cultures - Dave Litwiller - May 2024...
Enhancing and Restoring Safety & Quality Cultures - Dave Litwiller - May 2024...Enhancing and Restoring Safety & Quality Cultures - Dave Litwiller - May 2024...
Enhancing and Restoring Safety & Quality Cultures - Dave Litwiller - May 2024...
 
MONA 98765-12871 CALL GIRLS IN LUDHIANA LUDHIANA CALL GIRL
MONA 98765-12871 CALL GIRLS IN LUDHIANA LUDHIANA CALL GIRLMONA 98765-12871 CALL GIRLS IN LUDHIANA LUDHIANA CALL GIRL
MONA 98765-12871 CALL GIRLS IN LUDHIANA LUDHIANA CALL GIRL
 
FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756
FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756
FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756
 
FULL ENJOY Call Girls In Majnu Ka Tilla, Delhi Contact Us 8377877756
FULL ENJOY Call Girls In Majnu Ka Tilla, Delhi Contact Us 8377877756FULL ENJOY Call Girls In Majnu Ka Tilla, Delhi Contact Us 8377877756
FULL ENJOY Call Girls In Majnu Ka Tilla, Delhi Contact Us 8377877756
 
Call Girls Ludhiana Just Call 98765-12871 Top Class Call Girl Service Available
Call Girls Ludhiana Just Call 98765-12871 Top Class Call Girl Service AvailableCall Girls Ludhiana Just Call 98765-12871 Top Class Call Girl Service Available
Call Girls Ludhiana Just Call 98765-12871 Top Class Call Girl Service Available
 
Cracking the Cultural Competence Code.pptx
Cracking the Cultural Competence Code.pptxCracking the Cultural Competence Code.pptx
Cracking the Cultural Competence Code.pptx
 
Uneak White's Personal Brand Exploration Presentation
Uneak White's Personal Brand Exploration PresentationUneak White's Personal Brand Exploration Presentation
Uneak White's Personal Brand Exploration Presentation
 
Insurers' journeys to build a mastery in the IoT usage
Insurers' journeys to build a mastery in the IoT usageInsurers' journeys to build a mastery in the IoT usage
Insurers' journeys to build a mastery in the IoT usage
 
BAGALUR CALL GIRL IN 98274*61493 ❤CALL GIRLS IN ESCORT SERVICE❤CALL GIRL
BAGALUR CALL GIRL IN 98274*61493 ❤CALL GIRLS IN ESCORT SERVICE❤CALL GIRLBAGALUR CALL GIRL IN 98274*61493 ❤CALL GIRLS IN ESCORT SERVICE❤CALL GIRL
BAGALUR CALL GIRL IN 98274*61493 ❤CALL GIRLS IN ESCORT SERVICE❤CALL GIRL
 
Call Girls In DLf Gurgaon ➥99902@11544 ( Best price)100% Genuine Escort In 24...
Call Girls In DLf Gurgaon ➥99902@11544 ( Best price)100% Genuine Escort In 24...Call Girls In DLf Gurgaon ➥99902@11544 ( Best price)100% Genuine Escort In 24...
Call Girls In DLf Gurgaon ➥99902@11544 ( Best price)100% Genuine Escort In 24...
 
👉Chandigarh Call Girls 👉9878799926👉Just Call👉Chandigarh Call Girl In Chandiga...
👉Chandigarh Call Girls 👉9878799926👉Just Call👉Chandigarh Call Girl In Chandiga...👉Chandigarh Call Girls 👉9878799926👉Just Call👉Chandigarh Call Girl In Chandiga...
👉Chandigarh Call Girls 👉9878799926👉Just Call👉Chandigarh Call Girl In Chandiga...
 
Call Girls In Noida 959961⊹3876 Independent Escort Service Noida
Call Girls In Noida 959961⊹3876 Independent Escort Service NoidaCall Girls In Noida 959961⊹3876 Independent Escort Service Noida
Call Girls In Noida 959961⊹3876 Independent Escort Service Noida
 
Call Girls From Pari Chowk Greater Noida ❤️8448577510 ⊹Best Escorts Service I...
Call Girls From Pari Chowk Greater Noida ❤️8448577510 ⊹Best Escorts Service I...Call Girls From Pari Chowk Greater Noida ❤️8448577510 ⊹Best Escorts Service I...
Call Girls From Pari Chowk Greater Noida ❤️8448577510 ⊹Best Escorts Service I...
 
Ensure the security of your HCL environment by applying the Zero Trust princi...
Ensure the security of your HCL environment by applying the Zero Trust princi...Ensure the security of your HCL environment by applying the Zero Trust princi...
Ensure the security of your HCL environment by applying the Zero Trust princi...
 
John Halpern sued for sexual assault.pdf
John Halpern sued for sexual assault.pdfJohn Halpern sued for sexual assault.pdf
John Halpern sued for sexual assault.pdf
 
How to Get Started in Social Media for Art League City
How to Get Started in Social Media for Art League CityHow to Get Started in Social Media for Art League City
How to Get Started in Social Media for Art League City
 

Lecture 3

  • 1. Pattern Classification, Chapter 1 1 Basic Probability
  • 2. Pattern Classification, Chapter 1 2 Introduction • Probability is the study of randomness and uncertainty. • In the early days, probability was associated with games of chance (gambling).
  • 3. Pattern Classification, Chapter 1 3 Simple Games Involving Probability Game: A fair die is rolled. If the result is 2, 3, or 4, you win $1; if it is 5, you win $2; but if it is 1 or 6, you lose $3. Should you play this game?
  • 4. Pattern Classification, Chapter 1 4 Random Experiment • a random experiment is a process whose outcome is uncertain. Examples: • Tossing a coin once or several times • Picking a card or cards from a deck • Measuring temperature of patients • ...
  • 5. Pattern Classification, Chapter 1 5 Sample Space The sample space is the set of all possible outcomes. Simple Events The individual outcomes are called simple events. Event An event is any collection of one or more simple events Events & Sample Spaces
  • 6. Pattern Classification, Chapter 1 6 Example Experiment: Toss a coin 3 times. • Sample space Ω ∀ Ω = {HHH, HHT, HTH, HTT, THH, THT, TTH, TTT}. • Examples of events include • A = {HHH, HHT,HTH, THH} = {at least two heads} • B = {HTT, THT,TTH} = {exactly two tails.}
  • 7. Pattern Classification, Chapter 1 7 Basic Concepts (from Set Theory) • The union of two events A and B, A ∪ B, is the event consisting of all outcomes that are either in A or in B or in both events. • The complement of an event A, Ac , is the set of all outcomes in Ω that are not in A. • The intersection of two events A and B, A ∩ B, is the event consisting of all outcomes that are in both events. • When two events A and B have no outcomes in common, they are said to be mutually exclusive, or disjoint, events.
  • 8. Pattern Classification, Chapter 1 8 Example Experiment: toss a coin 10 times and the number of heads is observed. • Let A = { 0, 2, 4, 6, 8, 10}. • B = { 1, 3, 5, 7, 9}, C = {0, 1, 2, 3, 4, 5}. • A ∪ B= {0, 1, …, 10} = Ω. • A ∩ B contains no outcomes. So A and B are mutually exclusive. • Cc = {6, 7, 8, 9, 10}, A ∩ C = {0, 2, 4}.
  • 9. Pattern Classification, Chapter 1 9 Rules • Commutative Laws: • A ∪ B = B ∪ A, A ∩ B = B ∩ A • Associative Laws: • (A ∪ B) ∪ C = A ∪ (B ∪ C ) • (A ∩ B) ∩ C = A ∩ (B ∩ C) . • Distributive Laws: • (A ∪ B) ∩ C = (A ∩ C) ∪ (B ∩ C) • (A ∩ B) ∪ C = (A ∪ C) ∩ (B ∪ C) • DeMorgan’s Laws: ., 1111 c i n i c i n i c i n i c i n i AAAA ∪∩∩∪ ==== =      =     
  • 10. Pattern Classification, Chapter 1 10 Venn Diagram Ω A BA∩B
  • 11. Pattern Classification, Chapter 1 11 Probability • A Probability is a number assigned to each subset (events) of a sample space Ω. • Probability distributions satisfy the following rules:
  • 12. Pattern Classification, Chapter 1 12 Axioms of Probability • For any event A, 0 ≤ P(A) ≤ 1. • P(Ω) =1. • If A1, A2, … An is a partition of A, then P(A) = P(A1) + P(A2)+...+ P(An) (A1, A2, … An is called a partition of A if A1 ∪ A2 ∪…∪An = A and A1, A2, … An are mutually exclusive.)
  • 13. Pattern Classification, Chapter 1 13 Properties of Probability • For any event A, P(Ac ) = 1 - P(A). • If A ⊂ B, then P(A) ≤ P(B). • For any two events A and B, P(A ∪ B) = P(A) + P(B) - P(A ∩ B). For three events, A, B, and C, P(A∪B∪C) = P(A) + P(B) + P(C) - P(A∩B) - P(A∩C) - P(B∩C) + P(A∩B ∩C).
  • 14. Pattern Classification, Chapter 1 14 Example • In a certain population, 10% of the people are rich, 5% are famous, and 3% are both rich and famous. A person is randomly selected from this population. What is the chance that the person is • not rich? • rich but not famous? • either rich or famous?
  • 15. Pattern Classification, Chapter 1 15 Intuitive Development (agrees with axioms) • Intuitively, the probability of an event a could be defined as: Where N(a) is the number that event a happens in n trialsWhere N(a) is the number that event a happens in n trials
  • 16. Here We Go Again: Not So Basic Probability
  • 17. Pattern Classification, Chapter 1 17 More Formal: • Ω is the Sample Space: • Contains all possible outcomes of an experiment • ω in Ω is a single outcome • A in Ω is a set of outcomes of interest
  • 18. Pattern Classification, Chapter 1 18 Independence • The probability of independent events A, B and C is given by: P(A,B,C) = P(A)P(B)P(C) A and B are independent, if knowing that A has happenedA and B are independent, if knowing that A has happened does not say anything about B happeningdoes not say anything about B happening
  • 19. Pattern Classification, Chapter 1 19 Bayes Theorem • Provides a way to convert a-priori probabilities to a- posteriori probabilities:
  • 20. Pattern Classification, Chapter 1 20 Conditional Probability • One of the most useful concepts! AA BB ΩΩ
  • 21. Pattern Classification, Chapter 1 21 Bayes Theorem • Provides a way to convert a-priori probabilities to a- posteriori probabilities:
  • 22. Pattern Classification, Chapter 1 22 Using Partitions: • If events Ai are mutually exclusive and partition Ω
  • 23. Pattern Classification, Chapter 1 23 Random Variables • A (scalar) random variable X is a function that maps the outcome of a random event into real scalar values ωω ΩΩ X(X(ωω))
  • 24. Pattern Classification, Chapter 1 24 Random Variables Distributions • Cumulative Probability Distribution (CDF): • Probability Density Function (PDF):Probability Density Function (PDF):
  • 25. Pattern Classification, Chapter 1 25 Random Distributions: • From the two previous equations:
  • 26. Pattern Classification, Chapter 1 26 Uniform Distribution • A R.V. X that is uniformly distributed between x1 and x2 has density function: XX11 XX22
  • 27. Pattern Classification, Chapter 1 27 Gaussian (Normal) Distribution • A R.V. X that is normally distributed has density function: µµ
  • 28. Pattern Classification, Chapter 1 28 Statistical Characterizations • Expectation (Mean Value, First Moment): •Second Moment:Second Moment:
  • 29. Pattern Classification, Chapter 1 29 Statistical Characterizations • Variance of X: • Standard Deviation of X:
  • 30. Pattern Classification, Chapter 1 30 Mean Estimation from Samples • Given a set of N samples from a distribution, we can estimate the mean of the distribution by:
  • 31. Pattern Classification, Chapter 1 31 Variance Estimation from Samples • Given a set of N samples from a distribution, we can estimate the variance of the distribution by:
  • 33. Chapter 1: Introduction to Pattern Recognition (Sections 1.1-1.6) • Machine Perception • An Example • Pattern Recognition Systems • The Design Cycle • Learning and Adaptation • Conclusion
  • 34. Pattern Classification, Chapter 1 34 Machine Perception • Build a machine that can recognize patterns: • Speech recognition • Fingerprint identification • OCR (Optical Character Recognition) • DNA sequence identification
  • 35. Pattern Classification, Chapter 1 35 An Example • “Sorting incoming Fish on a conveyor according to species using optical sensing” Sea bass Species Salmon
  • 36. Pattern Classification, Chapter 1 36 • Problem Analysis • Set up a camera and take some sample images to extract features • Length • Lightness • Width • Number and shape of fins • Position of the mouth, etc… • This is the set of all suggested features to explore for use in our classifier!
  • 37. Pattern Classification, Chapter 1 37 • Preprocessing • Use a segmentation operation to isolate fishes from one another and from the background • Information from a single fish is sent to a feature extractor whose purpose is to reduce the data by measuring certain features • The features are passed to a classifier
  • 39. Pattern Classification, Chapter 1 39 • Classification • Select the length of the fish as a possible feature for discrimination
  • 41. Pattern Classification, Chapter 1 41 The length is a poor feature alone! Select the lightness as a possible feature.
  • 43. Pattern Classification, Chapter 1 43 • Threshold decision boundary and cost relationship • Move our decision boundary toward smaller values of lightness in order to minimize the cost (reduce the number of sea bass that are classified salmon!) Task of decision theory
  • 44. Pattern Classification, Chapter 1 44 • Adopt the lightness and add the width of the fish Fish xT = [x1, x2] Lightness Width
  • 46. Pattern Classification, Chapter 1 46 • We might add other features that are not correlated with the ones we already have. A precaution should be taken not to reduce the performance by adding “noisy features” • Ideally, the best decision boundary should be the one which provides an optimal performance such as in the following figure:
  • 48. Pattern Classification, Chapter 1 48 • However, our satisfaction is premature because the central aim of designing a classifier is to correctly classify novel input Issue of generalization!

Editor's Notes

  1. aft