Difference between revisions of "Aufgaben:Exercise 4.14: ACF and CCF for Square Wave Signals"

From LNTwww
 
(17 intermediate revisions by 4 users not shown)
Line 1: Line 1:
  
{{quiz-Header|Buchseite=Stochastische Signaltheorie/Kreuzkorrelationsfunktion und Kreuzleistungsdichte
+
{{quiz-Header|Buchseite=Theory_of_Stochastic_Signals/Cross-Correlation_Function_and_Cross_Power_Density
 
}}
 
}}
  
[[File:P_ID436__Sto_A_4_14.png|right|framed|AKF und KKF bei Rechtecken]]
+
[[File:P_ID436__Sto_A_4_14.png|right|framed|ACF and CCF for rectangular signals]]
Wir betrachten ein periodisches Rechtecksignal $p(t)$ entsprechend der oberen Skizze mit den beiden möglichen Amplitudenwerten $0 \hspace{0.05cm} \rm V$ und $1 \hspace{0.05cm} \rm V$ und der Rechteckdauer $T$. Die Periodendauer beträgt somit $T_0 = 2T$.
+
We consider a periodic square wave signal  $p(t)$  corresponding to the top sketch with the two possible amplitude values  $0 \hspace{0.05cm} \rm V$  and  $1 \hspace{0.05cm} \rm V$  and the rectangle duration  $T$.  Thus, the period duration is  $T_0 = 2T$.
  
Darunter ist das Zufallssignal $z(t)$ gezeichnet.
+
Below this is drawn the random signal  $z(t)$:
*Dieses ist zwischen $(2i-1)T$ und $2i T$ mit $i=$ ... , $-1, 0, +1$, ... (im Bild rot hervorgehoben) jeweils $z(t)=0 \hspace{0.05cm} \rm V$.  
+
*This is  $z(t)=0 \hspace{0.05cm} \rm V$  between  $(2i-1)\cdot T$  and  $2i \cdot T$  respectively   (highlighted in red in the figure).  
*Dagegen ist in den blau gezeichneten Intervallen zwischen  $(2i+1) \cdot T$ der Signalwert zweipunktverteilt $\pm 1 \hspace{0.05cm} \rm V$.
+
*In the intervals drawn in blue between  $2i \cdot T$  and  $(2i+1) \cdot T$  the signal value is two-point distributed  $(\pm 1 \hspace{0.05cm} \rm V)$.
  
Die Wahrscheinlichkeit, dass in den blau dargestellten Intervallen $z(t)=+1 \hspace{0.05cm} \rm V$ gilt, sei allgemein gleich $p$ und unabhängig von den vorher ausgewürfelten Werten.
 
  
Das unterste Signal in nebenstehender Grafik kann aus den beiden ersten konstruiert werden. Es gilt:
+
The probability that in the intervals shown in blue  $z(t)=+1 \hspace{0.05cm} \rm V$  holds is generally equal  $p$  and independent of the previously selected values.
:$$s(t) = {1}/{2} \cdot [p(t) + z(t)].$$
 
  
In den rot eingezeichneten Zeitintervallen zwischen $(2i-1)T$ und $2i T$ ($i$ ganzzahlig) gilt $s(t)=0 \hspace{0.05cm} \rm V$, da hier sowohl $p(t)$ als auch $z(t)$ gleich $0$ sind. In den dazwischen liegenden Intervallen ist der Amplitudenwert zweipunktverteilt zwischen $0 \hspace{0.05cm} \rm V$ und $1 \hspace{0.05cm} \rm V$, wobei der Wert $1 \hspace{0.05cm} \rm V$ wieder mit der Wahrscheinlichkeit $p$ auftritt.
+
The lowest signal in the adjacent graph can be constructed from the first two. It holds:
 +
:$$s(t) = {1}/{2} \cdot \big[p(t) + z(t)\big].$$
  
Oder anders ausgedrückt: Die Signale $z(t)$ und $s(t)$ sind äquivalente Mustersignale des identischen Zufallsprozesses mit bipolarer $(-1 \hspace{0.05cm} \rm V, +1 \hspace{0.05cm} \rm V)$ bzw. unipolarer $(0 \hspace{0.05cm} \rm V, 1 \hspace{0.05cm} \rm V)$ Signaldarstellung.
+
*In the time intervals drawn in red between  $(2i-1) \cdot T$  and  $2i \cdot T$  $(i$  integer$)$  holds  $s(t)=0 \hspace{0.05cm} \rm V$,  since here both  $p(t)$  and  $z(t)$  are equal to zero.
 +
*In the intervening intervals,  the amplitude value is two-point distributed between  $0 \hspace{0.05cm} \rm V$  and  $1 \hspace{0.05cm} \rm V$,  where the value  $1 \hspace{0.05cm} \rm V$  occurs again with probability  $p$.
 +
*Or in other words:   The signals  $z(t)$  and  $s(t)$  are equivalent pattern signals of the identical random process with bipolar  $(-1 \hspace{0.05cm} \rm V, \ +1 \hspace{0.05cm} \rm V)$  resp. unipolar  $(0 \hspace{0.05cm} \rm V, \ 1 \hspace{0.05cm} \rm V)$  signal representation.
  
  
''Hinweise:''
 
*Die Aufgabe gehört zum  Kapitel [[Stochastische_Signaltheorie/Kreuzkorrelationsfunktion_und_Kreuzleistungsdichte|Kreuzkorrelationsfunktion_und_Kreuzleistungsdichte]].
 
*Bezug genommen wird auch auf das Kapitel [[Stochastische_Signaltheorie/Autokorrelationsfunktion_(AKF)|Autokorrelationsfunktion]].
 
*Sollte die Eingabe des Zahlenwertes „0” erforderlich sein, so geben Sie bitte „0.” ein.
 
*Skizzieren Sie die gesuchten Korrelationsfunktionen jeweils im Bereich von $-7T$ bis $7T$.
 
  
  
===Fragebogen===
+
 
 +
 
 +
 
 +
Hints:
 +
*The exercise belongs to the chapter  [[Theory_of_Stochastic_Signals/Cross-Correlation_Function_and_Cross_Power_Density|Cross-Correlation Function and Cross Power-Spectral Density]].
 +
*Refer is also made to the chapter  [[Theory_of_Stochastic_Signals/Auto-Correlation_Function|Auto-Correlation Function]].
 +
*Sketch the sought correlation functions in each case in the range from  $-7T$  to  $+7T$.
 +
 
 +
 
 +
 
 +
 
 +
===Questions===
  
 
<quiz display=simple>
 
<quiz display=simple>
{Berechnen Sie die AKF $\varphi_z(\tau)$ und skizzieren Sie diese f&uuml;r $p = 0.25$. Welche Werte ergeben sich f&uuml;r $\tau = 0$, $\tau = 3T$ und $\tau = 6T$?
+
{Calculate the ACF&nbsp; $\varphi_z(\tau)$&nbsp; and sketch it for&nbsp; $p = 0.25$.&nbsp; What values result for&nbsp; $\tau = 0$,&nbsp; $\tau = 3T$&nbsp; and&nbsp; $\tau = 6T$?
 
|type="{}"}
 
|type="{}"}
$\varphi_z(\tau= 0) \ = $ { 0.5 3% } $\ \rm V^2$
+
$\varphi_z(\tau= 0) \ = \ $ { 0.5 3% } $\ \rm V^2$
$\varphi_z(\tau= 3T) \ = $ { 0. } $\ \rm V^2$
+
$\varphi_z(\tau= 3T) \ = \ $ { 0. } $\ \rm V^2$
$\varphi_z(\tau= 6T) \ = $ { 0.125 3% } $\ \rm V^2$
+
$\varphi_z(\tau= 6T) \ = \ $ { 0.125 3% } $\ \rm V^2$
  
  
{Berechnen Sie nun unter Zuhilfenahme des Ergebnisses aus (1) die AKF $\varphi_p(\tau)$. Welche Werte ergeben sich f&uuml;r $\tau = 0$, $\tau = 3T$ und $\tau = 6T$?
+
{Now,&nbsp; using the result from&nbsp; '''(1)'''&nbsp; calculate the ACF&nbsp; $\varphi_p(\tau)$.&nbsp; What values result for&nbsp; $\tau = 0$,&nbsp; $\tau = 3T$&nbsp; and&nbsp; $\tau = 6T$?
 
|type="{}"}
 
|type="{}"}
$\varphi_p(\tau= 0) \ = $ { 0.5 3% } $\ \rm V^2$
+
$\varphi_p(\tau= 0) \ = \ $ { 0.5 3% } $\ \rm V^2$
$\varphi_p(\tau= 3T) \ = $ { 0. } $\ \rm V^2$
+
$\varphi_p(\tau= 3T) \ = \ $ { 0. } $\ \rm V^2$
$\varphi_p(\tau= 6T) \ = $ { 0.5 3% } $\ \rm V^2$
+
$\varphi_p(\tau= 6T) \ = \ $ { 0.5 3% } $\ \rm V^2$
  
  
{Es gelte  wieder $p = 0.25$. Berechnen Sie die Kreuzkorrelationsfunktion $\varphi_{pz}(\tau)$ f&uuml;r $\tau = 0$, $\tau = 3T$ und $\tau = 6T$?
+
{It holds again&nbsp; $p = 0.25$.&nbsp; Calculate the cross-correlation function&nbsp; $\varphi_{pz}(\tau)$ for&nbsp; $\tau = 0$,&nbsp; $\tau = 3T$&nbsp; and&nbsp; $\tau = 6T$&nbsp;?
 
|type="{}"}
 
|type="{}"}
$\varphi_{pz}(\tau= 0) \ = $ { -0.26--0.24 } $\ \rm V^2$
+
$\varphi_{pz}(\tau= 0) \ = \ $ { -0.26--0.24 } $\ \rm V^2$
$\varphi_{pz}(\tau= 3T) \ = $ { 0. } $\ \rm V^2$
+
$\varphi_{pz}(\tau= 3T) \ = \ $ { 0. } $\ \rm V^2$
$\varphi_{pz}(\tau= 6T) \ = $ { -0.26--0.24 } $\ \rm V^2$
+
$\varphi_{pz}(\tau= 6T) \ = \ $ { -0.26--0.24 } $\ \rm V^2$
  
  
{Welche AKF $\varphi_c(\tau)$ ergibt sich allgemein f&uuml;r die Summe $c(t) = a(t) + b(t)$?
+
{What ACF&nbsp; $\varphi_c(\tau)$&nbsp; results in general for the sum&nbsp; $c(t) = a(t) + b(t)$&nbsp;?
|type="[]"}
+
|type="()"}
 
- $\varphi_c(\tau) = \varphi_a(\tau) + \varphi_b(\tau)$.
 
- $\varphi_c(\tau) = \varphi_a(\tau) + \varphi_b(\tau)$.
+ $\varphi_c(\tau) = \varphi_a(\tau) + \varphi_{ab}(\tau) + \varphi_{ba}(\tau) + \varphi_b(\tau)$).
+
+ $\varphi_c(\tau) = \varphi_a(\tau) + \varphi_{ab}(\tau) + \varphi_{ba}(\tau) + \varphi_b(\tau)$.
 
- $\varphi_c(\tau) = \varphi_a(\tau) \star \varphi_b(\tau)$.
 
