SlideShare une entreprise Scribd logo
1  sur  23
Télécharger pour lire hors ligne
Probability




  Dr Azmi Mohd Tamil
  Dept of Community Health
Universiti Kebangsaan Malaysia
Sample Spaces
4   A sample space is the set of all possible outcomes.
    However, some sample spaces are better than others.

4   Consider the experiment of flipping two coins. It is
    possible to get 0 heads, 1 head, or 2 heads. Thus, the
    sample space could be {0, 1, 2}. Another way to look
    at it is flip { HH, HT, TH, TT }. The second way is
    better because each event is as equally likely to occur
    as any other.

4   When writing the sample space, it is highly desirable
    to have events which are equally likely.
Sample Spaces

4 Another  example is rolling two dice. The
 sums are { 2, 3, 4, 5, 6, 7, 8, 9, 10, 11,
 12 }. However, each of these aren't
 equally likely. The only way to get a sum
 2 is to roll a 1 on both dice, but you can
 get a sum of 4 by rolling a 3-1, 2-2, or 3-
 1. The following table illustrates a better
 sample space for the sum obtain when
 rolling two dice.
Example
                    Second Die
First Die   1   2     3    4     5    6
    1       2   3     4    5     6    7
    2       3   4     5    6     7    8
    3       4   5     6    7     8    9
    4       5   6     7    8     9    10
    5       6   7     8    9     10   11
    6       7   8     9    10    11   12
Classical Probability

Sum   Freq   Relative Freq   4   The relative frequency of a
                                 frequency distribution is the
                                 probability of the event
2      1         1/36            occurring. This is only true,
3      2         2/36            however, if the events are
4      3         3/36            equally likely.
5      4         4/36
                             4   This gives us the formula for
6      5         5/36            classical probability. The
7      6         6/36            probability of an event occurring
8      5         5/36            is the number in the event
9      4         4/36            divided by the number in the
                                 sample space.
10     3         3/36
11     2         2/36        4   P(E) = n(E) / n(S)
12     1         1/36
Empirical Probability

4 Empirical   probability
  is based on
                            4   P(E) = f / n
  observation. The
  empirical probability
  of an event is the
  relative frequency of
  a frequency
  distribution based
  upon observation.
Probability Rules

4 All probabilities are between 0 and 1 inclusive
    0 <= P(E) <= 1
4 The sum of all the probabilities in the sample
  space is 1
4 The probability of an event which cannot
  occur is 0.
4 The probability of an event which must occur
  is 1.
4 The probability of an event not occurring is
  one minus the probability of it occurring.
    P(E') = 1 - P(E)
Mutually Exclusive Events

4 Two   events are mutually exclusive if
  they cannot occur at the same time.
4 If two events are mutually exclusive ,
  then the probability of them both
  occurring at the same time is 0.
  Mutually Exclusive : P(A and B) = 0
4 If two events are mutually exclusive,
  then the probability of either occurring is
  the sum of the probabilities of each
  occurring.
Specific Addition Rule


4 Only   valid when the events are mutually
                  exclusive.

           P(A or B) = P(A) + P(B)
Example 1

4 Given:
       P(A) = 0.20, P(B) = 0.70, A and B
 are mutually exclusive

             B        B'        Total
   A         0        0.2        0.2
   A'       0.7       0.1        0.8
  Total     0.7       0.3         1
Non-Mutually Exclusive Events

4 In events which aren't mutually
  exclusive, there is some overlap. When
  P(A) and P(B) are added, the probability
  of the intersection (and) is added twice.
  To compensate for that double addition,
  the intersection needs to be subtracted.

4 General Addition Rule
  P(A or B) = P(A) + P(B) - P(A and B)
Example 2

4 Given P(A) = 0.20, P(B) = 0.70, P(A and
 B) = 0.15
             B          B'        Total
   A        0.15       0.05        0.2
   A'       0.55       0.25        0.8
  Total     0.7        0.3          1
Independent Events

4 Two   events are independent if the occurrence
  of one does not change the probability of the
  other occurring.
4 An example would be rolling a 2 on a die and
  flipping a head on a coin. Rolling the 2 does
  not affect the probability of flipping the head.
4 If events are independent, then the probability
  of them both occurring is the product of the
  probabilities of each occurring.
Specific Multiplication Rule


4 Only   valid for independent events

 P(A and B) = P(A) * P(B)
Example 3

4 P(A)= 0.20, P(B) = 0.70, A and B are
 independent.
             B          B'       Total
   A        0.14       0.06       0.2
   A'       0.56       0.24       0.8
  Total     0.7        0.3         1
Dependent Events


4Ifthe occurrence of one event
 does affect the probability of the
 other occurring, then the events
 are dependent.
Conditional Probability


4The  probability of event B occurring
 that event A has already occurred is
 read "the probability of B given A"
 and is written: P(B|A)

4 GeneralMultiplication Rule
 P(A and B) = P(A) * P(B|A)
Example 4

4 P(A)   = 0.20, P(B) = 0.70, P(B|A) = 0.40

              B           B'         Total
 A           0.08        0.12         0.2
 A'          0.62        0.18         0.8
Total        0.7         0.3           1
Independence Revisited

4 Thefollowing four statements are
 equivalent

 1.A and B are independent events
 2.P(A and B) = P(A) * P(B)
 3.P(A|B) = P(A)
 4.P(B|A) = P(B)
The question, "Do you smoke?" was asked of
                   100 people. Results are shown in the table.

                             .           Yes              No           Total
                        Male               19             41              60
                     Female                12             28              40
                        Total              31             69            100
•What is the probability of a randomly selected individual being a male who smokes? This is just a
joint probability. The number of "Male and Smoke" divided by the total = 19/100 = 0.19
•What is the probability of a randomly selected individual being a male? This is the total for male
divided by the total = 60/100 = 0.60. Since no mention is made of smoking or not smoking, it
includes all the cases.
•What is the probability of a randomly selected individual smoking? Again, since no mention is
made of gender, this is a marginal probability, the total who smoke divided by the total = 31/100 =
0.31.
•What is the probability of a randomly selected male smoking? This time, you're told that you have
a male - think of stratified sampling. What is the probability that the male smokes? Well, 19 males
smoke out of 60 males, so 19/60 = 0.31666...
•What is the probability that a randomly selected smoker is male? This time, you're told that you
have a smoker and asked to find the probability that the smoker is also male. There are 19 male
smokers out of 31 total smokers, so 19/31 = 0.6129 (approx)
There are three major manufacturing companies that make a product:
 Aberations, Brochmailians, and Chompielians. Aberations has a 50% market
 share, and Brochmailians has a 30% market share. 5% of Aberations' product is
 defective, 7% of Brochmailians' product is defective, and 10% of Chompieliens'
 product is defective.
 This information can be placed into a joint probability distribution


 Company                             Good                Defective    Total
       Aberations     0.50-0.025 = 0.475       0.05(0.50) = 0.025     0.50
   Brochmailians      0.30-0.021 = 0.279       0.07(0.30) = 0.021     0.30
    Chompieliens      0.20-0.020 = 0.180       0.10(0.20) = 0.020     0.20
             Total                   0.934                    0.066   1.00

•What is the probability a randomly selected product is defective?
•What is the probability that a defective product came from
Brochmailians?
The percent of the market share for Chompieliens wasn't given, but since the marginals must
add to be 1.00, they have a 20% market share.
Notice that the 5%, 7%, and 10% defective rates don't go into the table directly. This is
because they are conditional probabilities and the table is a joint probability table. These
defective probabilities are conditional upon which company was given. That is, the 7% is not
P(Defective), but P(Defective|Brochmailians). The joint probability P(Defective and
Brochmailians) = P(Defective|Brochmailians) * P(Brochmailians).
The "good" probabilities can be found by subtraction as shown above, or by multiplication
using conditional probabilities. If 7% of Brochmailians' product is defective, then 93% is good.
0.93(0.30)=0.279.
•What is the probability a randomly selected product is defective? P(Defective) = 0.066
•What is the probability that a defective product came from Brochmailians?
P(Brochmailian|Defective) = P(Brochmailian and Defective) / P(Defective) = 0.021/0.066 =
7/22 = 0.318 (approx).
•Are these events independent? No. If they were, then P(Brochmailians|Defective)=0.318
would have to equal the P(Brochmailians)=0.30, but it doesn't. Also, the P(Aberations and
Defective)=0.025 would have to be P(Aberations)*P(Defective) = 0.50*0.066=0.033, and it
doesn't.
Bayes' Theorem

