Suppose you roll a die until the first time you obtain an even number. Let X1​ be the total number of times you roll a 1, and let X2​ be the total number of times that you roll a 2. Use simulation in R to test if E[X1​]=E[X2​]. Include a screenshot of the RStudio approach. Hint: It is extremely unlikely that you will roll 30 times before getting the first even number, so you can safely assume that the first even roll occurs inside of 30 rolls. E[X1​]=E[X2​] or E[X1​]≠E[X2​]

Algebra & Trigonometry with Analytic Geometry
13th Edition
ISBN:9781133382119
Author:Swokowski
Publisher:Swokowski
Chapter5: Inverse, Exponential, And Logarithmic Functions
Section5.6: Exponential And Logarithmic Equations
Problem 70E
icon
Related questions
Question

Suppose you roll a die until the first time you obtain an even number. Let X1​ be the total number of times you roll a 1, and let X2​ be the total number of times that you roll a 2.

Use simulation in R to test if E[X1​]=E[X2​]. Include a screenshot of the RStudio approach.

Hint: It is extremely unlikely that you will roll 30 times before getting the first even number, so you can safely assume that the first even roll occurs inside of 30 rolls.

  • E[X1​]=E[X2​]

or

  • E[X1​]≠E[X2​]
Expert Solution
steps

Step by step

Solved in 3 steps with 2 images

Blurred answer