Bob’s Beautiful Boxes

This doesn’t have much to do with biology. But the methods used here will help us with the biological examples that follow.

Bob has two beautiful boxes of balls. Box A contains 2 green balls and 7 red balls. Box B contains 4 green balls and 3 red balls. Bob flips a coin to randomly select a box. Then he randomly selects one ball from that box. If the selected ball is red, what is the probability that it was chosen from Box A?

Let’s build up to this step by step.

  1. These balls are not equally likely to be selected. Why not? Which are more likely and which less likely?

    Hint: Imagine you get to put a sticker on one ball. If that ball is selected, you win a prize. Assuming you want the prize, where should you put the sticker?

  2. Let’s define some events.

    • \(A\): Bob selects Box A
    • \(B\): Bob selects Box B
    • \(R\): Bob selects a red ball
  3. Let’s do some inventory. Which of these probabilities can we easily determine? Which is our main question? How can you use the items on the list that you know to figure out the values you don’t know? (Feel free to add additional probabilities to the inventory if that is helpful.)

\[ \operatorname{P}(A) \qquad \operatorname{P}(B) \qquad \operatorname{P}(R) \]

\[ \operatorname{P}(A \operatorname{and}B) \qquad \operatorname{P}(A \operatorname{or}B) \qquad \operatorname{P}(A \operatorname{and}R) \qquad \operatorname{P}(B \operatorname{and}R) \]

\[ \operatorname{P}(A \mid R) \qquad \operatorname{P}(R \mid A) \qquad \operatorname{P}(B \mid R) \qquad \operatorname{P}(R \mid B) \]

Breast cancer screening

Here is some information about breast cancer screening. (Note: These percentages are approximate, and very difficult to estimate.)

If a mammogram yields a positive result, what is the probability that patient has cancer?

Disease Testing

A test for a medical condition that affects 1 person in 1,000 has the following properties: If a person is healthy, it correctly diagnoses this 98% of the time. If a person is diseased, it correctly diagnoses this 99% of the time. If you take the test and it comes back positive (ie, the test says you have the disease), what is the probability that you have the disease?

Hint: Use the inventory method. Useful events include

Plants

  1. Suppose that the red flower-color allele is dominant and is denoted as R, and that the white flower-color allele is recessive and is denoted as r. You have one parent with genotype RR and the red phenotype. The other parent has genotype Rr, and the red phenotype. What is the probability that an offspring plant will be white?
  1. Now suppose that you have two parents, each with the Rr genotype. What proportion of offspring will have the red phenotype in this situation?
  1. Now suppose we have a plant where R and r are codominant. The Rr genotype results in a pink flower-color. If each of the parent plants is pink, what is the probability that the offspring will be pink? white? red?

People

  1. In humans, there is a gene locus for blood type. The three alleles are A, B, and O. A and B are codominant to each other and dominant to O. Genotypes AA and AO give blood type A. Genotypes BB and BO give blood type B. Genotype AB gives blood type AB. And genotype OO gives blood type O. A man of genotype AB marries a woman of genotype BO. What is the probabilty that their kids will have each blood type?

  2. A woman with blood type B marries a man with blood type O. If they have a child of blood type O, what is the probability that the mother’s genotype is BO? If they have a child of blood type B, can you compute the probability that the mother’s genotype is BO; that the mother’s genotype is BB? Why?/why not?

  3. In the US, the allele frequencies for blood type are approximately 67% O, 25% A, and 8% B. What are the proportions of people with blood types O, A, B, and AB (assuming mating is independent of blood type)?

  4. Do you think mating is independent of blood type? Why might it be or not be independent?

  5. Cystic fibrosis is a disease caused by a recessive allele. (You need two copies to get cystic fibrosis. If you have only one copy, you are called a carrier.) Across the caucasian population, 2.5% of the alleles are the recessive, disease causing mutation. If mating is independent of cystic fibrosis genetics,

    1. What proportion of the caucasion population will have cystic fibrosis?
    2. What proportion of the caucasion population will be carriers for cystic fibrosis?
    3. What proportion of people without cystic fibrosis are carriers?
    4. If both parents are known to be carriers, what is the probability that their children will have cystic fibrosis?
    5. Why might mating not be independent of cystic fibrosis genetics?

More Medical Tests

Calculating probabilities for diagnostic tests is done so often in medicine and public health that the topic has some specialized terminology.

  1. Using the following notation, express each of the five probabilities defined above using proper probability notation.

    • \(D\): person has the disease
    • \(H\): person is healthy
    • \(+\): the test is positive
    • \(-\): the test is negative
  2. Some congenital disorders are caused by errors that occur during cell division, resulting in the presence of additional chromosome copies. Trisomy 21 occurs in approximately 1 out of 800 births. Cell-free fetal DNA (cfDNA) testing is one commonly used way to screen fetuses for trisomy 21. The test sensitivity is 0.98 and the specificity is 0.995. Calculate the PPV and NPV of the test.

White Cats

The genes that cause cats to be white are linked to genes for eye color and deafness. Suppose that 30% of white cats have one blue eye, while 10% of white cats have two blue eyes. About 73% of white cats with two blue eyes are deaf and 40% of white cats with one blue eye are deaf. Only 19% of white cats with other eye colors are deaf.

  1. Estblish some good notation for this problem. [Note: since this is only about white cats, you can think of white cats as the sample space. There is no need to have notation for the event of being a white cat.]

  2. Calculate the prevalence of deafness among white cats.

  3. Given that a white cat is deaf, what is the probability that it has two blue eyes?

  4. Suppose that deaf, white cats have an increased chance of being blind, but that the prevalence of blindness differs according to eye color. Deaf white cats with two blue eyes or two non-blue eyes have probability 0.20 of developing blindness, deaf white cats with one blue eye have probability 0.40 of developing blindness. White cats that are not deaf have probability 0.10 of developing blindness, regardless of their eye color.

    1. What is the prevalence of blindness among deaf, white cats?
    2. What is the prevalence of blindness among white cats?
    3. Given that a cat is white and blind, what is the probability that it has two blue eyes?