- $\varphi_c(\tau) = \varphi_a(\tau) \star \varphi_b(\tau)$.
  
  
{Berechnen Sie unter Ber&uuml;cksichtigung des Ergebnisses von (4) die AKF $\varphi_s(\tau)$. Welche Werte ergeben sich mit $p = 0.25$ f&uuml;r $\tau = 0$, $\tau = 3T$ und $\tau = 6T$?
+
{Calculate  the ACF&nbsp; $\varphi_s(\tau)$,&nbsp; taking into account the result of&nbsp; '''(4)'''. &nbsp; What values result with&nbsp; $p = 0.25$&nbsp; for&nbsp; $\tau = 0$,&nbsp; $\tau = 3T$&nbsp; and&nbsp; $\tau = 6T$&nbsp;?
 
|type="{}"}
 
|type="{}"}
$\varphi_s(\tau= 0) \ = $ { 0.125 3% } $\ \rm V^2$
+
$\varphi_s(\tau= 0) \ = \ $ { 0.125 3% } $\ \rm V^2$
$\varphi_s(\tau= 3T) \ = $ { 0. } $\ \rm V^2$
+
$\varphi_s(\tau= 3T) \ = \ $ { 0. } $\ \rm V^2$
$\varphi_s(\tau= 6T) \ = $ { -0.03175--0.03075 } $\ \rm V^2$
+
$\varphi_s(\tau= 6T) \ = \ $ { -0.03175--0.03075 } $\ \rm V^2$
  
  
 
</quiz>
 
</quiz>
  
===Musterlösung===
+
===Solution===
 
{{ML-Kopf}}
 
{{ML-Kopf}}
'''(1)'''&nbsp; Der AKF-Wert bei $\tau = 0$ gibt die mittlere Leistung an:
+
'''(1)'''&nbsp; The ACF value at&nbsp; $\tau = 0$&nbsp; gives the average power:
 
:$$\varphi_z ( \tau = 0) = {1}/{2} \cdot (1 {\rm V})^2 \hspace{0.15cm}\underline{= 0.5 {\rm V}^2}.$$
 
:$$\varphi_z ( \tau = 0) = {1}/{2} \cdot (1 {\rm V})^2 \hspace{0.15cm}\underline{= 0.5 {\rm V}^2}.$$
  
F&uuml;r $\tau = \pm T$, $\underline{\tau = \pm 3T}$, ... ergibt sich $\varphi_z ( \tau)\hspace{0.15cm}\underline{ = 0}$.  
+
*For&nbsp; $\tau = \pm T$,&nbsp; $\underline{\tau = \pm 3T}$, ... &nbsp; results&nbsp; $\varphi_z ( \tau)\hspace{0.15cm}\underline{ = 0}$.  
 +
*For intermediate values&nbsp; $\tau = \pm 2T$,&nbsp; $\tau = \pm 4T$,&nbsp; $\underline{\tau = \pm 6T}$, ... &nbsp; applies:
 +
:$$\varphi_z ( \tau) = \frac {1 {\rm V}^2}{2}  \left(p \hspace{0.02cm} \cdot \hspace{0.02cm}p \hspace{0.2cm} + \hspace{0.2cm}p \hspace{0.02cm}\cdot \hspace{0.02cm}(p-1) \hspace{0.2cm}+\hspace{0.2cm} (p-1)\hspace{0.02cm} \cdot \hspace{0.02cm}p \hspace{0.2cm}+\hspace{0.2cm} (p-1)\hspace{0.02cm} \cdot \hspace{0.02cm}(p-1)\right) = \hspace{0.1cm}\text{...} \hspace{0.1cm}= 0.5\, {\rm V}^2 \cdot (1-2p)^2 .$$
  
F&uuml;r die Zwischenwerte $\tau = \pm 2T$, $\tau = \pm 4T$, $\underline{\tau = \pm 6T}$, ... gilt:
+
*Here&nbsp; $p$&nbsp; stands for&nbsp; $p \cdot (+1)$&nbsp; and&nbsp; $(p-1)$&nbsp; for $(1-p) \cdot (-1)$, i.e. probability times normalized amplitude value,&nbsp; respectively.
:$$\varphi_z ( \tau) =  \frac {1 {\rm V}^2}{2}  \left(p \hspace{0.02cm} \cdot \hspace{0.02cm}p \hspace{0.2cm} + \hspace{0.2cm}p \hspace{0.02cm}\cdot \hspace{0.02cm}(p-1) \hspace{0.2cm}+\hspace{0.2cm} (p-1)\hspace{0.02cm} \cdot \hspace{0.02cm}p \hspace{0.2cm}+\hspace{0.2cm} (p-1)\hspace{0.02cm} \cdot \hspace{0.02cm}(p-1)\right) = \hspace{0.1cm}... \hspace{0.1cm}= 0.5\, {\rm V}^2 \cdot (1-2p)^2 .$$
+
[[File:P_ID437__Sto_A_4_14_a.png|frame|right|Auto-correlation functions and cross-correlation function]]
 +
*With&nbsp; $p = 0.25$&nbsp; one gets&nbsp; $\varphi_z ( \tau = \pm 6 T) \hspace{0.15cm}\underline{=0.125 \rm V^2}$.
  
[[File:P_ID437__Sto_A_4_14_a.png|framed|right|AKF und KKF]]
 
Hierbei steht $p$ f&uuml;r $p \cdot (+1)$ und $(p-1)$ f&uuml;r $(1-p) \cdot (-1)$, also jeweils Wahrscheinlichkeit mal normierter Amplitudenwert. Mit $p = 0.25$ ergeben sich diese Zwischenwerte zu $\varphi_z ( \tau = \pm 6 T) \hspace{0.15cm}\underline{=0.125 \rm V^2}$.
 
  
Die Skizze zeigt den Verlauf von $\varphi_z(\tau)$ f&uuml;r $p = 0.25$ im Bereich von $-7T \le \tau \le +7T$ als blaue Kurve.
 
*Aufgrund des rechteckf&ouml;rmigen Signalverlaufs ergibt sich eine Summe von Dreieckfunktionen.
 
*F&uuml;r $p = 0.5$ w&uuml;rden die &auml;u&szlig;eren (kleineren) Dreiecke verschwinden.
 
  
 +
The blue curve shows&nbsp; $\varphi_z(\tau)$&nbsp; for&nbsp; $p = 0.25$&nbsp; in the range of&nbsp; $-7T \le \tau \le +7T$:
 +
*Because of the rectangular signal waveform,&nbsp; a sum of triangular functions is obtained.
 +
*For&nbsp; $p = 0.5$&nbsp; the outer&nbsp; (smaller)&nbsp; triangles would disappear.
 +
<br clear=all>
 +
'''(2)'''&nbsp; The ACF&nbsp; $\varphi_p(\tau)$&nbsp; of the unipolar periodic signal&nbsp; $p(t)$&nbsp; is in the generalized representation of&nbsp; '''(1)''' &nbsp; &rArr; &nbsp; ACF&nbsp; $\varphi_z(\tau)$ as a special case for&nbsp; $p = 1$&nbsp; .
 +
*Now one obtains a periodic ACF&nbsp; (see red curve in the above sketch)&nbsp; with
 +
:$$\varphi_p ( \tau = 0) = \varphi_p ( \tau = \pm 2 T) = \varphi_p ( \tau = \pm 4 T) = \hspace{0.1cm} \text{...} \hspace{0.1cm}\hspace{0.15cm}\underline{= 0.5 {\rm V}^2},$$
 +
:$$\varphi_p ( \tau = \pm T) = \varphi_p ( \tau = \pm 3T) = \hspace{0.1cm} ... \hspace{0.1cm}\hspace{0.15cm}\underline{= 0}.$$
  
 
'''(2)'''&nbsp; Die AKF $\varphi_p(\tau)$ des unipolaren periodischen Signals $p(t)$  ist in der allgemeing&uuml;ltigen Darstellung von (1) &nbsp; &rArr; &nbsp; AKF $\varphi_z(\tau)$ als Sonderfall f&uuml;r $p = 1$ enthalten. Man erh&auml;lt nun eine periodische AKF (siehe roter Kurvenverlauf in obiger Skizze) mit
 
:$$\varphi_p ( \tau = 0) = \varphi_p ( \tau = \pm 2 T) = \varphi_p ( \tau = \pm 4 T) = \hspace{0.1cm} ... \hspace{0.1cm}\hspace{0.15cm}\underline{= 0.5 {\rm V}^2},$$
 
:$$\varphi_p ( \tau = \pm T) = \varphi_p ( \tau = \pm 3T) = \hspace{0.1cm} ... \hspace{0.1cm}\hspace{0.15cm}\underline{= 0}.$$
 
  
  
'''(3)'''&nbsp; Auch f&uuml;r die KKF ergibt sich f&uuml;r $\tau = \pm T$, $\underline{\tau = \pm 3T}$, ... , ...  stets der Wert $0$. Dagegen sind die KKF-Werte f&uuml;r $\tau = \pm 2T$, $\tau = \pm 2T$, ... identisch mit denen bei  $\tau = 0$:
+
'''(3)'''&nbsp; For the cross-correlation function results for&nbsp; $\tau = \pm T$,&nbsp; $\underline{\tau = \pm 3T}$, ... &nbsp; always the value zero.
:$$\varphi_{pz} ( \tau = 0) = \varphi_{pz} ( \tau = \pm 2 T) = \varphi_{pz} ( \tau = \pm 4 T) = \hspace{0.1cm} ... \hspace{0.1cm}= \frac {1 {\rm V}^2}{2}  \left( p - (1-p)\right) = \frac {2p -1}{2}\, {\rm V}^2 .$$
+
*In contrast,&nbsp; the CCF values for&nbsp; $\tau = \pm 2T$,&nbsp; $\tau = \pm 2T$, ... &nbsp; identical to those for&nbsp; $\tau = 0$:
 +
