answersLogoWhite

0


Want this question answered?

Be notified when an answer is posted

Add your answer:

Earn +20 pts
Q: How do I use R to simulate a single fair coin toss My code needs to print Heads or Tails to the screen once every time it's run?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

What is the probability in percent that a single coin toss will result in heads and tails?

The probability is 0%. The result will be heads or it will be tails but it cannot be heads and tails.


How many outcomes are there when tossing a coin three times?

1heads heads heads 2heads heads tails 3heads tails heads 4heads tails tails 5tails tails tails 6tails tails heads 7tails heads tails 8tails heads heads


What is the probability in percent that a single coin toss will result in heads or tails?

It is 100%. The coin will result in heads or tails since there are no other possible outcomes.


What is the expected number of flips of a coin to simulate a six-sided die?

Five coin flips. Any outcome on a six-sided die has a probability of 1 in 6. If I assume that the order of the outcome does not matter, the same probability can be achieved with five flips of the coin. The possible outcomes of five flips of a coin are as follows: 5 Heads 5 Tails 4 Heads and 1 Tails 4 Tails and 1 Heads 3 Heads and 2 Tails 3 Tails and 2 Heads For six possible outcomes.


If a coin is tossed 3 times what is the probability of 3 heads?

There are 8 possible outcomes when a coin is tossed 3 times. Here they are:1. Heads, Heads, Tails.2. Heads, Tails, Heads.3. Tails, Heads, Heads.4. Heads, Heads, Heads.5. Tails, Tails, Heads.6. Tails, Heads, Tails.7. Heads, Tails, Tails.8. Tails, Tails, Tails.There is only one outcome that is heads, heads, heads, so the probability of three heads coming up in three coin tosses is 1 in 8 or 0.125 for that probability.


What are the possible outcomes for 2 tosses of a coin?

Heads+Heads ; Heads+Tails ; Tails+Tails


What is the probability of a coin landing on heads twice when it is flipped 3 times?

Your question is slightly vague, so I will pose a more defined question: What is the probability of 3 coin tosses resulting in heads exactly twice? This is a pretty easy question to answer. The three possible (winning) outcomes are: 1. Heads, Heads, Tails. 2. Heads, Tails, Heads. 3. Tails, Heads, Heads. If we look at the possible combination of other (losing) outcomes, we can easily determine the probability: 4. Heads, Heads, Heads. 5. Tails, Tails, Heads. 6. Tails, Heads, Tails. 7. Heads, Tails, Tails. 8. Tails, Tails, Tails. This means that to throw heads twice in 3 flips, we have a 3 in 8 chance. This is because there are 3 winning possibilities out of a total of 8 winning and losing possibilities.


What are all the possible outcomes for flipping or tossing three coins a dime a nickel and a penny in an organized manner and how would a tree diagram show these results?

There are eight possible results when flipping three coins (eliminating the highly unlikely scenario of one or more coins landing on their edge): Dime - Heads / Nickel - Heads / Penny - Heads Dime - Heads / Nickel - Heads / Penny - Tails Dime - Heads / Nickel - Tails / Penny - Heads Dime - Heads / Nickel - Tails / Penny - Tails Dime - Tails / Nickel - Heads / Penny - Heads Dime - Tails / Nickel - Heads / Penny - Tails Dime - Tails / Nickel - Tails / Penny - Heads Dime - Tails / Nickel - Tails / Penny - Tails


What would be the outcomes of tossing 2 coins once?

Two ways to think about it: 1: 25% both heads 50% one of each 25% both tails -or- 2: 25% heads/heads 25% heads/tails 25% tails/heads 25% tails/tails


How can you decide which is heads or tails on a coin?

Heads have a person on it. Tails have something else on it.


How many possible outcomes of tossing a coin 3 times have exactly 1 head?

The outcomes are: heads, tails, tails or tails, heads, tails or tails, tails, heads. You can see that there are 3 possible outcomes with exactly 1 head.


Was coin toss heads or tails?

tails