Practically, P(Y<= y) = 1-P(Y>y) = 1-P(X_1 > y, X_2 > y, X_n > y) = 1 - ((k - y)/k)^n
Also follwing the math above:
P(Y<= y-1) = 1 - ((k - y+1)/k)^n
Therefore:
P(Y=y) = P(Y<= y)-P(Y<=y-1)
Simplify and combine: ((k-y+1)^n - (k-y)n)/(kn)
p <- 1/10
n=8
round((1 - pgeom(n-1, p)),4)
## [1] 0.4305
Expected is easy, as its a given (10 years) Probability that the machine will fail after 8 is 43%, which is kinda terrible.
standard_deviation <- round((sqrt((1-p)/p^2)),2)
standard_deviation
## [1] 9.49
The Standard Deviation is 9.49.
x <- 8
p <- 1/10
round((1 - pexp(x, p)), 4)
## [1] 0.4493
Expected is easy, as its a given (10 years) Probability that the machine will fail after 8 is 45%, which is still kinda terrible.
Standard deviation is 10.
sqrt(1/p^2)
## [1] 10
x <- 0
n <- 8
p <- 1/10
round((dbinom(x, n, p)), 2)
## [1] 0.43
Probability that the machine will fail after 8 is 43%, which is kinda terrible.
expected_value <- n*p
expected_value
## [1] 0.8
The expected value is 0.80
std <- sqrt(n*p*(1-p))
round(std,3)
## [1] 0.849
the standard deviation is 0.849.
x <- 0
n <- 8
p <- 1/10
t <- 1
round((dpois(x, n*p/t)), 3)
## [1] 0.449
There is a 44.9% failure rate
Expected Value is 0.8
n*p/t
## [1] 0.8
Standard Deviation is:
(n*p/t)^.5
## [1] 0.8944272