SlideShare a Scribd company logo
1 of 18
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
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

Probability And Its Axioms
Probability And Its AxiomsProbability And Its Axioms
Probability And Its Axiomsmathscontent
 
Sample Space and Event,Probability,The Axioms of Probability,Bayes Theorem
Sample Space and Event,Probability,The Axioms of Probability,Bayes TheoremSample Space and Event,Probability,The Axioms of Probability,Bayes Theorem
Sample Space and Event,Probability,The Axioms of Probability,Bayes TheoremBharath kumar Karanam
 
Naive bayes
Naive bayesNaive bayes
Naive bayesumeskath
 
PROBABILITY
PROBABILITYPROBABILITY
PROBABILITYAvi Vani
 
Estimation and hypothesis testing 1 (graduate statistics2)
Estimation and hypothesis testing 1 (graduate statistics2)Estimation and hypothesis testing 1 (graduate statistics2)
Estimation and hypothesis testing 1 (graduate statistics2)Harve Abella
 
Lecture: Joint, Conditional and Marginal Probabilities
Lecture: Joint, Conditional and Marginal Probabilities Lecture: Joint, Conditional and Marginal Probabilities
Lecture: Joint, Conditional and Marginal Probabilities Marina Santini
 
Basic concept of probability
Basic concept of probabilityBasic concept of probability
Basic concept of probabilityIkhlas Rahman
 
Correlation and Regression ppt
Correlation and Regression pptCorrelation and Regression ppt
Correlation and Regression pptSantosh Bhaskar
 
Basic probability concept
Basic probability conceptBasic probability concept
Basic probability conceptMmedsc Hahm
 

What's hot (20)

Probability
ProbabilityProbability
Probability
 
Bayes theorem
Bayes theoremBayes theorem
Bayes theorem
 
Probability And Its Axioms
Probability And Its AxiomsProbability And Its Axioms
Probability And Its Axioms
 
2.03 bayesian estimation
2.03 bayesian estimation2.03 bayesian estimation
2.03 bayesian estimation
 
Basic concepts of probability
Basic concepts of probabilityBasic concepts of probability
Basic concepts of probability
 
Sample Space and Event,Probability,The Axioms of Probability,Bayes Theorem
Sample Space and Event,Probability,The Axioms of Probability,Bayes TheoremSample Space and Event,Probability,The Axioms of Probability,Bayes Theorem
Sample Space and Event,Probability,The Axioms of Probability,Bayes Theorem
 
Probability
ProbabilityProbability
Probability
 
Naive bayes
Naive bayesNaive bayes
Naive bayes
 
PROBABILITY
PROBABILITYPROBABILITY
PROBABILITY
 
Estimation and hypothesis testing 1 (graduate statistics2)
Estimation and hypothesis testing 1 (graduate statistics2)Estimation and hypothesis testing 1 (graduate statistics2)
Estimation and hypothesis testing 1 (graduate statistics2)
 
Probability
ProbabilityProbability
Probability
 
Lecture: Joint, Conditional and Marginal Probabilities
Lecture: Joint, Conditional and Marginal Probabilities Lecture: Joint, Conditional and Marginal Probabilities
Lecture: Joint, Conditional and Marginal Probabilities
 
Bayesian inference
Bayesian inferenceBayesian inference
Bayesian inference
 
Baye's rule
Baye's ruleBaye's rule
Baye's rule
 
Basic concept of probability
Basic concept of probabilityBasic concept of probability
Basic concept of probability
 
Correlation and Regression ppt
Correlation and Regression pptCorrelation and Regression ppt
Correlation and Regression ppt
 
Basic probability concept
Basic probability conceptBasic probability concept
Basic probability concept
 
Probability Theory
Probability Theory Probability Theory
Probability Theory
 
Bayes Theorem
Bayes TheoremBayes Theorem
Bayes Theorem
 
Bayesian statistics
Bayesian  statisticsBayesian  statistics
Bayesian statistics
 

Similar to Probability&Bayes theorem

Probability Theory
Probability TheoryProbability Theory
Probability TheoryParul Singh
 
Introduction to probability.pdf
Introduction to probability.pdfIntroduction to probability.pdf
Introduction to probability.pdfYonasTsagaye
 
probability_statistics_presentation.pptx
probability_statistics_presentation.pptxprobability_statistics_presentation.pptx
probability_statistics_presentation.pptxvietnam5hayday
 
Probability concepts for Data Analytics
Probability concepts for Data AnalyticsProbability concepts for Data Analytics
Probability concepts for Data AnalyticsSSaudia
 
