Difference between revisions of "Aufgaben:Exercise 3.9: Characteristic Curve for Cosine PDF"

From LNTwww
(Die Seite wurde neu angelegt: „ {{quiz-Header|Buchseite=Stochastische Signaltheorie/Exponentialverteilte Zufallsgrößen }} right| :Gesucht ist eine stetige…“)
 
 
(22 intermediate revisions by 4 users not shown)
Line 3: Line 3:
 
}}
 
}}
  
[[File:P_ID136__Sto_A_3_9.png|right|]]
+
[[File:P_ID136__Sto_A_3_9.png|right|frame|Rectangular and cosine PDF]]
:Gesucht ist eine stetige, monoton steigende nichtlineare Kennlinie <i>y</i> = <i>g</i>(<i>x</i>), die aus einer zwischen &#150;1 und +1 gleichverteilten Zufallsgr&ouml;&szlig;e <i>x</i> eine neue Zufallsgr&ouml;&szlig;e <i>y</i> mit cosinusf&ouml;rmiger WDF generiert:
+
We are looking for a continuous,&nbsp; monotonically increasing nonlinear characteristic&nbsp; $y =g(x)$,&nbsp; which generates a new random variable&nbsp; with&nbsp; "cosine"&nbsp; PDF from a between&nbsp; $-1$&nbsp; and&nbsp; $+1$&nbsp; uniformly distributed random variable&nbsp; $x$:
:$$f_y(y)=A\cdot\rm cos(\frac{\rm \pi}{\rm 2}\cdot \it y).$$
+
:$$f_y(y)=A\cdot\cos({\pi}/{2}\cdot y).$$
  
:Die Zufallsgr&ouml;&szlig;e <i>y</i> kann ebenfalls nur Werte zwischen &minus;1 und +1 annehmen. Die beiden  Dichtefunktionen <i>f<sub>x</sub></i>(<i>x</i>) und <i>f<sub>y</sub></i>(<i>y</i>) sind nebenstehend skizziert.
+
*The random variable&nbsp; $y$&nbsp; can also only take values between&nbsp; $-1$&nbsp; and&nbsp; $+1$.  
 +
*The two density functions&nbsp; $f_x(x)$&nbsp; and&nbsp; $f_y(y)$&nbsp; are sketched on the right.
  
:<br><br>
 
<b>Hinweis</b>: Die Aufgabe bezieht sich auf die theoretischen Grundlagen von Kapitel 3.6.
 
  
  
  
===Fragebogen===
+
Hints:
 +
*The exercise belongs to the chapter&nbsp; [[Theory_of_Stochastic_Signals/Exponentially_Distributed_Random_Variables|Exponentially Distributed Random Variables]].
 +
*In particular, reference is made to the page&nbsp; [[Theory_of_Stochastic_Signals/Exponentially_Distributed_Random_Variables#Transformation_of_random_variables|Transformation of random variables]].
 +
 +
 
 +
 
 +
 
 +
===Question===
  
 
<quiz display=simple>
 
<quiz display=simple>
{Welche der nachfolgenden Aussagen sind zutreffend?
+
{Which of the following statements are true?
 
|type="[]"}
 
|type="[]"}
+ Au&szlig;erhalb des Bereichs -1 &#8804; <i>x</i> &#8804; +1 kann <i>g</i>(<i>x</i>) beliebig sein.
+
+ Outside the range&nbsp; $-1 \le x \le +1$&nbsp; &rArr; &nbsp; $g(x)$&nbsp; can be arbitrary.
- Die Kennlinie muss symmetrisch um <i>x</i> = 0 sein: <i>g</i>(<i>&ndash;x</i>) = <i>g</i>(<i>x</i>).
+
- The characteristic curve must be symmetrical about&nbsp; $x= 0$&nbsp; : &nbsp; $g(-x) = g(x)$.
+ Die Zufallsgr&ouml;&szlig;e <i>y</i> hat eine kleinere Varianz als <i>x</i>.
+
+ The random variable&nbsp; $y$&nbsp; has a smaller variance than&nbsp; $x$.
  
  
{Berechnen Sie den <i>f<sub>y</sub></i>(<i>y</i>)&ndash;Wert bei <i>y</i> = 0: <i>A</i> = <i>f<sub>y</sub></i>(0).
+
{Calculate the&nbsp; $f_y(y)$ value at&nbsp; $y = 0$: &nbsp; $A = f_y(0)$.
 
|type="{}"}
 
|type="{}"}
$A$ = { 0.785 3% }
+
$A \ = \ $ { 0.785 3% }
  
  
{Bestimmen Sie die Steigung <i>h</i>'(<i>y</i>) der Umkehrfunktion <i>x</i> = <i>h</i>(<i>y</i>), wobei im Bereich |<i>y</i>| &#8804; 1 stets <i>h</i>'(<i>y</i>) > 0 gelten soll? Welche Steigung gilt bei  <i>y</i> = 0?
+
{Determine the slope&nbsp; $h\hspace{0.05cm}'(y)$&nbsp; of the inverse function&nbsp; $x = h(y)$,&nbsp; where for&nbsp; $|y| \le 1$&nbsp; always&nbsp; $h\hspace{0.05cm}'(y) > 0$&nbsp; should hold?&nbsp; What slope holds for&nbsp; $y = 0$&nbsp;?
 
|type="{}"}
 
|type="{}"}
$(y=0)$ = { 1.571 3% }
+
$h'(y = 0) \ = \ $ { 1.571 3% }
  
  
{Berechnen Sie mit dem Ergebnis aus 3. den Funktionsverlauf <i>x</i> = <i>h</i>(<i>y</i>) unter der Nebenbedingung <i>h</i>(0) = 0. Welcher Wert ergibt sich f&uuml;r <i>y</i> = 1?
+
{Compute with the result from&nbsp; '''(3)'''&nbsp; the function&nbsp; $x = h(y)$&nbsp; under the constraint&nbsp; $h(0) = 0$.&nbsp; What value results f&uuml;r&nbsp; $y = 1$&nbsp;?
 
|type="{}"}
 
|type="{}"}
$h(y=1)$ = { 1 3% }
+
$h(y=1) \ = \ $ { 1 3% }
  
  
{Ermitteln Sie den Funktionsverlauf <i>y</i> = <i>g</i>(<i>x</i>) der gesuchten Kennlinie. Welcher Funktionswert ergibt sich an der Stelle <i>x</i> = 1?
+
{Determine the function&nbsp; $y = g(x)$&nbsp; of the characteristic we are looking for.&nbsp; What is the function value at the point&nbsp; $x = 1$&nbsp;?
 
|type="{}"}
 
|type="{}"}
$g(x = 1)$ = { 1 3% }
+
$g(x = 1) \ = \ $ { 1 3% }
  
  
Line 47: Line 53:
 
</quiz>
 
</quiz>
  
===Musterlösung===
+
===Solution===
 
{{ML-Kopf}}
 
{{ML-Kopf}}
:<b>1.</b>&nbsp;&nbsp;Richtig sind <u>die Aussagen 1 und 3</u>: Da <i>x</i> nur Werte zwischen &plusmn;1 annehmen kann, ist der Verlauf der Kennlinie au&szlig;erhalb dieses Bereichs f&uuml;r die Zufallsgr&ouml;&szlig;e <i>y</i> ohne Belang.
 
  
:Die Bedingung <i>g</i>(&ndash;<i>x</i>) = <i>g</i>(<i>x</i>) muss nicht eingehalten werden. Es gibt beliebig viele Kennlinien, die die gew&uuml;nschte WDF erzeugen k&ouml;nnen. Allerdings ist die unter Punkt e) berechnete Kennlinie punktsymmetrisch: <i>g</i>(&ndash;<i>x</i>) = &ndash;<i>g</i>(<i>x</i>).
+
'''(1)'''&nbsp; Correct are the&nbsp; <u>statements 1 and 3</u>:
 +
*Since&nbsp; $x$&nbsp; can only take values between&nbsp; $\pm 1$,&nbsp; the course of the characteristic curve outside of this range is irrelevant for the random variable&nbsp; $y$.
 +
*The condition&nbsp; $g(-x) = g(x)$&nbsp; does not have to be met.&nbsp; There are any number of characteristic curves that can generate the desired PDF.  
 +
*For example,&nbsp; the characteristic curve calculated in point&nbsp; '''(5)'''&nbsp; is point-symmetric: &nbsp; $g(-x) = -g(x)$.
 +
*The graphical representations of the two density functions already show that&nbsp; $\sigma_y^2 < \sigma_x^2$.
  
:Schon die grafischen Darstellungen der beiden Dichtefunktionen zeigen, dass <i>&sigma;<sub>y</sub></i> kleiner als <i>&sigma;<sub>x</sub></i> ist.
 
  
:<b>2.</b>&nbsp;&nbsp;Das Integral &uuml;ber die WDF muss stets gleich 1 sein. Daraus folgt:
 
:$$\int_{-\rm 1}^{\rm 1}A\cdot \rm cos(\frac{\pi}{\rm 2}\cdot\it y)\, {\rm d} y=\frac{A\cdot \rm 4}{\pi}\hspace{0.3cm} \Rightarrow\hspace{0.3cm} A=\frac{\pi}{\rm 4} \hspace{0.15cm}\underline{= \rm 0.785}.$$
 
  
:<b>3.</b>&nbsp;&nbsp;Die Transformationsformel kann wie folgt umgeformt werden:
+
'''(2)'''&nbsp; The integral over the PDF must always equal&nbsp; $1$&nbsp;. It follows that:
 +
:$$\int_{-\rm 1}^{\rm 1}A\cdot \cos({\pi}/{\rm 2}\cdot y)\, {\rm d} y=\frac{A\cdot \rm 4}{\pi}\hspace{0.3cm} \rightarrow\hspace{0.3cm} A=\frac{\pi}{\rm 4} \hspace{0.15cm}\underline{= \rm 0.785}.$$
 +
 
 +
 
 +
 
 +
'''(3)'''&nbsp; The transformation formula can be described as follows:
 
:$$f_y(y)=\frac{f_x(x)}{| g'(x)|}\Big|_{\, x=h(y)}=f_x(x)\cdot |h'(y)| \Big|_{\, x=h(y)}.$$
 
:$$f_y(y)=\frac{f_x(x)}{| g'(x)|}\Big|_{\, x=h(y)}=f_x(x)\cdot |h'(y)| \Big|_{\, x=h(y)}.$$
  
:Die Umkehrfunktion <i>h</i>(<i>y</i>) einer monoton ansteigenden Kennlinie steigt ebenfalls monoton an. Deshalb kann auf die Betragsbildung verzichtet werden und man erh&auml;lt:
+
*The inverse function&nbsp; $x = h(y)$&nbsp; of a monotonically increasing characteristic&nbsp; $y = g(x)$&nbsp; also increases monotonically.
:$$h'(y)=\frac{f_y(y)}{f_x(x)\Big|_{\, x=h(y)}}={\pi}/{\rm 2}\cdot \rm cos({\pi}/{2}\cdot \it y).$$
+
*Therefore one does not need to make use of the absolute value and subsequently obtains:
 +
:$$h\hspace{0.05cm}'(y)=\frac{f_y(y)}{f_x(x)\Big|_{\, x=h(y)}}={\pi}/{\rm 2}\cdot \cos({\pi}/{2}\cdot y).$$
 +
 
 +
*At the point&nbsp; $y = 0$&nbsp; the slope has the value&nbsp; $h\hspace{0.05cm}'(y= 0)=&pi;/2\hspace{0.15cm}\underline{\approx 1.571}$.
 +
 
 +
 
  
:An der Stelle <i>y</i> = 0 hat die Steigung den Wert <u>&pi;/2 &asymp; 1.571</u>.
+
'''(4)'''&nbsp; One obtains by (indefinite) integration:
 +
:$$h(y)=\int h\hspace{0.05cm}'(y)\, {\rm d} y + C = \frac{\pi}{2}\cdot \frac{2}{\pi}\cdot \sin(\frac{\pi}{ 2}\cdot y) + C.$$
  
:<b>4.</b>&nbsp;&nbsp;Man erh&auml;lt durch (unbestimmte) Integration:
+
*The constraint&nbsp; $h(y= 0) = 0$&nbsp; leads to the constant&nbsp; $C = 0$&nbsp; and thus to the result:
:$$h(y)=\int h'(y)\, {\rm d} y + \it C = \frac{\rm \pi}{\rm 2}\cdot \frac{\rm 2}{\pi}\cdot \rm sin(\frac{\pi}{\rm 2}\cdot\it  y) + \rm \it C.$$
+
:$$h(y) = \sin({\pi}/{2}\cdot y) \hspace{0.5cm} \rightarrow\hspace{0.5cm}
 +
h(y = 1) \hspace{0.15cm}\underline{= +1}.$$
  
:Die Nebenbedingung <i>h</i>(<i>y</i> = 0) = 0 f&uuml;hrt zur Konstanten <i>C</i> = 0 und damit zum Ergebnis:
 
:$$h(y) = \rm sin({\pi}/{\rm 2}\cdot \it y) \hspace{0.5cm} \Rightarrow\hspace{0.5cm}
 
h(y = \rm 1)  \hspace{0.15cm}\underline{= \rm 1}.$$
 
  
:<b>5.</b>&nbsp;&nbsp;Die Umkehrfunktion der in (d) ermittelten Funktion <i>x</i> = <i>h</i>(<i>y</i>) lautet:
+
'''(5)'''&nbsp; The inverse function of the function determined in subtask&nbsp; '''(4)'''&nbsp; is&nbsp; $x = h(y)$&nbsp; :
 
:$$y=g(x)={\rm 2}/{\rm \pi}\cdot \rm arcsin({\it x}).$$
 
:$$y=g(x)={\rm 2}/{\rm \pi}\cdot \rm arcsin({\it x}).$$
  
:Diese Kennlinie steigt im Bereich &ndash;1 &#8804; <i>x</i> &#8804; 1 von <i>y</i> = &ndash;1 bis <i>y</i> = +1 monoton an. Der gesuchte Wert ist also <i>g</i>(<i>x</i> = +1) <u>= +1</u>.
+
*This characteristic curve increases monotonically in the range&nbsp; $-1 \le x \le +1$&nbsp; from &nbsp;$y = -1$&nbsp; to &nbsp;$y = +1$&nbsp;.  
 +
*So the value we are looking for is&nbsp; $g(x= 1) \hspace{0.15cm}\underline{= +1}$.
  
 
{{ML-Fuß}}
 
{{ML-Fuß}}
Line 82: Line 98:
  
  
[[Category:Aufgaben zu Stochastische Signaltheorie|^3.6 Exponentialverteilte Zufallsgrößen^]]
+
[[Category:Theory of Stochastic Signals: Exercises|^3.6 Exponentially Distributed Random Variables^]]

Latest revision as of 16:27, 2 February 2022

Rectangular and cosine PDF

We are looking for a continuous,  monotonically increasing nonlinear characteristic  $y =g(x)$,  which generates a new random variable  with  "cosine"  PDF from a between  $-1$  and  $+1$  uniformly distributed random variable  $x$:

$$f_y(y)=A\cdot\cos({\pi}/{2}\cdot y).$$
  • The random variable  $y$  can also only take values between  $-1$  and  $+1$.
  • The two density functions  $f_x(x)$  and  $f_y(y)$  are sketched on the right.



Hints:



Question

1

Which of the following statements are true?

Outside the range  $-1 \le x \le +1$  ⇒   $g(x)$  can be arbitrary.
The characteristic curve must be symmetrical about  $x= 0$  :   $g(-x) = g(x)$.
The random variable  $y$  has a smaller variance than  $x$.

2

Calculate the  $f_y(y)$ value at  $y = 0$:   $A = f_y(0)$.

$A \ = \ $

3

Determine the slope  $h\hspace{0.05cm}'(y)$  of the inverse function  $x = h(y)$,  where for  $|y| \le 1$  always  $h\hspace{0.05cm}'(y) > 0$  should hold?  What slope holds for  $y = 0$ ?

$h'(y = 0) \ = \ $

4

Compute with the result from  (3)  the function  $x = h(y)$  under the constraint  $h(0) = 0$.  What value results für  $y = 1$ ?

$h(y=1) \ = \ $

5

Determine the function  $y = g(x)$  of the characteristic we are looking for.  What is the function value at the point  $x = 1$ ?

$g(x = 1) \ = \ $


Solution

(1)  Correct are the  statements 1 and 3:

  • Since  $x$  can only take values between  $\pm 1$,  the course of the characteristic curve outside of this range is irrelevant for the random variable  $y$.
  • The condition  $g(-x) = g(x)$  does not have to be met.  There are any number of characteristic curves that can generate the desired PDF.
  • For example,  the characteristic curve calculated in point  (5)  is point-symmetric:   $g(-x) = -g(x)$.
  • The graphical representations of the two density functions already show that  $\sigma_y^2 < \sigma_x^2$.


(2)  The integral over the PDF must always equal  $1$ . It follows that:

$$\int_{-\rm 1}^{\rm 1}A\cdot \cos({\pi}/{\rm 2}\cdot y)\, {\rm d} y=\frac{A\cdot \rm 4}{\pi}\hspace{0.3cm} \rightarrow\hspace{0.3cm} A=\frac{\pi}{\rm 4} \hspace{0.15cm}\underline{= \rm 0.785}.$$


(3)  The transformation formula can be described as follows:

$$f_y(y)=\frac{f_x(x)}{| g'(x)|}\Big|_{\, x=h(y)}=f_x(x)\cdot |h'(y)| \Big|_{\, x=h(y)}.$$
  • The inverse function  $x = h(y)$  of a monotonically increasing characteristic  $y = g(x)$  also increases monotonically.
  • Therefore one does not need to make use of the absolute value and subsequently obtains:
$$h\hspace{0.05cm}'(y)=\frac{f_y(y)}{f_x(x)\Big|_{\, x=h(y)}}={\pi}/{\rm 2}\cdot \cos({\pi}/{2}\cdot y).$$
  • At the point  $y = 0$  the slope has the value  $h\hspace{0.05cm}'(y= 0)=π/2\hspace{0.15cm}\underline{\approx 1.571}$.


(4)  One obtains by (indefinite) integration:

$$h(y)=\int h\hspace{0.05cm}'(y)\, {\rm d} y + C = \frac{\pi}{2}\cdot \frac{2}{\pi}\cdot \sin(\frac{\pi}{ 2}\cdot y) + C.$$
  • The constraint  $h(y= 0) = 0$  leads to the constant  $C = 0$  and thus to the result:
$$h(y) = \sin({\pi}/{2}\cdot y) \hspace{0.5cm} \rightarrow\hspace{0.5cm} h(y = 1) \hspace{0.15cm}\underline{= +1}.$$


(5)  The inverse function of the function determined in subtask  (4)  is  $x = h(y)$  :

$$y=g(x)={\rm 2}/{\rm \pi}\cdot \rm arcsin({\it x}).$$
  • This characteristic curve increases monotonically in the range  $-1 \le x \le +1$  from  $y = -1$  to  $y = +1$ .
  • So the value we are looking for is  $g(x= 1) \hspace{0.15cm}\underline{= +1}$.