Loading [MathJax]/jax/output/HTML-CSS/fonts/TeX/fontdata.js

Difference between revisions of "Aufgaben:Exercise 4.3Z: Dirac-shaped "2D-PDF""

From LNTwww
 
(21 intermediate revisions by 4 users not shown)
Line 1: Line 1:
  
{{quiz-Header|Buchseite=Stochastische Signaltheorie/Zweidimensionale Zufallsgrößen
+
{{quiz-Header|Buchseite=Theory_of_Stochastic_Signals/Two-Dimensional_Random_Variables
 
}}
 
}}
  
[[File:P_ID257__Sto_Z_4_3.png|right|]]
+
[[File:P_ID257__Sto_Z_4_3.png|right|frame|Dirac-shaped 2D– PDF]]
:In der Grafik rechts ist die zweidimensionale Wahrscheinlichkeitsdichtefunktion <i>f<sub>xy</sub></i>(<i>x</i>, <i>y</i>) der zwei diskreten Zufallsgr&ouml;&szlig;en <i>x</i> und <i>y</i> dargestellt. Diese 2D&ndash;WDF besteht aus acht Diracpunkten, durch Kreuze markiert. Die Zahlenwerte geben die entsprechenden Wahrscheinlichkeiten an.
+
The graph shows the two-dimensional probability density function $f_{xy}(x, y)$&nbsp; of two discrete random variables&nbsp; $x,&nbsp;y$.  
 +
*This 2D&ndash;PDF consists of eight Dirac points,&nbsp;  marked by crosses.&nbsp;
 +
*The numerical values indicate the corresponding probabilities.
 +
*It can be seen that both&nbsp; x&nbsp; and&nbsp; y&nbsp; can take all integer values between the limits&nbsp; 2&nbsp; and&nbsp; +2.
 +
*The variances of the two random variables are given as follows:  &nbsp; σ2x=2, &nbsp; $\sigma_y^2 = 1.4$.  
  
:Es ist zu erkennen, dass sowohl <i>x</i> als auch <i>y</i> alle ganzzahligen Werte zwischen den Grenzen &ndash;2 und +2 annehmen k&ouml;nnen.
 
  
:Die Varianzen der beiden Zufallsgr&ouml;&szlig;en sind wie folgt gegeben: &sigma;<sub>x</sub><sup>2</sup> = 2 und &sigma;<sub>y</sub><sup>2</sup> = 1.4. <br>
 
  
:<b>Hinweis</b>: Diese Aufgabe bezieht sich auf die Thematik von Kapitel 2.2 und Kapitel 4.1.
 
  
  
===Fragebogen===
+
Hints:
 +
*The exercise belongs to the chapter&nbsp; [[Theory_of_Stochastic_Signals/Two-Dimensional_Random_Variables|Two-Dimensional Random Variables]].
 +
*Reference is also made to the chapter&nbsp; [[Theory_of_Stochastic_Signals/Moments_of_a_Discrete_Random_Variable|Moments of a Discrete Random Variable]]
 +
 +
 
 +
 
 +
 
 +
 
 +
 
 +
===Questions===
  
 
<quiz display=simple>
 