Let's use the same example, but shorten each event to its one letter initial, ie: A, B,
   C, and D instead of Aberations, Brochmailians, Chompieliens, and Defective.
                         P(D|B) is not a Bayes problem.

This is given in the problem. Bayes' formula finds the reverse conditional probability
                                       P(B|D).

It is based that the Given (D) is made of three parts, the part of D in A, the part of D
                             in B, and the part of D in C.

                                        P(B and D)
                  P(B|D) = -----------------------------------------------------
                            P(A and D) + P(B and D) + P(C and D)

      Inserting the multiplication rule for each of these joint probabilities gives

                                        P(D|B)*P(B)
               P(B|D) = ------------------------------------------------------------
                            P(D|A)*P(A) + P(D|B)*P(B) + P(D|C)*P(C)

Contenu connexe

Tendances

Chapter 4 260110 044531
Chapter 4 260110 044531Chapter 4 260110 044531
Chapter 4 260110 044531guest25d353
 
Basic probability concept
Basic probability conceptBasic probability concept
Basic probability conceptMmedsc Hahm
 
03+probability+distributions.ppt
03+probability+distributions.ppt03+probability+distributions.ppt
03+probability+distributions.pptabhinav3874
 
Introduction to Probability and Bayes' Theorom
Introduction to Probability and Bayes' TheoromIntroduction to Probability and Bayes' Theorom
Introduction to Probability and Bayes' TheoromYugal Gupta
 
Basic Concept Of Probability
Basic Concept Of ProbabilityBasic Concept Of Probability
Basic Concept Of Probabilityguest45a926
 
Conditional probability, and probability trees
Conditional probability, and probability treesConditional probability, and probability trees
Conditional probability, and probability treesGlobal Polis
 
Fundamentals Probability 08072009
Fundamentals Probability 08072009Fundamentals Probability 08072009
Fundamentals Probability 08072009Sri Harsha gadiraju
 

Tendances (20)

Probability
ProbabilityProbability
Probability
 
Probability
ProbabilityProbability
Probability
 
Laws of probability
Laws of probabilityLaws of probability
Laws of probability
 
Probability
ProbabilityProbability
Probability
 
Chapter 4 260110 044531
Chapter 4 260110 044531Chapter 4 260110 044531
Chapter 4 260110 044531
 
Basic concepts of probability
Basic concepts of probability Basic concepts of probability
Basic concepts of probability
 
Basic probability concept
Basic probability conceptBasic probability concept
Basic probability concept
 
Unit 1-probability
Unit 1-probabilityUnit 1-probability
Unit 1-probability
 
probability
probabilityprobability
probability
 
Nossi ch 10
Nossi ch 10Nossi ch 10
Nossi ch 10
 
03+probability+distributions.ppt
03+probability+distributions.ppt03+probability+distributions.ppt
03+probability+distributions.ppt
 
Introduction to Probability and Bayes' Theorom
Introduction to Probability and Bayes' TheoromIntroduction to Probability and Bayes' Theorom
Introduction to Probability and Bayes' Theorom
 
Probability
ProbabilityProbability
Probability
 
Probability Theory
Probability Theory Probability Theory
Probability Theory
 
Probability
ProbabilityProbability
Probability
 
Basic Concept Of Probability
Basic Concept Of ProbabilityBasic Concept Of Probability
Basic Concept Of Probability
 
Conditional probability, and probability trees
Conditional probability, and probability treesConditional probability, and probability trees
Conditional probability, and probability trees
 
Probability
ProbabilityProbability
Probability
 
Fundamentals Probability 08072009
Fundamentals Probability 08072009Fundamentals Probability 08072009
Fundamentals Probability 08072009
 
Probability
ProbabilityProbability
Probability
 

En vedette

Jan 2014 Intro to Bayesian Probability, Statistical Inference, Sampling
Jan 2014 Intro to Bayesian Probability, Statistical Inference, Sampling Jan 2014 Intro to Bayesian Probability, Statistical Inference, Sampling
Jan 2014 Intro to Bayesian Probability, Statistical Inference, Sampling dustiferous16
 
How to create a MOOC account
How to create a MOOC accountHow to create a MOOC account
How to create a MOOC accountAzmi Mohd Tamil
 
Difficulty Index, Discrimination Index, Reliability and Rasch Measurement Ana...
Difficulty Index, Discrimination Index, Reliability and Rasch Measurement Ana...Difficulty Index, Discrimination Index, Reliability and Rasch Measurement Ana...
Difficulty Index, Discrimination Index, Reliability and Rasch Measurement Ana...Azmi Mohd Tamil
 
How to run Pearson's Chi-square for SPSS
How to run Pearson's Chi-square for SPSSHow to run Pearson's Chi-square for SPSS
How to run Pearson's Chi-square for SPSSAzmi Mohd Tamil
 
How to run ANOVA on SPSS
How to run ANOVA on SPSSHow to run ANOVA on SPSS
How to run ANOVA on SPSSAzmi Mohd Tamil
 
How to run Student's t-test on SPSS
How to run Student's t-test on SPSSHow to run Student's t-test on SPSS
How to run Student's t-test on SPSSAzmi Mohd Tamil
 
Introduction to spss: define variables
Introduction to spss: define variablesIntroduction to spss: define variables
Introduction to spss: define variablesAzmi Mohd Tamil
 
How to draw Scatter plot on SPSS
How to draw Scatter plot on SPSSHow to draw Scatter plot on SPSS
How to draw Scatter plot on SPSSAzmi Mohd Tamil
 
Running Pearson's Correlation on SPSS
Running Pearson's Correlation on SPSSRunning Pearson's Correlation on SPSS
Running Pearson's Correlation on SPSSAzmi Mohd Tamil
 
How to run Simple Linear Regression on SPSS
How to run Simple Linear Regression on SPSSHow to run Simple Linear Regression on SPSS
How to run Simple Linear Regression on SPSSAzmi Mohd Tamil
 
