If the probability density function of a random variable x is given by \(f(x)=\left\{ {\begin{array}{*{20}{c}} {\frac{{k{x^2}}}{2}}&{ - 1 \le x \le 1}\\ 0&\rm {elsewhere,} \end{array}} \right.\) the value of k is ______.
Concepts:
For probability density function:
\(\int_{-\infty }^{\infty}f(x)dx = 1\)
where f(x) is probability density function
Calculation:
Given:
\(f(x)=\left\{ {\begin{array}{*{20}{c}} {\frac{{k{x^2}}}{2}}&{ - 1 \le x \le 1}\\ 0&\rm {elsehwhere,} \end{array}} \right.\)
\(\int_{-\infty }^{\infty}f(x)dx = 1\)
\(\int_{-\infty }^{-1}f(x)dx \ +\int_{-1}^{1}f(x)dx \ +\int_{1}^{\infty}f(x)dx = 1\)
\(\int_{-\infty }^{-1}0dx \ +\int_{-1}^{1}\frac{kx^2}{2}dx \ +\int_{1}^{\infty}0dx = 1\)
\(\frac{{k{x^3}}}{6}\left| {\begin{array}{*{20}{c}} 1\\ { - 1} \end{array}} \right.\) = 1
∴ k = 3
Rock bolts have length $L = (150+X)$ cm, where X is a random variable with probability density function
$f(x) = \begin{cases} \frac{1}{4}(1-3x), & \text{if } -2 \le x \le 2 \\ 0, & \text{otherwise} \end{cases}$
If 95% of the bolt lengths (L) lie in the interval 150-c cm to 150+ ccm, the value of c is _________