Consider the experiment of rolling a pair of dice Suppose th
Consider the experiment of rolling a pair of dice. Suppose that we are interested in the sum of the face values showing on the dice. What is the probability of obtaining a value of 5? How to right this question on R
Consider the experiment of rolling a pair of dice. Suppose that we are interested in the sum of the face values showing on the dice. What is the probability of obtaining a value of 5? How to right this question on R
Solution
A fair dice has six faces.the possible outcomes are 6.
If two dice thrown the total number of possible outcomes are 6X6 = 36.
favorable events to get a sum of 5 is (1,4) (2,3) (3,2) (4,1)
Probability of getting sum 5 is = 4/36 =2/18
Finally, it is important to be able to manipulate various R objects in logical, rather than numerical ways. Here are some examples that illustrate logical operations on a vector. I use in-line comments to tell you what is going on.
