A study involving stress is done on a college campus among the students. The stress scores follow a (continuous) Uniform distribution with the lowest stress score equal to 1 and the highest equal to 5. Using a sample of 75 students, find:
-
The probability that the average stress score for the 75 students is less than 2.
-
The 90th percentile for the average stress score for the 75 students.
-
The probability that the total of the 75 stress scores is less than 200.
-
The 90th percentile for the total stress score for the 75 students.
Solution.
Denote by \(X\) the stress score of a random student. We are given that \(X \sim \text{Uniform}(1,5)\text{.}\) We use the formulas \(\mathbb{E}(X) = (a+b)/2\) and \(\text{Var}(X) = (b-a)^2/12\) in order to obtain the expectation and variance of a single observation and then we use the relations \(\mathbb{E}(\bar X) = \mathbb{E}(X)\) and \(\text{Var}(\bar X) = \text{Var}(X)/n\) to translate these results to the expectation and variance of the sample average:
a <- 1
b <- 5
n <- 75
mu.bar <- (a+b)/2
sig.bar <- sqrt((b-a)^2/(12*n))
mu.bar
sig.bar
## [1] 3 ## [1] 0.1333333
After obtaining the expectation and the variance of the sample average we can forget about the Uniform distribution and proceed only with the
R functions that are related to the Normal distribution. By the Central Limit Theorem we get that the distribution of the sample average is approximately \(\text{Normal}(\mu, \sigma^2)\text{,}\) with \(\mu\) = mu.bar and \(\sigma\) = sig.bar.
In the Question 1.1 we are asked to find the value of the cumulative distribution function of the sample average at \(x=2\text{:}\)
pnorm(2,mu.bar,sig.bar)
## [1] 7.655734e-15
The goal of Question 1.2 is to identify the 90%-percentile of the sample average:
qnorm(0.9,mu.bar,sig.bar)
## [1] 3.170874
The sample average is equal to the total sum divided by the number of observations, \(n=75\) in this example. The total sum is less than 200 if, and only if the average is less than \(200/n\text{.}\) Therefore, for Question 1.3:
pnorm(200/n,mu.bar,sig.bar)
## [1] 0.006209665
Finally, if 90% of the distribution of the average is less that 3.170874 then 90% of the distribution of the total sum is less than \(3.170874 \, n\text{.}\) In Question 1.4 we get:
n*qnorm(0.9,mu.bar,sig.bar)
## [1] 237.8155

