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 n and a vector p=|p1,p2,dots,pn|, such that it outputs instance, p=[16,16,16,16,16,16] corresponds to a fait sit-sided dice.
(b) Suppose you start with 0 dollars and decide to play s ganditing game. Yow pwey 3.5 dollars, roll a firir dice, and win k dollars if a k is rolled. Yoe ply this game 20 times. Let S1 be 3000 times, plot your resulis as a histogrsm, sad report the ompirical ment and empirical varianse of S1.
(c) Suppose you start with 0 dollars and decide to play a gambiting game. You poy 3.5 dollars, roll a bissed dice such that the probablity of rolling a 1 and 6 are each 14, and win k dollars ufturwards (which can be negative). Run this sitmelation 100 timess plet jour resulks as a histogram, und report your empirical mest and empitical sariatere of S2.
(d) Comysure your results for S1 and S2. Do they mokle intuitine sensel?
 (a) Write a R function whose inputs are n and a

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!