Docsity

Exercises on Probability: Bayesian Statistical Inference - Prof. Cassese, Esercizi di Statistica

Toggle sidebar
bg1
Exercises on Probability
INFERENZA STATISTICA BAYESIANA
Anno Accademico 2023/2024
February 18, 2024
Exercise 1
.
Probability calculation for genetics (from Lindley, 1965): suppose that in
each individual of a large population there is a pair of genes, each of which can
be either x or X, that controls eye color: those with genotype xx have blue eyes,
while heterozygotes (those with Xx or xX) and those with XX have brown eyes.
The proportion of blue-eyed individuals is
p2
and of heterozygotes is
2p(1 −p)
,
where
0<p<1
. Each parent transmits one of its own genes to the child; if a
parent is a heterozygote, the probability that it transmits the gene of type X is
1
2
. Assuming random mating,
(a) Show that among brown-eyed children of brown-eyed parents, the expected
proportion of heterozygotes is
2p/(1 + 2p)
.
(b) Suppose Judy, a brown-eyed child of brown-eyed parents, marries a heterozygote,
and they have
n
children, all brown-eyed. Find the posterior probability
that Judy is a heterozygote and
(c) The probability that her rst grandchild has blue eyes.
Exercise 2
.
Conditional probability: suppose that if
θ= 1
, then
y
has a normal distribution
with mean
1
and standard deviation
σ
, and if
θ= 2
, then
y
has a normal
distribution with mean
2
and standard deviation
σ
. Also, suppose
P(θ= 1) =
0.5
and
P(θ= 2) = 0.5
.
(a) For
σ= 2
, write the formula for the marginal probability density for
y
and sketch it.
(b) What is
P(θ= 1|y= 1)
, again supposing
σ= 2
?
1
pf3
pf4
pf5
pf8
pf9
pfa

Anteprima parziale del testo

Scarica Exercises on Probability: Bayesian Statistical Inference - Prof. Cassese e più Esercizi in PDF di Statistica solo su Docsity!

Exercises on Probability

INFERENZA STATISTICA BAYESIANA

Anno Accademico 2023/

February 18, 2024

Exercise 1. Probability calculation for genetics (from Lindley, 1965): suppose that in each individual of a large population there is a pair of genes, each of which can be either x or X, that controls eye color: those with genotype xx have blue eyes, while heterozygotes (those with Xx or xX) and those with XX have brown eyes. The proportion of blue-eyed individuals is p^2 and of heterozygotes is 2 p(1 − p), where 0 < p < 1. Each parent transmits one of its own genes to the child; if a parent is a heterozygote, the probability that it transmits the gene of type X is (^12). Assuming random mating,

(a) Show that among brown-eyed children of brown-eyed parents, the expected proportion of heterozygotes is 2 p/(1 + 2p). (b) Suppose Judy, a brown-eyed child of brown-eyed parents, marries a heterozygote, and they have n children, all brown-eyed. Find the posterior probability that Judy is a heterozygote and

(c) The probability that her rst grandchild has blue eyes.

Exercise 2. Conditional probability: suppose that if θ = 1, then y has a normal distribution with mean 1 and standard deviation σ, and if θ = 2, then y has a normal distribution with mean 2 and standard deviation σ. Also, suppose P (θ = 1) =

  1. 5 and P (θ = 2) = 0. 5.

(a) For σ = 2, write the formula for the marginal probability density for y and sketch it.

(b) What is P (θ = 1|y = 1), again supposing σ = 2?

(c) Describe how the posterior density of θ changes in shape as σ is increased and as it is decreased.

Exercise 3. Conditional probability: approximately 1 / 125 of all births are fraternal twins and 1 / 300 of births are identical twins. Elvis Presley had a twin brother (who died at birth). What is the probability that Elvis was an identical twin? (You may approximate the probability of a boy or girl birth as 12 ).

Exercises 2

INFERENZA STATISTICA BAYESIANA

Anno Accademico 2023/

March 4, 2024

Exercise 1. Full conditionals: Let X, Y, Z be random variables with joint density (dis- crete or continuous) P (x, y, z) ∝ f (x, z) g (y, z) h (z). Show that: a) P (x | y, z) ∝ f (x, y) i.e. P (x | y, z) is a function of x and y; b) P (y | x, z) ∝ g (y, z) i.e. P (y | x, z) is a function of y and z; c) X and Y are conditionally independent given Z. Exercise 2. Conditional independence: Suppose events A and B are conditionally inde- pendent given C, which is written A ⊥ B | C. Show that this implies that Ac^ ⊥ B | C, A ⊥ Bc^ | C, and Ac^ ⊥ Bc^ | C, where Ac^ means not A. Find an example where A ⊥ B | C holds but A ⊥ B | Cc^ does not hold.