<quiz display=simple>
{Welche der folgenden Aussagen trefen hinsichtlich der Zufallsgr&ouml;&szlig;e <i>x</i> zu?
+
{Which of the following statements are true regarding the random variable&nbsp; $x$?
 
|type="[]"}
 
|type="[]"}
+ Die Wahrscheinlichkeiten für &ndash;2, &ndash;1, 0, +1 und +2 sind gleich.
+
+ The probabilities for&nbsp; $-2$,&nbsp; $-1$,&nbsp; &nbsp; $0$,&nbsp; $+1&nbsp; and&nbsp;+2$&nbsp; are equal.
+ Die Zufallsgr&ouml;&szlig;e <i>x</i> ist mittelwertfrei (<i>m<sub>x</sub></i> = 0).  
+
+ The random variable&nbsp; x&nbsp; is mean-free&nbsp; $(m_x = 0)$.  
- Die Wahrscheinlichkeit Pr(<i>x</i> &#8804; 1) ist 0.9.
+
- The probability&nbsp; ${\rm Pr}(x \le 1)=0.9$.
  
  
{Welche der folgenden Aussagen treffen hinsichtlich der Zufallsgr&ouml;&szlig;e <i>y</i> zu?
+
{Which of the following statements are true with respect to the random variable&nbsp; $y$?
 
|type="[]"}
 
|type="[]"}
- Die Wahrscheinlichkeiten für &ndash;2, &ndash;1, 0, +1 und +2 sind gleich.
+
- The probabilities for&nbsp; $-2$,&nbsp; $-1$,&nbsp; &nbsp; $0$,&nbsp; $+1&nbsp; and&nbsp;+2$&nbsp; are equal.
+ Die Zufallsgr&ouml;&szlig;e <i>y</i> ist mittelwertfrei (<i>m<sub>y</sub></i> = 0).  
+
+ The random variable&nbsp; y&nbsp; is mean-free&nbsp; $(m_y = 0)$.  
+ Die Wahrscheinlichkeit Pr(<i>y</i> &#8804; 1) ist 0.9.
+
+ The probability&nbsp; ${\rm Pr}(y \le 1)=0.9$.
  
  
{Berechnen Sie den Wert der zweidimensionalen VTF an der Stelle (1, 1).
+
{Calculate the value of the two-dimensional cumulative distribution function&nbsp; $\rm (CDF)&nbsp; at location&nbsp;(+1, +1)$.
 
|type="{}"}
 
|type="{}"}
$F_\text{xy}(1, 1)$ = { 0.8 3% }
+
$F_{xy}(+1, +1) \ = \ $ { 0.8 3% }
 
 
  
{Berechnen Sie die Wahrscheinlichkeit, dass <i>x</i> &#8804; 1 gilt, unter der Bedingung, dass gleichzeitig <i>y</i> &#8804; 1 ist.
+
{Calculate the probability that&nbsp; $x \le 1$&nbsp; holds,&nbsp; conditioned on&nbsp; $y \le 1$&nbsp; simultaneously.
 
|type="{}"}
 
|type="{}"}
Pr(x1|y1) = { 0.889 3% }
+
${\rm Pr}(x ≤ 1\hspace{0.05cm} | \hspace{0.05cm}y ≤ 1)\ = \ $ { 0.889 3% }
  
  
{Berechnen Sie das gemeinsame Moment der Zufallsgr&ouml;&szlig;en <i>x</i> und <i>y</i>.
+
{Calculate the joint moment&nbsp; mxy&nbsp; of the random variables&nbsp; $x&nbsp; and&nbsp;y$.
 
|type="{}"}
 
|type="{}"}
$m_\text{xy}$ = { 1.2 3% }
+
$m_{xy}\ = \ $ { 1.2 3% }
  
  
{Berechnen Sie den Korrelationskoeffizienten <i>&rho;<sub>xy</sub></i> und geben Sie die Gleichung der Korrelationsgeraden <i>K</i>(<i>x</i>) an. Wie gro&szlig; ist deren Winkel zur <i>x</i>-Achse?
+
{Calculate the correlation coefficient&nbsp; $\rho_{xy}.&nbsp; Give the equation of the correlation line&nbsp;K(x)$&nbsp; What is its angle to the&nbsp; $x$&ndash;axis?
 
|type="{}"}
 
|type="{}"}
$\theta_\text{y→ x}$ = { 31 3% } Grad
+
ρxy =  { 0.707 3% }
 +
$\theta_{y\hspace{0.05cm}→\hspace{0.05cm} x}\ = \ $ { 31 3% }  degrees
  
  
{Welche der nachfolgenden Aussagen sind zutreffend?
+
{Which of the following statements are true?
 
|type="[]"}
 
|type="[]"}
- Die Zufallsgr&ouml;&szlig;en <i>x</i> und <i>y</i> sind statistisch unabh&auml;ngig.
+
- The random variables&nbsp; x&nbsp; and&nbsp; $y$&nbsp; are statistically independent.
+ Man erkennt bereits aus der vorgegebenen 2D-WDF, dass <i>x</i> und <i>y</i> statistisch voneinander abh&auml;ngen.
+
+ It can already be seen from the given 2D&ndash;PDF that&nbsp; $x&nbsp; and&nbsp;y$&nbsp; are statistically dependent on each other.
+ Aus dem berechneten Korrelationskoeffizienten <i>&rho;<sub>xy</sub></i> kann man auf die statistische Abh&auml;ngigkeit zwischen <i>x</i> und <i>y</i> schließen.
+
+ From the calculated correlation coefficient&nbsp; $\rho_{xy}$&nbsp; one can conclude the statistical dependence between&nbsp; $x&nbsp; and&nbsp;y$&nbsp;.
  
  
Line 60: Line 70:
 
</quiz>
 
</quiz>
  
===Musterlösung===
+
===Solution===
 
{{ML-Kopf}}
 
{{ML-Kopf}}
:<b>1.</b>&nbsp;&nbsp;Die Randwahrscheinlichkeitsdichtefunktion <i>f<sub>x</sub></i>(<i>x</i>) erh&auml;lt man aus der 2D&ndash;WDF <i>f<sub>xy</sub></i>(<i>x, y</i>) durch Integration über <i>y</i>. F&uuml;r alle m&ouml;glichen Werte <i>x</i> &#8712; {&ndash;2, &ndash;1, 0, 1, 2} sind die Wahrscheinlichkeiten gleich 0.2, und es gilt Pr(<i>x</i> &#8804; 1) = 0.8. Der Mittelwert ist <i>m<sub>x</sub></i> = 0. Richtig sind somit <u>die beiden ersten Antworten</u>.
+
'''(1)'''&nbsp; Correct are the&nbsp; <u>first two answers</u>:
[[File:P_ID258__Sto_Z_4_3_b.png|right|]]
+
*The marginal probability density function&nbsp; $f_{x}(x)$&nbsp; is obtained from the 2D&ndash;PDF&nbsp; $f_{xy}(x, y)$&nbsp; by integration over&nbsp; y.
 +
*For all possible values&nbsp; $ x \in \{-2, -1, \ 0, +1, +2\}&nbsp; the probabilities are equal&nbsp;0.2$.
 +
*It holds&nbsp; ${\rm Pr}(x \le 1)= 0.8$.&nbsp; The mean is&nbsp; $m_x = 0$.  
 +
 
 +
 
 +
 
 +
[[File:P_ID258__Sto_Z_4_3_b.png|right|frame|Discrete marginal PDF&nbsp; fy(y)]]
 +
'''(2)'''&nbsp; Correct are&nbsp; <u>the proposed solutions 2 and 3</u>:
 +
*By integration over&nbsp; x&nbsp; one obtains the PDF&nbsp; fy(y) sketched on the right.
 +
*Due to symmetry,&nbsp; the mean value&nbsp; my=0&nbsp; is obtained.
 +
*The probability we are looking for is&nbsp; Pr(y1)=0.9.
 +
 
 +
 
 +
 
 +
'''(3)'''&nbsp; By definition:
 +
:$$F_{xy}(r_x, r_y) = {\rm Pr} \big [(x \le r_x)\cap(y\le r_y)\big ].$$
 +
 
 +
*For&nbsp; rx=ry=1&nbsp; it follows:
 +
:$$F_{xy}(+1, +1) = {\rm Pr}\big [(x \le 1)\cap(y\le 1)\big ].$$
 +
*As can be seen from the 2D&ndash;PDF on the information page,&nbsp; this probability is&nbsp; ${\rm Pr}\big [(x \le 1)\cap(y\le 1)\big ]\hspace{0.15cm}\underline{=0.8}$.
  
:<b>2.</b>&nbsp;&nbsp;Durch Integration &uuml;ber <i>x</i> erh&auml;lt man die rechts skizzierte WDF. Aufgrund der Symmetrie ergibt sich der Mittelwert <i>m<sub>y</sub></i> = 0. Die gesuchte Wahrscheinlichkeit Pr(<i>y</i> &#8804; 1) ist 0.9. Richtig sind also <u>die Lösungsvorschläge 2 und 3</u>.<br>
 
  
:<b>3.</b> Definitionsgemäß gilt:
 
:Fxy(rx,ry)=Pr((xrx)(yry)).
 
  
:F&uuml;r <i>r<sub>x</sub></i> = <i>r<sub>y</sub></i> = 1 folgt daraus:
+
'''(4)'''&nbsp; For this,&nbsp; Bayes' theorem can also be used to write:  
:$$F_{xy}(\rm 1, \rm 1) = \rm Pr((\it x \le \rm 1)\cap(\it y\le \rm 1)).$$
+
:$$ \rm Pr(\it x \le \rm 1)\hspace{0.05cm} | \hspace{0.05cm} \it y \le \rm 1) = \frac{ \rm Pr\big [(\it x \le \rm 1)\cap(\it y\le \rm 1)\big ]}{ \rm Pr(\it y\le \rm 1)} = \it \frac{F_{xy} \rm (1, \rm 1)}{F_{y}\rm (1)}.$$
  
:Wie aus der 2D&ndash;WDF auf der Angabenseite zu ersehen, ist diese Wahrscheinlichkeit <u>gleich 0.8</u>.
+
*With the results from&nbsp; '''(2)'''&nbsp; and&nbsp; '''(3)'''&nbsp; it follows&nbsp; $ \rm Pr(\it x \le \rm 1)\hspace{0.05cm} | \hspace{0.05cm} \it y \le \rm 1) = 0.8/0.9 = 8/9 \hspace{0.15cm}\underline{=0.889}$.
  
:<b>4.</b>&nbsp;&nbsp;Hierf&uuml;r kann mit dem Satz von Bayes auch geschrieben werden:
 
:Pr(x1)|y1)=Pr((x1)(y1))Pr(y1)=Fxy(1,1)Fy(1).
 
  
:Mit den Ergebnissen aus (2) und (3) folgt daraus Pr(<i>x</i> &#8804; 1 | <i>y</i> &#8804; 1) = 0.8/0.9 = 8/9 <u>= 0.889</u>.
 
  
:<b>5.</b>&nbsp;&nbsp;Entsprechend der Definition gilt für das gemeinsame Moment:
+
'''(5)'''&nbsp; According to the definition, the common moment is:
:$$m_{xy} = \rm E[\it x\cdot y] = \sum\limits_{i} \rm Pr(\it x_i \cap y_i)\cdot \it x_i\cdot y_i.   $$
+
:$$m_{xy} = {\rm E}\big[x\cdot y \big] = \sum\limits_{i} {\rm Pr}( x_i \cap y_i)\cdot x_i\cdot y_i. $$
  
:Es verbleiben fünf Diracfunktionen mit <i>x<sub>i</sub> &middot; y<sub>i</sub></i> &ne; 0:
+
*There remain five Dirac delta functions with&nbsp; $x_i \cdot y_i \ne 0$:
 
:mxy=0.1(2)(1)+0.2(1)(1)+0.211+0.121+0.122=1.2_.
 
:mxy=0.1(2)(1)+0.2(1)(1)+0.211+0.121+0.122=1.2_.
[[File:P_ID259__Sto_Z_4_3_f.png|right|]]
 
  
:<b>6.</b>&nbsp;&nbsp;F&uuml;r den Korrelationskoeffizienten gilt:
 
:ρxy=μxyσxσy=1.221.4=0.717.
 
  
:Hier ist ber&uuml;cksichtigt, dass wegen <i>m<sub>x</sub></i> = <i>m<sub>y</sub></i> = 0 die Kovarianz <i>&mu;<sub>xy</sub></i> gleich dem Moment <i>m<sub>xy</sub></i> ist.
 
  
:Die Gleichung der Korrelationsgeraden lautet:
+
[[File:EN_Sto_Z_4_3_f.png|right|frame|2D&ndash;PDF and regression line&nbsp; (RL)]]
 +
'''(6)'''&nbsp; For the correlation coefficient:
 +
:ρxy=μxyσxσy=1.221.4=0.717_.
 +
 
 +
*This takes into account that because&nbsp; mx=my=0&nbsp; the covariance&nbsp; μxy&nbsp; is equal to the moment&nbsp; mxy&nbsp; .
 +
 
 +
*The equation of the correlation line is:
 
:y=σyσxρxyx=μxyσ2xx=0.6x.
 
:y=σyσxρxyx=μxyσ2xx=0.6x.
  
:Im Bild ist die Gerade <i>y</i> = <i>K</i>(<i>x</i>) eingezeichnet. Der Winkel zwischen Korrelationsgerade und  <i>x</i>-Achse betr&auml;gt <i>&theta;</i><sub><i>y</i>&#8594;<i>x</i></sub> = arctan(0.6) <u>&asymp; 31&deg;</u>.
+
*See sketch on the right.&nbsp; The angle between the regression line&nbsp; $\rm (RL)$&nbsp; and the&nbsp; x-axis is
 +
:$$\theta_{y\hspace{0.05cm}→\hspace{0.05cm} x} = \arctan(0.6) \hspace{0.15cm}\underline{=31^\circ}.$$
 +
 
  
:<b>7.</b>&nbsp;&nbsp;Bei statistischer Unabh&auml;ngigkeit m&uuml;sste <i>f<sub>xy</sub></i>(<i>x</i>, <i>y</i>) = <i>f<sub>x</sub></i>(<i>x</i>) &middot; <i>f<sub>y</sub></i>(<i>y</i>) gelten, was hier nicht erf&uuml;llt ist. Aus der Korreliertheit (folgt aus <i>&rho;<sub>xy</sub></i> = 0.6) kann direkt auf die statistische Abh&auml;ngigkeit geschlossen werden, denn Korrelation bedeutet eine Sonderform (nämlich linear) der statistischen Abh&auml;ngigkeit. Richtig sind die <u>Lösungsvorschläge 2 und 3</u>.
+
'''(7)'''&nbsp; The correct solutions are&nbsp; <u>solutions 2 and 3</u>:
 +
*If statistically independent,&nbsp; $f_{xy}(x, y) = f_{x}(x) \cdot f_{y}(y)$&nbsp; should hold,&nbsp; which is not done here.  
 +
*From correlatedness&nbsp; $($follows from&nbsp; $\rho_{xy} \ne 0)$&nbsp; it is possible to directly infer statistical dependence,
 +
*because correlation means a special form of statistical dependence,&nbsp; namely linear statistical dependence.  
  
 
{{ML-Fuß}}
 
{{ML-Fuß}}
Line 103: Line 133:
  
  
[[Category:Aufgaben zu Stochastische Signaltheorie|^4.1 Zweidimensionale Zufallsgrößen^]]
+
[[Category:Theory of Stochastic Signals: Exercises|^4.1 Two-Dimensional Random Variables^]]

Latest revision as of 17:41, 10 April 2022

Dirac-shaped 2D– PDF

The graph shows the two-dimensional probability density function fxy(x,y)  of two discrete random variables  xy.

  • This 2D–PDF consists of eight Dirac points,  marked by crosses. 
  • The numerical values indicate the corresponding probabilities.
  • It can be seen that both  x  and  y  can take all integer values between the limits  2  and  +2.
  • The variances of the two random variables are given as follows:   σ2x=2,   σ2y=1.4.



Hints:




Questions

1

Which of the following statements are true regarding the random variable  x?

The probabilities for  21,    0+1  and  +2  are equal.
The random variable  x  is mean-free  (mx=0).
The probability  Pr(x1)=0.9.

2

Which of the following statements are true with respect to the random variable  y?

The probabilities for  21,    0+1  and  +2  are equal.
The random variable  y  is mean-free  (my=0).
The probability  Pr(y1)=0.9.

3

Calculate the value of the two-dimensional cumulative distribution function  (CDF)  at location  (+1,+1).

Fxy(+1,+1) = 

4

Calculate the probability that  x1  holds,  conditioned on  y1  simultaneously.

Pr(x1|y1) = 

5

Calculate the joint moment  mxy  of the random variables  x  and  y.

mxy = 

6

Calculate the correlation coefficient  ρxy.  Give the equation of the correlation line  K(x)  What is its angle to the  x–axis?

ρxy = 

θyx = 

 degrees

7

Which of the following statements are true?

The random variables  x  and  y  are statistically independent.
It can already be seen from the given 2D–PDF that  x  and  y  are statistically dependent on each other.
From the calculated correlation coefficient  ρxy  one can conclude the statistical dependence between  x  and  y .


Solution

(1)  Correct are the  first two answers:

  • The marginal probability density function  fx(x)  is obtained from the 2D–PDF  fxy(x,y)  by integration over  y.
  • For all possible values  x{2,1, 0,+1,+2}  the probabilities are equal  0.2.
  • It holds  Pr(x1)=0.8.  The mean is  mx=0.


Discrete marginal PDF  fy(y)

(2)  Correct are  the proposed solutions 2 and 3:

  • By integration over  x  one obtains the PDF  fy(y) sketched on the right.
  • Due to symmetry,  the mean value  my=0  is obtained.
  • The probability we are looking for is  Pr(y1)=0.9.


(3)  By definition:

Fxy(rx,ry)=Pr[(xrx)(yry)].
  • For  rx=ry=1  it follows:
Fxy(+1,+1)=Pr[(x1)(y1)].
  • As can be seen from the 2D–PDF on the information page,  this probability is  Pr[(x1)(y1)]=0.8_.


(4)  For this,  Bayes' theorem can also be used to write:

Pr(x1)|y1)=Pr[(x1)(y1)]Pr(y1)=Fxy(1,1)Fy(1).
  • With the results from  (2)  and  (3)  it follows  Pr(x1)|y1)=0.8/0.9=8/9=0.889_.


(5)  According to the definition, the common moment is:

mxy=E[xy]=iPr(xiyi)xiyi.
  • There remain five Dirac delta functions with  xiyi0:
mxy=0.1(2)(1)+0.2(1)(1)+0.211+0.121+0.122=1.2_.


2D–PDF and regression line  (RL)

(6)  For the correlation coefficient:

ρxy=μxyσxσy=1.221.4=0.717_.
  • This takes into account that because  mx=my=0  the covariance  μxy  is equal to the moment  mxy  .
  • The equation of the correlation line is:
y=σyσxρxyx=μxyσ2xx=0.6x.
  • See sketch on the right.  The angle between the regression line  (RL)  and the  x-axis is
θyx=arctan(0.6)=31_.


(7)  The correct solutions are  solutions 2 and 3:

  • If statistically independent,  fxy(x,y)=fx(x)fy(y)  should hold,  which is not done here.
  • From correlatedness  (follows from  ρxy0)  it is possible to directly infer statistical dependence,
  • because correlation means a special form of statistical dependence,  namely linear statistical dependence.