SlideShare a Scribd company logo
3
Most read
7
Most read
8
Most read
Probability&Bayes theorem
PRESENTATION TOPICS
• Probability
• Conditional probability
• Baye`s Theorem
By Muhammad Imran Iqbal
BSIT 7th
ISP Multan
PROBABILITY
• Probability is branch of mathematics which deals with calculating the chances of
the given event`s occurrence, which is expressed as a number between 0 and 1.
• Fore example: if we toss a coin. The probability of tossed coin is either “head” or
“tail” because there are no other option of occurrence.
• If weather is cloudy we guess that it will rain or not.
•
DEFINITION OF PROBABILITY
• If a random experiment can produce `n` total numbers of possible outcomes and if
`m` is considered number of favorable outcomes to occurrence of a certain event A,
then the probability of event A, denoted by p(A), is defined as ratio m/n.
symbolically, we write
• P(A) =m/n= Number of favorable outcomes /total Number of possible outcomes.
• This definition was formulated by French mathematician P.S Laplace(1749-1827)
TERMS USED IN PROBABILITY
• Event: an event is individual outcome of an experiment.
• Outcome: An outcome is the result of an event.
• Sample space: collection of all possible outcomes.
NUMERICAL EXAMPLE
• A fair coin is tossed three times. What is the probability that at least one head
appears.?
• Solution:
• The sample space for this experiment is
• S ={HHH,HHT,HTH,THH,HTT,THT,TTH,TTT} and thus n(S)=8
• Let A denote the event that at least one head appears. Then
• A={HHH,HHT,HTH,THH,HTT,THT,TTH} so n(A)=7
• Hence p(A)=7/8
BAYES' THEOREM
• Definition: Bayes' theorem is a mathematical equation used in probability and
statistics to calculate conditional probability. In other words, it is used to calculate
the probability of an event based on its association with another event. The theorem
is also known as Bayesian law or Bayesian rule.
• First it was derived by English minister and statistician reverend Thomas Baye in
(1763)
• Later in (1774) French mathematician Laplace development in it.
FORMULA
• There are several different ways to write this theorem. But common way is :
• P(A|B)=P(B|A).P(A)/P(B)
• where A and B are two events and P(B) ≠ 0
• P(A ∣ B) is the conditional probability of event A occurring given that B is true.
• P(B ∣ A) is the conditional probability of event B occurring given that A is true.
• P(A) and P(B) are the probabilities of A and B occurring associate of one another.
CONT`D
• Bayes' Theorem allows you to update predicted probabilities of an event
• Many modern machine learning techniques rely on Bayes' theorem. For instance,
spam filters use Bayesian updating to determine whether an email is real or spam,
given the words in the email.
• Additionally, many specific techniques in statistics, such as calculating interpreting
medical results, are best described in terms of how they contribute to updating
hypotheses using Bayes' theorem.
EXAMPLE
• For example, consider a drug test that is 99 percent sensitive and 99 percent specific. If half a percent (0.5 percent) of
people use a drug, what is the probability a random person with a positive test actually is a user?
• P(A ∣ B) = P(B ∣ A)P(A) / P(B)
• maybe rewritten as:
• P(user ∣ +) = P(+ ∣ user)P(user) / P(+)
• P(user ∣ +) = P(+ ∣ user)P(user) / [P(+ ∣ user)P(user) + P(+ ∣ non-user)P(non-user)]
• P(user ∣ +) = (0.99 * 0.005) / (0.99 * 0.005+0.01 * 0.995)
• P(user ∣ +) ≈ 33.2%
• Only about 33 percent of the time would a random person with a positive test actually be a drug user. The conclusion is
that even if a person tests positive for a drug, it is more likely they do not use the drug than that they do. In other words,
the number of false positives is greater than the number of true positives
Probability&Bayes theorem
Probability&Bayes theorem
Probability&Bayes theorem
Probability&Bayes theorem
CONDITIONAL PROBABILITY
• Conditional probability is used where we have condition
• In probability theory, conditional probability is a measure of the probability of
an event given that another event has occurred.
• P(A|B)=P(A^B)/P(B)
EXAMPLE
• If tossing two coins. What is the probability is
• getting 2 heads
• Given that
• at least 1 head
• Solution:
• S={HH,HT,TH,TT}
• Let A be the event having 2 head
• n(A)=1
CONT`D
• P(A)=1/4
• B be the event at least 1 head
• n(B)=3
• P(A)=3/4
• n(A^B)=1/4 then
• P(A|B)=P(A^B)/P(B)
• P(A|B)=1/4/3/4
• P(A|B)=1/3
Probability&Bayes theorem

More Related Content

What's hot (20)

PPT
Skewness and Kurtosis
Rohan Nagpal
 
PDF
Statistical Distributions
Venkata Reddy Konasani
 
