2. For this item, you will simulate rolling a fair, six-sided die 600 times (recording the...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
2. For this item, you will simulate rolling a fair, six-sided die 600 times (recording the number rolled each time in the object dierolls) and then create a histogram of the distribution of outcomes. (a) The sample function is used to generate a randomly generated list of numbers from a specified range of values. It is possible to place a probability distribution on the range of values (for instance, if you wanted to simulate a biased die where certain outcomes have higher probability than others). Because you are simulating a fair die, you will not need to enter a probability assignment. Enter: > dierolls = sample(1:6, 600, replace = T) (Note that the argument replace T indicates that all six outcomes are available on each of the 600 rolls.) (b) The hist function is used to generate a histogram of a distribution. There are many arguments to the hist function, but for the purposes of this course you will mostly be interested in the general shape of the distribution, so you will omit most arguments and allow the default settings to apply. Enter: > hist (dierolls, breaks = c(0.5, 1.5, 2.5, 3.5, 4.5, 5.5, 6.5)) Print this histogram out and include it with your written responses. (c) (Written Response) When drawing a histogram for the theoretical results of 600 rolls of a fair die, what kind of distribution should you draw? What should the height of each bar in the histogram be? How well that histogram matches the theoretical histogram you stated should result. Explain. 2. For this item, you will simulate rolling a fair, six-sided die 600 times (recording the number rolled each time in the object dierolls) and then create a histogram of the distribution of outcomes. (a) The sample function is used to generate a randomly generated list of numbers from a specified range of values. It is possible to place a probability distribution on the range of values (for instance, if you wanted to simulate a biased die where certain outcomes have higher probability than others). Because you are simulating a fair die, you will not need to enter a probability assignment. Enter: > dierolls = sample(1:6, 600, replace = T) (Note that the argument replace T indicates that all six outcomes are available on each of the 600 rolls.) (b) The hist function is used to generate a histogram of a distribution. There are many arguments to the hist function, but for the purposes of this course you will mostly be interested in the general shape of the distribution, so you will omit most arguments and allow the default settings to apply. Enter: > hist (dierolls, breaks = c(0.5, 1.5, 2.5, 3.5, 4.5, 5.5, 6.5)) Print this histogram out and include it with your written responses. (c) (Written Response) When drawing a histogram for the theoretical results of 600 rolls of a fair die, what kind of distribution should you draw? What should the height of each bar in the histogram be? How well that histogram matches the theoretical histogram you stated should result. Explain.
Expert Answer:
Posted Date:
Students also viewed these mathematics questions
-
The payroll summary for EVB Inc. for the period August 3 - 10 is as follows: Factory Employees Sales and Admin. Employees Total Gross Earnings $80,000 $25,000 $105,000 Withholding and deductions:...
-
Referring to the Texas Lotto situation in Problem 7-20 suppose the investor has changed his attitude about the investment and wishes to give greater emphasis to the risk of the investment. Now the...
-
1. Baldwin Co. purchases an asset for $50,000. This asset qualifies as a five-year recovery asset under MACRS, with the fixed depreciation percentages as follows: Year 1 = 20.00% Year 2 = 32.00% Year...
-
Prepare journal entries to record the following merchandising transactions of Blink Company. July 1 Purchased merchandise from Boden Company for \($6,000\) under credit terms of 1/15, n/30, FOB...
-
The following financial information is available for Plummer Corporation. The weighted-average number of shares of common stock outstanding was 80,000 for 2013 and 100,000 for 2014. Instructions...
-
Calculate the mean of "What is your current level of education?" in a survey. - 31% answered B.A. Degree (11 responses), 54% answered Master's Degree (19 responses), 9% answered Specialist Degree (3...
-
Suppose I have a Pt disk electrode in a solution of Cu 2+ plus 0.1 M KCl versus a saturated calomel electrode (ESCE = 0.242 V). If the E 1/2 for Cu 2+ reduction is at 0.100 V vs. SCE, what would the...
-
Find the first derivative d and d x . Show all steps and simplify answer. and = x 2 + 1 x 2 - 1
-
What are some examples of resources that compromise an organizations inputs?Explain
-
Case study Gucci is part of the global luxury group Kering, which manages renowned houses in fashion, leather goods, jewellery, and eyewear. In April 2023, a Gucci employee in Los Angeles posted an...
-
Differentiate between spoiled and defective material, why costing procedure is different for both? 2. Give an example of cost which is a part of unavoidable cost. 3. Why there is a need to identify...
-
The following departmental data of the Bess Manufacturing Company for the month of January are given: Department A: 100,000 pounds of material costing P25,000 were placed in process Payrol costs for...
-
- SAADEDDIN Pastry makes two types of sweets: A and B. Each unit of sweet A requires 6 units of ingredient Z and each unit of sweet B requires 3 units of ingredient Z. Baking time per unit of sweet B...
-
Use the T account for Cash below to record the portion of each of the following transactions, if any that affect cash. How do these transactions affect the companys liquidity? Jan. 2 Provided...
Study smarter with the SolutionInn App