Difference between revisions of "Aufgaben:Exercise 4.3Z: Dirac-shaped "2D-PDF""
From LNTwww
m (Nabil verschob die Seite Zusatzaufgaben:4.3 Diracförmige 2D-WDF nach 4.3Z Diracförmige 2D-WDF) |
|||
(21 intermediate revisions by 4 users not shown) | |||
Line 1: | Line 1: | ||
− | {{quiz-Header|Buchseite= | + | {{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]] |
− | + | The graph shows the two-dimensional probability density function $f_{xy}(x, y)$ of two discrete random variables $x, y$. | |
+ | *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, $\sigma_y^2 = 1.4$. | ||
− | |||
− | |||
− | |||
− | === | + | Hints: |
+ | *The exercise belongs to the chapter [[Theory_of_Stochastic_Signals/Two-Dimensional_Random_Variables|Two-Dimensional Random Variables]]. | ||
+ | *Reference is also made to the chapter [[Theory_of_Stochastic_Signals/Moments_of_a_Discrete_Random_Variable|Moments of a Discrete Random Variable]] | ||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | ===Questions=== | ||
<quiz display=simple> | <quiz display=simple> | ||
− | { | + | {Which of the following statements are true regarding the random variable $x$? |
|type="[]"} | |type="[]"} | ||
− | + | + | + The probabilities for $-2$, $-1$, $0$, $+1 and +2$ are equal. |
− | + | + | + The random variable x is mean-free $(m_x = 0)$. |
− | - | + | - The probability ${\rm Pr}(x \le 1)=0.9$. |
− | { | + | {Which of the following statements are true with respect to the random variable $y$? |
|type="[]"} | |type="[]"} | ||
− | - | + | - The probabilities for $-2$, $-1$, $0$, $+1 and +2$ are equal. |
− | + | + | + The random variable y is mean-free $(m_y = 0)$. |
− | + | + | + The probability ${\rm Pr}(y \le 1)=0.9$. |
− | { | + | {Calculate the value of the two-dimensional cumulative distribution function $\rm (CDF) at location (+1, +1)$. |
|type="{}"} | |type="{}"} | ||
− | $F_ | + | $F_{xy}(+1, +1) \ = \ $ { 0.8 3% } |
− | |||
− | { | + | {Calculate the probability that $x \le 1$ holds, conditioned on $y \le 1$ simultaneously. |
|type="{}"} | |type="{}"} | ||
− | Pr(x≤1|y≤1) | + | ${\rm Pr}(x ≤ 1\hspace{0.05cm} | \hspace{0.05cm}y ≤ 1)\ = \ $ { 0.889 3% } |
− | { | + | {Calculate the joint moment mxy of the random variables $x and y$. |
|type="{}"} | |type="{}"} | ||
− | $m_ | + | $m_{xy}\ = \ $ { 1.2 3% } |
− | { | + | {Calculate the correlation coefficient $\rho_{xy}. Give the equation of the correlation line K(x)$ What is its angle to the $x$–axis? |
|type="{}"} | |type="{}"} | ||
− | $\theta_\ | + | ρxy = { 0.707 3% } |
+ | $\theta_{y\hspace{0.05cm}→\hspace{0.05cm} x}\ = \ $ { 31 3% } degrees | ||
− | { | + | {Which of the following statements are true? |
|type="[]"} | |type="[]"} | ||
− | - | + | - 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 $\rho_{xy}$ one can conclude the statistical dependence between $x and y$ . |
Line 60: | Line 70: | ||
</quiz> | </quiz> | ||
− | === | + | ===Solution=== |
{{ML-Kopf}} | {{ML-Kopf}} | ||
− | + | '''(1)''' Correct are the <u>first two answers</u>: | |
− | [[ | + | *The marginal probability density function $f_{x}(x)$ is obtained from the 2D–PDF $f_{xy}(x, y)$ by integration over y. |
+ | *For all possible values $ x \in \{-2, -1, \ 0, +1, +2\} the probabilities are equal 0.2$. | ||
+ | *It holds ${\rm Pr}(x \le 1)= 0.8$. The mean is $m_x = 0$. | ||
+ | |||
+ | |||
+ | |||
+ | [[File:P_ID258__Sto_Z_4_3_b.png|right|frame|Discrete marginal PDF fy(y)]] | ||
+ | '''(2)''' Correct are <u>the proposed solutions 2 and 3</u>: | ||
+ | *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(y≤1)=0.9. | ||
+ | |||
+ | |||
+ | |||
+ | '''(3)''' By definition: | ||
+ | :$$F_{xy}(r_x, r_y) = {\rm Pr} \big [(x \le r_x)\cap(y\le r_y)\big ].$$ | ||
+ | |||
+ | *For rx=ry=1 it follows: | ||
+ | :$$F_{xy}(+1, +1) = {\rm Pr}\big [(x \le 1)\cap(y\le 1)\big ].$$ | ||
+ | *As can be seen from the 2D–PDF on the information page, this probability is ${\rm Pr}\big [(x \le 1)\cap(y\le 1)\big ]\hspace{0.15cm}\underline{=0.8}$. | ||
− | |||
− | |||
− | |||
− | + | '''(4)''' For this, Bayes' theorem can also be used to write: | |
− | :$$ | + | :$$ \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)}.$$ |
− | + | *With the results from '''(2)''' and '''(3)''' it follows $ \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}$. | |
− | |||
− | |||
− | |||
− | + | '''(5)''' According to the definition, the common moment is: | |
− | :$$m_{xy} = \rm E[ | + | :$$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. $$ |
− | + | *There remain five Dirac delta functions with $x_i \cdot y_i \ne 0$: | |
:mxy=0.1⋅(−2)(−1)+0.2⋅(−1)(−1)+0.2⋅1⋅1+0.1⋅2⋅1+0.1⋅2⋅2=1.2_. | :mxy=0.1⋅(−2)(−1)+0.2⋅(−1)(−1)+0.2⋅1⋅1+0.1⋅2⋅1+0.1⋅2⋅2=1.2_. | ||
− | |||
− | |||
− | |||
− | |||
− | : | + | [[File:EN_Sto_Z_4_3_f.png|right|frame|2D–PDF and regression line (RL)]] |
+ | '''(6)''' For the correlation coefficient: | ||
+ | :ρxy=μxyσx⋅σy=1.2√2⋅√1.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⋅ρxy⋅x=μxyσ2x⋅x=0.6⋅x. | :y=σyσx⋅ρxy⋅x=μxyσ2x⋅x=0.6⋅x. | ||
− | + | *See sketch on the right. The angle between the regression line $\rm (RL)$ and the x-axis is | |
+ | :$$\theta_{y\hspace{0.05cm}→\hspace{0.05cm} x} = \arctan(0.6) \hspace{0.15cm}\underline{=31^\circ}.$$ | ||
+ | |||
− | + | '''(7)''' The correct solutions are <u>solutions 2 and 3</u>: | |
+ | *If statistically independent, $f_{xy}(x, y) = f_{x}(x) \cdot f_{y}(y)$ should hold, which is not done here. | ||
+ | *From correlatedness $($follows from $\rho_{xy} \ne 0)$ it is possible to directly infer statistical dependence, | ||
+ | *because correlation means a special form of statistical dependence, namely linear statistical dependence. | ||
{{ML-Fuß}} | {{ML-Fuß}} | ||
Line 103: | Line 133: | ||
− | [[Category: | + | [[Category:Theory of Stochastic Signals: Exercises|^4.1 Two-Dimensional Random Variables^]] |
Latest revision as of 17:41, 10 April 2022
The graph shows the two-dimensional probability density function fxy(x,y) of two discrete random variables x, y.
- 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:
- The exercise belongs to the chapter Two-Dimensional Random Variables.
- Reference is also made to the chapter Moments of a Discrete Random Variable
Questions
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(x≤1)=0.8. The mean is mx=0.
(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(y≤1)=0.9.
(3) By definition:
- Fxy(rx,ry)=Pr[(x≤rx)∩(y≤ry)].
- For rx=ry=1 it follows:
- Fxy(+1,+1)=Pr[(x≤1)∩(y≤1)].
- As can be seen from the 2D–PDF on the information page, this probability is Pr[(x≤1)∩(y≤1)]=0.8_.
(4) For this, Bayes' theorem can also be used to write:
- Pr(x≤1)|y≤1)=Pr[(x≤1)∩(y≤1)]Pr(y≤1)=Fxy(1,1)Fy(1).
- With the results from (2) and (3) it follows Pr(x≤1)|y≤1)=0.8/0.9=8/9=0.889_.
(5) According to the definition, the common moment is:
- mxy=E[x⋅y]=∑iPr(xi∩yi)⋅xi⋅yi.
- There remain five Dirac delta functions with xi⋅yi≠0:
- mxy=0.1⋅(−2)(−1)+0.2⋅(−1)(−1)+0.2⋅1⋅1+0.1⋅2⋅1+0.1⋅2⋅2=1.2_.
(6) For the correlation coefficient:
- ρxy=μxyσx⋅σy=1.2√2⋅√1.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⋅ρxy⋅x=μxyσ2x⋅x=0.6⋅x.
- See sketch on the right. The angle between the regression line (RL) and the x-axis is
- θy→x=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 ρxy≠0) it is possible to directly infer statistical dependence,
- because correlation means a special form of statistical dependence, namely linear statistical dependence.