Representing uncertainty in expert systems
Representing uncertainty in expert systemsRepresenting uncertainty in expert systems
Representing uncertainty in expert systemsbhupendra kumar
 
probabilistic ranking
probabilistic rankingprobabilistic ranking
probabilistic rankingFELIX75
 

En vedette (15)

Jan 2014 Intro to Bayesian Probability, Statistical Inference, Sampling
Jan 2014 Intro to Bayesian Probability, Statistical Inference, Sampling Jan 2014 Intro to Bayesian Probability, Statistical Inference, Sampling
Jan 2014 Intro to Bayesian Probability, Statistical Inference, Sampling
 
How to create a MOOC account
How to create a MOOC accountHow to create a MOOC account
How to create a MOOC account
 
Difficulty Index, Discrimination Index, Reliability and Rasch Measurement Ana...
Difficulty Index, Discrimination Index, Reliability and Rasch Measurement Ana...Difficulty Index, Discrimination Index, Reliability and Rasch Measurement Ana...
Difficulty Index, Discrimination Index, Reliability and Rasch Measurement Ana...
 
How to run Pearson's Chi-square for SPSS
How to run Pearson's Chi-square for SPSSHow to run Pearson's Chi-square for SPSS
How to run Pearson's Chi-square for SPSS
 
How to run ANOVA on SPSS
How to run ANOVA on SPSSHow to run ANOVA on SPSS
How to run ANOVA on SPSS
 
How to run Student's t-test on SPSS
How to run Student's t-test on SPSSHow to run Student's t-test on SPSS
How to run Student's t-test on SPSS
 
Introduction to spss: define variables
Introduction to spss: define variablesIntroduction to spss: define variables
Introduction to spss: define variables
 
Student's t-test
Student's t-testStudent's t-test
Student's t-test
 
How to draw Scatter plot on SPSS
How to draw Scatter plot on SPSSHow to draw Scatter plot on SPSS
How to draw Scatter plot on SPSS
 
Running Pearson's Correlation on SPSS
Running Pearson's Correlation on SPSSRunning Pearson's Correlation on SPSS
Running Pearson's Correlation on SPSS
 
How to run Simple Linear Regression on SPSS
How to run Simple Linear Regression on SPSSHow to run Simple Linear Regression on SPSS
How to run Simple Linear Regression on SPSS
 
Uncertainty
UncertaintyUncertainty
Uncertainty
 
Representing uncertainty in expert systems
Representing uncertainty in expert systemsRepresenting uncertainty in expert systems
Representing uncertainty in expert systems
 
Pearson Chi-Square
Pearson Chi-SquarePearson Chi-Square
Pearson Chi-Square
 
probabilistic ranking
probabilistic rankingprobabilistic ranking
probabilistic ranking
 

Similaire à Probability & Bayesian Theorem

Unit 11.2 theoretical probability
Unit 11.2 theoretical probabilityUnit 11.2 theoretical probability
Unit 11.2 theoretical probabilityMark Ryder
 
Algebra unit 9.6.2
Algebra unit 9.6.2Algebra unit 9.6.2
Algebra unit 9.6.2Mark Ryder
 
Algebra unit 9.6.2
Algebra unit 9.6.2Algebra unit 9.6.2
Algebra unit 9.6.2Mark Ryder
 
5. probability qt 1st tri semester
5. probability qt 1st tri semester 5. probability qt 1st tri semester
5. probability qt 1st tri semester Karan Kukreja
 
Probability concepts for Data Analytics
Probability concepts for Data AnalyticsProbability concepts for Data Analytics
Probability concepts for Data AnalyticsSSaudia
 
lesson4-intrduction to probability grade10
lesson4-intrduction to probability grade10lesson4-intrduction to probability grade10
lesson4-intrduction to probability grade10CharlesIanVArnado
 
Probability Theory
Probability TheoryProbability Theory
Probability TheoryParul Singh
 
Probability and Randomness
Probability and RandomnessProbability and Randomness
Probability and RandomnessSalmaAlbakri2
 
1 Probability Please read sections 3.1 – 3.3 in your .docx
 1 Probability   Please read sections 3.1 – 3.3 in your .docx 1 Probability   Please read sections 3.1 – 3.3 in your .docx
1 Probability Please read sections 3.1 – 3.3 in your .docxaryan532920
 
Complements conditional probability bayes theorem
Complements  conditional probability bayes theorem  Complements  conditional probability bayes theorem
Complements conditional probability bayes theorem Long Beach City College
 
BHARAT & KAJAL.pptx
BHARAT & KAJAL.pptxBHARAT & KAJAL.pptx
BHARAT & KAJAL.pptxKunal639873
 
The binomial distributions
The binomial distributionsThe binomial distributions
The binomial distributionsmaamir farooq
 
What are the chances? - Probability
What are the chances? - ProbabilityWhat are the chances? - Probability
What are the chances? - Probabilitymscartersmaths
 
basic probability Lecture 9.pptx
basic probability Lecture 9.pptxbasic probability Lecture 9.pptx
basic probability Lecture 9.pptxSabirinINahassan
 

Similaire à Probability & Bayesian Theorem (20)

Unit 11.2 theoretical probability
Unit 11.2 theoretical probabilityUnit 11.2 theoretical probability
Unit 11.2 theoretical probability
 
Algebra unit 9.6.2
Algebra unit 9.6.2Algebra unit 9.6.2
Algebra unit 9.6.2
 
Algebra unit 9.6.2
Algebra unit 9.6.2Algebra unit 9.6.2
Algebra unit 9.6.2
 
5. probability qt 1st tri semester
5. probability qt 1st tri semester 5. probability qt 1st tri semester
5. probability qt 1st tri semester
 
Addition rule and multiplication rule
Addition rule and multiplication rule  Addition rule and multiplication rule
Addition rule and multiplication rule
 
Probability concepts for Data Analytics
Probability concepts for Data AnalyticsProbability concepts for Data Analytics
Probability concepts for Data Analytics
 
lesson4-intrduction to probability grade10
lesson4-intrduction to probability grade10lesson4-intrduction to probability grade10
lesson4-intrduction to probability grade10
 
Intro to probability
Intro to probabilityIntro to probability
Intro to probability
 
Probability Theory
Probability TheoryProbability Theory
Probability Theory
 
Probability and Randomness
Probability and RandomnessProbability and Randomness
Probability and Randomness
 
Basic Concepts of Probability
Basic Concepts of ProbabilityBasic Concepts of Probability
Basic Concepts of Probability
 
1 Probability Please read sections 3.1 – 3.3 in your .docx
 1 Probability   Please read sections 3.1 – 3.3 in your .docx 1 Probability   Please read sections 3.1 – 3.3 in your .docx
1 Probability Please read sections 3.1 – 3.3 in your .docx
 
Complements conditional probability bayes theorem
Complements  conditional probability bayes theorem  Complements  conditional probability bayes theorem
Complements conditional probability bayes theorem
 
BHARAT & KAJAL.pptx
BHARAT & KAJAL.pptxBHARAT & KAJAL.pptx
BHARAT & KAJAL.pptx
 
The binomial distributions
The binomial distributionsThe binomial distributions
The binomial distributions
 
Probability.pptx
Probability.pptxProbability.pptx
Probability.pptx
 
What are the chances? - Probability
What are the chances? - ProbabilityWhat are the chances? - Probability
What are the chances? - Probability
 
Probabilty1.pptx
Probabilty1.pptxProbabilty1.pptx
Probabilty1.pptx
 
basic probability Lecture 9.pptx
basic probability Lecture 9.pptxbasic probability Lecture 9.pptx
basic probability Lecture 9.pptx
 
603-probability mj.pptx
603-probability mj.pptx603-probability mj.pptx
603-probability mj.pptx
 

Plus de Azmi Mohd Tamil

Hybrid setup - How to conduct simultaneous face-to-face and online presentati...
Hybrid setup - How to conduct simultaneous face-to-face and online presentati...Hybrid setup - How to conduct simultaneous face-to-face and online presentati...
Hybrid setup - How to conduct simultaneous face-to-face and online presentati...Azmi Mohd Tamil
 
Audiovisual and technicalities from preparation to retrieval how to enhance m...
Audiovisual and technicalities from preparation to retrieval how to enhance m...Audiovisual and technicalities from preparation to retrieval how to enhance m...
Audiovisual and technicalities from preparation to retrieval how to enhance m...Azmi Mohd Tamil
 
Broadcast quality online teaching at zero budget
Broadcast quality online teaching at zero budgetBroadcast quality online teaching at zero budget
Broadcast quality online teaching at zero budgetAzmi Mohd Tamil
 
Video for Teaching & Learning: OBS
Video for Teaching & Learning: OBSVideo for Teaching & Learning: OBS
Video for Teaching & Learning: OBSAzmi Mohd Tamil
 
Bengkel 21-12-2020 - Etika atas Talian & Alat Minima
Bengkel 21-12-2020 - Etika atas Talian & Alat MinimaBengkel 21-12-2020 - Etika atas Talian & Alat Minima
Bengkel 21-12-2020 - Etika atas Talian & Alat MinimaAzmi Mohd Tamil
 
GIS & History of Mapping in Malaya (lecture notes circa 2009)
GIS & History of Mapping in Malaya (lecture notes circa 2009)GIS & History of Mapping in Malaya (lecture notes circa 2009)
GIS & History of Mapping in Malaya (lecture notes circa 2009)Azmi Mohd Tamil
 
Blended e-learning in UKMFolio
Blended e-learning in UKMFolioBlended e-learning in UKMFolio
Blended e-learning in UKMFolioAzmi Mohd Tamil
 
How to Compute & Recode SPSS Data
How to Compute & Recode SPSS DataHow to Compute & Recode SPSS Data
How to Compute & Recode SPSS DataAzmi Mohd Tamil
 
Introduction to Data Analysis With R and R Studio
Introduction to Data Analysis With R and R StudioIntroduction to Data Analysis With R and R Studio
Introduction to Data Analysis With R and R StudioAzmi Mohd Tamil
 
Hack#38 - How to Stream Zoom to Facebook & YouTube Without Using An Encoder o...
Hack#38 - How to Stream Zoom to Facebook & YouTube Without Using An Encoder o...Hack#38 - How to Stream Zoom to Facebook & YouTube Without Using An Encoder o...
Hack#38 - How to Stream Zoom to Facebook & YouTube Without Using An Encoder o...Azmi Mohd Tamil
 
Hack#37 - How to simultaneously live stream to 4 sites using a single hardwar...
Hack#37 - How to simultaneously live stream to 4 sites using a single hardwar...Hack#37 - How to simultaneously live stream to 4 sites using a single hardwar...
Hack#37 - How to simultaneously live stream to 4 sites using a single hardwar...Azmi Mohd Tamil
 
Cochran Mantel Haenszel Test with Breslow-Day Test & Quadratic Equation
Cochran Mantel Haenszel Test with Breslow-Day Test & Quadratic EquationCochran Mantel Haenszel Test with Breslow-Day Test & Quadratic Equation
Cochran Mantel Haenszel Test with Breslow-Day Test & Quadratic EquationAzmi Mohd Tamil
 
New Emerging And Reemerging Infections circa 2006
New Emerging And Reemerging Infections circa 2006New Emerging And Reemerging Infections circa 2006
New Emerging And Reemerging Infections circa 2006Azmi Mohd Tamil
 
Hacks#36 -Raspberry Pi 4 Mini Computer
Hacks#36 -Raspberry Pi 4 Mini ComputerHacks#36 -Raspberry Pi 4 Mini Computer
Hacks#36 -Raspberry Pi 4 Mini ComputerAzmi Mohd Tamil
 
Hack#35 How to FB Live using a Video Encoder
Hack#35 How to FB Live using a Video EncoderHack#35 How to FB Live using a Video Encoder
Hack#35 How to FB Live using a Video EncoderAzmi Mohd Tamil
 
Hack#34 - Online Teaching with Microsoft Teams
Hack#34 - Online Teaching with Microsoft TeamsHack#34 - Online Teaching with Microsoft Teams
Hack#34 - Online Teaching with Microsoft TeamsAzmi Mohd Tamil
 
Skype for Business for UKM
Skype for Business for UKM Skype for Business for UKM
Skype for Business for UKM Azmi Mohd Tamil
 
Introduction to Structural Equation Modeling
Introduction to Structural Equation ModelingIntroduction to Structural Equation Modeling
Introduction to Structural Equation ModelingAzmi Mohd Tamil
 
Safe computing (circa 2004)
Safe computing (circa 2004)Safe computing (circa 2004)
Safe computing (circa 2004)Azmi Mohd Tamil
 

Plus de Azmi Mohd Tamil (20)

Hybrid setup - How to conduct simultaneous face-to-face and online presentati...
Hybrid setup - How to conduct simultaneous face-to-face and online presentati...Hybrid setup - How to conduct simultaneous face-to-face and online presentati...
Hybrid setup - How to conduct simultaneous face-to-face and online presentati...
 
Audiovisual and technicalities from preparation to retrieval how to enhance m...
Audiovisual and technicalities from preparation to retrieval how to enhance m...Audiovisual and technicalities from preparation to retrieval how to enhance m...
Audiovisual and technicalities from preparation to retrieval how to enhance m...
 
Broadcast quality online teaching at zero budget
Broadcast quality online teaching at zero budgetBroadcast quality online teaching at zero budget
Broadcast quality online teaching at zero budget
 
Video for Teaching & Learning: OBS
Video for Teaching & Learning: OBSVideo for Teaching & Learning: OBS
Video for Teaching & Learning: OBS
 
Bengkel 21-12-2020 - Etika atas Talian & Alat Minima
Bengkel 21-12-2020 - Etika atas Talian & Alat MinimaBengkel 21-12-2020 - Etika atas Talian & Alat Minima
Bengkel 21-12-2020 - Etika atas Talian & Alat Minima
 
GIS & History of Mapping in Malaya (lecture notes circa 2009)
GIS & History of Mapping in Malaya (lecture notes circa 2009)GIS & History of Mapping in Malaya (lecture notes circa 2009)
GIS & History of Mapping in Malaya (lecture notes circa 2009)
 
Blended e-learning in UKMFolio
Blended e-learning in UKMFolioBlended e-learning in UKMFolio
Blended e-learning in UKMFolio
 
