
MATLAB: An Introduction with Applications
6th Edition
ISBN: 9781119256830
Author: Amos Gilat
Publisher: John Wiley & Sons Inc
expand_more
expand_more
format_list_bulleted
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
а?](https://content.bartleby.com/qna-images/question/f2db349d-44e2-4dc0-ad50-be44fa6802da/14bdd39b-da59-44d2-921d-95a7f08c7d0c/c6twnqd_thumbnail.png)
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
а?

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

This question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
This is a popular solution
Trending nowThis is a popular solution!
Step by stepSolved in 2 steps

Knowledge Booster
Similar questions
- Principles is basic general truth about the cause and effect relationship between variables. True or falsearrow_forwardDefine the process of mathematical modelling?arrow_forwardFill in the blank. You are doing a study for a non-profit group helping at-risk children in your city. Suppose you know that 14.2% of the children in your city live in poverty. This percentage is an example of a You are doing a study for a non-profit group helping at-risk children in your city. Suppose you know that 14.2% of the children in your city live in poverty. This percentage is an example of a population parameter. sample statistic.arrow_forward
arrow_back_ios
arrow_forward_ios
Recommended textbooks for you
- MATLAB: An Introduction with ApplicationsStatisticsISBN:9781119256830Author:Amos GilatPublisher:John Wiley & Sons IncProbability and Statistics for Engineering and th...StatisticsISBN:9781305251809Author:Jay L. DevorePublisher:Cengage LearningStatistics for The Behavioral Sciences (MindTap C...StatisticsISBN:9781305504912Author:Frederick J Gravetter, Larry B. WallnauPublisher:Cengage Learning
- Elementary Statistics: Picturing the World (7th E...StatisticsISBN:9780134683416Author:Ron Larson, Betsy FarberPublisher:PEARSONThe Basic Practice of StatisticsStatisticsISBN:9781319042578Author:David S. Moore, William I. Notz, Michael A. FlignerPublisher:W. H. FreemanIntroduction to the Practice of StatisticsStatisticsISBN:9781319013387Author:David S. Moore, George P. McCabe, Bruce A. CraigPublisher:W. H. Freeman

MATLAB: An Introduction with Applications
Statistics
ISBN:9781119256830
Author:Amos Gilat
Publisher:John Wiley & Sons Inc

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
ISBN:9781305504912
Author:Frederick J Gravetter, Larry B. Wallnau
Publisher:Cengage Learning

Elementary Statistics: Picturing the World (7th E...
Statistics
ISBN:9780134683416
Author:Ron Larson, Betsy Farber
Publisher:PEARSON

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
Statistics
ISBN:9781319013387
Author:David S. Moore, George P. McCabe, Bruce A. Craig
Publisher:W. H. Freeman