Question

In: Math

3. Use `sample()` to generate rolls from biased coin with $Pr(Head) = 0.6$ . i) get...

3. Use `sample()` to generate rolls from biased coin with $Pr(Head) = 0.6$ .

i) get a sample of size 10 tosses and tally the results
  
ii) get a sample of size 30 tosses and tally the results   
  
iii) get a sample of size 100 tosses and tally the results
  
iv) what do you notice with the proportion of heads in each sample?
  
### Code chunk
```{r}
# star your code


# last R code line
```

Solutions

Expert Solution


Related Solutions

A biased coin (P(head) = p , p is not equal to 0.5) is tossed repeatedly....
A biased coin (P(head) = p , p is not equal to 0.5) is tossed repeatedly. Find the probability that there is a run of r heads in a row before there is a run of s tails, where r and s are positive integers. Express the answer in terms of p, r and s.
what is the probablity you flip a coin and get a head, flip another coin and...
what is the probablity you flip a coin and get a head, flip another coin and get a tail and then draw a blavk card from a deck of cards?
A biased coin with P(Head) = 0.4 is tossed 1000 times. Let X be the counts...
A biased coin with P(Head) = 0.4 is tossed 1000 times. Let X be the counts of heads in the tossing. Find the upper bound for P(X ≤ 300 or X ≥ 500). Use Gaussian approximation to compute P(X ≤ 300 or X ≥ 500).
You flip a coin 100 times to see whether it is biased and get 60 heads....
You flip a coin 100 times to see whether it is biased and get 60 heads. Explain two different ways you could find the p-value of this experiment.
A perfectly balanced coin is tossed, there is equal chance to get a head (H) or...
A perfectly balanced coin is tossed, there is equal chance to get a head (H) or a tail (T ). Consider a random experiment of throwing SEVEN perfectly balanced and identical coins. Let S denote the sample space. a) List the elements in S. (b) Find the probability that there is three tails and four heads.
I flip a fair coin and recorded the result. If it is head, I then roll...
I flip a fair coin and recorded the result. If it is head, I then roll a 6-sided die: otherwise, I roll a 4-sided die and record the results. Let event A be the die has a 3 or greater. let event B be I flip tails. (a)-List all the outcomes in the Sample space (b)- List the outcomes in Event A and B (c)- List the outcomes in A or not B (d)- Calculate the probability of event A...
Suppose you choose a coin at random from an urn with 3 coins, where coin i...
Suppose you choose a coin at random from an urn with 3 coins, where coin i has P(H) = i/4. What is the pmf for your prior distribution of the probability of heads for the chosen coin? What is your posterior given 1 head in 1 flip? 2 heads in 2 flips? 10 heads in 10 flips?Hint: Compute the odds for each coin first.
Your unfair coin comes up heads with probability 0.6. You flip it until you get four...
Your unfair coin comes up heads with probability 0.6. You flip it until you get four heads in a row. Let t be the expected number of times you flip. Write an equation for t. (Your equation, if solved, should give the value of t).
in tossing a coin 1024 times we get 460 tails. is this coin fair? use a...
in tossing a coin 1024 times we get 460 tails. is this coin fair? use a significance level equal to 5%
A biased coin has probability p = 3/7 of flipping heads. In a certain game, one...
A biased coin has probability p = 3/7 of flipping heads. In a certain game, one flips this coin repeatedly until flipping a total of four heads. (a) What is the probability a player finishes in no more than 10 flips? (b) If five players independently play this game, what is the probability that exactly two of them finish in no more than ten flips?
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT