Question

Use the web app Random numbers to illustrate the long run definition of probability by stimulating...

Use the web app Random numbers to illustrate the long run definition of probability by stimulating short term and long term results of flipping a balanced coin. keep the probability of a head at the default value of 50% and set the number of flips to generate a stimulation to 10

Homework Answers

Answer #1

Consider a fair coin so that

The R code for simulating the tosses of a coin up to 100000 times and finding the probability of occurrence of heads is given below.

m <- 100
p <- 0.5
H <- 0

for ( i in 1:m)
{
h <- rbinom(1, 1, prob=p)
if (h == 0)
{ H <- H +1}
}
pH <- H/m
pH

The output for 100 simulation (short tem result) is

> pH
[1] 0.51

The output for 100000 simulation is (long term result)

> pH
[1] 0.5022

So we can see that the probability approaches the theoretical value as the number of simulations increases.

If you have any doubt please revert.

Know the answer?
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for?
Ask your own homework help question
Similar Questions
Our intuition about chance behavior is not very accurate. In particular, we tend to expect that...
Our intuition about chance behavior is not very accurate. In particular, we tend to expect that the long-run pattern described by probability will show up in the short run as well. For example, we tend to think that tossing a coin 10 times will give close to five heads. a) Set the probability of heads in the Probability applet to 0.5 and the number of tosses to 10. Click “Toss” to simulate 10 tosses of a balanced coin. What was...
Juanita is deciding whether to buy a skirt that she wants, as well as where to...
Juanita is deciding whether to buy a skirt that she wants, as well as where to buy it. Three stores carry the same skirt, but it is more convenient for Juanita to get to some stores than others. For example, she can go to her local store, located 15 minutes away from where she works, and pay a marked-up price of $129 for the skirt: Store Travel Time Each Way Price of a Skirt (Minutes) (Dollars per skirt) Local Department...
1.The sample mean is an unbiased estimator for the population mean. This means: The sample mean...
1.The sample mean is an unbiased estimator for the population mean. This means: The sample mean always equals the population mean. The average sample mean, over all possible samples, equals the population mean. The sample mean will only vary a little from the population mean. The sample mean has a normal distribution. 2.Which of the following statements is CORRECTabout the sampling distribution of the sample mean: The standard error of the sample mean will decrease as the sample size increases....
Please read the article and answear about questions. Determining the Value of the Business After you...
Please read the article and answear about questions. Determining the Value of the Business After you have completed a thorough and exacting investigation, you need to analyze all the infor- mation you have gathered. This is the time to consult with your business, financial, and legal advis- ers to arrive at an estimate of the value of the business. Outside advisers are impartial and are more likely to see the bad things about the business than are you. You should...
What tools could AA leaders have used to increase their awareness of internal and external issues?...
What tools could AA leaders have used to increase their awareness of internal and external issues? ???ALASKA AIRLINES: NAVIGATING CHANGE In the autumn of 2007, Alaska Airlines executives adjourned at the end of a long and stressful day in the midst of a multi-day strategic planning session. Most headed outside to relax, unwind and enjoy a bonfire on the shore of Semiahmoo Spit, outside the meeting venue in Blaine, a seaport town in northwest Washington state. Meanwhile, several members of...
Using the model proposed by Lafley and Charan, analyze how Apigee was able to drive innovation....
Using the model proposed by Lafley and Charan, analyze how Apigee was able to drive innovation. case:    W17400 APIGEE: PEOPLE MANAGEMENT PRACTICES AND THE CHALLENGE OF GROWTH Ranjeet Nambudiri, S. Ramnarayan, and Catherine Xavier wrote this case solely to provide material for class discussion. The authors do not intend to illustrate either effective or ineffective handling of a managerial situation. The authors may have disguised certain names and other identifying information to protect confidentiality. This publication may not be...