Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

write code in R A nervous gambler finds that they keep losing money at the craps table, and suspect the house of cheating. They record

write code in R A nervous gambler finds that they keep losing money at the craps table, and suspect the house of cheating. They record a large number of rolls (over which they continue to lose money...) and find the following data. Value of each roll : 2 3 4 5 6 7 8 9 10 11 12 Number of Rolls: 15 30 36 50 57 59 55 48 36 20 17 Note that in craps, each roll is a roll of two dice, summed together, taking values from 2 to 12. This data can be found in the variable gambler. a) To find evidence that the dice are unfair, what will be the assumed distribution of each possible value? Your answer should be a list of length 11, with the first value representing P(X = 2), the second P(X = 3), etc. Save your answer in the variable q2.a (To check your answer: The variable q2.a should sum to 1.) b) Calculate the expected counts for the number of rolls of each die. Your answer should be in the form of a list of length 11. Save your answer in the variable q2.b c) Calculate the 2 test

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Linear Algebra With Applications

Authors: W. Keith Nicholson

7th Edition

978-0070985100, 70985103

More Books

Students also viewed these Mathematics questions

Question

How are most students funded?

Answered: 1 week ago