Given a function $f \in L^2[0, T]$ $$ f(t) = \sum_{n=0}^{N} a_n e_n(t) = \sqrt{\frac{2}{T}}\sum_{n=0}^{N} a_n \sin{\left (\frac{\pi nt}{T} \right)} $$ with the following dot product: $$ \left \langle f, g \right \rangle = \int_0^Tf(t)g(t)\;dt $$ To find $a_n$ is easy to see that: $$ a_n = \left \langle f(t), e_n(t) \right \rangle = \left \langle f(t),\sqrt{\frac{2}{T}} \sin{\left (\frac{\pi nt}{T} \right)} \right \rangle $$
Now imagine that the signal is "contaminated" with noise. $$ x(t) = f(t) + \varepsilon(t) $$
$$ \varepsilon(t) \sim \mathcal N(0, \sigma) $$
If you want to find the dot product we have: $$ \left \langle x(t), e_n(t) \right \rangle = \left \langle f(t) + \varepsilon(t), e_n(t) \right \rangle = \left \langle f(t), e_n(t) \right \rangle + \left \langle \varepsilon(t), e_n(t) \right \rangle = a_n + \left \langle \varepsilon(t), e_n(t) \right \rangle $$ So finally we have: $$ \left \langle x(t), e_n(t) \right \rangle = a_n + \left \langle \varepsilon(t), e_n(t) \right \rangle $$ $$ \left \langle \varepsilon(t), e_n(t) \right \rangle = \sqrt{\frac{2}{T}}\int_0^T \varepsilon(t) \sin{\left (\frac{\pi nt}{T} \right)} dt $$ Now imagine we are trying to send a signal with the coefficients $a_n$, which can only take the random values of $1$ and $-1$. Both values are equiprobable $\left(P(a_n = 1) = P(a_n = -1) = \frac{1}{2} \right)$.
At the arrival of the contaminated signal we will decide we recieved a $1$ if: $$ \left \langle x(t), e_n(t) \right \rangle > 0 $$ and $-1$ if: $$ \left \langle x(t), e_n(t) \right \rangle < 0 $$ Then: $$ P(\text{Error Reciving 1}) = P(\text{Decide -1} | \text{Sent 1}) = P(\left \langle x(t), e_n(t) \right \rangle < 0 | a_n = 1) =\\ \; \\ P(a_n + \left \langle \varepsilon(t), e_n(t) \right \rangle < 0 | a_n = 1) = P(1 + \left \langle \varepsilon(t), e_n(t) \right \rangle < 0) = P(\left \langle \varepsilon(t), e_n(t) \right \rangle < -1)\\ $$ Applying the same reasoning for the error of $-1$, we finally get: $$ P(\text{Error Reciving 1}) = P(\left \langle \varepsilon(t), e_n(t) \right \rangle < -1) $$ $$ P(\text{Error Reciving -1}) = P(\left \langle \varepsilon(t), e_n(t) \right \rangle > 1) $$ The thing is, how would you find: $$ P(\left \langle \varepsilon(t), e_n(t) \right \rangle < -1) \\ \; \\ P(\left \langle \varepsilon(t), e_n(t) \right \rangle > 1) $$ I've tried transforming the probability density function of $\varepsilon(t)$, but the transofrmation function is very complex to deal with: $$ \delta(t) = g(\varepsilon(t)) = \left \langle \varepsilon(t), e_n(t) \right \rangle = \sqrt{\frac{2}{T}}\int_0^T \varepsilon(t) \sin{\left (\frac{\pi nt}{T} \right)} dt $$ $$ f_\delta (\delta) = \frac{f_\varepsilon(\delta)}{|g'(\delta)|}, \; \; \; \text{where $f$ denotes the probability density function} $$ How should I approach this? Any hint? It is possible to find an analytical form of this transformation?