GATE CSE
First time here? Checkout the FAQ!
x
+4 votes
233 views

Que:- 
The variance of the random variable X with P.D.F  f(x)=0.5|x| e-|x| is ___?

asked in Probability by Veteran (16.4k points) 15 135 253 | 233 views
answer $6$ ???
yes 6, i need detailed solution please
writing it...long sol
updated !

1 Answer

+14 votes
Best answer

$$\large f(x) = \begin{cases} \\ {-} \; 0.5.{\color{red}{x}}.\mathbf e^{\color{red}{x}} & , x \leq 0 \\ \\ {+} \; 0.5.{\color{red}{x}}.\mathbf e^{\color{red}{-x}} & , x \geq 0 \\ \\ \end{cases}$$

$$\begin{align*} E(x) & = \int_{- \infty}^{+\infty}x.f(x).dx \\ & =\int_{- \infty}^{0}x.f(x).dx + \int_{0}^{+\infty}x.f(x).dx \\ & =\int_{- \infty}^{0}x.\left [ -0.5.x.e^x \right ].dx+ \int_{0}^{+\infty}x.\left [ 0.5.x.e^{-x} \right ].dx \\ & =\int_{0}^{- \infty}\left [ 0.5.x^2.e^x \right ].dx + {\color{red}{\int_{0}^{-\infty}\left [ 0.5.y^2.e^{y} \right ].\left ( -dy \right )}} \;\; \left \{ \text{putting x = -y} \right \} \\ &= 0 \\ \end{align*}$$

$$\begin{align*} E(X^{2}) & = \int_{- \infty}^{+\infty}x^2.f(x).dx \\ & =\int_{- \infty}^{0}x^2.f(x).dx + \int_{0}^{+\infty}x^2.f(x).dx \\ & =\int_{- \infty}^{0}x^2.\left [ -0.5.x.e^x \right ].dx+ \int_{0}^{+\infty}x^2.\left [ 0.5.x.e^{-x} \right ].dx \\ & =\int_{0}^{- \infty}\left [ 0.5.x^3.e^x \right ].dx + {\color{red}{\int_{0}^{-\infty}\left [ 0.5.(-y)^3.e^{y} \right ].\left ( -dy \right )}} \;\; \left \{ \text{putting x = -y} \right \} \\ &= \int_{0}^{- \infty}\left [x^3.e^x \right ].dx \;\; \left \{ \text{y is dummy variable only} \right \} \\ &= \left [ (x^3 - 3x^2 + 6x - 6)e^x \right ]_0^{-\infty} \\ &=6 \\ \end{align*}$$

$$\begin{align*} \text{VAR(X)} & = E(X^2) - \left [ E(X) \right ]^2 \\ & = 6 - 0 \\ &= 6\\ \end{align*}$$


NOTE

$$\int {x^n e^x dx} = \bigg[\sum\limits_{k = 0}^n {( - 1)^{n - k} \frac{{n!}}{{k!}}x^k } \bigg]e^x + C.$$


$$\color{maroon}{\begin{align*} &\text{Using the idea of ODD / EVEN function} \\ &\Rightarrow f(x) \;\; \text{is EVEN} \\ &\Rightarrow x.f(x) \;\; \text{is ODD} \\ &\Rightarrow \int_{-\infty}^{+\infty}xf(x)dx = 0 \\ &\Rightarrow E(X) = 0 \\ \\ \text{Now} \\ &\Rightarrow x^2.f(x) \;\; \text{is EVEN} \\ &\Rightarrow E(X^2) = \int_{-\infty}^{+\infty}x^2f(x)dx = 2.\int_{0}^{+\infty}x^2f(x)dx \\ &\Rightarrow E(X^2) = 2.\int_{0}^{+\infty}0.5.x^3.e^{-x}dx \\ &\Rightarrow E(X^2) = \int_{0}^{+\infty}x^3.e^{-x}dx \\ &\Rightarrow E(X^2) = 6 \\ \end{align*}}$$

answered by Veteran (56.9k points) 36 189 500
edited by
I solved this question using the definitions of ODD and Even functions :) :)
I wanted to get it solved using other way. you solved it using both ways thanks a lot!!
QS was meant to be done in ODD/EVEN way


Quick search syntax
tags tag:apple
author user:martin
title title:apple
content content:apple
exclude -tag:apple
force match +apple
views views:100
score score:10
answers answers:2
is accepted isaccepted:true
is closed isclosed:true
Top Users Oct 2017
  1. Arjun

    23462 Points

  2. Bikram

    17108 Points

  3. Habibkhan

    8560 Points

  4. srestha

    6314 Points

  5. Debashish Deka

    5458 Points

  6. jothee

    5038 Points

  7. Sachin Mittal 1

    4882 Points

  8. joshi_nitish

    4416 Points

  9. sushmita

    3996 Points

  10. Rishi yadav

    3868 Points


Recent Badges

Regular Anuranjan Chauhan
Famous Question pC
Notable Question Sanjay Sharma
Notable Question Warrior
Notable Question sid1221
Nice Answer 2018
Good Question Arjun
Nice Question mitalitak
Great Question Arjun
Popular Question Tesla!
27,349 questions
35,204 answers
84,249 comments
33,328 users