Question 1199262: 1. In Angel’s Garden, there is a 3% chance that a tomato will be bad. Angel harvests 100
tomatoes and wants to know the probability that at most five tomatoes are bad.
2. Consider a rather nonstandard dice. Instead of the numbers 1 through 6, die A has two 3’s,
two 5’s, and two 7’s; die B has two2’s, two 4’s, and two 9’s; and die C has two 1’s, two 6’s,
and two 8’s, as in the figure below
Suppose dice A and B are rolled. If A is more likely to get the higher number. That is, P(A >
B) > 0.50, where {A > B} denotes the event that A beats B. Hint: Condition on the outcome of
die A.
Now, if B and C are rolled, B is more likely to get the higher number. And, remarkably, if C
and A are rolled, C is more likely to get the higher number. These dice are known as nontransitive dice and are the basis of a magic trick. You pick any die. Then anyone can always
pick a die that is more likely to beat yours. If you pick A, he picks C. If you pick B, he picks
A. And if you pick C, he picks B. Your task is to write an R code that will simulate this nontransitive dice elaborated above.
HINT: Define three functions that will represent the three dices as samples representing the
three configurations given in the figure above (A, B and C), then replicate the experiment
several times (100, or 1000 times) by calling the functions with the conditions given above.
Answer by ikleyn(52778) (Show Source):
You can put this solution on YOUR website! .
Thank you for posting us the description of this curious phenomenon.
But it this forum we do not write computer codes in response to the visitors requests.
It is NEITHER a profile NOR a focus NOR a goal and NOR a subject of this forum.
To learn what is the subject of this forum,
read attentively from the front page.
So, it was your mistake to post this request to this forum.
Try to find another web-site / forum for your request.
//////////////////
In the future, pack more than one problem per post - - -
- - - if you are not an enemy to yourself (which I assume, by default)
- - - and if you want your requests be considered seriously (which I also assume, by default).
|
|
|