The UNIVERSITY of NORTH CAROLINA at CHAPEL HILL Chapter 3. Conditional Probability and Independence Section 3.1. Conditional Probability Section 3.2 Independence.

Slides:



Advertisements
Similar presentations
Punnett Squares C Kohn, Waterford WI.
Advertisements

Chapter 11: Probability of Compound Events
Chapter 13: Sequential Experiments & Bayes’ Theorem 1.(13.1) Partition Theorem 2.(13.2) Bayes’ Theorem 1.(13.1) Partition Theorem 2.(13.2) Bayes’ Theorem.
Chpt. 23 The Evolution of Populations-- Population Genetics
The UNIVERSITY of NORTH CAROLINA at CHAPEL HILL Chapter 3. Conditional Probability and Independence Section 3.3. Theorem of Total Probability and Bayes’
The UNIVERSITY of NORTH CAROLINA at CHAPEL HILL Chapter 4. Discrete Probability Distributions Section 4.11: Markov Chains Jiaping Wang Department of Mathematical.
1 Probability Theory Dr. Deshi Ye
Probability in genetics. Gregor Mendel (1822 – 1884), experimented on peas Mendelian inheritance, single (or very few) genes controlling certain expressed.
COUNTING AND PROBABILITY
Chapter 10: Probability of Events
Chapter 12: Conditional Probability & Independence 1.(12.1) Conditional Probability 2.(12.2) Independence 1.(12.1) Conditional Probability 2.(12.2) Independence.
Independence and the Multiplication Rule
Genetics & Heredity. Who was Gregor Mendel? Austrian monk who studied mathematics and science As a boy he could predict the possible types of flowers.
Chapter 4: Probability (Cont.) In this handout: Total probability rule Bayes’ rule Random sampling from finite population Rule of combinations.
2-1 Sample Spaces and Events Conducting an experiment, in day-to-day repetitions of the measurement the results can differ slightly because of small.
Today Today: Some more counting examples; Start Chapter 2 Important Sections from Chapter 1: ; Please read Reading: –Assignment #2 is up.
Chapter 12 Mendel and Heredity.
6 Probability Chapter6 p Operations on events and probability An event is the basic element to which probability can be applied. Notations Event:
Conditional Probability. Conditional Probability of an Event Illustrating Example (1): Consider the experiment of guessing the answer to a multiple choice.
Chapter 7: Genes and Inheritance Family resemblance: how traits are inherited Lectures by Mark Manteuffel, St. Louis Community College.
 Explain how genes are responsible for certain traits that we acquire from our parents?  In complete sentences, explain meiosis and explain its role.
