Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Part 1: Flipping C In this part of the assignment , you will be simulating flipping a coin to get either heads or tails This

image text in transcribed
Part 1: Flipping C In this part of the assignment , you will be simulating flipping a coin to get either heads or tails This requires using the statistical program R. Please go to and follow the instructions for downloading and installing R. This also requires an understanding of the probabilities for coin flipping . if you flip a fair coin one time , there are two possible outcomes : heads or tails . This can also be looked at as I head or 0 heads . The probability of 1 head is 50 % . The probability of 0 heads is 50% . The binomial distribution with p=0.5 describes this coin flipping . If you flip a fair coin three times , there are eight possible outcomes : HHH , HHT, HTH, HTT, THH, THT, TTH, or TTT. This can also be looked at as 0 heads, 1 head , 2 heads , or 3 heads . These can be presented as a probability table : (table shown above ) 1-1) Give the probability table for the number of heads for four flips of a fair coin . 1-2) In R, develop code that will flip a coin four times and count how many times heads occurs . Then , add a loop to the code so that this process is repeated 100 times , storing whether there were 0, 1, 2, 3, or 4 heads for each of 100 trials . There are multiple ways to do this , and it is okay if you use R code that you find shared from other sources. It is likely that you will need the stats package downloaded to your computer and loaded in R (http://www.rdocumentation.org/packages/stats), as this provides the functionality for Binomial and other simulations 1. Provide the R code you used for the coin flip trials 2. Use R to count how many of the 100 trials had 0 heads , how many had 1 head , how many had 2 heads , how many had 3 heads , and how many had 4

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Introductory Algebra

Authors: Alan S Tussy, Rosemary Karr, Marilyn Massey, Diane Koenig, R David Gustafson

5th Edition

1305161866, 9781305161863

More Books

Students also viewed these Mathematics questions

Question

1. To take in the necessary information,

Answered: 1 week ago