The expectation of absolute value of random variables

It is worth knowing that the expected absolute value of a normal random variable with mean $\mu = 0$ and standard deviation $\sigma$ is $\sigma \sqrt{\dfrac{2}{\pi}}$. See Wikipedia on the half-normal distribution.

$Y_1$ is the absolute value of a normal random variable with mean $0$ and standard deviation ${\dfrac{1}{\sqrt{n}}}$ so $E[Y_1] = \sqrt{\dfrac{2}{\pi n}}$.

$Y_2$ is the average of $n$ absolute values of normal random variables with mean $0$ and standard deviation $1$ so the average of random variables with expected value $\sqrt{\dfrac{2}{\pi}}$ meaning $E[Y_2] = \sqrt{\dfrac{2}{\pi}}$.

For $n \gt 1$ you have $\sqrt{\dfrac{2}{\pi n}} \lt \sqrt{\dfrac{2}{\pi }}$.


Regarding the general form of the mean of the absolute value of a Normal$(\mu,\sigma^2)$:

Following @Henry's link to Wikipedia's article on the half-normal, I found that there is now a page for the so-called "Folded normal distribution", which is an extension of the half-normal for $\mu\neq 0$. They give the expression for the mean, which coincides with the one given by @Henry for $\mu=0$

$$ \sigma \sqrt{\frac{2}{\pi}} e^{-\frac{\mu^2}{2\sigma^2}} + \mu \left(1 - 2\Phi\left(\frac{-\mu}{\sigma}\right) \right) $$