I am trying to model the following random variable $Z$:
Values get drawn from a normally-distributed random variable $X$ with mean 0 and variance $\sigma^2$. If the drawn value is outside the interval $[a,b]$, a value is drawn instead from a uniformly-distributed random variable $Y$ on the same interval.
I think the probability density function of $Z$ can be expressed as $$ f(x) = \begin{cases} \phi_\sigma(x) + \left( 1-\Phi_{\sigma}(x) \right) \frac{1}{b-a} & \text{for $x \in [a,b]$} \\ 0 & \text{otherwise} \end{cases} $$ where $\phi_\sigma$ and $\Phi_\sigma$ are the probability and cumulative density functions of the normal distribution, resp.
I am trying to determine the expected value of this random variable. What I have so far is:
$$ \mathbb{E}(Z)= \int{xf(x)dx}\\ =\int{x\phi_\sigma(x)}dx+\int{x\frac{1-\Phi_{\sigma}(x)}{b-a}}dx \\ =\mathbb{E}(X)+\int{x\frac{1-\Phi_{\sigma}(x)}{b-a}}dx \\ =\mathbb{E}(X)+\mathbb{E}(Y)-\int{x\frac{\Phi_\sigma(x)}{b-a}}dx \\ $$
where $X\sim \mathcal{N}(0,\sigma^2)$ is the normally distributed random variable with $\mu=0$ and variance $\sigma^2$, and $Y \sim \mathcal{U}(a,b)$ is the uniformly distributed random variable on the interval $[a,b]$.
I need a closed form solution in terms of $\sigma$, $a$ and $b$ so I can compute it efficiently, but I have no idea how to integrate that last term.