I've been solving this book "40 puzzles and problems in probability and mathematical statistics" and I came across this question of mixing RVs vs. mixing distributions.
Consider a RV, B, that comes, in each realization, with probability 1/2 from a normal distribution (namely, that of X) with mean μ = 50 and standard deviation 10 and with probability 1/2 from a normal distribution (namely,that of Y) with mean μ = 150 and standard deviation 10. Thus, its density is equal to
fB(b) = 1/2 (n (b | μ=50, σ = 10) + 1/2 (n (b | μ=150, σ = 10)
where n (x|μ,σ) = normal density with mean μ and sd σ ).
My confusion is this: I am not able to give an argument as to why we take the probability weighted average of the density functions, rather than calculating the CDF by taking the probability weighted average of CDFs, and then computing the PDF from that CDF.