Expected value from a density function

Join the discussion
Ask a follow-up here, or get your own question answered by working scientists, mathematicians and engineers — people, not an autocomplete.
Real named experts · corrections over time · the nuance an AI answer skips
2 replies · 4K views
mind0nmath
Messages
19
Reaction score
0
Hey,
I know how to find the expected value from the density function when it is in the form:

(example)

| y^2 -1<y<1
|
fy =|
| 0 elsewhere

Ey = integral(upper limit 1, lower limit -1)[y*y^2 dy)

but, what if the density function looks like this:

| y^2 -1<y<0
|
fy =| y^2 - y 0<y<1
|
| 0 elsewhere

how do you approach here?
 
Physics news on Phys.org
The expectation value of Y is given by

[tex]E(Y) = \int_{-\infty}^{+\infty}yf(y)dy[/itex]<br /> <br /> If I understood your question correctly, you just have to split the integral into disjoint intervals and apply the different definitions of [itex]f(y)[/itex] in each such interval. This is immediate from the linearity of the Riemann integral and the continuity of the integrand.[/tex]
 
E(Y) = \int_{-\infty}^{+\infty}yf(y)dy