How to Compute & Recode SPSS Data
How to Compute & Recode SPSS DataHow to Compute & Recode SPSS Data
How to Compute & Recode SPSS Data
 
Introduction to Data Analysis With R and R Studio
Introduction to Data Analysis With R and R StudioIntroduction to Data Analysis With R and R Studio
Introduction to Data Analysis With R and R Studio
 
Hack#38 - How to Stream Zoom to Facebook & YouTube Without Using An Encoder o...
Hack#38 - How to Stream Zoom to Facebook & YouTube Without Using An Encoder o...Hack#38 - How to Stream Zoom to Facebook & YouTube Without Using An Encoder o...
Hack#38 - How to Stream Zoom to Facebook & YouTube Without Using An Encoder o...
 
Hack#37 - How to simultaneously live stream to 4 sites using a single hardwar...
Hack#37 - How to simultaneously live stream to 4 sites using a single hardwar...Hack#37 - How to simultaneously live stream to 4 sites using a single hardwar...
Hack#37 - How to simultaneously live stream to 4 sites using a single hardwar...
 
Cochran Mantel Haenszel Test with Breslow-Day Test & Quadratic Equation
Cochran Mantel Haenszel Test with Breslow-Day Test & Quadratic EquationCochran Mantel Haenszel Test with Breslow-Day Test & Quadratic Equation
Cochran Mantel Haenszel Test with Breslow-Day Test & Quadratic Equation
 
New Emerging And Reemerging Infections circa 2006
New Emerging And Reemerging Infections circa 2006New Emerging And Reemerging Infections circa 2006
New Emerging And Reemerging Infections circa 2006
 
Hacks#36 -Raspberry Pi 4 Mini Computer
Hacks#36 -Raspberry Pi 4 Mini ComputerHacks#36 -Raspberry Pi 4 Mini Computer
Hacks#36 -Raspberry Pi 4 Mini Computer
 
Hack#35 How to FB Live using a Video Encoder
Hack#35 How to FB Live using a Video EncoderHack#35 How to FB Live using a Video Encoder
Hack#35 How to FB Live using a Video Encoder
 
Hack#34 - Online Teaching with Microsoft Teams
Hack#34 - Online Teaching with Microsoft TeamsHack#34 - Online Teaching with Microsoft Teams
Hack#34 - Online Teaching with Microsoft Teams
 
Hack#33 How To FB-Live
Hack#33 How To FB-LiveHack#33 How To FB-Live
Hack#33 How To FB-Live
 
Skype for Business for UKM
Skype for Business for UKM Skype for Business for UKM
Skype for Business for UKM
 
Introduction to Structural Equation Modeling
Introduction to Structural Equation ModelingIntroduction to Structural Equation Modeling
Introduction to Structural Equation Modeling
 
Safe computing (circa 2004)
Safe computing (circa 2004)Safe computing (circa 2004)
Safe computing (circa 2004)
 

Dernier

Call Girl In Indore 📞9235973566📞 Just📲 Call Inaaya Indore Call Girls Service ...
Call Girl In Indore 📞9235973566📞 Just📲 Call Inaaya Indore Call Girls Service ...Call Girl In Indore 📞9235973566📞 Just📲 Call Inaaya Indore Call Girls Service ...
Call Girl In Indore 📞9235973566📞 Just📲 Call Inaaya Indore Call Girls Service ...Sheetaleventcompany
 
🚺LEELA JOSHI WhatsApp Number +91-9930245274 ✔ Unsatisfied Bhabhi Call Girls T...
🚺LEELA JOSHI WhatsApp Number +91-9930245274 ✔ Unsatisfied Bhabhi Call Girls T...🚺LEELA JOSHI WhatsApp Number +91-9930245274 ✔ Unsatisfied Bhabhi Call Girls T...
🚺LEELA JOSHI WhatsApp Number +91-9930245274 ✔ Unsatisfied Bhabhi Call Girls T...soniya pandit
 
Call Girls Mussoorie Just Call 8854095900 Top Class Call Girl Service Available
Call Girls Mussoorie Just Call 8854095900 Top Class Call Girl Service AvailableCall Girls Mussoorie Just Call 8854095900 Top Class Call Girl Service Available
Call Girls Mussoorie Just Call 8854095900 Top Class Call Girl Service AvailableJanvi Singh
 
