Question: This is on R Studio so please, please show me the coding for the question with the answer. Thanks! Suppose you have a gambling game

This is on R Studio so please, please show me the coding for the question with the answer. Thanks!
Suppose you have a gambling game that costs two dollars to play. You can win 1 dollar with probability 0.15, and 2 dollars with probability 0.05 and 20 dollars with probability 0.01. What is the expected net gain from playing this game? Document any computations you use in the codeblock provided. If you use a computation in your answer, it must be given here: {r}
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