PPT
Fundamentals Probability 08072009
Sri Harsha gadiraju
 
PPT
Basic concept of probability
Ikhlas Rahman
 
PDF
Lecture 2 predicates quantifiers and rules of inference
asimnawaz54
 
PPTX
Fuzzy logic and application in AI
Ildar Nurgaliev
 
PDF
Categorical data analysis
Sumit Das
 
PPTX
Bayes' theorem
Dr. C.V. Suresh Babu
 
PPT
Discrete math ppt
msumerton
 
PDF
Basic concepts of probability
Avjinder (Avi) Kaler
 
PPT
Regression
mandrewmartin
 
PPT
PROBABILITY AND IT'S TYPES WITH RULES
Bhargavi Bhanu
 
PPTX
Learn from Example and Learn Probabilistic Model
Junya Tanaka
 
PPTX
Bernoullis Random Variables And Binomial Distribution
mathscontent
 
PDF
Logistic regression in Machine Learning
Kuppusamy P
 
PDF
Linear regression
MartinHogg9
 
PPTX
Conditional probability
suncil0071
 
PPTX
Logistic regression
saba khan
 
PPTX
Ml3 logistic regression-and_classification_error_metrics
ankit_ppt
 
Skewness and Kurtosis
Rohan Nagpal
 
Statistical Distributions
Venkata Reddy Konasani
 
Fundamentals Probability 08072009
Sri Harsha gadiraju
 
Basic concept of probability
Ikhlas Rahman
 
Lecture 2 predicates quantifiers and rules of inference
asimnawaz54
 
Fuzzy logic and application in AI
Ildar Nurgaliev
 
Categorical data analysis
Sumit Das
 
Bayes' theorem
Dr. C.V. Suresh Babu
 
Discrete math ppt
msumerton
 
Basic concepts of probability
Avjinder (Avi) Kaler
 
Regression
mandrewmartin
 
PROBABILITY AND IT'S TYPES WITH RULES
Bhargavi Bhanu
 
Learn from Example and Learn Probabilistic Model
Junya Tanaka
 
Bernoullis Random Variables And Binomial Distribution
mathscontent
 
Logistic regression in Machine Learning
Kuppusamy P
 
Linear regression
MartinHogg9
 
Conditional probability
suncil0071
 
Logistic regression
saba khan
 
Ml3 logistic regression-and_classification_error_metrics
ankit_ppt
 

Similar to Probability&Bayes theorem (20)

PPTX
UNIT-II-Probability-ConditionalProbability-BayesTherom.pptx
ChagantiSahith
 
PPTX
BSM with Sofware package for Social Sciences
profgnagarajan
 
PDF
Probability concepts for Data Analytics
SSaudia
 
PPTX
Bayes Rules _ Bayes' theorem _ Bayes.pptx
sattaryehya
 
PPTX
presentation about Bayes Rules with examples.pptx
sattaryehya
 
PPTX
01_Module_1-ProbabilityTheory.pptx
SauravDash10
 
DOCX
introduction to Probability theory
Rachna Gupta
 
PPTX
Bayes rule (Bayes Law)
Tish997
 
PDF
Probability and Distribution
Learnbay Datascience
 
PPTX
Probability.pptx, Types of Probability, UG
SoniaBajaj10
 
PPTX
Introduction to Probability and Bayes' Theorom
Yugal Gupta
 
PPTX
A powerful powerpoint presentation on probability
ayuschatterjee2003
 
PPTX
Probability
Seyid Kadher
 
PDF
Chapter1_Probability , Statistics Reliability
Prasad Enagandula
 
PPTX
probability powerpoint presentation with text
ayuschatterjee2003
 
PPTX
MATHS PRESENTATION OF STATISTICS AND PROBABILITY.pptx
pavantech57
 
PDF
1-Probability-Conditional-Bayes.pdf
KrushangDilipbhaiPar
 
PPTX
4. PROBABILITY (2).pptxjjhhhhghhhhhhjjjj
WondimuChala
 
PPTX
Probability.pptx. .
AkshayBadore2
 
PPTX
Probability and probability distribution.pptx
abubekeremam245
 
UNIT-II-Probability-ConditionalProbability-BayesTherom.pptx
ChagantiSahith
 
BSM with Sofware package for Social Sciences
profgnagarajan
 
Probability concepts for Data Analytics
SSaudia
 
Bayes Rules _ Bayes' theorem _ Bayes.pptx
sattaryehya
 
presentation about Bayes Rules with examples.pptx
sattaryehya
 
01_Module_1-ProbabilityTheory.pptx
SauravDash10
 
introduction to Probability theory
Rachna Gupta
 
Bayes rule (Bayes Law)
Tish997
 
Probability and Distribution
Learnbay Datascience
 
