6. A pair of dice are rolled once (so will have two numbers show up when we roll the pair). The sample space is S= {(1, 1),(1, 2),(1, 3), ..,(6, 5), (6, 6)}. There are 36 elements in the sample %3D ..... space, and they are all equally likely to occur (thus each has probability of -36 of occurring). A. What is the probability that the sum of the two dices is less than or equal to 11?

MATLAB: An Introduction with Applications
6th Edition
ISBN:9781119256830
Author:Amos Gilat
Publisher:Amos Gilat
Chapter1: Starting With Matlab
Section: Chapter Questions
Problem 1P
icon
Related questions
Question

show work

This is not to be turned in, but you should do it. Run the following R code that will simulate the
situation in 6a by rolling a pair of dice 10,000 times. Just copy and paste it into the R console,
and press the enter key.
srolls = 10000
stor= c()
for (i in 1:rolls){
dice1 = sample(6,1)
dice2 = sample(6,1)
sum = dice1+dice2
stor[i] = ifelse(sum <= 11, 1, 0)
%3D
}
prob = sum(stor)/rolls
prob
Is this simulation value close to what you derived in question 6 part
а?
Transcribed Image Text:This is not to be turned in, but you should do it. Run the following R code that will simulate the situation in 6a by rolling a pair of dice 10,000 times. Just copy and paste it into the R console, and press the enter key. srolls = 10000 stor= c() for (i in 1:rolls){ dice1 = sample(6,1) dice2 = sample(6,1) sum = dice1+dice2 stor[i] = ifelse(sum <= 11, 1, 0) %3D } prob = sum(stor)/rolls prob Is this simulation value close to what you derived in question 6 part а?
6. A pair of dice are rolled once (so will have two numbers show up when we roll the pair). The
sample space is S= {(1, 1),(1, 2),(1, 3), ..,(6, 5),(6, 6)}. There are 36 elements in the sample
.....
space, and they are all equally likely to occur (thus each has probability of
36
1.
of occurring).
A. What is the probability that the sum of the two dices is less than or equal to 11?
Transcribed Image Text:6. A pair of dice are rolled once (so will have two numbers show up when we roll the pair). The sample space is S= {(1, 1),(1, 2),(1, 3), ..,(6, 5),(6, 6)}. There are 36 elements in the sample ..... space, and they are all equally likely to occur (thus each has probability of 36 1. of occurring). A. What is the probability that the sum of the two dices is less than or equal to 11?
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 2 steps

Blurred answer
Recommended textbooks for you
MATLAB: An Introduction with Applications
MATLAB: An Introduction with Applications
Statistics
ISBN:
9781119256830
Author:
Amos Gilat
Publisher:
John Wiley & Sons Inc
Probability and Statistics for Engineering and th…
Probability and Statistics for Engineering and th…
Statistics
ISBN:
9781305251809
Author:
Jay L. Devore
Publisher:
Cengage Learning
Statistics for The Behavioral Sciences (MindTap C…
Statistics for The Behavioral Sciences (MindTap C…
Statistics
ISBN:
9781305504912
Author:
Frederick J Gravetter, Larry B. Wallnau
Publisher:
Cengage Learning
Elementary Statistics: Picturing the World (7th E…
Elementary Statistics: Picturing the World (7th E…
Statistics
ISBN:
9780134683416
Author:
Ron Larson, Betsy Farber
Publisher:
PEARSON
The Basic Practice of Statistics
The Basic Practice of Statistics
Statistics
ISBN:
9781319042578
Author:
David S. Moore, William I. Notz, Michael A. Fligner
Publisher:
W. H. Freeman
Introduction to the Practice of Statistics
Introduction to the Practice of Statistics
Statistics
ISBN:
9781319013387
Author:
David S. Moore, George P. McCabe, Bruce A. Craig
Publisher:
W. H. Freeman