Definite integral over random interval

Join the discussion
Registration is free. Ask a follow-up in this thread, or start your own.
3 replies · 4K views
benjaminmar8
Messages
10
Reaction score
0
Hi, all,

assuming a and b are random variables and their pdf f(a) and f(b) are known. then, how do I solve for the definite integral given as [tex]v=\int\limits_{a}^{b} g(x) dx[/tex], where g(x) is a function of x? or, how do I solve the pdf of v?

Thanks a lot..
 
Physics news on Phys.org
I think the answer is "use the fundamental theorem of calculus." Operationally, suppose each of a and b is Bernoulli with probabilities p and q: Pr[a = a1] = 1 - Pr[a = a2] = p, Pr[b = b1] = 1 - Pr[b = b2] = q.

Then:
v = G[b1] - G[a1] with prob = pq,
v = G[b2] - G[a1] with prob. p(1-q)
v = G[b1] - G[a2] with prob. (1-p)q
v = G[b2] - G[a2] with prob (1-p)(1-q)

where "the integral of g from a to b" = G - G[a].
 
Another approach is to first work out the cdf P[v<=y]. To do this (assuming a and b are independent) it might be helpful to sketch the 2d region of points (a,b) where G-G[a]<=y.
 
If we define that
[tex]y(a,b)=\int\limits_{b=-\infty}^{\infty} \int\limits_{a}^{b} g(x) dx[/tex]
we can state the pdf over the joint space of variables a, b and v as
[tex]f(a,b,v) = \delta\left(v-y(a,b)\right)f(a)f(b)[/tex]
where [itex]\delta[/itex] is the Dirac delta function.

The pdf [itex]f(v)[/itex] of v is then the marginal of [itex]f(a,b,v)[/itex] with respect to a and b
[tex]f(v) = \int\limits_{a=-\infty}^{\infty} \int\limits_{b=-\infty}^{\infty} \delta\left(v-y(a,b)\right) f(a)f(b) db da[/tex]


The integral of g(x) can as stated above be evaluated using its primitive G(x):
[tex]\int\limits_{a}^{b} g(x) dx = G(b)-G(a) \quad \texttt{if} \quad b \geq a[/tex],
[tex]\int\limits_{a}^{b} g(x) dx = G(a)-G(b) \quad\texttt{if} \quad a \geq b[/tex]

We thus need to account for the two possible cases:
[tex] f(v) = <br /> \int\limits_{a=-\infty}^{\infty} \int\limits_{b=-\infty}^{a} <br /> \delta\left(v-G(a)+G(b)\right) <br /> f(a)f(b) db da<br /> +\int\limits_{a=-\infty}^{\infty} \int\limits_{b=a}^{\infty} <br /> \delta\left(v-G(b)+G(a)\right) <br /> f(a)f(b) db da[/tex]
 
Last edited: