Answer: Let us first show the minimum value from a single random uniform distribution, with 50 random values on a uniform distribution between 1 and 100
k = 100
n = 100
min(runif(50, min = 1, max = k))
## [1] 1.517051
#Now replicating this n (100) times
y <- replicate(n, min(floor(runif(50, min = 1, max = k))))
hist(y)
As we see above, it is skewed on the right.
In this question, the machine should fail anytime after 8 years.
Using the geometric probability function: p(machine fails anytime after 8 successes) = 1 - P(machine fails in any of the first 8 successes) = 1 - P(x<=8) = 1 - (0.1 + (0.9)(0.1) + (0.9)^2(0.1) + (0.9)^3(0.1) + .. + (0.9)^7(0.1))
we have to calculate the cumulative in this case, i.e. failure happens anytime after 8 years.
Now using R:
#dgeom will be used as we need to get the probability of the first success event
# no. of failures --> first parameter will be 8
p_2_a <- 1 - pgeom(8, 1/11)
p_2_a
## [1] 0.4240976
Expected Value = 1/p
1/(1/11)
## [1] 11
Variance = (1-p)/p^2 SD = sqrt(V)
variance = (1 - 1/11)/(1/11)^2
variance
## [1] 110
SD = sqrt(variance)
SD
## [1] 10.48809
lambda = 1/10
Variance = 1/lambda^2= 1/100
SD = sqrt(Variance) = 1/10
Applying the formula for exponential probability:
P(x>k) = e^(-k/µ) = e^(-0.1*8) = 0.4493
np = 1
p = 1/10
Variance = np(1-p) = 10 x 1/10 x (1 - 1/10) = 0.9
sd = sqrt(variance) = 0.9487
P = (lambda^x * e^(-lambda)) / x!
= (10^8 * exp(-10))/factorial(8)
= 0.112599
Variance = lambda = 10
SD = sqrt(variance) = 3.1623