Question: ( a ) Write a R function whose inputs are n and a vector p = | p 1 , p 2 , dots, p
a Write a R function whose inputs are and a vector dots, such that it outputs instance, corresponds to a fait sitsided dice.
b Suppose you start with dollars and decide to play s ganditing game. Yow pwey dollars, roll a firir dice, and win dollars if a is rolled. Yoe ply this game times. Let be times, plot your resulis as a histogrsm, sad report the ompirical ment and empirical varianse of
c Suppose you start with dollars and decide to play a gambiting game. You poy dollars, roll a bissed dice such that the probablity of rolling a and are each and win dollars ufturwards which can be negative Run this sitmelation timess plet jour resulks as a histogram, und report your empirical mest and empitical sariatere of
d Comysure your results for and Do they mokle intuitine sensel
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
