# Variance  (Page 4/4)

 Page 4 / 4

## A jointly distributed pair ( Example 14 From "mathematical expectation; general random variables")

Suppose the pair $\left\{X,\phantom{\rule{0.166667em}{0ex}}Y\right\}$ has joint density ${f}_{XY}\left(t,\phantom{\rule{0.166667em}{0ex}}u\right)=3u$ on the triangular region bounded by $u=0$ , $u=1+t$ , $u=1-t$ . Let $Z=g\left(X,\phantom{\rule{0.166667em}{0ex}}Y\right)={X}^{2}+2XY$ .

Determine $E\left[Z\right]$ and $\mathrm{Var}\phantom{\rule{0.166667em}{0ex}}\left[Z\right]$ .

ANALYTIC SOLUTION

$E\left[Z\right]=\int \int \left({t}^{2}+2tu\right){f}_{XY}\left(t,\phantom{\rule{0.166667em}{0ex}}u\right)\phantom{\rule{0.166667em}{0ex}}dudt=3{\int }_{-1}^{0}{\int }_{0}^{1+t}u\left({t}^{2}+2tu\right)\phantom{\rule{0.166667em}{0ex}}dudt+3{\int }_{0}^{1}{\int }_{0}^{1-t}u\left({t}^{2}+2tu\right)\phantom{\rule{0.166667em}{0ex}}dudt=1/10$
$E\left[{Z}^{2}\right]=3{\int }_{-1}^{0}{\int }_{0}^{1+t}u{\left({t}^{2}+2tu\right)}^{2}\phantom{\rule{0.166667em}{0ex}}dudt+3{\int }_{0}^{1}{\int }_{0}^{1-t}u{\left({t}^{2}+2tu\right)}^{2}\phantom{\rule{0.166667em}{0ex}}dudt=3/35$
$\mathrm{Var}\phantom{\rule{0.166667em}{0ex}}\left[Z\right]=E\left[{Z}^{2}\right]-{E}^{2}\left[Z\right]=53/700\approx 0.0757$

APPROXIMATION

tuappr Enter matrix [a b]of X-range endpoints [-1 1] Enter matrix [c d]of Y-range endpoints [0 1] Enter number of X approximation points 400Enter number of Y approximation points 200 Enter expression for joint density 3*u.*(u<=min(1+t,1-t)) Use array operations on X, Y, PX, PY, t, u, and PG = t.^2 + 2*t.*u; % g(X,Y) = X^2 + 2XY EG = total(G.*P) % E[g(X,Y)]EG = 0.1006 % Theoretical value = 1/10 VG = total(G.^2.*P) - EG^2VG = 0.0765 % Theoretical value 53/700 = 0.0757 [Z,PZ]= csort(G,P); % Distribution for Z EZ = Z*PZ' % E[Z]from distribution EZ = 0.1006VZ = Z.^2*PZ' - EZ^2 VZ = 0.0765

## A function with compound definition ( Example 15 From "mathematical expectation; general random variables")

The pair $\left\{X,\phantom{\rule{0.166667em}{0ex}}Y\right\}$ has joint density ${f}_{XY}\left(t,\phantom{\rule{0.166667em}{0ex}}u\right)=1/2$ on the square region bounded by $u=1+t$ , $u=1-t$ , $u=3-t$ , and $u=t-1$ .

$W=\left\{\begin{array}{cc}X& \phantom{\rule{4.pt}{0ex}}\phantom{\rule{4.pt}{0ex}}\text{for}max\left\{X,\phantom{\rule{0.166667em}{0ex}}Y\right\}\le 1\hfill \\ 2Y& \phantom{\rule{4.pt}{0ex}}\phantom{\rule{4.pt}{0ex}}\text{for}max\left\{X,\phantom{\rule{0.166667em}{0ex}}Y\right\}>1\hfill \end{array}\right)\phantom{\rule{0.277778em}{0ex}}\phantom{\rule{0.277778em}{0ex}}={I}_{Q}\left(X,\phantom{\rule{0.166667em}{0ex}}Y\right)X+{I}_{{Q}^{c}}\left(X,\phantom{\rule{0.166667em}{0ex}}Y\right)2Y$

where $Q=\left\{\left(t,\phantom{\rule{0.166667em}{0ex}}u\right):max\left\{t,\phantom{\rule{0.166667em}{0ex}}u\right\}\le 1\right\}=\left\{\left(t,\phantom{\rule{0.166667em}{0ex}}u\right):t\le 1,u\le 1\right\}$ .

Determine $E\left[W\right]$ and $\mathrm{Var}\phantom{\rule{0.166667em}{0ex}}\left[W\right]$ .

ANALYTIC SOLUTION

The intersection of the region Q and the square is the set for which $0\le t\le 1$ and $1-t\le u\le 1$ . Reference to Figure 11.3.2 shows three regions of integration.

$E\left[W\right]=\frac{1}{2}{\int }_{0}^{1}{\int }_{1-t}^{1}t\phantom{\rule{0.166667em}{0ex}}dudt+\frac{1}{2}{\int }_{0}^{1}{\int }_{1}^{1+t}2u\phantom{\rule{0.166667em}{0ex}}dudt+\frac{1}{2}{\int }_{1}^{2}{\int }_{t-1}^{3-t}2u\phantom{\rule{0.166667em}{0ex}}dudt=11/6\approx 1.8333$
$E\left[{W}^{2}\right]=\frac{1}{2}{\int }_{0}^{1}{\int }_{1-t}^{1}{t}^{2}\phantom{\rule{0.166667em}{0ex}}dudt+\frac{1}{2}{\int }_{0}^{1}{\int }_{1}^{1+t}4{u}^{2}\phantom{\rule{0.166667em}{0ex}}dudt+\frac{1}{2}{\int }_{1}^{2}{\int }_{t-1}^{3-t}4{u}^{2}\phantom{\rule{0.166667em}{0ex}}dudt=103/24$
$\mathrm{Var}\phantom{\rule{0.166667em}{0ex}}\left[W\right]=103/24-{\left(11/6\right)}^{2}=67/72\approx 0.9306$
tuappr Enter matrix [a b]of X-range endpoints [0 2] Enter matrix [c d]of Y-range endpoints [0 2] Enter number of X approximation points 200Enter number of Y approximation points 200 Enter expression for joint density ((u<=min(t+1,3-t))&... (u\$gt;=max(1-t,t-1)))/2Use array operations on X, Y, PX, PY, t, u, and P M = max(t,u)<=1; G = t.*M + 2*u.*(1 - M); % Z = g(X,Y)EG = total(G.*P) % E[g(X,Y)] EG = 1.8340 % Theoretical 11/6 = 1.8333VG = total(G.^2.*P) - EG^2 VG = 0.9368% Theoretical 67/72 = 0.9306 [Z,PZ]= csort(G,P); % Distribution for Z EZ = Z*PZ' % E[Z]from distribution EZ = 1.8340VZ = (Z.^2)*PZ' - EZ^2 VZ = 0.9368

## A function with compound definition

${f}_{XY}\left(t,\phantom{\rule{0.166667em}{0ex}}u\right)=3\phantom{\rule{0.277778em}{0ex}}\phantom{\rule{0.277778em}{0ex}}\text{on}\phantom{\rule{0.277778em}{0ex}}\phantom{\rule{0.277778em}{0ex}}0\le u\le {t}^{2}\le 1$
$Z={I}_{Q}\left(X,\phantom{\rule{0.166667em}{0ex}}Y\right)X+{I}_{{Q}^{c}}\left(X,\phantom{\rule{0.166667em}{0ex}}Y\right)\phantom{\rule{0.277778em}{0ex}}\phantom{\rule{0.277778em}{0ex}}\text{for}\phantom{\rule{0.277778em}{0ex}}\phantom{\rule{0.277778em}{0ex}}Q=\left\{\left(t,\phantom{\rule{0.166667em}{0ex}}u\right):u+t\le 1\right\}$

The value t 0 where the line $u=1-t$ and the curve $u={t}^{2}$ meet satisfies ${t}_{0}^{2}=1-{t}_{0}$ .

$E\left[Z\right]=3{\int }_{0}^{{t}_{0}}t{\int }_{0}^{{t}^{2}}dudt+3{\int }_{{t}_{0}}^{1}t{\int }_{0}^{1-t}dudt+3{\int }_{{t}_{0}}^{1}{\int }_{1-t}^{{t}^{2}}dudt=\frac{3}{4}\left(5{t}_{0}-2\right)$

For $E\left[{Z}^{2}\right]$ replace t by t 2 in the integrands to get $E\left[{Z}^{2}\right]=\left(25{t}_{0}-1\right)/20$ .

Using ${t}_{0}=\left(\sqrt{5}-1\right)/2\approx 0.6180$ , we get $\mathrm{Var}\phantom{\rule{0.166667em}{0ex}}\left[Z\right]=\left(2125{t}_{0}-1309\right)/80\approx 0.0540$ .

APPROXIMATION

% Theoretical values t0 = (sqrt(5) - 1)/2t0 = 0.6180 EZ = (3/4)*(5*t0 -2)EZ = 0.8176 EZ2 = (25*t0 - 1)/20EZ2 = 0.7225 VZ = (2125*t0 - 1309)/80VZ = 0.0540 tuapprEnter matrix [a b] of X-range endpoints [0 1]Enter matrix [c d] of Y-range endpoints [0 1]Enter number of X approximation points 200 Enter number of Y approximation points 200Enter expression for joint density 3*(u<= t.^2) Use array operations on X, Y, t, u, and PG = (t+u<= 1).*t + (t+u>1); EG = total(G.*P)EG = 0.8169 % Theoretical = 0.8176VG = total(G.^2.*P) - EG^2 VG = 0.0540 % Theoretical = 0.0540[Z,PZ] = csort(G,P);EZ = Z*PZ' EZ = 0.8169VZ = (Z.^2)*PZ' - EZ^2 VZ = 0.0540

Standard deviation and the Chebyshev inequality

In Example 5 from "Functions of a Random Variable," we show that if $X\sim N\left(\mu ,\phantom{\rule{0.166667em}{0ex}}{\sigma }^{2}\right)$ then $Z=\frac{X-\mu }{\sigma }\sim N\left(0,\phantom{\rule{0.166667em}{0ex}}1\right)$ . Also, $E\left[X\right]=\mu$ and $\mathrm{Var}\phantom{\rule{0.166667em}{0ex}}\left[X\right]={\sigma }^{2}$ . Thus

$P\left(\frac{|X-\mu |}{\sigma },\le ,t\right)=P\left(|X-\mu |\le t\sigma \right)=2\Phi \left(t\right)-1$

For the normal distribution, the standard deviation σ seems to be a natural measure of the variation away from the mean.

For a general distribution with mean μ and variance σ 2 , we have the

Chebyshev inequality

$P\left(\frac{|X-\mu |}{\sigma },\ge ,a\right)\le \frac{1}{{a}^{2}}\phantom{\rule{0.277778em}{0ex}}\phantom{\rule{0.277778em}{0ex}}\phantom{\rule{0.277778em}{0ex}}\text{or}\phantom{\rule{0.277778em}{0ex}}\phantom{\rule{0.277778em}{0ex}}\phantom{\rule{0.277778em}{0ex}}P\left(|X-\mu |\ge a\sigma \right)\le \frac{1}{{a}^{2}}$

In this general case, the standard deviation appears as a measure of the variation from the mean value. This inequality is useful in many theoretical applications as wellas some practical ones. However, since it must hold for any distribution which has a variance, the bound is not a particularly tight. It may be instructive to comparethe bound on the probability given by the Chebyshev inequality with the actual probability for the normal distribution.

t = 1:0.5:3; p = 2*(1 - gaussian(0,1,t));c = ones(1,length(t))./(t.^2); r = c./p;h = [' t Chebyshev Prob Ratio'];m = [t;c;p;r]';disp(h) t Chebyshev Prob Ratiodisp(m) 1.0000 1.0000 0.3173 3.15151.5000 0.4444 0.1336 3.3263 2.0000 0.2500 0.0455 5.49452.5000 0.1600 0.0124 12.8831 3.0000 0.1111 0.0027 41.1554

$\square$

DERIVATION OF THE CHEBYSHEV INEQUALITY

Let $A=\left\{|X-\mu |\ge a\sigma \right\}=\left\{{\left(X-\mu \right)}^{2}\ge {a}^{2}{\sigma }^{2}\right\}$ . Then ${a}^{2}{\sigma }^{2}{I}_{A}\le {\left(X-\mu \right)}^{2}$ .

Upon taking expectations of both sides and using monotonicity, we have

${a}^{2}{\sigma }^{2}P\left(A\right)\le E\left[{\left(X-\mu \right)}^{2}\right]={\sigma }^{2}$

from which the Chebyshev inequality follows immediately.

$\square$

We consider three concepts which are useful in many situations.

Definition . A random variable X is centered iff $E\left[X\right]=0$ .

${X}^{\text{'}}=X-\mu \phantom{\rule{0.277778em}{0ex}}\phantom{\rule{0.277778em}{0ex}}\phantom{\rule{4.pt}{0ex}}\text{is}\phantom{\rule{4.pt}{0ex}}\text{always}\phantom{\rule{4.pt}{0ex}}\text{centered.}$

Definition . A random variable X is standardized iff $E\left[X\right]=0$ and $\mathrm{Var}\phantom{\rule{0.166667em}{0ex}}\left[X\right]=1$ .

${X}^{*}=\frac{X-\mu }{\sigma }=\frac{{X}^{\text{'}}}{\sigma }\phantom{\rule{0.277778em}{0ex}}\phantom{\rule{0.277778em}{0ex}}\text{is}\phantom{\rule{4.pt}{0ex}}\text{standardized}$

Definition . A pair $\left\{X,\phantom{\rule{0.166667em}{0ex}}Y\right\}$ of random variables is uncorrelated iff

$E\left[XY\right]-E\left[X\right]E\left[Y\right]=0$

It is always possible to derive an uncorrelated pair as a function of a pair $\left\{X,\phantom{\rule{0.166667em}{0ex}}Y\right\}$ , both of which have finite variances. Consider

$U=\left({X}^{*}+{Y}^{*}\right)\phantom{\rule{0.277778em}{0ex}}\phantom{\rule{0.277778em}{0ex}}\phantom{\rule{0.277778em}{0ex}}V=\left({X}^{*}-{Y}^{*}\right),\phantom{\rule{0.277778em}{0ex}}\phantom{\rule{0.277778em}{0ex}}\phantom{\rule{0.277778em}{0ex}}\text{where}\phantom{\rule{0.277778em}{0ex}}\phantom{\rule{0.277778em}{0ex}}{X}^{*}=\frac{X-{\mu }_{X}}{{\sigma }_{X}},\phantom{\rule{0.277778em}{0ex}}\phantom{\rule{0.277778em}{0ex}}{Y}^{*}=\frac{Y-{\mu }_{Y}}{{\sigma }_{Y}}$

Now $E\left[U\right]=E\left[V\right]=0$ and

$E\left[UV\right]=E\left({X}^{*}+{Y}^{*}\right)\left({X}^{*}-{Y}^{*}\right)\right]=E\left[{\left({X}^{*}\right)}^{2}\right]-E\left[{\left({Y}^{*}\right)}^{2}\right]=1-1=0$

so the pair is uncorrelated.

## Determining an uncorrelated pair

We use the distribution for Examples Example 10 from "Mathematical Expectation: Simple Random Variables" and [link] , for which

$E\left[XY\right]-E\left[X\right]E\left[Y\right]\ne 0$
jdemo1 jcalcEnter JOINT PROBABILITIES (as on the plane) P Enter row matrix of VALUES of X XEnter row matrix of VALUES of Y Y Use array operations on matrices X, Y, PX, PY, t, u, and PEX = total(t.*P) EX = 0.6420EY = total(u.*P) EY = 0.0783EXY = total(t.*u.*P) EXY = -0.1130c = EXY - EX*EY c = -0.1633 % {X,Y} not uncorrelated VX = total(t.^2.*P) - EX^2 VX = 3.3016VY = total(u.^2.*P) - EY^2 VY = 3.6566SX = sqrt(VX) SX = 1.8170SY = sqrt(VY) SY = 1.9122x = (t - EX)/SX; % Standardized random variables y = (u - EY)/SY;uu = x + y; % Uncorrelated random variables vv = x - y;EUV = total(uu.*vv.*P) % Check for uncorrelated condition EUV = 9.9755e-06 % Differs from zero because of roundoff

#### Questions & Answers

Do somebody tell me a best nano engineering book for beginners?
what is fullerene does it is used to make bukky balls
are you nano engineer ?
s.
what is the Synthesis, properties,and applications of carbon nano chemistry
so some one know about replacing silicon atom with phosphorous in semiconductors device?
Yeah, it is a pain to say the least. You basically have to heat the substarte up to around 1000 degrees celcius then pass phosphene gas over top of it, which is explosive and toxic by the way, under very low pressure.
Harper
how to fabricate graphene ink ?
for screen printed electrodes ?
SUYASH
What is lattice structure?
of graphene you mean?
Ebrahim
or in general
Ebrahim
in general
s.
Graphene has a hexagonal structure
tahir
On having this app for quite a bit time, Haven't realised there's a chat room in it.
Cied
what is biological synthesis of nanoparticles
what's the easiest and fastest way to the synthesize AgNP?
China
Cied
types of nano material
I start with an easy one. carbon nanotubes woven into a long filament like a string
Porter
many many of nanotubes
Porter
what is the k.e before it land
Yasmin
what is the function of carbon nanotubes?
Cesar
I'm interested in nanotube
Uday
what is nanomaterials​ and their applications of sensors.
what is nano technology
what is system testing?
preparation of nanomaterial
Yes, Nanotechnology has a very fast field of applications and their is always something new to do with it...
what is system testing
what is the application of nanotechnology?
Stotaw
In this morden time nanotechnology used in many field . 1-Electronics-manufacturad IC ,RAM,MRAM,solar panel etc 2-Helth and Medical-Nanomedicine,Drug Dilivery for cancer treatment etc 3- Atomobile -MEMS, Coating on car etc. and may other field for details you can check at Google
Azam
anybody can imagine what will be happen after 100 years from now in nano tech world
Prasenjit
after 100 year this will be not nanotechnology maybe this technology name will be change . maybe aftet 100 year . we work on electron lable practically about its properties and behaviour by the different instruments
Azam
name doesn't matter , whatever it will be change... I'm taking about effect on circumstances of the microscopic world
Prasenjit
how hard could it be to apply nanotechnology against viral infections such HIV or Ebola?
Damian
silver nanoparticles could handle the job?
Damian
not now but maybe in future only AgNP maybe any other nanomaterials
Azam
Hello
Uday
I'm interested in Nanotube
Uday
this technology will not going on for the long time , so I'm thinking about femtotechnology 10^-15
Prasenjit
can nanotechnology change the direction of the face of the world
At high concentrations (>0.01 M), the relation between absorptivity coefficient and absorbance is no longer linear. This is due to the electrostatic interactions between the quantum dots in close proximity. If the concentration of the solution is high, another effect that is seen is the scattering of light from the large number of quantum dots. This assumption only works at low concentrations of the analyte. Presence of stray light.
how did you get the value of 2000N.What calculations are needed to arrive at it
Privacy Information Security Software Version 1.1a
Good
Berger describes sociologists as concerned with
A fair die is tossed 180 times. Find the probability P that the face 6 will appear between 29 and 32 times inclusive