Probability.pptx, Types of Probability, UG
SoniaBajaj10
 
Introduction to Probability and Bayes' Theorom
Yugal Gupta
 
A powerful powerpoint presentation on probability
ayuschatterjee2003
 
Probability
Seyid Kadher
 
Chapter1_Probability , Statistics Reliability
Prasad Enagandula
 
probability powerpoint presentation with text
ayuschatterjee2003
 
MATHS PRESENTATION OF STATISTICS AND PROBABILITY.pptx
pavantech57
 
1-Probability-Conditional-Bayes.pdf
KrushangDilipbhaiPar
 
4. PROBABILITY (2).pptxjjhhhhghhhhhhjjjj
WondimuChala
 
Probability.pptx. .
AkshayBadore2
 
Probability and probability distribution.pptx
abubekeremam245
 
Ad

Recently uploaded (20)

PPTX
DIGITAL CITIZENSHIP TOPIC TLE 8 MATATAG CURRICULUM
ROBERTAUGUSTINEFRANC
 
PDF
Governor Josh Stein letter to NC delegation of U.S. House
Mebane Rash
 
PDF
epi editorial commitee meeting presentation
MIPLM
 
PDF
STATEMENT-BY-THE-HON.-MINISTER-FOR-HEALTH-ON-THE-COVID-19-OUTBREAK-AT-UG_revi...
nservice241
 
PDF
Lesson 1 - Nature of Inquiry and Research.pdf
marvinnbustamante1
 
PPTX
Lesson 1 Cell (Structures, Functions, and Theory).pptx
marvinnbustamante1
 
PPTX
Ward Management: Patient Care, Personnel, Equipment, and Environment.pptx
PRADEEP ABOTHU
 
PDF
AI-assisted IP-Design lecture from the MIPLM 2025
MIPLM
 
PPTX
Introduction to Indian Writing in English
Trushali Dodiya
 
PPTX
How to Send Email From Odoo 18 Website - Odoo Slides
Celine George
 
PPTX
How to Manage Allocation Report for Manufacturing Orders in Odoo 18
Celine George
 
PDF
WATERSHED MANAGEMENT CASE STUDIES - ULUGURU MOUNTAINS AND ARVARI RIVERpdf
Ar.Asna
 
PDF
Lean IP - Lecture by Dr Oliver Baldus at the MIPLM 2025
MIPLM
 
PDF
I3PM Industry Case Study Siemens on Strategic and Value-Oriented IP Management
MIPLM
 
PPTX
Introduction to Biochemistry & Cellular Foundations.pptx
marvinnbustamante1
 
PPTX
DAY 1_QUARTER1 ENGLISH 5 WEEK- PRESENTATION.pptx
BanyMacalintal
 
PDF
Introduction presentation of the patentbutler tool
MIPLM
 
PPTX
Building Powerful Agentic AI with Google ADK, MCP, RAG, and Ollama.pptx
Tamanna36
 
PPTX
Light Reflection and Refraction- Activities - Class X Science
SONU ACADEMY
 
PPTX
SD_GMRC5_Session 6AB_Dulog Pedagohikal at Pagtataya (1).pptx
NickeyArguelles
 
DIGITAL CITIZENSHIP TOPIC TLE 8 MATATAG CURRICULUM
ROBERTAUGUSTINEFRANC
 
Governor Josh Stein letter to NC delegation of U.S. House
Mebane Rash
 
epi editorial commitee meeting presentation
MIPLM
 
STATEMENT-BY-THE-HON.-MINISTER-FOR-HEALTH-ON-THE-COVID-19-OUTBREAK-AT-UG_revi...
nservice241
 
Lesson 1 - Nature of Inquiry and Research.pdf
marvinnbustamante1
 
Lesson 1 Cell (Structures, Functions, and Theory).pptx
marvinnbustamante1
 
Ward Management: Patient Care, Personnel, Equipment, and Environment.pptx
PRADEEP ABOTHU
 
AI-assisted IP-Design lecture from the MIPLM 2025
MIPLM
 
Introduction to Indian Writing in English
Trushali Dodiya
 
How to Send Email From Odoo 18 Website - Odoo Slides
Celine George
 
How to Manage Allocation Report for Manufacturing Orders in Odoo 18
Celine George
 
WATERSHED MANAGEMENT CASE STUDIES - ULUGURU MOUNTAINS AND ARVARI RIVERpdf
Ar.Asna
 
Lean IP - Lecture by Dr Oliver Baldus at the MIPLM 2025
MIPLM
 
I3PM Industry Case Study Siemens on Strategic and Value-Oriented IP Management
MIPLM
 
Introduction to Biochemistry & Cellular Foundations.pptx
marvinnbustamante1
 
DAY 1_QUARTER1 ENGLISH 5 WEEK- PRESENTATION.pptx
BanyMacalintal
 
Introduction presentation of the patentbutler tool
MIPLM
 
Building Powerful Agentic AI with Google ADK, MCP, RAG, and Ollama.pptx
Tamanna36
 
Light Reflection and Refraction- Activities - Class X Science
SONU ACADEMY
 
SD_GMRC5_Session 6AB_Dulog Pedagohikal at Pagtataya (1).pptx
NickeyArguelles
 
Ad

Probability&Bayes theorem

  • 2. PRESENTATION TOPICS • Probability • Conditional probability • Baye`s Theorem By Muhammad Imran Iqbal BSIT 7th ISP Multan
  • 3. PROBABILITY • Probability is branch of mathematics which deals with calculating the chances of the given event`s occurrence, which is expressed as a number between 0 and 1. • Fore example: if we toss a coin. The probability of tossed coin is either “head” or “tail” because there are no other option of occurrence. • If weather is cloudy we guess that it will rain or not. •
  • 4. DEFINITION OF PROBABILITY • If a random experiment can produce `n` total numbers of possible outcomes and if `m` is considered number of favorable outcomes to occurrence of a certain event A, then the probability of event A, denoted by p(A), is defined as ratio m/n. symbolically, we write • P(A) =m/n= Number of favorable outcomes /total Number of possible outcomes. • This definition was formulated by French mathematician P.S Laplace(1749-1827)
  • 5. TERMS USED IN PROBABILITY • Event: an event is individual outcome of an experiment. • Outcome: An outcome is the result of an event. • Sample space: collection of all possible outcomes.
  • 6. NUMERICAL EXAMPLE • A fair coin is tossed three times. What is the probability that at least one head appears.? • Solution: • The sample space for this experiment is • S ={HHH,HHT,HTH,THH,HTT,THT,TTH,TTT} and thus n(S)=8 • Let A denote the event that at least one head appears. Then • A={HHH,HHT,HTH,THH,HTT,THT,TTH} so n(A)=7 • Hence p(A)=7/8
  • 7. BAYES' THEOREM • Definition: Bayes' theorem is a mathematical equation used in probability and statistics to calculate conditional probability. In other words, it is used to calculate the probability of an event based on its association with another event. The theorem is also known as Bayesian law or Bayesian rule. • First it was derived by English minister and statistician reverend Thomas Baye in (1763) • Later in (1774) French mathematician Laplace development in it.
  • 8. FORMULA • There are several different ways to write this theorem. But common way is : • P(A|B)=P(B|A).P(A)/P(B) • where A and B are two events and P(B) ≠ 0 • P(A ∣ B) is the conditional probability of event A occurring given that B is true. • P(B ∣ A) is the conditional probability of event B occurring given that A is true. • P(A) and P(B) are the probabilities of A and B occurring associate of one another.
  • 9. CONT`D • Bayes' Theorem allows you to update predicted probabilities of an event • Many modern machine learning techniques rely on Bayes' theorem. For instance, spam filters use Bayesian updating to determine whether an email is real or spam, given the words in the email. • Additionally, many specific techniques in statistics, such as calculating interpreting medical results, are best described in terms of how they contribute to updating hypotheses using Bayes' theorem.
  • 10. EXAMPLE • For example, consider a drug test that is 99 percent sensitive and 99 percent specific. If half a percent (0.5 percent) of people use a drug, what is the probability a random person with a positive test actually is a user? • P(A ∣ B) = P(B ∣ A)P(A) / P(B) • maybe rewritten as: • P(user ∣ +) = P(+ ∣ user)P(user) / P(+) • P(user ∣ +) = P(+ ∣ user)P(user) / [P(+ ∣ user)P(user) + P(+ ∣ non-user)P(non-user)] • P(user ∣ +) = (0.99 * 0.005) / (0.99 * 0.005+0.01 * 0.995) • P(user ∣ +) ≈ 33.2% • Only about 33 percent of the time would a random person with a positive test actually be a drug user. The conclusion is that even if a person tests positive for a drug, it is more likely they do not use the drug than that they do. In other words, the number of false positives is greater than the number of true positives
  • 15. CONDITIONAL PROBABILITY • Conditional probability is used where we have condition • In probability theory, conditional probability is a measure of the probability of an event given that another event has occurred. • P(A|B)=P(A^B)/P(B)
  • 16. EXAMPLE • If tossing two coins. What is the probability is • getting 2 heads • Given that • at least 1 head • Solution: • S={HH,HT,TH,TT} • Let A be the event having 2 head • n(A)=1
  • 17. CONT`D • P(A)=1/4 • B be the event at least 1 head • n(B)=3 • P(A)=3/4 • n(A^B)=1/4 then • P(A|B)=P(A^B)/P(B) • P(A|B)=1/4/3/4 • P(A|B)=1/3