Question: Prior knowledge of Python required Assume a Python list Omega of (distinct) elements, and a function def X(omega) defined on Omega. The code below aims

Prior knowledge of Python required
Assume a Python list Omega of (distinct) elements, and a function def X(omega) defined on Omega. The code below aims at implementing the functions ExpCX), Var(X) to compute B(X), V(X), as well as its PMF and CDF, and the probability of an interval (s,], assuming that the elements of Omega are equally likely Omega:[0, 1+u9/3, 5, 6] # u9 is the last digit of your UIN def X(om): return om 2 def Pinterval(x,s,t): # Probability that scKGt where s,t are real # Complete def PMF (X,t): # Probability that X-t, where t is real # Complete def CDF(X,t): # Probability that 0)',?) # Complete 1. Complete the missing parts in the code above. 2. The implementation of Exp (X) above iterates over values of X. Modify the code to iterate on Omega instead, and verify that the results remain the same. In a special UIUC edition of a Roulette game, each pocket is a paired combination (c,k) E (orange,blue.green,red) x (1,....9) The score won or lost at every turn is determined by the formula: Wk) where and u(k) is the k-th digit of the player's UIN, and m(orange):1, m(blue): 2, m(green):-3, and m(red)-4 loss if W 0)',?) # Complete 1. Complete the missing parts in the code above. 2. The implementation of Exp (X) above iterates over values of X. Modify the code to iterate on Omega instead, and verify that the results remain the same. In a special UIUC edition of a Roulette game, each pocket is a paired combination (c,k) E (orange,blue.green,red) x (1,....9) The score won or lost at every turn is determined by the formula: Wk) where and u(k) is the k-th digit of the player's UIN, and m(orange):1, m(blue): 2, m(green):-3, and m(red)-4 loss if W
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