CHAPTER 1 THEORY OF PROBABILITY AND STATISTICS.pptx
CHAPTER 1 THEORY OF PROBABILITY AND STATISTICS.pptxCHAPTER 1 THEORY OF PROBABILITY AND STATISTICS.pptx
CHAPTER 1 THEORY OF PROBABILITY AND STATISTICS.pptxanshujain54751
 
MATHS PRESENTATION OF STATISTICS AND PROBABILITY.pptx
MATHS PRESENTATION OF STATISTICS AND PROBABILITY.pptxMATHS PRESENTATION OF STATISTICS AND PROBABILITY.pptx
MATHS PRESENTATION OF STATISTICS AND PROBABILITY.pptxpavantech57
 
STSTISTICS AND PROBABILITY THEORY .pptx
STSTISTICS AND PROBABILITY THEORY  .pptxSTSTISTICS AND PROBABILITY THEORY  .pptx
STSTISTICS AND PROBABILITY THEORY .pptxVenuKumar65
 
1615 probability-notation for joint probabilities
1615 probability-notation for joint probabilities1615 probability-notation for joint probabilities
1615 probability-notation for joint probabilitiesDr Fereidoun Dejahang
 
Chapter – 15 probability maths || CLASS 9 || The World Of presentation youtub...
Chapter – 15 probability maths || CLASS 9 || The World Of presentation youtub...Chapter – 15 probability maths || CLASS 9 || The World Of presentation youtub...
Chapter – 15 probability maths || CLASS 9 || The World Of presentation youtub...NishitGajjar7
 
2.statistical DEcision makig.pptx
2.statistical DEcision makig.pptx2.statistical DEcision makig.pptx
2.statistical DEcision makig.pptxImpanaR2
 
1-Probability-Conditional-Bayes.pdf
1-Probability-Conditional-Bayes.pdf1-Probability-Conditional-Bayes.pdf
1-Probability-Conditional-Bayes.pdfKrushangDilipbhaiPar
 
Different types of distributions
Different types of distributionsDifferent types of distributions
Different types of distributionsRajaKrishnan M
 

Similar to Probability&Bayes theorem (20)

Probability Theory
Probability TheoryProbability Theory
Probability Theory
 
Probability.pptx
Probability.pptxProbability.pptx
Probability.pptx
 
Introduction to probability.pdf
Introduction to probability.pdfIntroduction to probability.pdf
Introduction to probability.pdf
 
probability_statistics_presentation.pptx
probability_statistics_presentation.pptxprobability_statistics_presentation.pptx
probability_statistics_presentation.pptx
 
tps5e_Ch5_3.ppt
tps5e_Ch5_3.ppttps5e_Ch5_3.ppt
tps5e_Ch5_3.ppt
 
tps5e_Ch5_3.ppt
tps5e_Ch5_3.ppttps5e_Ch5_3.ppt
tps5e_Ch5_3.ppt
 
Probabilty1.pptx
Probabilty1.pptxProbabilty1.pptx
Probabilty1.pptx
 
Probability concepts for Data Analytics
Probability concepts for Data AnalyticsProbability concepts for Data Analytics
Probability concepts for Data Analytics
 
CHAPTER 1 THEORY OF PROBABILITY AND STATISTICS.pptx
CHAPTER 1 THEORY OF PROBABILITY AND STATISTICS.pptxCHAPTER 1 THEORY OF PROBABILITY AND STATISTICS.pptx
CHAPTER 1 THEORY OF PROBABILITY AND STATISTICS.pptx
 
Probability concept and Probability distribution
Probability concept and Probability distributionProbability concept and Probability distribution
Probability concept and Probability distribution
 
unit 3 -ML.pptx
unit 3 -ML.pptxunit 3 -ML.pptx
unit 3 -ML.pptx
 
MATHS PRESENTATION OF STATISTICS AND PROBABILITY.pptx
MATHS PRESENTATION OF STATISTICS AND PROBABILITY.pptxMATHS PRESENTATION OF STATISTICS AND PROBABILITY.pptx
MATHS PRESENTATION OF STATISTICS AND PROBABILITY.pptx
 
STSTISTICS AND PROBABILITY THEORY .pptx
STSTISTICS AND PROBABILITY THEORY  .pptxSTSTISTICS AND PROBABILITY THEORY  .pptx
STSTISTICS AND PROBABILITY THEORY .pptx
 
Probability theory
Probability theoryProbability theory
Probability theory
 
1615 probability-notation for joint probabilities
1615 probability-notation for joint probabilities1615 probability-notation for joint probabilities
1615 probability-notation for joint probabilities
 