:$$\varphi_{pz} ( \tau = 0) = \varphi_{pz} ( \tau = \pm 2 T) = \varphi_{pz} ( \tau = \pm 4 T) = \hspace{0.1cm} \text{...\hspace{0.1cm}= \frac {1 {\rm V}^2}{2}  \left( p - (1-p)\right) = \frac {2p -1}{2}\, {\rm V}^2 .$$
  
Man erhält mit $p = 0.25$ folgende Ergebnisse (siehe grüne Kurve in obiger Skizze):
+
*You get the following results with&nbsp; $p = 0.25$&nbsp; (see green curve in above sketch):
 
:$$\varphi_{pz} ( \tau = 0)\hspace{0.15cm}\underline{= -0.25 {\rm V}^2},\hspace{0.5cm}
 
:$$\varphi_{pz} ( \tau = 0)\hspace{0.15cm}\underline{= -0.25 {\rm V}^2},\hspace{0.5cm}
 
\varphi_{pz} ( \tau = 3T)\hspace{0.15cm}\underline{= 0},\hspace{0.5cm}
 
\varphi_{pz} ( \tau = 3T)\hspace{0.15cm}\underline{= 0},\hspace{0.5cm}
 
\varphi_{pz} ( \tau = 6T)\hspace{0.15cm}\underline{= -0.25 {\rm V}^2}.$$
 
\varphi_{pz} ( \tau = 6T)\hspace{0.15cm}\underline{= -0.25 {\rm V}^2}.$$
  
*Mit $p = 1$ würde dagegen $z(z) \equiv p(t)$gelten und damit nat&uuml;rlich auch $\varphi_{pz}(\tau) \equiv \varphi_{p}(\tau) \equiv \varphi_{z}(\tau)$.  
+
*With&nbsp; $p = 1$&nbsp; on the other hand&nbsp; $z(t) \equiv p(t)$&nbsp; would hold and so of course&nbsp; $\varphi_{pz}(\tau) \equiv \varphi_{p}(\tau) \equiv \varphi_{z}(\tau)$.  
*Für den Sonderfall $p = 0.5$ erg&auml;be sich keine Korrelation zwischen $p(t)$ und $z(t)$ und damit $\varphi_{pz}(\tau)=0$.
+
*For the special case&nbsp; $p = 0.5$&nbsp; there would be no correlation between&nbsp; $p(t)$&nbsp; and&nbsp; $z(t)$&nbsp; and thus&nbsp; $\varphi_{pz}(\tau) \equiv 0$.
 +
 
  
  
'''(4)'''&nbsp; Durch Einsetzen von $c(t) = a(t) + b(t)$ in die allgemeine AKF-Definition erh&auml;lt man:
+
 
 +
'''(4)'''&nbsp; Substituting &nbsp;$c(t) = a(t) + b(t)$&nbsp; into the general ACF definition yields:
 
:$$\varphi_c ( \tau ) = \overline{c(t)\hspace{0.02cm} \cdot \hspace{0.02cm} c(t + \tau)} = \overline{a(t)\hspace{0.02cm} \cdot \hspace{0.02cm} a(t + \tau)} \hspace{0.1cm}+\hspace{0.1cm}\overline{a(t)\hspace{0.02cm} \cdot \hspace{0.02cm} b(t + \tau)} +\overline{b(t)\hspace{0.02cm} \cdot \hspace{0.02cm} a(t + \tau)} \hspace{0.1cm}+\hspace{0.1cm}\overline{b(t)\hspace{0.02cm} \cdot \hspace{0.02cm} b(t + \tau)}. $$
 
:$$\varphi_c ( \tau ) = \overline{c(t)\hspace{0.02cm} \cdot \hspace{0.02cm} c(t + \tau)} = \overline{a(t)\hspace{0.02cm} \cdot \hspace{0.02cm} a(t + \tau)} \hspace{0.1cm}+\hspace{0.1cm}\overline{a(t)\hspace{0.02cm} \cdot \hspace{0.02cm} b(t + \tau)} +\overline{b(t)\hspace{0.02cm} \cdot \hspace{0.02cm} a(t + \tau)} \hspace{0.1cm}+\hspace{0.1cm}\overline{b(t)\hspace{0.02cm} \cdot \hspace{0.02cm} b(t + \tau)}. $$
:$$\Rightarrow \hspace{0.5cm} \varphi_c ( \tau ) = \varphi_{a} ( \tau ) \hspace{0.1cm} + \hspace{0.1cm} \varphi_{ab} ( \tau ) \hspace{0.1cm} + \hspace{0.1cm} \varphi_{ba} ( \tau ) \hspace{0.1cm} + \hspace{0.1cm}\varphi_{a} ( \tau ). $$
+
:$$\Rightarrow \hspace{0.5cm} \varphi_c ( \tau ) = \varphi_{a} ( \tau ) \hspace{0.1cm} + \hspace{0.1cm} \varphi_{ab} ( \tau ) \hspace{0.1cm} + \hspace{0.1cm} \varphi_{ba} ( \tau ) \hspace{0.1cm} + \hspace{0.1cm}\varphi_{a} ( \tau ). $$
 +
 
 +
*The correct solution is thus the&nbsp; <u>proposed solution 2</u>.
 +
*The proposed solution 1 is true only if&nbsp; $a(t)$&nbsp; and&nbsp; $b(t)$&nbsp; are uncorrelated.
 +
*The last proposition:&nbsp; The convolution operation is always false.
 +
*A similar equation would result only if we consider the PDF&nbsp; $f_c(c)$&nbsp; of the sum &nbsp;$c(t) = a(t) + b(t)$&nbsp; and&nbsp; $a(t)$&nbsp; and&nbsp; $b(t)$&nbsp; are statistically independent: &nbsp;
 +
:$$f_c (c) = f_a (a) \star f_b (b) .$$
 +
 
 +
 
  
Richtig ist somit  der <u>L&ouml;sungsvorschlag 2</u>.
+
'''(5)'''&nbsp; Using the result from&nbsp; '''(4)'''&nbsp; and taking into account the factor&nbsp; $1/2$&nbsp; we get:
*Der L&ouml;sungsvorschlag 1 trifft nur zu, wenn $a(t)$ und $b(t)$  unkorreliert sind.
+
:$$\varphi_s ( \tau ) = {1}/{4} \cdot \big[ \varphi_{p} ( \tau ) \hspace{0.1cm} + \hspace{0.1cm} \varphi_{z} ( \tau ) \hspace{0.1cm} + \hspace{0.1cm} 2 \cdot \varphi_{pz} ( \tau ) \big] . $$
*Der letzte Vorschlag, die Faltungsoperation, ist immer falsch. Eine ähnliche Gleichung w&uuml;rde sich nur dann ergeben, wenn wir die WDF $f_c(c)$ der Summe $c(t) = a(t) + b(t)$ betrachten und $a(t)$ und $b(t)$) statistisch unabh&auml;ngig sind: &nbsp; $f_c (c) = f_a (a) \star f_b (b) .$
 
  
'''(5)'''&nbsp; Mit dem Ergebnis von (4) und unter Ber&uuml;cksichtigung des Faktors 1/2 erh&auml;lt man:
+
*This already takes into account that the CCF between&nbsp; $p(t)$&nbsp; and&nbsp; $z(t)$&nbsp; is an even function,&nbsp; so that&nbsp; $\varphi_{pz}(\tau) = \varphi_{zp}(\tau)$&nbsp; holds.
:$$\varphi_s ( \tau ) = {1}/{4} \cdot \left[ \varphi_{p} ( \tau ) \hspace{0.1cm} + \hspace{0.1cm} \varphi_{z} ( \tau ) \hspace{0.1cm} + \hspace{0.1cm} 2 \cdot \varphi_{pz} ( \tau )  \right] . $$
+
*For&nbsp; $\tau = 0$&nbsp; one therefore obtains in general with the above results:
 +
:$$\varphi_s( \tau = 0) = {1}/{4} \cdot \left( 0.5 {\rm V}^2 +0.5 {\rm V}^2 + 2 \cdot \frac{2p-1}{2} {\rm V}^2\right) .$$
 +
*With&nbsp; $p = 0.25$&nbsp; we get&nbsp; $\varphi_{pz} ( \tau = 0 ) = 0.125\rm V^2$.&nbsp; This result is plausible.&nbsp; On average,&nbsp; only in every eighth interval&nbsp; $s(t)=1 \hspace{0.05cm} \rm V$;&nbsp; otherwise&nbsp; $s(t)=0 \hspace{0.05cm} \rm V$.
  
