In this channel a random input $X$ is chosen from $\{-1,0,1\}$ with equal probabilities and an outputs a value $Y = X + Z$. Where $Z \sim N(0,4)$ is the noise and is independent from $X$ with $\mu=0$ and $\sigma=2$. With the noise, the channel decides the final output $\bar Y$ with the following conditions:
- $\bar Y = 1$ if $Y > \frac{1}2$.
- $\bar Y = -1$ if $Y < -\frac{1}2$.
- $\bar Y = 0$ if $-\frac1{2}<Y < \frac{1}2$.
Find the probability of making an error.
Attempt:
What I understand, to calculate the error I need to:
$$P_{err}(X=0)= P(\bar Y=1)P(\bar Y = 1| X = 0) + P(\bar Y=-1)P(\bar Y = -1| X = 0)$$ $$P_{err}(X=1)= P(\bar Y=0)P(\bar Y = 0| X = 1) + P(\bar Y=-1)P(\bar Y = -1| X = 1)$$ $$P_{err}(X=-1)= P(\bar Y=0)P(\bar Y = 0| X = -1) + P(\bar Y=1)P(\bar Y = 1| X = -1)$$
Then get: $P_{err} = P_{err}(X=0) + P_{err}(X=-1) + P_{err}(X=1) $
And to calculate the conditional probabilities say $P(\bar Y = 1 | X = 0)$ I did:
$$ \begin{aligned} P(\bar Y = 1| X = 0) &= P(Y > \frac{1}2 | X = 0) \\ & = P(X+Z>\frac{1}2|X=0) \\ &= P(Z>\frac{1}2 |X=0) \\ &= P(Z>\frac{1}2) P(X=0) \\ &= \frac{1}3P(Z>\frac{1}2) \end{aligned} $$
Where $P(X=x)=P(\bar Y=y) = \frac{1}3$ since they have equal probabilities. With this I found that $P_{err}(1) = P_{err}(-1) = 0.04459$ and $P_{err}(0) = 0.08918$
The total error I got was:
$P_{err}(total) = P_{err}(-1) + P_{err}(0) + P_{err}(1) = 0.17836$
Is this right?