The UNIVERSITY of NORTH CAROLINA at CHAPEL HILL Chapter 2. Foundations of Probability Section 2.3. Definition of Probability Jiaping Wang Department of.
Nor Fashihah Mohd Noor Institut Matematik Kejuruteraan Universiti Malaysia Perlis ІМ ќ INSTITUT MATEMATIK K E J U R U T E R A A N U N I M A P.
Genetics & Heredity Chp. 10:1. Who was Gregor Mendel? “Father of Genetics”
Probability A Brief Look.
1 2. Independence and Bernoulli Trials Independence: Events A and B are independent if It is easy to show that A, B independent implies are all independent.
The UNIVERSITY of NORTH CAROLINA at CHAPEL HILL Chapter 4. Discrete Probability Distributions Sections 4.7, 4.8: Poisson and Hypergeometric Distributions.
Lesson 8-4 Warm-Up.
Chapter 3 – Basic Principles of Heredity. Johann Gregor Mendel (1822 – 1884) Pisum sativum Rapid growth; lots of offspring Self fertilize with a single.
Objectives 11.3 Other Patterns of Inheritance
The UNIVERSITY of NORTH CAROLINA at CHAPEL HILL Review of Exam I Sections Jiaping Wang Department of Mathematical Science 02/18/2013, Monday.
CATALYST Recall and Review: – What are chromosomes? – What are genes? – What are alleles? How do these terms relate to DNA? How do these terms relate to.
Topic: Genetics Aim: Describe multiple alleles and explain the inheritance of blood types. Do Now: Review HW: Ditto – Reproductive Systems Review (BOTH.
IT College Introduction to Computer Statistical Packages Lecture 8 Eng. Heba Hamad.
Chapter 4 Probability ©. Sample Space sample space.S The possible outcomes of a random experiment are called the basic outcomes, and the set of all basic.
Probability Chapter Conditional Probability Section
The UNIVERSITY of NORTH CAROLINA at CHAPEL HILL Chapter 4. Discrete Probability Distributions Section 4.6: Negative Binomial Distribution Jiaping Wang.
Chapter 4 Section : Patterns of Heredity
Genetics & Heredity Mr. Nigh
Genetics & Heredity. Who was Gregor Mendel? Austrian monk who studied mathematics and science As a boy he experimented with pea plants Made careful use.
The UNIVERSITY of NORTH CAROLINA at CHAPEL HILL Chapter 2. Foundations of Probability Section 2.2. Sample Space and Events Jiaping Wang Department of Mathematical.
The Hardy-Weinberg principle is like a Punnett square for populations, instead of individuals. A Punnett square can predict the probability of offspring's.
 HAPPY WEDNESDAY  BT TT
 HAPPY FRIDAY  A3 Bellwork:
1.Stream A and Stream B are located on two isolated islands with similar characteristics. How do these two stream beds differ? 2.Suppose a fish that varies.
To be presented by Maral Hudaybergenova IENG 513 FALL 2015.
Theoretical Genetics. Genetic Terms: P = parental generation of a cross F1 = the first generation after the parental (the results of the first cross)
ESERCITAZIONE 3 HUMAN GENETICS BLOOD GROUPS RECOGNITION OF PATHERNITY FAMILY PEDIGREE.
Principles of Heredity Chapter 8. Gregor Mendel Father of Genetics –1860’s Austrian Monk –Made the 1 st detailed investigation of how traits are inherited.
Chapter 14. Mendel and Heredity  Gregor Mendel – Austrian Munk  Worked with heredity in pea plants  Wanted to determine how characters and traits were.
Gregor Mendel.  Inheritance  An individual’s characteristics are determined by factors that are passed from one parental generation to the next.  The.
Hardy Weinberg Equilibrium. What is Hardy- Weinberg? A population is in Hardy-Weinberg equilibrium if the genotype frequencies are the same in each generation.
Chapter 4 Some basic Probability Concepts 1-1. Learning Objectives  To learn the concept of the sample space associated with a random experiment.  To.
Genetics: Part II Predicting Offspring.
Punnett Squares Honors Genetics Ms. Gaynor
Have your homework out to be checked
What is Probability? Quantification of uncertainty.
Multiple Alleles.
Introduction to Genetics
Punnett Squares.
Agenda 4/5 Genetics Intro Review Predicting Offspring Lecture
Genes and Variation EQ: How is the gene pool affected by selection pressure? Read the lesson title aloud to students.
Terry Kotrla, MS, MT(ASCP)BB
Punnett Squares C Kohn, Waterford WI.
Using Punnett Squares A Punnett square is a model that predicts the likely outcomes of a genetic cross. A Punnett square shows all of the genotypes that.
Section 3: Modeling Mendel’s Laws
CATALYST Recall and Review: How do these terms relate to DNA?
11-3 Exploring Mendelian Genetics
Section 18.2 Probability and Inheritance of Single Traits
Chapter 5 Notes Heredity.
Presentation transcript:

The UNIVERSITY of NORTH CAROLINA at CHAPEL HILL Chapter 3. Conditional Probability and Independence Section 3.1. Conditional Probability Section 3.2 Independence Jiaping Wang Department of Mathematical Science 01/28/2013, Monday

The UNIVERSITY of NORTH CAROLINA at CHAPEL HILL Outline Why Conditional Probability Definition of Conditional Probability Application of Conditional Probability Independence Applications of Independence

The UNIVERSITY of NORTH CAROLINA at CHAPEL HILL Part 1. Why Conditional Probability

The UNIVERSITY of NORTH CAROLINA at CHAPEL HILL Example A common summary of these data is the “unemployment rate”, which is 5511/ = 4.4%. However, this rate doesn’t tell us anything about the association between unemployment and education. So we are interested in finding another probability, called conditional probability. EmployedUnemployedTotal Less than high school diploma11,4081,06212,470 High School, No College35,9441,89037,834 Some College, No Degree21,2841,01422,298 Associate Degree11, ,141 Bachelor’s Degree and Higher39,2931,09840,390 Total119,6225,511125,133

The UNIVERSITY of NORTH CAROLINA at CHAPEL HILL Now we compute the conditional probability based on the education for the unemployment rate. From the following table, we can find when the education level increases, the unemployment rate decreases. Now we compute the conditional probability based on the education for the unemployment rate. From the following table, we can find when the education level increases, the unemployment rate decreases. Continue EmployedUnemployed Less than high school diploma91.5%8.5% High School, No College95.0%5.0% Some College, No Degree95.5%4.5% Associate Degree96.3%3.7% Bachelor’s Degree and Higher %

The UNIVERSITY of NORTH CAROLINA at CHAPEL HILL Example 3.1 Projected percentage of workers in the labor force for 2014 are shown in table. How do the relative frequencies for the four ethnic groups compare between women and men? MenWomenTotal White43%37%80% Black6% 12% Asian3% 6% Other1% 2% Total53%47%100% MenWomen White81%79% Black11%13% Asian6% Other2% Total100% If we assume the population size = n, then the white men has 43%*n/(53%*n)=43/53=81%, so similar for other relative frequencies.

The UNIVERSITY of NORTH CAROLINA at CHAPEL HILL Reduced Sample Space Another illustration: Consider the probability of a family with two girls, the sample space is S={(boy,boy),(boy,girl), (girl,boy), (girl, girl)}. So the P(Two girls)=1/4. Now, if we are told that the family has at least one girl, what is the probability that the family has two girl? At this time, the sample space becomes Sr={(boy, girl), (girl, boy), (girl, girl)}, so the P(two girls|at least one girl)=1/3. If based on sample space S and assume A={two girls}, B={ at least one girls}, then P(two girls | at least one girl)=P(A|B)=P(A∩B)/P(B)=1/3/3/4=1/3. Another illustration: Consider the probability of a family with two girls, the sample space is S={(boy,boy),(boy,girl), (girl,boy), (girl, girl)}. So the P(Two girls)=1/4. Now, if we are told that the family has at least one girl, what is the probability that the family has two girl? At this time, the sample space becomes Sr={(boy, girl), (girl, boy), (girl, girl)}, so the P(two girls|at least one girl)=1/3. If based on sample space S and assume A={two girls}, B={ at least one girls}, then P(two girls | at least one girl)=P(A|B)=P(A∩B)/P(B)=1/3/3/4=1/3.

The UNIVERSITY of NORTH CAROLINA at CHAPEL HILL Part 2. Definition of Conditional Probability

The UNIVERSITY of NORTH CAROLINA at CHAPEL HILL Definition 3.1 If A and B are any two events, then the conditional probability of A given B, denoted as P(A|B), is Provided that P(B)>0. Notice that P(A ∩B) = P(A|B)P(B) or P(A∩B) = P(B|A)P(A). If A and B are any two events, then the conditional probability of A given B, denoted as P(A|B), is Provided that P(B)>0. Notice that P(A ∩B) = P(A|B)P(B) or P(A∩B) = P(B|A)P(A). This definition also follows the three axioms of probability. (1)A∩B is a subset of B, so P(A∩B )≤P(B), then 0≤P(A|B)≤1; (2)P(S|B)=P(S∩B)/P(B)=P(B)/P(B)=1; (3)If A 1, A 2, …, are mutually exclusively, then so are A 1 ∩B, A 2 ∩B, …; and P(UA i |B) = P((UA i ) ∩B)/P(B)=P(U(A i ∩B)/P(B)=∑P(A i ∩B)/P(B)= ∑P(A i |B).

The UNIVERSITY of NORTH CAROLINA at CHAPEL HILL Example 3.2 There are four batteries and one is defective. Two are to be selected at random for use on a particular day. Find the probability that the second battery selected is not defective, given that the first was not defective. There are four batteries and one is defective. Two are to be selected at random for use on a particular day. Find the probability that the second battery selected is not defective, given that the first was not defective. Solution: Let N1 denote the event that 1 st battery Selected is non-defective, N2 denote that 2 nd battery Selected is non-defective. Also we assume the 1 st is defective. So we are interested in P(N2|N1)=P(N1∩N2)/P(N1). From the left figure, we can find P(N1)=3/4, and P(N1 ∩N2)=6/12=1/2, then P(N2|N1)=1/2*4/3=2/3.

The UNIVERSITY of NORTH CAROLINA at CHAPEL HILL Part 3. Application of Conditional Probability

The UNIVERSITY of NORTH CAROLINA at CHAPEL HILL Screen Test A screen test indicates the presence or absence of a particular disease. There are two different kinds of errors: False Positive: The test indicates a person has disease when he/she actually does not; False Negative: The test indicates a person has no disease when he/she actually does have it. Sensitivity: the probability that a person selected randomly from among those who have the disease will have a positive test. Specificity: the probability that a person selected randomly from among those who do not have the disease will have a negative test. A screen test indicates the presence or absence of a particular disease. There are two different kinds of errors: False Positive: The test indicates a person has disease when he/she actually does not; False Negative: The test indicates a person has no disease when he/she actually does have it. Sensitivity: the probability that a person selected randomly from among those who have the disease will have a positive test. Specificity: the probability that a person selected randomly from among those who do not have the disease will have a negative test.

The UNIVERSITY of NORTH CAROLINA at CHAPEL HILL Continue +-Sum Test +aba+b Result -cdc+d Suma+cb+da+b+c+d=n True Diagnosis The + indicates the presence of the disease under study; The – indicates the absence of the disease under study. The sensitivity = a/(a+c), the specificity = d/(b+d). Predictive value is the conditional probability that a randomly selected person actually has the disease, given that he/she tested positive: predictive value=a/(a+d). A good test should have a high predictive value, but not always possible, which is affected by the prevalence value: the proportion of the population under study that actually has the disease. Prevalence value=(a+c)/n

The UNIVERSITY of NORTH CAROLINA at CHAPEL HILL Example 3.3 Nucleic acid amplification tests (NAATs) are generally agreed to be better than non-NAATs for diagnosing the presence of Chlamydia trachomatis, the most prevalence sexually transmitted disease. The ligase chain reaction (LCR) test is one such test. In a large study, the sensitivity and specificity of LCR for women were assessed. Following are the results: +-Sum Test Results Sum LCR Tissue Culture

The UNIVERSITY of NORTH CAROLINA at CHAPEL HILL Example 3.3 Continue Assuming that the tissue culture is exact and that the women in the study constitute a random sample of women in the United States, answer the following questions: a.What is the prevalence of Chalmydia trachomatis? b.What is the sensitivity of LCR? c.What is the specificity of LCR? d.What is the predictive value of LCR? Assuming that the tissue culture is exact and that the women in the study constitute a random sample of women in the United States, answer the following questions: a.What is the prevalence of Chalmydia trachomatis? b.What is the sensitivity of LCR? c.What is the specificity of LCR? d.What is the predictive value of LCR? Solutions: a. prevalence = 152/2132 b. sensitivity = 139/252 c. specificity = 1896/1980 d. predictive value=139/223

The UNIVERSITY of NORTH CAROLINA at CHAPEL HILL Part 4. Independence

The UNIVERSITY of NORTH CAROLINA at CHAPEL HILL Theorem 3.2: Multiplicative Rule. If A and B are any two events, then P(A∩B) = P(A)P(B|A) = P(B)P(A|B) If A and B are independent, then P(A∩B) = P(A)P(B). Theorem 3.2: Multiplicative Rule. If A and B are any two events, then P(A∩B) = P(A)P(B|A) = P(B)P(A|B) If A and B are independent, then P(A∩B) = P(A)P(B). Definition 3.2 and Theorem 3.2 Definition 3.2: Two events A and B are said to be independent if P(A∩B)=P(A)P(B). This is equivalent to stating that P(A|B)=P(A), P(B|A)=P(B) If the conditional probability exist. Definition 3.2: Two events A and B are said to be independent if P(A∩B)=P(A)P(B). This is equivalent to stating that P(A|B)=P(A), P(B|A)=P(B) If the conditional probability exist.

The UNIVERSITY of NORTH CAROLINA at CHAPEL HILL Suppose that a foreman must select one worker from a pool of four available workers (numbered from 1 to 4) for a special job. He selects the worker by mixing the four names and randomly selecting one. Let A denote the event that worker 1 or 2 is selected, let B denote the event that worker 1 or 3 is selected, and let C denote the event that worker 1 is selected. Are A and B independent? Are A and C independent? Example 3.4 Solutions: S={1,2,3,4}, A={1,2}, B={1,3}, C={1}. By assumption that assigns ¼ to each individual worker, P(A)=1/2, P(B)=1/2, P(C) = ¼, P(A∩B)=1/4, so we have P(A)P(B)=1/2*1/2=1/4 = P(A ∩B), thus A and B are independent; P(A∩C)=1/4 ≠ P(A)P(C), so A and C are not independent.

The UNIVERSITY of NORTH CAROLINA at CHAPEL HILL Part 5. Applications with Independence

The UNIVERSITY of NORTH CAROLINA at CHAPEL HILL Genetics Application A unit of inheritance is a gene, which transmits chemical information that is expressed as a trait such as color or size. Two genes for each trait are present in each individual, called alleles. These two allelic genes in any one individual may be likely(homozygous) or different (heterzygous). When two individuals mate, each parent contributes one of his/her genes from each allele. A simplest model, the probability of each gene from an allele being passed to the offspring is ½ and the two parents contribute alleles independently of each other. A unit of inheritance is a gene, which transmits chemical information that is expressed as a trait such as color or size. Two genes for each trait are present in each individual, called alleles. These two allelic genes in any one individual may be likely(homozygous) or different (heterzygous). When two individuals mate, each parent contributes one of his/her genes from each allele. A simplest model, the probability of each gene from an allele being passed to the offspring is ½ and the two parents contribute alleles independently of each other.

The UNIVERSITY of NORTH CAROLINA at CHAPEL HILL Example 3.5 Blood type, the best known of the blood factors, is determined by a single allele. Each person has blood type A, B, AB or O. Type O represents the absence of a factor and is recessive to factors A and B. Thus a person with type A blood may be either homozygous (AA) or heterozygous(AO) for this allele; similarly, a person with type B blood may be either homozygous (BB) or heterozygous (BO). Type AB occurs if a person is given an A factor by a parent and a B factor by the other parent. To have type O blood, an individual must be homozygous O (OO). Suppose a couple is preparing to have a child. One parent has blood type AB, and the other is heterozygous B. What is the possible blood types that the child will have and what is the probability of each? Solutions: there are three possible types: AB, B and A with Probabilities ¼, ½ and ¼, respectively.

The UNIVERSITY of NORTH CAROLINA at CHAPEL HILL In a simple probability model, we assume the relays are independent. There are two basic kinds of connections: Relay in Electrical Circuit And other structures are based on the combinations of the series and parallel.

The UNIVERSITY of NORTH CAROLINA at CHAPEL HILL Example 3.6 A section of an electrical circuit has two relays in parallel. The relays operate independently and when a switch is thrown, each will close properly with a probability of 0.8. If both relays are open, find the probability that the current will flow from left to right when the switch is thrown. Solutions: Let O denote Open, C denote Close. Then there are four possible outcomes: E1={(O, C)}, E2={(O,O)}, E3={(C,O)}, E4={(C,C)}. We know the P(C) = 0.8, so P(O)=0.2 for each relay. As relays operate independently, so P(E1)=P(O)P(C)=0.16, P(E2)=P(O)P(O)=0.04, P(E3)=P(C)P(O)=0.16, P(E4)=P(C)P(C)=0.64. Also when the relay opens, no current flows. So we are interested in the event, denoted by A=E1UE3UE4 and E1, E2, E3 and E4 are mutually exclusive, so P(A)=P(E1)+P(E3)+P(E4)= = 0.96.