DATA605: Assignment #6

Bonnie Cooper

(1)

Let \(X_1, X_2, . . . , X_n\) be \(n\) mutually independent random variables, each of which is uniformly distributed on the integers from 1 to \(k\). Let \(Y\) denote the minimum of the \(X_i\)’s. Find the distribution of \(Y\).

To find the distribution, start by evaluating the probability where the minimum value of the distributions is 1: \[P(Y=1) = 1 - P(Y>1) = 1-\left( \frac{k-1}{k} \right)^n\] Next, evaluate \(P(Y=2)\)

\[P(Y=2) = 1 - P(Y>2) -P(Y=1)\] substitute in the answer above: \[P(Y=2) = 1 - P(Y>2) - \left( 1-\left( \frac{k-1}{k} \right)^n \right)\] \(P( Y>2 ) = \left( \frac{k-2}{k} \right)^n\), substituting this in to the previous result gives: \[P(Y=2) = 1 - \left( \frac{k-2}{k} \right)^n - \left( 1-\left( \frac{k-1}{k} \right)^n \right)\] This can be simplified to \[P(Y=2) = \frac{(k-2)^n-(k-1)^n}{k^n}\] This can be generalized as: \[P(Y=y) = \frac{(k-y)^n-(k-y-1)^n}{k^n}\]

Now to functionalize this expression:

Evaluate an example where:

(2)

Your organization owns a copier (future lawyers, etc.) or MRI (future doctors). This machine has a manufacturer’s expected lifetime of 10 years. This means that we expect one failure every ten years. (Include the probability statements and R Code for each part.).

(b)

What is the probability that the machine will fail after 8 years?. Provide also the expected value and standard deviation. Model as an exponential.

Exponential Distribution \[P(x;\lambda ) = \lambda e^{-\lambda x}\]

## Expected Value: 10 
## Standard Deviation: 10 
## Probability of failure after 8 years (Exponential): 0.4493

(c)

What is the probability that the machine will fail after 8 years?. Provide also the expected value and standard deviation. Model as a binomial. (Hint: 0 success in 8 years)

Binomial Distribution \[\left( \begin{array}{c} n \\ k \end{array} \right) = \frac{n!}{(n-k)!k!}\]

## Expected Value: 0.8 
## Standard Deviation: 0.8485 
## Probability of failure after 8 years (Binomial): 0.4305

(d)

What is the probability that the machine will fail after 8 years?. Provide also the expected value and standard deviation. Model as a Poisson.

Poisson Distribution: \[P(x;\lambda)= \frac{e^{-\lambda } * \lambda ^x }{x!}\]

## Expected Value: 0.8 
## Standard Deviation: 0.8944 
## Probability of failure after 8 years (Exponential): 0.4493