Question

In: Statistics and Probability

R programming What is the probability that someone needs to ask more than 12 people to...

R programming

What is the probability that someone needs to ask more than 12 people to successfully get directions from 5? Your answer should be 3.21%. Show the code that leads to this result, and explain why.

Solutions

Expert Solution

#Rcode below

p=seq(0,1,.01)
z=0
for (i in 5:12){
z=z+p^i*(1-p)^(i-5)
}

z

p=0.9919
z=0
for (i in 5:12){
z=z+p^i*(1-p)^(i-5)
}
z

1-z
#output of R code

Even p=0.9919 is more accurate which gives you 3.21% exact

Hope the above answer has helped you in understanding the problem. Please upvote the ans if it has really helped you. Good Luck!!


Related Solutions

on average 5 people enter the retaurant per minute. what is the probability that more than...
on average 5 people enter the retaurant per minute. what is the probability that more than 25 people enter the restaurant in the next 4 minutes?
Consider the probability that more than 99 out of 159 people have not been in a...
Consider the probability that more than 99 out of 159 people have not been in a car accident. Assume the probability that a given person has not been in a car accident is 61%. Approximate the probability using the normal distribution.
12. Name the process that occurs in the liver when the body needs more glucose than...
12. Name the process that occurs in the liver when the body needs more glucose than the diet provides? 13. Name 4 purposes for Fats in your body. 14.. The breakdown of proteins produces ammonia which is toxic to our cells. How does the liver manage ammonia? 15. How much energy is in a gram of fat compared to a gram of carbohydrates?
1.Consider the probability that no more than 1919 out of 157157 people have been in a...
1.Consider the probability that no more than 1919 out of 157157 people have been in a car accident. Assume the probability that a given person has been in a car accident is 15%15%. Approximate the probability using the normal distribution. Round your answer to four decimal places. 2. Scores on a test have a mean of 78.878.8 and 77 percent of the scores are above 8989. The scores have a distribution that is approximately normal. Find the standard deviation. Round...
Consider the probability that more than 43 out of 130 people have been in a car...
Consider the probability that more than 43 out of 130 people have been in a car accident. Assume the probability that a given person has been in a car accident is 3%. Specify whether the normal curve can be used as an approximation to the binomial probability by verifying the necessary conditions. Yes or No
A diet needs to be created that contains not less than 2146 calories, not more than...
A diet needs to be created that contains not less than 2146 calories, not more than 58 grams of protein, not less than 10 grams of carbohydrates and not less than 13 grams of fat. Also, the diet should haveminimal cost. In addition the diet should include at least 1 Units of fish and at least 1.2 cup of milk. The diet will consist of the six different foods: Bread, Milk, Cheese, Fish, Potato and Yogurt. The following table lists...
Why was the invention of programming more important than the development of hardware for the evolution...
Why was the invention of programming more important than the development of hardware for the evolution of computers? Why do you think that Xerox failed to exploit the graphical user interface and instead let Steve Jobs and Apple use it to capture the personal computer market? Like other inventions, how was the personal computer shaped by the time and place it was first developed?Did social media, such as Twitter and Facebook, “cause” the Arab Spring uprisings? Why or why not?...
What is an example of the null hypothesis? People in red are more attractive than those...
What is an example of the null hypothesis? People in red are more attractive than those in blue There is no differences in ratings of attraction There is a difference in attraction ratings for those who ware the color red and those who ware blue. Support research hypothesis
(Use R Programming to Code) Use the Monte Carol simulation to estimate the probability that all...
(Use R Programming to Code) Use the Monte Carol simulation to estimate the probability that all six faces appear exactly once in six tosses of fair dice.
Do advertisements appeal more to needs than to wants or do they appeal more to wants...
Do advertisements appeal more to needs than to wants or do they appeal more to wants than to needs? Write a journal entry response based on this question. Make sure to include specific examples and illustrations. This entry should be two paragraphs long and about 150 to 200 words.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT