What we are solvingX has the piecewise cumulative distribution function F(x) givenFind the median, the p.d.f. f(x), P(1 ≤ X ≤ 2.5) and the meanChapter: Probability distributionsTopic: continuous random variables, c.d.f. and p.d.f.Concept and formulasMedian m:F(m)=21f(x)=dxdF(x)P(a≤X≤b)=F(b)−F(a)E(X)=∫xf(x)dx(a)(3 marks)F(0) = 1/6 and F(2) = 5/6, so the median lies in 0 ≤ x ≤ 261+2m=21⇒1+2m=3⇒m=1(b)(3 marks)Differentiate each piecef(x)=⎩⎨⎧61,31,41,0,−1≤x≤00≤x≤22≤x≤38elsewhereCheck: 61(1)+31(2)+41(32)=61+32+61=1(c)(3 marks)P(1≤X≤2.5)=F(2.5)−F(1)=124+3(2.5)−61+2(1)=1211.5−21=2423−2412=2411≈0.4583(d)(3 marks)E(X)=∫−106xdx+∫023xdx+∫28/34xdx=[12x2]−10+[6x2]02+[8x2]28/3=−121+64+81(964−4)=−121+32+187=36−3+24+14=3635≈0.972Answer: (a) median = 1 (b) f(x) = 1/6, 1/3, 1/4 on the three intervals, 0 elsewhere (c) 11/24 ≈ 0.458 (d) E(X) = 35/36 ≈ 0.972Tip: Before solving F(m) = ½, check the values of F at the interval ends to pick the right piece