Hierbei ist bereits ber&uuml;cksichtigt, dass die KKF zwischen $p(t)$ und $z(t)$ eine gerade Funktion ist, so dass auch $\varphi_{pz}(\tau) = \varphi_{zp}(\tau)$ gilt. F&uuml;r $\tau = 0$ erh&auml;lt man deshalb mit den obigen Ergebnissen allgemein:
+
*For even multiples of&nbsp; $T$&nbsp; holds:
:$$\varphi_s( \tau = 0) = {1}/{4} \cdot  \left( 0.5 {\rm V}^2 +0.5 {\rm V}^2 + 2 \cdot \frac{2p-1}{2} {\rm V}^2\right) .$$
+
:$$ \varphi_s ( \tau = \pm 2 T) = \varphi_s ( \tau = \pm 4 T) = \hspace{0.1cm} \text{ ...} \hspace{0.1cm} = \frac {0.5 {\rm V}^2}{4}  \left( (1-2p)^2 +1 + 2 \cdot (2p -1)\right) = 0.5 \, {\rm V}^2 \hspace{0.02cm} \cdot \hspace{0.02cm} p^2.$$
Mit $p = 0.25$ ergibt sich $ \varphi_{pz} ( \tau = 0 ) = 0.125\rm V^2$. Dieses Ergebnis ist plausibel. Im Mittel ist nur in jedem achten Intervall $s(t)=1 \hspace{0.05cm} \rm V$; ansonsten ist $s(t)=0 \hspace{0.05cm} \rm V$.
 
  
F&uuml;r geradzahlige Vielfache von $T$ gilt:
+
*With&nbsp; $p = 0.5$&nbsp; we obtain for this the value&nbsp; $0.03125 \hspace{0.1cm}{\rm V}^2$.&nbsp; All ACF values at odd multiples of&nbsp; $T$&nbsp; are zero again.  
:$$  \varphi_s ( \tau = \pm 2 T) = \varphi_s ( \tau = \pm 4 T) = \hspace{0.1cm} ... \hspace{0.1cm} =  \frac {0.5 {\rm V}^2}{4}  \left( (1-2p)^2 +1 + 2  \cdot (2p -1)\right) = 0.5 \, {\rm V}^2  \hspace{0.02cm} \cdot \hspace{0.02cm} p^2.$$
+
*This gives the outlined ACF&ndash;curve.  
  
Mit $p = 0.5$ erh&auml;lt man hierf&uuml;r den Wert $0.03125 \hspace{0.1cm}V^2$. Alle AKF-Werte bei ungeradzahligen Vielfachen von $T$ sind wieder $0$. Damit ergibt sich der skizzierte AKF-Verlauf. Die gesuchten Zahlenwerte sind somit:
 
[[File:P_ID441__Sto_A_4_14_e.png|framed|right|AKF eines unipolaren Rechtecksignals]]
 
  
 +
[[File:P_ID441__Sto_A_4_14_e.png|framed|right|ACF of a unipolar rectangular signal]]
 +
Thus, the numerical values we are looking for are:
 
:$$\varphi_{s} ( \tau = 0)\hspace{0.15cm}\underline{= 0.125 {\rm V}^2},$$
 
:$$\varphi_{s} ( \tau = 0)\hspace{0.15cm}\underline{= 0.125 {\rm V}^2},$$
 
:$$\varphi_{s} ( \tau = 3T)\hspace{0.15cm}\underline{= 0},$$
 
:$$\varphi_{s} ( \tau = 3T)\hspace{0.15cm}\underline{= 0},$$
 
:$$\varphi_{s} ( \tau = 6T)\hspace{0.15cm}\underline{= -0.03125 {\rm V}^2}.$$
 
:$$\varphi_{s} ( \tau = 6T)\hspace{0.15cm}\underline{= -0.03125 {\rm V}^2}.$$
  
Ein Vergleich mit der Skizze zur Teilaufgabe (1) zeigt, dass das bin&auml;re Signal $s(t)$ bis auf den Faktor $1/4$ die gleiche AKF aufweist wie das Tern&auml;rsignal $z(t)$.
+
A comparison with the sketch for subtask&nbsp; '''(1)'''&nbsp; shows that the binary signal&nbsp; $s(t)$&nbsp; has the same ACF as the ternary signal&nbsp; $z(t)$ except for the factor&nbsp; $1/4$.
 
{{ML-Fuß}}
 
{{ML-Fuß}}
  
  
[[Category:Aufgaben zu Stochastische Signaltheorie|^4.6 KKF und Kreuzleistungsdichte^]]
+
[[Category:Theory of Stochastic Signals: Exercises|^4.6 CCF and Cross Power-Spectral Density^]]

Latest revision as of 18:57, 26 March 2022

ACF and CCF for rectangular signals

We consider a periodic square wave signal  $p(t)$  corresponding to the top sketch with the two possible amplitude values  $0 \hspace{0.05cm} \rm V$  and  $1 \hspace{0.05cm} \rm V$  and the rectangle duration  $T$.  Thus, the period duration is  $T_0 = 2T$.

Below this is drawn the random signal  $z(t)$:

  • This is  $z(t)=0 \hspace{0.05cm} \rm V$  between  $(2i-1)\cdot T$  and  $2i \cdot T$  respectively   (highlighted in red in the figure).
  • In the intervals drawn in blue between  $2i \cdot T$  and  $(2i+1) \cdot T$  the signal value is two-point distributed  $(\pm 1 \hspace{0.05cm} \rm V)$.


The probability that in the intervals shown in blue  $z(t)=+1 \hspace{0.05cm} \rm V$  holds is generally equal  $p$  and independent of the previously selected values.

The lowest signal in the adjacent graph can be constructed from the first two. It holds:

