Let $Y_1,Y_2,\ldots,Y_n$ be independent and identically distributed normal random variables with mean 5, and variance 16. Let $n=10$, use R to find $prob(\overline{Y} \leq 4)$ where $\overline{Y}$ is the mean of $Y_1,Y_2,\ldots,Y_n$.
I know how to set up the distribution oh $\overline{Y}$ in R, but I'm completely blanking on how to extract that probability from knowing the distribution.
To set up the distribution in R, we write:
Y <- rnorm(100000, 5, 4) Y <- matrix(Y, byrow = T, ncol = 10) Y_Means <- apply(Y, 1, mean)
Now that we have the distribution (Y_Means), how to find probability?