This shows you the differences between two versions of the page.
Both sides previous revision Previous revision | Next revision Both sides next revision | ||
bayesian_statistics [2019/10/03 03:10] floyd |
bayesian_statistics [2019/10/03 03:14] floyd |
||
---|---|---|---|
Line 11: | Line 11: | ||
You are doing a project on quantifying the reproductive success of male mice with the // | You are doing a project on quantifying the reproductive success of male mice with the // | ||
- | Let's say that we observe a single +/+ offspring. Now we need to calculate the probability of our data, $P(D)$. This is integrated over all models. Either the parent is a heterozygote, | + | Let's say that we observe a single +/+ offspring. Now we need to calculate the probability of our data, $P(D)$. This is integrated over all models. Either the parent is a heterozygote, |
$$P(D) = 0.05 \times 0.1 + 0.95 \times 1 = 0.955$$ | $$P(D) = 0.05 \times 0.1 + 0.95 \times 1 = 0.955$$ | ||
You can also see that | You can also see that | ||
Line 18: | Line 18: | ||
We are interested in the probability of the model given the data and it turns out that | We are interested in the probability of the model given the data and it turns out that | ||
- | $$P(M) \cap P(D)=P(M|D) P(D) = P(D|M) P(M)\mbox{.}$$ | + | $$P(M) \cap P(D)=P(M|D) P(D) = P(D|M) P(M)\mbox{.}$${{thaplotypecross1.png? |
The joint probability (intersection, | The joint probability (intersection, | ||
Line 32: | Line 32: | ||
For example, you go to a pet store looking for a small mammal with white fur. There is a box and you are told that one out of six animals in the box have white fur and that there are both eight mice and ten hamsters in the box for a total of 18 individuals. 2 of the mice have white fur and 1 of the hamsters have white fur. Before you reach in the box you know the probability of grabbing an individual with white fur is $3/18 = 0.1\bar{6}$ You reach in and can feel that you have grabbed a mouse but can't see it yet. Given that you have a mouse the probability of white fur is now | For example, you go to a pet store looking for a small mammal with white fur. There is a box and you are told that one out of six animals in the box have white fur and that there are both eight mice and ten hamsters in the box for a total of 18 individuals. 2 of the mice have white fur and 1 of the hamsters have white fur. Before you reach in the box you know the probability of grabbing an individual with white fur is $3/18 = 0.1\bar{6}$ You reach in and can feel that you have grabbed a mouse but can't see it yet. Given that you have a mouse the probability of white fur is now | ||
- | $$P(\mbox{white}|\mbox{mouse})=\frac{\mbox{white}\cap\mbox{mouse}}{P(\mbox{mouse})}=\frac{2/ | + | $$P(\mbox{white}|\mbox{mouse})=\frac{P(\mbox{white}\cap\mbox{mouse})}{P(\mbox{mouse})}=\frac{2/ |
and indeed 1/4 of the mice have white fur (2 out of 8). This is an awkward way to calculate the probability, | and indeed 1/4 of the mice have white fur (2 out of 8). This is an awkward way to calculate the probability, | ||