$$s(t) = {1}/{2} \cdot \big[p(t) + z(t)\big].$$
  • In the time intervals drawn in red between  $(2i-1) \cdot T$  and  $2i \cdot T$  $(i$  integer$)$  holds  $s(t)=0 \hspace{0.05cm} \rm V$,  since here both  $p(t)$  and  $z(t)$  are equal to zero.
  • In the intervening intervals,  the amplitude value is two-point distributed between  $0 \hspace{0.05cm} \rm V$  and  $1 \hspace{0.05cm} \rm V$,  where the value  $1 \hspace{0.05cm} \rm V$  occurs again with probability  $p$.
  • Or in other words:   The signals  $z(t)$  and  $s(t)$  are equivalent pattern signals of the identical random process with bipolar  $(-1 \hspace{0.05cm} \rm V, \ +1 \hspace{0.05cm} \rm V)$  resp. unipolar  $(0 \hspace{0.05cm} \rm V, \ 1 \hspace{0.05cm} \rm V)$  signal representation.




Hints:



Questions

1

Calculate the ACF  $\varphi_z(\tau)$  and sketch it for  $p = 0.25$.  What values result for  $\tau = 0$,  $\tau = 3T$  and  $\tau = 6T$?

$\varphi_z(\tau= 0) \ = \ $

$\ \rm V^2$
$\varphi_z(\tau= 3T) \ = \ $

$\ \rm V^2$
$\varphi_z(\tau= 6T) \ = \ $

$\ \rm V^2$

2

Now,  using the result from  (1)  calculate the ACF  $\varphi_p(\tau)$.  What values result for  $\tau = 0$,  $\tau = 3T$  and  $\tau = 6T$?

$\varphi_p(\tau= 0) \ = \ $

$\ \rm V^2$
$\varphi_p(\tau= 3T) \ = \ $

$\ \rm V^2$
$\varphi_p(\tau= 6T) \ = \ $

$\ \rm V^2$

3

It holds again  $p = 0.25$.  Calculate the cross-correlation function  $\varphi_{pz}(\tau)$ for  $\tau = 0$,  $\tau = 3T$  and  $\tau = 6T$ ?

$\varphi_{pz}(\tau= 0) \ = \ $

$\ \rm V^2$
$\varphi_{pz}(\tau= 3T) \ = \ $

$\ \rm V^2$
$\varphi_{pz}(\tau= 6T) \ = \ $

$\ \rm V^2$

4

What ACF  $\varphi_c(\tau)$  results in general for the sum  $c(t) = a(t) + b(t)$ ?

$\varphi_c(\tau) = \varphi_a(\tau) + \varphi_b(\tau)$.
$\varphi_c(\tau) = \varphi_a(\tau) + \varphi_{ab}(\tau) + \varphi_{ba}(\tau) + \varphi_b(\tau)$.
$\varphi_c(\tau) = \varphi_a(\tau) \star \varphi_b(\tau)$.

5

Calculate the ACF  $\varphi_s(\tau)$,  taking into account the result of  (4).   What values result with  $p = 0.25$  for  $\tau = 0$,  $\tau = 3T$  and  $\tau = 6T$ ?

$\varphi_s(\tau= 0) \ = \ $

$\ \rm V^2$
$\varphi_s(\tau= 3T) \ = \ $

$\ \rm V^2$
$\varphi_s(\tau= 6T) \ = \ $

$\ \rm V^2$


Solution

(1)  The ACF value at  $\tau = 0$  gives the average power:

$$\varphi_z ( \tau = 0) = {1}/{2} \cdot (1 {\rm V})^2 \hspace{0.15cm}\underline{= 0.5 {\rm V}^2}.$$
  • For  $\tau = \pm T$,  $\underline{\tau = \pm 3T}$, ...   results  $\varphi_z ( \tau)\hspace{0.15cm}\underline{ = 0}$.
  • For intermediate values  $\tau = \pm 2T$,  $\tau = \pm 4T$,  $\underline{\tau = \pm 6T}$, ...   applies:
$$\varphi_z ( \tau) = \frac {1 {\rm V}^2}{2} \left(p \hspace{0.02cm} \cdot \hspace{0.02cm}p \hspace{0.2cm} + \hspace{0.2cm}p \hspace{0.02cm}\cdot \hspace{0.02cm}(p-1) \hspace{0.2cm}+\hspace{0.2cm} (p-1)\hspace{0.02cm} \cdot \hspace{0.02cm}p \hspace{0.2cm}+\hspace{0.2cm} (p-1)\hspace{0.02cm} \cdot \hspace{0.02cm}(p-1)\right) = \hspace{0.1cm}\text{...} \hspace{0.1cm}= 0.5\, {\rm V}^2 \cdot (1-2p)^2 .$$
  • Here  $p$  stands for  $p \cdot (+1)$  and  $(p-1)$  for $(1-p) \cdot (-1)$, i.e. probability times normalized amplitude value,  respectively.
Auto-correlation functions and cross-correlation function
  • With  $p = 0.25$  one gets  $\varphi_z ( \tau = \pm 6 T) \hspace{0.15cm}\underline{=0.125 \rm V^2}$.


The blue curve shows  $\varphi_z(\tau)$  for  $p = 0.25$  in the range of  $-7T \le \tau \le +7T$:

  • Because of the rectangular signal waveform,  a sum of triangular functions is obtained.
  • For  $p = 0.5$  the outer  (smaller)  triangles would disappear.


(2)  The ACF  $\varphi_p(\tau)$  of the unipolar periodic signal  $p(t)$  is in the generalized representation of  (1)   ⇒   ACF  $\varphi_z(\tau)$ as a special case for  $p = 1$  .

  • Now one obtains a periodic ACF  (see red curve in the above sketch)  with
$$\varphi_p ( \tau = 0) = \varphi_p ( \tau = \pm 2 T) = \varphi_p ( \tau = \pm 4 T) = \hspace{0.1cm} \text{...} \hspace{0.1cm}\hspace{0.15cm}\underline{= 0.5 {\rm V}^2},$$
$$\varphi_p ( \tau = \pm T) = \varphi_p ( \tau = \pm 3T) = \hspace{0.1cm} ... \hspace{0.1cm}\hspace{0.15cm}\underline{= 0}.$$


(3)  For the cross-correlation function results for  $\tau = \pm T$,  $\underline{\tau = \pm 3T}$, ...   always the value zero.

  • In contrast,  the CCF values for  $\tau = \pm 2T$,  $\tau = \pm 2T$, ...   identical to those for  $\tau = 0$:
$$\varphi_{pz} ( \tau = 0) = \varphi_{pz} ( \tau = \pm 2 T) = \varphi_{pz} ( \tau = \pm 4 T) = \hspace{0.1cm} \text{...} \hspace{0.1cm}= \frac {1 {\rm V}^2}{2} \left( p - (1-p)\right) = \frac {2p -1}{2}\, {\rm V}^2 .$$
  • You get the following results with  $p = 0.25$  (see green curve in above sketch):
$$\varphi_{pz} ( \tau = 0)\hspace{0.15cm}\underline{= -0.25 {\rm V}^2},\hspace{0.5cm} \varphi_{pz} ( \tau = 3T)\hspace{0.15cm}\underline{= 0},\hspace{0.5cm} \varphi_{pz} ( \tau = 6T)\hspace{0.15cm}\underline{= -0.25 {\rm V}^2}.$$
  • With  $p = 1$  on the other hand  $z(t) \equiv p(t)$  would hold and so of course  $\varphi_{pz}(\tau) \equiv \varphi_{p}(\tau) \equiv \varphi_{z}(\tau)$.
  • For the special case  $p = 0.5$  there would be no correlation between  $p(t)$  and  $z(t)$  and thus  $\varphi_{pz}(\tau) \equiv 0$.



(4)  Substituting  $c(t) = a(t) + b(t)$  into the general ACF definition yields:

$$\varphi_c ( \tau ) = \overline{c(t)\hspace{0.02cm} \cdot \hspace{0.02cm} c(t + \tau)} = \overline{a(t)\hspace{0.02cm} \cdot \hspace{0.02cm} a(t + \tau)} \hspace{0.1cm}+\hspace{0.1cm}\overline{a(t)\hspace{0.02cm} \cdot \hspace{0.02cm} b(t + \tau)} +\overline{b(t)\hspace{0.02cm} \cdot \hspace{0.02cm} a(t + \tau)} \hspace{0.1cm}+\hspace{0.1cm}\overline{b(t)\hspace{0.02cm} \cdot \hspace{0.02cm} b(t + \tau)}. $$
$$\Rightarrow \hspace{0.5cm} \varphi_c ( \tau ) = \varphi_{a} ( \tau ) \hspace{0.1cm} + \hspace{0.1cm} \varphi_{ab} ( \tau ) \hspace{0.1cm} + \hspace{0.1cm} \varphi_{ba} ( \tau ) \hspace{0.1cm} + \hspace{0.1cm}\varphi_{a} ( \tau ). $$
  • The correct solution is thus the  proposed solution 2.
  • The proposed solution 1 is true only if  $a(t)$  and  $b(t)$  are uncorrelated.
  • The last proposition:  The convolution operation is always false.
  • A similar equation would result only if we consider the PDF  $f_c(c)$  of the sum  $c(t) = a(t) + b(t)$  and  $a(t)$  and  $b(t)$  are statistically independent:  
$$f_c (c) = f_a (a) \star f_b (b) .$$


(5)  Using the result from  (4)  and taking into account the factor  $1/2$  we get:

$$\varphi_s ( \tau ) = {1}/{4} \cdot \big[ \varphi_{p} ( \tau ) \hspace{0.1cm} + \hspace{0.1cm} \varphi_{z} ( \tau ) \hspace{0.1cm} + \hspace{0.1cm} 2 \cdot \varphi_{pz} ( \tau ) \big] . $$
  • This already takes into account that the CCF between  $p(t)$  and  $z(t)$  is an even function,  so that  $\varphi_{pz}(\tau) = \varphi_{zp}(\tau)$  holds.
  • For  $\tau = 0$  one therefore obtains in general with the above results:
$$\varphi_s( \tau = 0) = {1}/{4} \cdot \left( 0.5 {\rm V}^2 +0.5 {\rm V}^2 + 2 \cdot \frac{2p-1}{2} {\rm V}^2\right) .$$
  • With  $p = 0.25$  we get  $\varphi_{pz} ( \tau = 0 ) = 0.125\rm V^2$.  This result is plausible.  On average,  only in every eighth interval  $s(t)=1 \hspace{0.05cm} \rm V$;  otherwise  $s(t)=0 \hspace{0.05cm} \rm V$.
  • For even multiples of  $T$  holds:
$$ \varphi_s ( \tau = \pm 2 T) = \varphi_s ( \tau = \pm 4 T) = \hspace{0.1cm} \text{ ...} \hspace{0.1cm} = \frac {0.5 {\rm V}^2}{4} \left( (1-2p)^2 +1 + 2 \cdot (2p -1)\right) = 0.5 \, {\rm V}^2 \hspace{0.02cm} \cdot \hspace{0.02cm} p^2.$$
  • With  $p = 0.5$  we obtain for this the value  $0.03125 \hspace{0.1cm}{\rm V}^2$.  All ACF values at odd multiples of  $T$  are zero again.
  • This gives the outlined ACF–curve.


ACF of a unipolar rectangular signal

Thus, the numerical values we are looking for are:

$$\varphi_{s} ( \tau = 0)\hspace{0.15cm}\underline{= 0.125 {\rm V}^2},$$
$$\varphi_{s} ( \tau = 3T)\hspace{0.15cm}\underline{= 0},$$
$$\varphi_{s} ( \tau = 6T)\hspace{0.15cm}\underline{= -0.03125 {\rm V}^2}.$$

A comparison with the sketch for subtask  (1)  shows that the binary signal  $s(t)$  has the same ACF as the ternary signal  $z(t)$ except for the factor  $1/4$.