Addition rule and multiplication rule
Addition rule and multiplication rule  Addition rule and multiplication rule
Addition rule and multiplication rule
 
Chapter – 15 probability maths || CLASS 9 || The World Of presentation youtub...
Chapter – 15 probability maths || CLASS 9 || The World Of presentation youtub...Chapter – 15 probability maths || CLASS 9 || The World Of presentation youtub...
Chapter – 15 probability maths || CLASS 9 || The World Of presentation youtub...
 
2.statistical DEcision makig.pptx
2.statistical DEcision makig.pptx2.statistical DEcision makig.pptx
2.statistical DEcision makig.pptx
 
1-Probability-Conditional-Bayes.pdf
1-Probability-Conditional-Bayes.pdf1-Probability-Conditional-Bayes.pdf
1-Probability-Conditional-Bayes.pdf
 
Different types of distributions
Different types of distributionsDifferent types of distributions
Different types of distributions
 

Recently uploaded

Understanding Accommodations and Modifications
Understanding  Accommodations and ModificationsUnderstanding  Accommodations and Modifications
Understanding Accommodations and ModificationsMJDuyan
 
Sociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning ExhibitSociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning Exhibitjbellavia9
 
Holdier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfHoldier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfagholdier
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfciinovamais
 
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...Nguyen Thanh Tu Collection
 
Key note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfKey note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfAdmir Softic
 
psychiatric nursing HISTORY COLLECTION .docx
psychiatric  nursing HISTORY  COLLECTION  .docxpsychiatric  nursing HISTORY  COLLECTION  .docx
psychiatric nursing HISTORY COLLECTION .docxPoojaSen20
 
This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.christianmathematics
 
Grant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingGrant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingTechSoup
 
Micro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdfMicro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdfPoh-Sun Goh
 
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...christianmathematics
 
Third Battle of Panipat detailed notes.pptx
Third Battle of Panipat detailed notes.pptxThird Battle of Panipat detailed notes.pptx
Third Battle of Panipat detailed notes.pptxAmita Gupta
 
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptxMaritesTamaniVerdade
 
Application orientated numerical on hev.ppt
Application orientated numerical on hev.pptApplication orientated numerical on hev.ppt
Application orientated numerical on hev.pptRamjanShidvankar
 
1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdfQucHHunhnh
 
Dyslexia AI Workshop for Slideshare.pptx
Dyslexia AI Workshop for Slideshare.pptxDyslexia AI Workshop for Slideshare.pptx
Dyslexia AI Workshop for Slideshare.pptxcallscotland1987
 
Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)Jisc
 
Python Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docxPython Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docxRamakrishna Reddy Bijjam
 

Recently uploaded (20)

Asian American Pacific Islander Month DDSD 2024.pptx
Asian American Pacific Islander Month DDSD 2024.pptxAsian American Pacific Islander Month DDSD 2024.pptx
Asian American Pacific Islander Month DDSD 2024.pptx
 
Understanding Accommodations and Modifications
Understanding  Accommodations and ModificationsUnderstanding  Accommodations and Modifications
Understanding Accommodations and Modifications
 
Sociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning ExhibitSociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning Exhibit
 
Holdier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfHoldier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdf
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdf
 
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
 
Key note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfKey note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdf
 
psychiatric nursing HISTORY COLLECTION .docx
psychiatric  nursing HISTORY  COLLECTION  .docxpsychiatric  nursing HISTORY  COLLECTION  .docx
psychiatric nursing HISTORY COLLECTION .docx
 
This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.
 
Spatium Project Simulation student brief
Spatium Project Simulation student briefSpatium Project Simulation student brief
Spatium Project Simulation student brief
 
Grant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingGrant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy Consulting
 
Micro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdfMicro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdf
 
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
 
Third Battle of Panipat detailed notes.pptx
Third Battle of Panipat detailed notes.pptxThird Battle of Panipat detailed notes.pptx
Third Battle of Panipat detailed notes.pptx
 
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
 
Application orientated numerical on hev.ppt
Application orientated numerical on hev.pptApplication orientated numerical on hev.ppt
Application orientated numerical on hev.ppt
 
1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdf
 
Dyslexia AI Workshop for Slideshare.pptx
Dyslexia AI Workshop for Slideshare.pptxDyslexia AI Workshop for Slideshare.pptx
Dyslexia AI Workshop for Slideshare.pptx
 
Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)
 
Python Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docxPython Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docx
 

Probability&Bayes theorem

  • 1.
  • 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
  • 11.
  • 12.
  • 13.
  • 14.
  • 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