Whitefield { Call Girl in Bangalore ₹7.5k Pick Up & Drop With Cash Payment 63...
Whitefield { Call Girl in Bangalore ₹7.5k Pick Up & Drop With Cash Payment 63...Whitefield { Call Girl in Bangalore ₹7.5k Pick Up & Drop With Cash Payment 63...
Whitefield { Call Girl in Bangalore ₹7.5k Pick Up & Drop With Cash Payment 63...dishamehta3332
 
Premium Call Girls Nagpur {9xx000xx09} ❤️VVIP POOJA Call Girls in Nagpur Maha...
Premium Call Girls Nagpur {9xx000xx09} ❤️VVIP POOJA Call Girls in Nagpur Maha...Premium Call Girls Nagpur {9xx000xx09} ❤️VVIP POOJA Call Girls in Nagpur Maha...
Premium Call Girls Nagpur {9xx000xx09} ❤️VVIP POOJA Call Girls in Nagpur Maha...Sheetaleventcompany
 
7 steps How to prevent Thalassemia : Dr Sharda Jain & Vandana Gupta
7 steps How to prevent Thalassemia : Dr Sharda Jain & Vandana Gupta7 steps How to prevent Thalassemia : Dr Sharda Jain & Vandana Gupta
7 steps How to prevent Thalassemia : Dr Sharda Jain & Vandana GuptaLifecare Centre
 
👉 Amritsar Call Girls 👉📞 8725944379 👉📞 Just📲 Call Ruhi Call Girl Near Me Amri...
👉 Amritsar Call Girls 👉📞 8725944379 👉📞 Just📲 Call Ruhi Call Girl Near Me Amri...👉 Amritsar Call Girls 👉📞 8725944379 👉📞 Just📲 Call Ruhi Call Girl Near Me Amri...
👉 Amritsar Call Girls 👉📞 8725944379 👉📞 Just📲 Call Ruhi Call Girl Near Me Amri...Sheetaleventcompany
 
Premium Call Girls Dehradun {8854095900} ❤️VVIP ANJU Call Girls in Dehradun U...
Premium Call Girls Dehradun {8854095900} ❤️VVIP ANJU Call Girls in Dehradun U...Premium Call Girls Dehradun {8854095900} ❤️VVIP ANJU Call Girls in Dehradun U...
Premium Call Girls Dehradun {8854095900} ❤️VVIP ANJU Call Girls in Dehradun U...Sheetaleventcompany
 
tongue disease lecture Dr Assadawy legacy
tongue disease lecture Dr Assadawy legacytongue disease lecture Dr Assadawy legacy
tongue disease lecture Dr Assadawy legacyDrMohamed Assadawy
 
Control of Local Blood Flow: acute and chronic
Control of Local Blood Flow: acute and chronicControl of Local Blood Flow: acute and chronic
Control of Local Blood Flow: acute and chronicMedicoseAcademics
 
Chandigarh Call Girls Service ❤️🍑 9809698092 👄🫦Independent Escort Service Cha...
Chandigarh Call Girls Service ❤️🍑 9809698092 👄🫦Independent Escort Service Cha...Chandigarh Call Girls Service ❤️🍑 9809698092 👄🫦Independent Escort Service Cha...
Chandigarh Call Girls Service ❤️🍑 9809698092 👄🫦Independent Escort Service Cha...Sheetaleventcompany
 
Call Girls Shahdol Just Call 8250077686 Top Class Call Girl Service Available
Call Girls Shahdol Just Call 8250077686 Top Class Call Girl Service AvailableCall Girls Shahdol Just Call 8250077686 Top Class Call Girl Service Available
Call Girls Shahdol Just Call 8250077686 Top Class Call Girl Service AvailableDipal Arora
 
👉 Chennai Sexy Aunty’s WhatsApp Number 👉📞 7427069034 👉📞 Just📲 Call Ruhi Colle...
👉 Chennai Sexy Aunty’s WhatsApp Number 👉📞 7427069034 👉📞 Just📲 Call Ruhi Colle...👉 Chennai Sexy Aunty’s WhatsApp Number 👉📞 7427069034 👉📞 Just📲 Call Ruhi Colle...
👉 Chennai Sexy Aunty’s WhatsApp Number 👉📞 7427069034 👉📞 Just📲 Call Ruhi Colle...rajnisinghkjn
 
Most Beautiful Call Girl in Chennai 7427069034 Contact on WhatsApp
Most Beautiful Call Girl in Chennai 7427069034 Contact on WhatsAppMost Beautiful Call Girl in Chennai 7427069034 Contact on WhatsApp
Most Beautiful Call Girl in Chennai 7427069034 Contact on WhatsAppjimmihoslasi
 
💰Call Girl In Bangalore☎️63788-78445💰 Call Girl service in Bangalore☎️Bangalo...
💰Call Girl In Bangalore☎️63788-78445💰 Call Girl service in Bangalore☎️Bangalo...💰Call Girl In Bangalore☎️63788-78445💰 Call Girl service in Bangalore☎️Bangalo...
💰Call Girl In Bangalore☎️63788-78445💰 Call Girl service in Bangalore☎️Bangalo...gragneelam30
 
Electrocardiogram (ECG) physiological basis .pdf
Electrocardiogram (ECG) physiological basis .pdfElectrocardiogram (ECG) physiological basis .pdf
Electrocardiogram (ECG) physiological basis .pdfMedicoseAcademics
 
Kolkata Call Girls Shobhabazar 💯Call Us 🔝 8005736733 🔝 💃 Top Class Call Gir...
Kolkata Call Girls Shobhabazar  💯Call Us 🔝 8005736733 🔝 💃  Top Class Call Gir...Kolkata Call Girls Shobhabazar  💯Call Us 🔝 8005736733 🔝 💃  Top Class Call Gir...
Kolkata Call Girls Shobhabazar 💯Call Us 🔝 8005736733 🔝 💃 Top Class Call Gir...Namrata Singh
 
Call Girls Bangalore - 450+ Call Girl Cash Payment 💯Call Us 🔝 6378878445 🔝 💃 ...
Call Girls Bangalore - 450+ Call Girl Cash Payment 💯Call Us 🔝 6378878445 🔝 💃 ...Call Girls Bangalore - 450+ Call Girl Cash Payment 💯Call Us 🔝 6378878445 🔝 💃 ...
Call Girls Bangalore - 450+ Call Girl Cash Payment 💯Call Us 🔝 6378878445 🔝 💃 ...gragneelam30
 
Gorgeous Call Girls Dehradun {8854095900} ❤️VVIP ROCKY Call Girls in Dehradun...
Gorgeous Call Girls Dehradun {8854095900} ❤️VVIP ROCKY Call Girls in Dehradun...Gorgeous Call Girls Dehradun {8854095900} ❤️VVIP ROCKY Call Girls in Dehradun...
Gorgeous Call Girls Dehradun {8854095900} ❤️VVIP ROCKY Call Girls in Dehradun...Sheetaleventcompany
 
💚Chandigarh Call Girls Service 💯Piya 📲🔝8868886958🔝Call Girls In Chandigarh No...
💚Chandigarh Call Girls Service 💯Piya 📲🔝8868886958🔝Call Girls In Chandigarh No...💚Chandigarh Call Girls Service 💯Piya 📲🔝8868886958🔝Call Girls In Chandigarh No...
💚Chandigarh Call Girls Service 💯Piya 📲🔝8868886958🔝Call Girls In Chandigarh No...Sheetaleventcompany
 

Dernier (20)

Call Girl In Indore 📞9235973566📞 Just📲 Call Inaaya Indore Call Girls Service ...
Call Girl In Indore 📞9235973566📞 Just📲 Call Inaaya Indore Call Girls Service ...Call Girl In Indore 📞9235973566📞 Just📲 Call Inaaya Indore Call Girls Service ...
Call Girl In Indore 📞9235973566📞 Just📲 Call Inaaya Indore Call Girls Service ...
 
🚺LEELA JOSHI WhatsApp Number +91-9930245274 ✔ Unsatisfied Bhabhi Call Girls T...
🚺LEELA JOSHI WhatsApp Number +91-9930245274 ✔ Unsatisfied Bhabhi Call Girls T...🚺LEELA JOSHI WhatsApp Number +91-9930245274 ✔ Unsatisfied Bhabhi Call Girls T...
🚺LEELA JOSHI WhatsApp Number +91-9930245274 ✔ Unsatisfied Bhabhi Call Girls T...
 
Call Girls Mussoorie Just Call 8854095900 Top Class Call Girl Service Available
Call Girls Mussoorie Just Call 8854095900 Top Class Call Girl Service AvailableCall Girls Mussoorie Just Call 8854095900 Top Class Call Girl Service Available
Call Girls Mussoorie Just Call 8854095900 Top Class Call Girl Service Available
 
Whitefield { Call Girl in Bangalore ₹7.5k Pick Up & Drop With Cash Payment 63...
Whitefield { Call Girl in Bangalore ₹7.5k Pick Up & Drop With Cash Payment 63...Whitefield { Call Girl in Bangalore ₹7.5k Pick Up & Drop With Cash Payment 63...
Whitefield { Call Girl in Bangalore ₹7.5k Pick Up & Drop With Cash Payment 63...
 
Premium Call Girls Nagpur {9xx000xx09} ❤️VVIP POOJA Call Girls in Nagpur Maha...
Premium Call Girls Nagpur {9xx000xx09} ❤️VVIP POOJA Call Girls in Nagpur Maha...Premium Call Girls Nagpur {9xx000xx09} ❤️VVIP POOJA Call Girls in Nagpur Maha...
Premium Call Girls Nagpur {9xx000xx09} ❤️VVIP POOJA Call Girls in Nagpur Maha...
 
7 steps How to prevent Thalassemia : Dr Sharda Jain & Vandana Gupta
7 steps How to prevent Thalassemia : Dr Sharda Jain & Vandana Gupta7 steps How to prevent Thalassemia : Dr Sharda Jain & Vandana Gupta
7 steps How to prevent Thalassemia : Dr Sharda Jain & Vandana Gupta
 
👉 Amritsar Call Girls 👉📞 8725944379 👉📞 Just📲 Call Ruhi Call Girl Near Me Amri...
👉 Amritsar Call Girls 👉📞 8725944379 👉📞 Just📲 Call Ruhi Call Girl Near Me Amri...👉 Amritsar Call Girls 👉📞 8725944379 👉📞 Just📲 Call Ruhi Call Girl Near Me Amri...
👉 Amritsar Call Girls 👉📞 8725944379 👉📞 Just📲 Call Ruhi Call Girl Near Me Amri...
 
Premium Call Girls Dehradun {8854095900} ❤️VVIP ANJU Call Girls in Dehradun U...
Premium Call Girls Dehradun {8854095900} ❤️VVIP ANJU Call Girls in Dehradun U...Premium Call Girls Dehradun {8854095900} ❤️VVIP ANJU Call Girls in Dehradun U...
Premium Call Girls Dehradun {8854095900} ❤️VVIP ANJU Call Girls in Dehradun U...
 
tongue disease lecture Dr Assadawy legacy
tongue disease lecture Dr Assadawy legacytongue disease lecture Dr Assadawy legacy
tongue disease lecture Dr Assadawy legacy
 
Control of Local Blood Flow: acute and chronic
Control of Local Blood Flow: acute and chronicControl of Local Blood Flow: acute and chronic
Control of Local Blood Flow: acute and chronic
 
Chandigarh Call Girls Service ❤️🍑 9809698092 👄🫦Independent Escort Service Cha...
Chandigarh Call Girls Service ❤️🍑 9809698092 👄🫦Independent Escort Service Cha...Chandigarh Call Girls Service ❤️🍑 9809698092 👄🫦Independent Escort Service Cha...
Chandigarh Call Girls Service ❤️🍑 9809698092 👄🫦Independent Escort Service Cha...
 
Call Girls Shahdol Just Call 8250077686 Top Class Call Girl Service Available
Call Girls Shahdol Just Call 8250077686 Top Class Call Girl Service AvailableCall Girls Shahdol Just Call 8250077686 Top Class Call Girl Service Available
Call Girls Shahdol Just Call 8250077686 Top Class Call Girl Service Available
 
👉 Chennai Sexy Aunty’s WhatsApp Number 👉📞 7427069034 👉📞 Just📲 Call Ruhi Colle...
👉 Chennai Sexy Aunty’s WhatsApp Number 👉📞 7427069034 👉📞 Just📲 Call Ruhi Colle...👉 Chennai Sexy Aunty’s WhatsApp Number 👉📞 7427069034 👉📞 Just📲 Call Ruhi Colle...
👉 Chennai Sexy Aunty’s WhatsApp Number 👉📞 7427069034 👉📞 Just📲 Call Ruhi Colle...
 
Most Beautiful Call Girl in Chennai 7427069034 Contact on WhatsApp
Most Beautiful Call Girl in Chennai 7427069034 Contact on WhatsAppMost Beautiful Call Girl in Chennai 7427069034 Contact on WhatsApp
Most Beautiful Call Girl in Chennai 7427069034 Contact on WhatsApp
 
💰Call Girl In Bangalore☎️63788-78445💰 Call Girl service in Bangalore☎️Bangalo...
💰Call Girl In Bangalore☎️63788-78445💰 Call Girl service in Bangalore☎️Bangalo...💰Call Girl In Bangalore☎️63788-78445💰 Call Girl service in Bangalore☎️Bangalo...
💰Call Girl In Bangalore☎️63788-78445💰 Call Girl service in Bangalore☎️Bangalo...
 
Electrocardiogram (ECG) physiological basis .pdf
Electrocardiogram (ECG) physiological basis .pdfElectrocardiogram (ECG) physiological basis .pdf
Electrocardiogram (ECG) physiological basis .pdf
 
Kolkata Call Girls Shobhabazar 💯Call Us 🔝 8005736733 🔝 💃 Top Class Call Gir...
Kolkata Call Girls Shobhabazar  💯Call Us 🔝 8005736733 🔝 💃  Top Class Call Gir...Kolkata Call Girls Shobhabazar  💯Call Us 🔝 8005736733 🔝 💃  Top Class Call Gir...
Kolkata Call Girls Shobhabazar 💯Call Us 🔝 8005736733 🔝 💃 Top Class Call Gir...
 
Call Girls Bangalore - 450+ Call Girl Cash Payment 💯Call Us 🔝 6378878445 🔝 💃 ...
Call Girls Bangalore - 450+ Call Girl Cash Payment 💯Call Us 🔝 6378878445 🔝 💃 ...Call Girls Bangalore - 450+ Call Girl Cash Payment 💯Call Us 🔝 6378878445 🔝 💃 ...
Call Girls Bangalore - 450+ Call Girl Cash Payment 💯Call Us 🔝 6378878445 🔝 💃 ...
 
Gorgeous Call Girls Dehradun {8854095900} ❤️VVIP ROCKY Call Girls in Dehradun...
Gorgeous Call Girls Dehradun {8854095900} ❤️VVIP ROCKY Call Girls in Dehradun...Gorgeous Call Girls Dehradun {8854095900} ❤️VVIP ROCKY Call Girls in Dehradun...
Gorgeous Call Girls Dehradun {8854095900} ❤️VVIP ROCKY Call Girls in Dehradun...
 
💚Chandigarh Call Girls Service 💯Piya 📲🔝8868886958🔝Call Girls In Chandigarh No...
💚Chandigarh Call Girls Service 💯Piya 📲🔝8868886958🔝Call Girls In Chandigarh No...💚Chandigarh Call Girls Service 💯Piya 📲🔝8868886958🔝Call Girls In Chandigarh No...
💚Chandigarh Call Girls Service 💯Piya 📲🔝8868886958🔝Call Girls In Chandigarh No...
 

Probability & Bayesian Theorem

  • 1. Probability Dr Azmi Mohd Tamil Dept of Community Health Universiti Kebangsaan Malaysia
  • 2. Sample Spaces 4 A sample space is the set of all possible outcomes. However, some sample spaces are better than others. 4 Consider the experiment of flipping two coins. It is possible to get 0 heads, 1 head, or 2 heads. Thus, the sample space could be {0, 1, 2}. Another way to look at it is flip { HH, HT, TH, TT }. The second way is better because each event is as equally likely to occur as any other. 4 When writing the sample space, it is highly desirable to have events which are equally likely.
  • 3. Sample Spaces 4 Another example is rolling two dice. The sums are { 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12 }. However, each of these aren't equally likely. The only way to get a sum 2 is to roll a 1 on both dice, but you can get a sum of 4 by rolling a 3-1, 2-2, or 3- 1. The following table illustrates a better sample space for the sum obtain when rolling two dice.
  • 4. Example Second Die First Die 1 2 3 4 5 6 1 2 3 4 5 6 7 2 3 4 5 6 7 8 3 4 5 6 7 8 9 4 5 6 7 8 9 10 5 6 7 8 9 10 11 6 7 8 9 10 11 12
  • 5. Classical Probability Sum Freq Relative Freq 4 The relative frequency of a frequency distribution is the probability of the event 2 1 1/36 occurring. This is only true, 3 2 2/36 however, if the events are 4 3 3/36 equally likely. 5 4 4/36 4 This gives us the formula for 6 5 5/36 classical probability. The 7 6 6/36 probability of an event occurring 8 5 5/36 is the number in the event 9 4 4/36 divided by the number in the sample space. 10 3 3/36 11 2 2/36 4 P(E) = n(E) / n(S) 12 1 1/36
  • 6. Empirical Probability 4 Empirical probability is based on 4 P(E) = f / n observation. The empirical probability of an event is the relative frequency of a frequency distribution based upon observation.
  • 7. Probability Rules 4 All probabilities are between 0 and 1 inclusive 0 <= P(E) <= 1 4 The sum of all the probabilities in the sample space is 1 4 The probability of an event which cannot occur is 0. 4 The probability of an event which must occur is 1. 4 The probability of an event not occurring is one minus the probability of it occurring. P(E') = 1 - P(E)
  • 8. Mutually Exclusive Events 4 Two events are mutually exclusive if they cannot occur at the same time. 4 If two events are mutually exclusive , then the probability of them both occurring at the same time is 0. Mutually Exclusive : P(A and B) = 0 4 If two events are mutually exclusive, then the probability of either occurring is the sum of the probabilities of each occurring.
  • 9. Specific Addition Rule 4 Only valid when the events are mutually exclusive. P(A or B) = P(A) + P(B)
  • 10. Example 1 4 Given: P(A) = 0.20, P(B) = 0.70, A and B are mutually exclusive B B' Total A 0 0.2 0.2 A' 0.7 0.1 0.8 Total 0.7 0.3 1
  • 11. Non-Mutually Exclusive Events 4 In events which aren't mutually exclusive, there is some overlap. When P(A) and P(B) are added, the probability of the intersection (and) is added twice. To compensate for that double addition, the intersection needs to be subtracted. 4 General Addition Rule P(A or B) = P(A) + P(B) - P(A and B)
  • 12. Example 2 4 Given P(A) = 0.20, P(B) = 0.70, P(A and B) = 0.15 B B' Total A 0.15 0.05 0.2 A' 0.55 0.25 0.8 Total 0.7 0.3 1
  • 13. Independent Events 4 Two events are independent if the occurrence of one does not change the probability of the other occurring. 4 An example would be rolling a 2 on a die and flipping a head on a coin. Rolling the 2 does not affect the probability of flipping the head. 4 If events are independent, then the probability of them both occurring is the product of the probabilities of each occurring.
  • 14. Specific Multiplication Rule 4 Only valid for independent events P(A and B) = P(A) * P(B)
  • 15. Example 3 4 P(A)= 0.20, P(B) = 0.70, A and B are independent. B B' Total A 0.14 0.06 0.2 A' 0.56 0.24 0.8 Total 0.7 0.3 1
  • 16. Dependent Events 4Ifthe occurrence of one event does affect the probability of the other occurring, then the events are dependent.
  • 17. Conditional Probability 4The probability of event B occurring that event A has already occurred is read "the probability of B given A" and is written: P(B|A) 4 GeneralMultiplication Rule P(A and B) = P(A) * P(B|A)
  • 18. Example 4 4 P(A) = 0.20, P(B) = 0.70, P(B|A) = 0.40 B B' Total A 0.08 0.12 0.2 A' 0.62 0.18 0.8 Total 0.7 0.3 1
  • 19. Independence Revisited 4 Thefollowing four statements are equivalent 1.A and B are independent events 2.P(A and B) = P(A) * P(B) 3.P(A|B) = P(A) 4.P(B|A) = P(B)
  • 20. The question, "Do you smoke?" was asked of 100 people. Results are shown in the table. . Yes No Total Male 19 41 60 Female 12 28 40 Total 31 69 100 •What is the probability of a randomly selected individual being a male who smokes? This is just a joint probability. The number of "Male and Smoke" divided by the total = 19/100 = 0.19 •What is the probability of a randomly selected individual being a male? This is the total for male divided by the total = 60/100 = 0.60. Since no mention is made of smoking or not smoking, it includes all the cases. •What is the probability of a randomly selected individual smoking? Again, since no mention is made of gender, this is a marginal probability, the total who smoke divided by the total = 31/100 = 0.31. •What is the probability of a randomly selected male smoking? This time, you're told that you have a male - think of stratified sampling. What is the probability that the male smokes? Well, 19 males smoke out of 60 males, so 19/60 = 0.31666... •What is the probability that a randomly selected smoker is male? This time, you're told that you have a smoker and asked to find the probability that the smoker is also male. There are 19 male smokers out of 31 total smokers, so 19/31 = 0.6129 (approx)
  • 21. There are three major manufacturing companies that make a product: Aberations, Brochmailians, and Chompielians. Aberations has a 50% market share, and Brochmailians has a 30% market share. 5% of Aberations' product is defective, 7% of Brochmailians' product is defective, and 10% of Chompieliens' product is defective. This information can be placed into a joint probability distribution Company Good Defective Total Aberations 0.50-0.025 = 0.475 0.05(0.50) = 0.025 0.50 Brochmailians 0.30-0.021 = 0.279 0.07(0.30) = 0.021 0.30 Chompieliens 0.20-0.020 = 0.180 0.10(0.20) = 0.020 0.20 Total 0.934 0.066 1.00 •What is the probability a randomly selected product is defective? •What is the probability that a defective product came from Brochmailians?
  • 22. The percent of the market share for Chompieliens wasn't given, but since the marginals must add to be 1.00, they have a 20% market share. Notice that the 5%, 7%, and 10% defective rates don't go into the table directly. This is because they are conditional probabilities and the table is a joint probability table. These defective probabilities are conditional upon which company was given. That is, the 7% is not P(Defective), but P(Defective|Brochmailians). The joint probability P(Defective and Brochmailians) = P(Defective|Brochmailians) * P(Brochmailians). The "good" probabilities can be found by subtraction as shown above, or by multiplication using conditional probabilities. If 7% of Brochmailians' product is defective, then 93% is good. 0.93(0.30)=0.279. •What is the probability a randomly selected product is defective? P(Defective) = 0.066 •What is the probability that a defective product came from Brochmailians? P(Brochmailian|Defective) = P(Brochmailian and Defective) / P(Defective) = 0.021/0.066 = 7/22 = 0.318 (approx). •Are these events independent? No. If they were, then P(Brochmailians|Defective)=0.318 would have to equal the P(Brochmailians)=0.30, but it doesn't. Also, the P(Aberations and Defective)=0.025 would have to be P(Aberations)*P(Defective) = 0.50*0.066=0.033, and it doesn't.
  • 23. Bayes' Theorem Let's use the same example, but shorten each event to its one letter initial, ie: A, B, C, and D instead of Aberations, Brochmailians, Chompieliens, and Defective. P(D|B) is not a Bayes problem. This is given in the problem. Bayes' formula finds the reverse conditional probability P(B|D). It is based that the Given (D) is made of three parts, the part of D in A, the part of D in B, and the part of D in C. P(B and D) P(B|D) = ----------------------------------------------------- P(A and D) + P(B and D) + P(C and D) Inserting the multiplication rule for each of these joint probabilities gives P(D|B)*P(B) P(B|D) = ------------------------------------------------------------ P(D|A)*P(A) + P(D|B)*P(B) + P(D|C)*P(C)