Week 1 Homework
Question 1. Hiding behind randomness.
Questions like “Have you ever cheated on your spouse?” or “Do you have a neurotic disorder?” people don’t like to answer. A way to preserve privacy and yet collect useful data in polls is to ask the question with these instructions: Flip a coin. If tail, answer truthfully. If head, flip a coin again and say “yes” if tail, “no” if head. Now a “yes” is not embarrassing, it can be just from the flips; so people are not tempted to lie.
When asking a large number of people, we got a fraction
who said “yes”. What is the fraction of those for whom the real answer is “yes”?
Probability - Fundamentals
The fractionof people who answered yes is the sum of two parts: Those who answered yes randomly, and those who truly answered yes because of the second coin toss. The probability of each of these events is the product of the probability of the first coin toss result and the probability of the second event.
Assuming we have a fair coin, the probability of each coin toss is the same (
The probability of someone giving a true yes answer is
Question 2. Genetic risks.
A couple is facing the risk that their children may suffer from a genetic disorder, because both the husband and the wife are known to be heterozygote (
) carriers of the harmful recessive allele (the homozygote individuals are affected by the disorder, all others are healthy). The couple plans to have two children, and wants to know the prospects for their health: What is the probability that both children will be healthy?
Probability - Fundamentals
Probability of one child being anhomozygote:
Probability of one child being healthy:
Probability of two children being healthy:
So, the probability of two healthy children is 9/16 or 56%.
Question 3. Marriage of relatives
Close relatives are not allowed to marry but if they do, their children are very often affected by serious genetic problems. This is because most of us carry 2-3 recessive lethal genes and some more that are not lethal but harmful. In unrelated people, these harmful recessive alleles are most likely in different loci so that their children are healthy heterozygotes. Descendants of a single person may however carry harmful recessives in the same locus; and if they marry, their children can be recessive homozygotes.
The figure shows a pedigree with marriage between cousins. A and B are the shared grandparents; C and D are sisters, who marry unrelated persons; E and F are cousins; and G is their child.
denotes a harmful recessive allele present in A. Calculate the probability that G inherits from both parents and is therefore a recessive homozygote exhibiting the symptoms of the disorder caused by . Next, calculate the probability that G is not a recessive homozygote for any of the 3 unlinked harmful alleles that A carried and also not for another 3 unlinked alleles that were present in B. (In reality we cannot know that A and B carry exactly 3 harmful alleles each, but this illustrates the probability of having a healthy child in a cousin marriage with roughly realistic numbers.)
Probability - Fundamentals
- Probability of G being a recessive homozygote
.
The probability ofbeing present in daughter C (inherited from parent A) is the same as the probability that it is in daughter D: 1/2. We call this probability (generation 1).
The probability of
The probability of G inheriting
- Probability of being healthy for three unlinked harmful alleles in grandparent A and another in grandparent B.
If G has the same probability of inheriting each of these alleles and they are all independent, then
Question 7. Total probability.
About 33% of African American people develop high blood pressure during their lives, whereas in people of Caucasian origin, this occurs only with probability 25%. In a town where 40% of people are African Americans and the rest are Caucasians, what percentage of people will need care for high blood pressure?
Using the law of total probability
So, about 28% of people in this town are likely to develop high blood pressure in their lives.
Question 12. The birthday problem.
Calculate the probability that (at least) two persons share their birth days in a group of (i) 5 people; (ii) 30 people. Hint: calculate first the probability of the opposite, i.e., that no two persons have the same birthday. The probability that my birthday is different from yours is 364/365.
- Probability that at least two persons share a birth day in a group of 5 people.
There are 365
P(all birthdays are distinct) =
So, the probability of no shared birthdays is
Let's call our people A, B, C, D, E.
The probability that person A has a different birthday from the four other people is
Now, we need to find this probability for each of the other birthday relations and multiply them all. However, we already accounted for everyone's birthday relation with person A, so we can ignore that relationship when looking at the chances for person B - we only need to compare with three people now. This trend continues until there is only one more relation to compare (person D with person E).
So the probability of at least two people sharing a birthday in a group of 5 is
The problem I made is that the numerator should decrease every time as you eliminate birthdays
- Probability that at least two persons share a birthday in a group of 30.
We can generalize this using a "big Pi" product:
Calculating this out gives us the correct answer - which was close to my approximation (below), but that was incorrect - in this example the numerator should decrease every time you check a new birthday.
Using the same logic as before, we need to determine:
A faster way to do this is thinking about the sum of the exponents. This is a sequence of integers from 1 to 29, and thus the formula
So, in our case this is