Probability & Statistics Ch.2 Section 4 Question 4

· Mohammad-Ali Bandzar

Solutions for “Probability and Statistics: The Science of Uncertainty” (Second Edition). These are solutions I have come up with; I offer no guarantee of accuracy.

Question

Establish for which constants c the following functions are densities:

  • a) f(x)=cxf(x) = cx on (0,1)(0, 1) and 0 otherwise.
  • b) f(x)=cxnf(x) = cx^n on (0,1)(0, 1) and 0 otherwise, for n a nonnegative integer.
  • c) f(x)=cx1/2f(x) = cx^{1/2} on (0,2)(0, 2) and 0 otherwise.
  • d) f(x)=csin(x)f(x) = c \sin(x) on (0,π2)(0, \frac{\pi}{2}) and 0 otherwise.

Solution

For a function to be a density, its integral must equal 1.

(a) f(x)=cxf(x) = cx on (0,1)(0, 1)

This forms a right triangle with base 1 and height c:

01cxdx=cx2201=c2=1\int_0^1 cx \, dx = \frac{cx^2}{2}\Big|_0^1 = \frac{c}{2} = 1

c=2c = 2

(b) f(x)=cxnf(x) = cx^n on (0,1)(0, 1)

01cxndx=cxn+1n+101=cn+1=1\int_0^1 cx^n \, dx = \frac{cx^{n+1}}{n+1}\Big|_0^1 = \frac{c}{n+1} = 1

c=n+1c = n + 1

(c) f(x)=cx1/2f(x) = cx^{1/2} on (0,2)(0, 2)

02cxdx=2cx3/2302=2c(2)3/23=2c223=4c23=1\int_0^2 c\sqrt{x} \, dx = \frac{2cx^{3/2}}{3}\Big|_0^2 = \frac{2c(2)^{3/2}}{3} = \frac{2c \cdot 2\sqrt{2}}{3} = \frac{4c\sqrt{2}}{3} = 1

c=342=328c = \frac{3}{4\sqrt{2}} = \frac{3\sqrt{2}}{8}

(d) f(x)=csin(x)f(x) = c\sin(x) on (0,π2)(0, \frac{\pi}{2})

0π/2csin(x)dx=ccos(x)0π/2=ccos(π2)+ccos(0)=c(0)+c(1)=c=1\int_0^{\pi/2} c\sin(x) \, dx = -c\cos(x)\Big|_0^{\pi/2} = -c\cos(\frac{\pi}{2}) + c\cos(0) = -c(0) + c(1) = c = 1

c=1c = 1