Question

In: Statistics and Probability

In each problem, make sure that you are clearly defining random variables, stating their distributions, and...

In each problem, make sure that you are clearly defining random variables, stating their distributions, and writing down the formulas that you are using. (That is, write down the pmf, write down mean and variance formulas.

4. In the video game Dota 2, the character Phantom Assassin has a 0.15 chance to land a critical hit with every attack. Assume that each attack is independent from the previous attacks. (They actually aren’t, but we’ll simplify the problem by making this assumption. See the end of assignment for an interesting discussion of the actual mechanics.) (Hint: Declare a single random variable to use for parts a through d, and a new random variable for parts e and f)

a. Suppose we start hitting a target. What is the probability that we get the first critical hit on our third attack? What is the probability that it takes more than 10 attacks to get a single critical hit?

b. How many attacks should a Phantom Assassin player expect to have to perform before getting a critical hit? What is the standard deviation?

c. It’s subjective to decide when our luck is ‘bad’, but a common definition of an event being unlikely is that it has probability less than 0.05. By this definition, how many times do we need to attack without getting a critical hit before we can say that our luck was bad?

d. Suppose we attack 20 times without getting a single critical hit. What is the probability that the next attack will be a critical hit? (Hint: Does the distribution remember that you’ve failed 20 times already? Does it care at all?)

e. Suppose Phantom Assassin attacks an enemy 30 times. What is the probability that she gets at least 3 critical hits?

f. What is the expected number of critical hits after this many attacks?

Solutions

Expert Solution

a.

Let X be the number of attacks required to get the first critical hit. Then X ~ Geometric(p = 0.15). That is, X follows Geometric distribution with parameter p = 0.15

Probability that we get the first critical hit on our third attack = (1 - p)2 * p = (1 - 0.15)2 * 0.15 = 0.108375

Probability that it takes more than 10 attacks to get a single critical hit = P(X > 10) = (1 - p)10 = (1 - 0.15)10 = 0.19687

b.

Expected value of X = 1/p = 1/0.15 = 6.67

Standard deviation = = 6.146

c.

We need to find the minimum value of x such that

P(X > x) < 0.05

(1-p)x < 0.05

Taking log, we get

x * log(1 - 0.15) < log(0.05)

-0.1625 x < -2.996

=> x > 2.996 / 0.1625 = 18.437

So, we need to attack at least 19 times without getting a critical hit before we can say that our luck was bad.

d.

Each attack is independent from the previous attacks. So, the probability that the next attack will be a critical hit will be p = 0.15

e.

Let Y be the number of critical hits done in 30 attacks. Then Y ~ Binomial(n = 30, p = 0.15)

Probability that she gets at least 3 critical hits = P(Y 3) = 1 - P(Y < 3)

= 1 - [P(Y = 0) + P(Y = 0) + P(Y = 2) ]

= 1 - [30C0  * 0.150 * (1 - 0.15)30-0 + 30C1  * 0.151 * (1 - 0.15)30-1 + 30C2  * 0.152 * (1 - 0.15)30-2 ]

= 1 - (0.00763 + 0.0404 + 0.10337)

= 0.8486

f.

Expected number of critical hits after this many attacks = np = 30 * 0.15 = 4.5


Related Solutions

give a analysis by stating benefits of surveillance at workplace and hot to make sure it...
give a analysis by stating benefits of surveillance at workplace and hot to make sure it will not affect the employees and work negatively.      
Please label and write clearly. Please make sure to circle the answers Problem 2. We now...
Please label and write clearly. Please make sure to circle the answers Problem 2. We now wish to decide if there “use of e-cigarettes” and “income category” are dependent. To assist with this process, the table from before has been augmented with most of the expected frequencies (listed in parentheses): <$35,000 $35,000-$99,999 $100,000+ Total Vape 47 (34) 57 (58) 19 (31) 123 Do Not Vape 381 (394) 659 (???) 362 (???) 1402 Total 428 716 381 1525 a. Find the...
solve the problem make sure to explain in words what you did with the problem and...
solve the problem make sure to explain in words what you did with the problem and state your conclusions in terms of the problem. Part I: Choose to do one of the following: 1) Test the claim that the mean Unit 3 Test scores of data set 7176 is greater than the mean Unit 3 Test scores of data set 7178 at the .05 significance level Class 7176 Class 7178 Unit Test 3 Course Grade Attendance Unit Test 3 Course...
Defining a problem can be one of the hardest things to accomplish. How can you make...
Defining a problem can be one of the hardest things to accomplish. How can you make sure that you have defined it properly? What process would you use to help with defining the process? Why?
How would going up into the mountains effect the process of ventilation. make sure you clearly...
How would going up into the mountains effect the process of ventilation. make sure you clearly define how Boyle's law and Dalton's partial pressure law are effected by the change in altitude and how the body compensates physiologically the ventilation process.
Discuss the difference between Personal and position power. Make sure that you clearly state and explain...
Discuss the difference between Personal and position power. Make sure that you clearly state and explain each type of power. Provide examples where necessary for clarity.
Discuss the role of state and local governments in defining federal relations. Make sure that your...
Discuss the role of state and local governments in defining federal relations. Make sure that your response is no less than two paragraphs and no less than six sentences per paragraph.
Problem 5 This problem is designed to make sure you can write a program that swaps...
Problem 5 This problem is designed to make sure you can write a program that swaps data passed into it such that the caller's data has been swapped. This is something that is done very frequently in manipulating Data Structures. The Solution / Test Requirements I want your program to demonstrate that you understand how to swap information passed into a function and have the calling routine print out the data before and after the call to verify the data...
(i) Find the marginal probability distributions for the random variables X1 and X2 with joint pdf...
(i) Find the marginal probability distributions for the random variables X1 and X2 with joint pdf                     f(x1, x2) = 12x1x2(1-x2) , 0 < x1 <1   0 < x2 < 1 , otherwise             (ii) Calculate E(X1) and E(X2)     (iii) Are the variables X1 ­and X2 stochastically independent? (iv) Given the variables in the question, find the conditional p.d.f. of X1 given 0<x2< ½ and the conditional expectation E[X1|0<x2< ½ ].
X1 and X2 are two independent random variables that have Poisson distributions with mean lambda1 and...
X1 and X2 are two independent random variables that have Poisson distributions with mean lambda1 and lambda2, respectively.   a) Use moment generating functions, derive and name the distribution of X = X1+X2 b) Derive and name the conditional distribution of X1 given that X = N where N is a fixed positive integer. Please explain your answer in detail. Please don't copy other answers. Thank you; will thumb up!
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT