- #1
ObliviousSage
- 36
- 0
Homework Statement
Problem A:
A random variable T is selected from a uniform distribution over (0,1]. Then a second random variable U is selected from a uniform distribution over (0,T]. Determine the probability Pr(U>1/2).
Problem B:
Suppose 3 identical parts are chosen for inspection. Each part be defective with probability p independently of the other parts. Parameter p is, in turn, a uniform random variable over the interval (0,1]. What is the probability that exactly two parts are defective?
Homework Equations
for a uniform distribution over (a,b), the density is f(x) = 1/(b-a)
for a binomial distribution, n trials each with probability p of success, Pr(k successes) = (n!/(k!(n-k)!))pk(1-p)n-k
The Attempt at a Solution
Problem A:
It seems like we want the marginal distribution for U.
The density of T is fT(t) = 1. The conditional density of U is fU|T=t(u) = 1/t.
The joint density is the conditional of U times the marginal of T, so fTU(t,u) = 1/t.
The marginal density for U is the joint integrated for T over its bounds, or fU(u) = integral(T: 0 to 1) of (1/t)dt. This integrates to fU(u) = substitute(x: 0 to 1) of ln x. Except that resolves to 0 minus negative infinity.
The setup and integration seems pretty simple, did I do something wrong? Or is my entire approach wrong?Problem B:
P has density 1. X is a binomial distribution with success representing a defective part, so 3 trials with probability p of "success". Thus the conditional probability mass for X is pX|P=p(x) = (6/(x!(3-x)!))px(1-p)3-x. I want pX(2).
To get the marginal probability for X, I need to integrate for p on the conditional mass for X times the marginal density for P; since P's marginal density is 1, that's just the conditional mass for X.
Thus, I want to solve pX(x) = (6/(x!(3-x)!)) * integral(p: 0 to 1) of px(1-p)3-xdp. I have no idea how to actually integrate that; is there a formula for reducing it to a sum in terms of X? Integration by parts doesn't look like it'll get me anywhere, and Wolfram Alpha's fancy integrator gave me a huge string of stuff that involved a lot of something called the hypergeometric function...
Last edited: