2. The receiver knows the position of the switch: If the switch is open, then r1=n1is irrelevant
that can be ignored by the receiver, thus receiver decides based on r2only and the decision
threshold is 0. If Sis closed then the receiver detects s1(t) if
p(r1, r2|s=√E)> p(r1, r2|s=−√E)
or
or simply r1+r2>0. In this case an error occurs if −√Eis sent and r1+r2>0, i.e.,
if −√E+n1−√E+n2>0 or if n1+n2>2√E. Since n1and n2are iid Gaussian
3. Transmitter and receiver both know the position of S: If S is open, then the transmitter sends
all energy on the second channel, i.e., α= 0 and β=√2. The resulting error probability in
this case is Q(p4E/N0). If Sis closed the decision rule in favor of s1(t) becomes
exp (r1−α√E)2/2N0exp (r2−β√E)2/2N0>exp (r1+α√E)2/2N0exp (r2+β√E)2/2N0