How Do You Calculate Expected Value for Complex Probability Density Functions?

  • Context: Graduate 
  • Thread starter Thread starter hellosonic
  • Start date Start date
  • Tags Tags
    Probability
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
1 reply · 3K views
hellosonic
Messages
1
Reaction score
0
So for general expected value, I know how to do it. Multiply probability of X to the value of X and add them up. For density function such as

f(x) = 2x 0<x<1 and 0 otherwise. I take find the integral. I'm just confused when it comes to something like

f(x) = (x - 8) 8 < x < 9; (10 -x ) 9 < x < 10; 0 otherwise. I hope someone can help me clear this up lolz. Thanks veryyyyyy much
 
Physics news on Phys.org
Here since this is continuous random variable, we can define f(9)=1. Then looking at the graph of x-f(x), we see that the expected value is the sum of the areas under the curve. Hence, for this question the expected value is ((10-8)*1)/2=1, which proves that f is a probability function.